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);
|
||||
height: var(--scrollbar-width, 5px);
|
||||
}
|
||||
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
|
||||
::-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); }
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--scrollbar-track);
|
||||
}
|
||||
::-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 {
|
||||
scrollbar-width: thin;
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
|
||||
/* Small arrow below the bubble pointing at the button */
|
||||
.btn[data-tip]::before {
|
||||
content: '';
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: calc(100% + 4px);
|
||||
|
||||
@@ -162,7 +162,10 @@ header nav ul a[aria-current="page"] {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -180,7 +183,9 @@ header nav ul a[aria-current="page"] {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -197,16 +202,24 @@ header nav ul a[aria-current="page"] {
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
.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);
|
||||
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);
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
@@ -39,11 +39,19 @@
|
||||
}
|
||||
|
||||
/* Indent sub-headings in TOC */
|
||||
.toc-list .toc-level-2 { padding-left: var(--space-s); }
|
||||
.toc-list .toc-level-3 { padding-left: var(--space-m); }
|
||||
.toc-list .toc-level-2 {
|
||||
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-3 a { font-size: var(--step--2); }
|
||||
.toc-list .toc-level-2 a {
|
||||
font-size: var(--step--1);
|
||||
}
|
||||
.toc-list .toc-level-3 a {
|
||||
font-size: var(--step--2);
|
||||
}
|
||||
|
||||
/* ── Public TOC (details/summary block) ─────────────────────────────────── */
|
||||
.toc {
|
||||
|
||||
@@ -176,9 +176,15 @@
|
||||
}
|
||||
|
||||
/* 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 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); }
|
||||
.page-content > article h1 {
|
||||
font-size: clamp(1.7rem, 1.55rem + 0.68vw, 2.1rem);
|
||||
}
|
||||
.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 */
|
||||
.heading-permalink {
|
||||
|
||||
@@ -78,7 +78,9 @@
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
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
|
||||
|
||||
@@ -196,7 +196,9 @@
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
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 {
|
||||
@@ -405,7 +407,9 @@
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -473,7 +477,9 @@
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
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 {
|
||||
|
||||
@@ -46,8 +46,7 @@
|
||||
|
||||
// Update active tab class after each HTMX swap on #sys-log-view
|
||||
document.body.addEventListener("htmx:afterSwap", (evt) => {
|
||||
if (!(evt.detail.target && evt.detail.target.id === "sys-log-view"))
|
||||
return;
|
||||
if (!(evt.detail.target && evt.detail.target.id === "sys-log-view")) return;
|
||||
var rc = evt.detail.requestConfig;
|
||||
var tab = null;
|
||||
// Tab clicks carry ?tab=… in the path
|
||||
|
||||
@@ -904,9 +904,12 @@
|
||||
var inputId = inputIdMap[queueType] || null;
|
||||
var input = inputId ? document.getElementById(inputId) : null;
|
||||
console.log(
|
||||
"[relink] looking for input | queueType=" + queueType +
|
||||
" | inputId=" + inputId +
|
||||
" | found=" + !!input,
|
||||
"[relink] looking for input | queueType=" +
|
||||
queueType +
|
||||
" | inputId=" +
|
||||
inputId +
|
||||
" | found=" +
|
||||
!!input,
|
||||
);
|
||||
var closeModal = () => {
|
||||
var modal = document.getElementById("relink-modal");
|
||||
@@ -917,7 +920,8 @@
|
||||
console.log(`[relink] looking for pond | found=${!!pond}`);
|
||||
if (pond) {
|
||||
pond
|
||||
.addFiles([{
|
||||
.addFiles([
|
||||
{
|
||||
source: String(data.id),
|
||||
options: {
|
||||
type: "local",
|
||||
@@ -927,7 +931,8 @@
|
||||
type: mimeType,
|
||||
},
|
||||
},
|
||||
}])
|
||||
},
|
||||
])
|
||||
.then(() => {
|
||||
console.log(
|
||||
"[relink] addFile resolved | source=" +
|
||||
@@ -1028,7 +1033,8 @@
|
||||
var pond = FilePond.find(input);
|
||||
if (pond) {
|
||||
pond
|
||||
.addFiles([{
|
||||
.addFiles([
|
||||
{
|
||||
source: String(data.id),
|
||||
options: {
|
||||
type: "local",
|
||||
@@ -1038,7 +1044,8 @@
|
||||
type: "video/mp4",
|
||||
},
|
||||
},
|
||||
}])
|
||||
},
|
||||
])
|
||||
.then(() => {
|
||||
console.log("[pt-relink] addFile resolved");
|
||||
closeModal();
|
||||
|
||||
@@ -360,7 +360,9 @@
|
||||
});
|
||||
const oldToolbar = container.querySelector(".pdf-toolbar");
|
||||
if (oldToolbar) oldToolbar.remove();
|
||||
renderAllPages(container, pdfDoc).then(() => buildToolbar(container, pdfDoc));
|
||||
renderAllPages(container, pdfDoc).then(() =>
|
||||
buildToolbar(container, pdfDoc),
|
||||
);
|
||||
}
|
||||
|
||||
// ── Bootstrap ──────────────────────────────────────────────────
|
||||
|
||||
@@ -33,8 +33,7 @@
|
||||
* DYNAMIC_CLASS_PREFIXES -> string[] prefix patterns (x--*) kept
|
||||
*/
|
||||
|
||||
import { readFileSync } from "node:fs";
|
||||
import { readdirSync, statSync } from "node:fs";
|
||||
import { readdirSync, readFileSync, statSync } from "node:fs";
|
||||
import { dirname, extname, join, relative, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* (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 { fileURLToPath } from "node:url";
|
||||
import { transform } from "lightningcss";
|
||||
|
||||
Reference in New Issue
Block a user