mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
style: fix biome check errors (import order + formatting)
npx biome check reported 14 errors on app/public/assets/css/,
app/public/assets/js/app/ and scripts/:
- assist/source/organizeImports: scripts/css-content-sources.mjs,
scripts/css-unused-report.mjs
- format: 9 CSS files + 3 JS files
Fixed via biome check --write. Verified: npx biome check clean,
npm run build succeeds, PHPUnit 316 tests / 628 assertions pass.
This commit is contained in:
@@ -18,10 +18,19 @@ body {
|
|||||||
width: var(--scrollbar-width, 5px);
|
width: var(--scrollbar-width, 5px);
|
||||||
height: var(--scrollbar-width, 5px);
|
height: var(--scrollbar-width, 5px);
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
|
::-webkit-scrollbar-track {
|
||||||
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
|
background: var(--scrollbar-track);
|
||||||
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
|
}
|
||||||
::-webkit-scrollbar-corner { background: var(--scrollbar-corner); }
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: var(--scrollbar-thumb);
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: var(--scrollbar-thumb-hover);
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-corner {
|
||||||
|
background: var(--scrollbar-corner);
|
||||||
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
|
|||||||
@@ -205,7 +205,7 @@
|
|||||||
|
|
||||||
/* Small arrow below the bubble pointing at the button */
|
/* Small arrow below the bubble pointing at the button */
|
||||||
.btn[data-tip]::before {
|
.btn[data-tip]::before {
|
||||||
content: '';
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
bottom: calc(100% + 4px);
|
bottom: calc(100% + 4px);
|
||||||
|
|||||||
@@ -162,7 +162,10 @@ header nav ul a[aria-current="page"] {
|
|||||||
gap: 0;
|
gap: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
header nav[aria-label="Navigation principale"] .nav-left-links li:not(:first-child) {
|
header
|
||||||
|
nav[aria-label="Navigation principale"]
|
||||||
|
.nav-left-links
|
||||||
|
li:not(:first-child) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,7 +183,9 @@ header nav ul a[aria-current="page"] {
|
|||||||
transition: max-height 0.2s ease-out;
|
transition: max-height 0.2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-btn:checked ~ nav[aria-label="Navigation principale"] .nav-mobile-links {
|
.menu-btn:checked
|
||||||
|
~ nav[aria-label="Navigation principale"]
|
||||||
|
.nav-mobile-links {
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,16 +202,24 @@ header nav ul a[aria-current="page"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Animate burger → X */
|
/* Animate burger → X */
|
||||||
.menu-btn:checked ~ nav[aria-label="Navigation principale"] .menu-icon .navicon {
|
.menu-btn:checked ~ nav[aria-label="Navigation principale"]
|
||||||
|
.menu-icon
|
||||||
|
.navicon {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-btn:checked ~ nav[aria-label="Navigation principale"] .menu-icon .navicon::before {
|
.menu-btn:checked
|
||||||
|
~ nav[aria-label="Navigation principale"]
|
||||||
|
.menu-icon
|
||||||
|
.navicon::before {
|
||||||
transform: rotate(-45deg);
|
transform: rotate(-45deg);
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-btn:checked ~ nav[aria-label="Navigation principale"] .menu-icon .navicon::after {
|
.menu-btn:checked
|
||||||
|
~ nav[aria-label="Navigation principale"]
|
||||||
|
.menu-icon
|
||||||
|
.navicon::after {
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,11 +39,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Indent sub-headings in TOC */
|
/* Indent sub-headings in TOC */
|
||||||
.toc-list .toc-level-2 { padding-left: var(--space-s); }
|
.toc-list .toc-level-2 {
|
||||||
.toc-list .toc-level-3 { padding-left: var(--space-m); }
|
padding-left: var(--space-s);
|
||||||
|
}
|
||||||
|
.toc-list .toc-level-3 {
|
||||||
|
padding-left: var(--space-m);
|
||||||
|
}
|
||||||
|
|
||||||
.toc-list .toc-level-2 a { font-size: var(--step--1); }
|
.toc-list .toc-level-2 a {
|
||||||
.toc-list .toc-level-3 a { font-size: var(--step--2); }
|
font-size: var(--step--1);
|
||||||
|
}
|
||||||
|
.toc-list .toc-level-3 a {
|
||||||
|
font-size: var(--step--2);
|
||||||
|
}
|
||||||
|
|
||||||
/* ── Public TOC (details/summary block) ─────────────────────────────────── */
|
/* ── Public TOC (details/summary block) ─────────────────────────────────── */
|
||||||
.toc {
|
.toc {
|
||||||
|
|||||||
@@ -176,9 +176,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Content-page heading scale — smaller, distinct, no step-system dependency */
|
/* Content-page heading scale — smaller, distinct, no step-system dependency */
|
||||||
.page-content > article h1 { font-size: clamp(1.7rem, 1.55rem + 0.68vw, 2.1rem); }
|
.page-content > article h1 {
|
||||||
.page-content > article h2 { font-size: clamp(1.35rem, 1.23rem + 0.55vw, 1.65rem); }
|
font-size: clamp(1.7rem, 1.55rem + 0.68vw, 2.1rem);
|
||||||
.page-content > article h3 { font-size: clamp(1.1rem, 1.03rem + 0.34vw, 1.3rem); }
|
}
|
||||||
|
.page-content > article h2 {
|
||||||
|
font-size: clamp(1.35rem, 1.23rem + 0.55vw, 1.65rem);
|
||||||
|
}
|
||||||
|
.page-content > article h3 {
|
||||||
|
font-size: clamp(1.1rem, 1.03rem + 0.34vw, 1.3rem);
|
||||||
|
}
|
||||||
|
|
||||||
/* Hide CommonMark heading permalink anchors */
|
/* Hide CommonMark heading permalink anchors */
|
||||||
.heading-permalink {
|
.heading-permalink {
|
||||||
|
|||||||
@@ -78,7 +78,9 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
display: block;
|
display: block;
|
||||||
transition: transform 0.3s ease, opacity 300ms ease-in;
|
transition:
|
||||||
|
transform 0.3s ease,
|
||||||
|
opacity 300ms ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cover thumbnails are served as a <picture> (WebP + fallback); keep the
|
/* Cover thumbnails are served as a <picture> (WebP + fallback); keep the
|
||||||
|
|||||||
@@ -196,7 +196,9 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
|
box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
|
||||||
transition: transform 0.15s, box-shadow 0.15s;
|
transition:
|
||||||
|
transform 0.15s,
|
||||||
|
box-shadow 0.15s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tfe-website-open-btn:hover {
|
.tfe-website-open-btn:hover {
|
||||||
@@ -405,7 +407,9 @@
|
|||||||
background: var(--surface);
|
background: var(--surface);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
transition: height 0.35s ease, border-color 0.35s ease;
|
transition:
|
||||||
|
height 0.35s ease,
|
||||||
|
border-color 0.35s ease;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -473,7 +477,9 @@
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
|
box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
|
||||||
transition: transform 0.15s, box-shadow 0.15s;
|
transition:
|
||||||
|
transform 0.15s,
|
||||||
|
box-shadow 0.15s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pdf-enter-btn:hover {
|
.pdf-enter-btn:hover {
|
||||||
|
|||||||
@@ -46,8 +46,7 @@
|
|||||||
|
|
||||||
// Update active tab class after each HTMX swap on #sys-log-view
|
// Update active tab class after each HTMX swap on #sys-log-view
|
||||||
document.body.addEventListener("htmx:afterSwap", (evt) => {
|
document.body.addEventListener("htmx:afterSwap", (evt) => {
|
||||||
if (!(evt.detail.target && evt.detail.target.id === "sys-log-view"))
|
if (!(evt.detail.target && evt.detail.target.id === "sys-log-view")) return;
|
||||||
return;
|
|
||||||
var rc = evt.detail.requestConfig;
|
var rc = evt.detail.requestConfig;
|
||||||
var tab = null;
|
var tab = null;
|
||||||
// Tab clicks carry ?tab=… in the path
|
// Tab clicks carry ?tab=… in the path
|
||||||
|
|||||||
@@ -904,9 +904,12 @@
|
|||||||
var inputId = inputIdMap[queueType] || null;
|
var inputId = inputIdMap[queueType] || null;
|
||||||
var input = inputId ? document.getElementById(inputId) : null;
|
var input = inputId ? document.getElementById(inputId) : null;
|
||||||
console.log(
|
console.log(
|
||||||
"[relink] looking for input | queueType=" + queueType +
|
"[relink] looking for input | queueType=" +
|
||||||
" | inputId=" + inputId +
|
queueType +
|
||||||
" | found=" + !!input,
|
" | inputId=" +
|
||||||
|
inputId +
|
||||||
|
" | found=" +
|
||||||
|
!!input,
|
||||||
);
|
);
|
||||||
var closeModal = () => {
|
var closeModal = () => {
|
||||||
var modal = document.getElementById("relink-modal");
|
var modal = document.getElementById("relink-modal");
|
||||||
@@ -917,7 +920,8 @@
|
|||||||
console.log(`[relink] looking for pond | found=${!!pond}`);
|
console.log(`[relink] looking for pond | found=${!!pond}`);
|
||||||
if (pond) {
|
if (pond) {
|
||||||
pond
|
pond
|
||||||
.addFiles([{
|
.addFiles([
|
||||||
|
{
|
||||||
source: String(data.id),
|
source: String(data.id),
|
||||||
options: {
|
options: {
|
||||||
type: "local",
|
type: "local",
|
||||||
@@ -927,7 +931,8 @@
|
|||||||
type: mimeType,
|
type: mimeType,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}])
|
},
|
||||||
|
])
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log(
|
console.log(
|
||||||
"[relink] addFile resolved | source=" +
|
"[relink] addFile resolved | source=" +
|
||||||
@@ -1028,7 +1033,8 @@
|
|||||||
var pond = FilePond.find(input);
|
var pond = FilePond.find(input);
|
||||||
if (pond) {
|
if (pond) {
|
||||||
pond
|
pond
|
||||||
.addFiles([{
|
.addFiles([
|
||||||
|
{
|
||||||
source: String(data.id),
|
source: String(data.id),
|
||||||
options: {
|
options: {
|
||||||
type: "local",
|
type: "local",
|
||||||
@@ -1038,7 +1044,8 @@
|
|||||||
type: "video/mp4",
|
type: "video/mp4",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}])
|
},
|
||||||
|
])
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log("[pt-relink] addFile resolved");
|
console.log("[pt-relink] addFile resolved");
|
||||||
closeModal();
|
closeModal();
|
||||||
|
|||||||
@@ -360,7 +360,9 @@
|
|||||||
});
|
});
|
||||||
const oldToolbar = container.querySelector(".pdf-toolbar");
|
const oldToolbar = container.querySelector(".pdf-toolbar");
|
||||||
if (oldToolbar) oldToolbar.remove();
|
if (oldToolbar) oldToolbar.remove();
|
||||||
renderAllPages(container, pdfDoc).then(() => buildToolbar(container, pdfDoc));
|
renderAllPages(container, pdfDoc).then(() =>
|
||||||
|
buildToolbar(container, pdfDoc),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Bootstrap ──────────────────────────────────────────────────
|
// ── Bootstrap ──────────────────────────────────────────────────
|
||||||
|
|||||||
@@ -33,8 +33,7 @@
|
|||||||
* DYNAMIC_CLASS_PREFIXES -> string[] prefix patterns (x--*) kept
|
* DYNAMIC_CLASS_PREFIXES -> string[] prefix patterns (x--*) kept
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { readFileSync } from "node:fs";
|
import { readdirSync, readFileSync, statSync } from "node:fs";
|
||||||
import { readdirSync, statSync } from "node:fs";
|
|
||||||
import { dirname, extname, join, relative, resolve } from "node:path";
|
import { dirname, extname, join, relative, resolve } from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
* (no args => all dist/*.min.css)
|
* (no args => all dist/*.min.css)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { readFileSync, readdirSync } from "node:fs";
|
import { readdirSync, readFileSync } from "node:fs";
|
||||||
import { dirname, resolve } from "node:path";
|
import { dirname, resolve } from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { transform } from "lightningcss";
|
import { transform } from "lightningcss";
|
||||||
|
|||||||
Reference in New Issue
Block a user