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:
Pontoporeia
2026-09-18 16:26:49 +02:00
parent 554ba3ee8d
commit bfde71caaa
14 changed files with 2772 additions and 2721 deletions
+143 -137
View File
@@ -5,56 +5,56 @@
/* Override inherited padding on main-content */
#main-content {
padding-top: 0;
padding-top: 0;
}
.page-content {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
scroll-behavior: smooth;
/* Bottom spacing lives on .page-content > article::after (below): Firefox
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
scroll-behavior: smooth;
/* Bottom spacing lives on .page-content > article::after (below): Firefox
drops/clips the scroll container's own padding-bottom in this nested flex
layout, while Chromium honours it — moving the pad into a block pseudo
element keeps both browsers consistent. */
padding: var(--space-xl) var(--space-l) 0;
display: grid;
grid-template-columns: 180px 1fr;
gap: var(--space-2xl);
align-items: start;
padding: var(--space-xl) var(--space-l) 0;
display: grid;
grid-template-columns: 180px 1fr;
gap: var(--space-2xl);
align-items: start;
}
/* ── TOC styles → components/toc.css (shared with admin) ───────────────── */
/* Grid column positioning for content pages with sidebar TOC */
@media (min-width: 768px) {
.page-content > article {
grid-column: 2;
min-width: 0;
max-width: 100%;
}
.page-content > article {
grid-column: 2;
min-width: 0;
max-width: 100%;
}
}
@media (max-width: 767px) {
.page-content {
grid-template-columns: 1fr;
gap: var(--space-l);
padding: var(--space-m) var(--space-s) 0;
}
.page-content {
grid-template-columns: 1fr;
gap: var(--space-l);
padding: var(--space-m) var(--space-s) 0;
}
.page-content > article {
grid-column: 1;
}
.page-content > article {
grid-column: 1;
}
.toc {
margin-top: var(--space-s);
}
.toc {
margin-top: var(--space-s);
}
}
/* ── First content child aligns with TOC heading top ───────────────────── */
.page-content > article > :first-child {
margin-top: 2.2rem;
margin-top: 2.2rem;
}
/* ------------------------------------------------------------------ */
@@ -62,127 +62,133 @@
/* ------------------------------------------------------------------ */
.page-content > article {
display: block;
max-width: 100%;
font-family: var(--font-body);
font-size: var(--step-0);
line-height: 1.6;
color: var(--text-primary);
font-weight: 300;
display: block;
max-width: 100%;
font-family: var(--font-body);
font-size: var(--step-0);
line-height: 1.6;
color: var(--text-primary);
font-weight: 300;
}
/* Trailing bottom spacing. Pseudo-element (real content in the scroll area)
rather than the container's padding-bottom, which Firefox clips. */
.page-content > article::after {
content: "";
display: block;
height: var(--space-2xl);
content: "";
display: block;
height: var(--space-2xl);
}
@media (max-width: 767px) {
.page-content > article::after {
height: var(--space-xl);
}
.page-content > article::after {
height: var(--space-xl);
}
}
.page-content > article * {
max-width: 100%;
overflow-wrap: anywhere;
word-break: break-word;
max-width: 100%;
overflow-wrap: anywhere;
word-break: break-word;
}
.page-content > article p {
margin: 0 0 1em 0;
margin: 0 0 1em 0;
}
.page-content > article p:last-child {
margin-bottom: 0;
margin-bottom: 0;
}
.page-content > article a {
color: inherit;
text-decoration: underline;
text-decoration-thickness: 0.08em;
text-underline-offset: 0.15em;
font-weight: 700;
color: inherit;
text-decoration: underline;
text-decoration-thickness: 0.08em;
text-underline-offset: 0.15em;
font-weight: 700;
}
.page-content > article a:hover {
color: var(--accent-primary);
text-decoration-thickness: 0.12em;
color: var(--accent-primary);
text-decoration-thickness: 0.12em;
}
.page-content > article ul,
.page-content > article ol {
padding-left: var(--space-m);
margin-bottom: var(--space-s);
padding-left: var(--space-m);
margin-bottom: var(--space-s);
}
.page-content > article li {
margin-bottom: 0.3em;
margin-bottom: 0.3em;
}
.page-content > article strong {
font-weight: 700;
font-weight: 700;
}
.page-content > article em {
font-style: italic;
font-style: italic;
}
.page-content > article :where(pre, pre code, code) {
display: block;
max-width: 100%;
overflow-x: auto;
overflow-wrap: normal;
word-break: normal;
font-family: "Courier New", Courier, monospace;
font-size: 0.88em;
background: color-mix(in srgb, var(--bg-tertiary) 50%, transparent);
padding: 0.5em 0.75em;
border-radius: var(--radius);
white-space: pre-wrap;
word-wrap: break-word;
display: block;
max-width: 100%;
overflow-x: auto;
overflow-wrap: normal;
word-break: normal;
font-family: "Courier New", Courier, monospace;
font-size: 0.88em;
background: color-mix(in srgb, var(--bg-tertiary) 50%, transparent);
padding: 0.5em 0.75em;
border-radius: var(--radius);
white-space: pre-wrap;
word-wrap: break-word;
}
#apropos-intro *,
#apropos-contacts *,
#apropos-credits * {
overflow-wrap: anywhere;
word-break: break-word;
max-width: 100%;
overflow-wrap: anywhere;
word-break: break-word;
max-width: 100%;
}
#apropos-contacts,
#apropos-intro {
border-bottom: none;
border-bottom: none;
}
/* Section separators (about page only) */
.page-content > article > section {
/* padding-bottom: var(--space-xl); */
border-bottom: 1px solid var(--border-primary);
margin-bottom: var(--space-xl);
/* padding-bottom: var(--space-xl); */
border-bottom: 1px solid var(--border-primary);
margin-bottom: var(--space-xl);
}
.page-content > article > section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: var(--space-xl);
border-bottom: none;
margin-bottom: 0;
padding-bottom: var(--space-xl);
}
/* Scroll margin so anchor links account for the sticky header */
.page-content > article :where(h1, h2, h3) {
scroll-margin-top: var(--space-l);
scroll-margin-top: var(--space-l);
}
/* 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 {
display: none;
display: none;
}
/* ------------------------------------------------------------------ */
@@ -190,12 +196,12 @@
/* ------------------------------------------------------------------ */
.content-section-title {
font-family: var(--font-display);
font-size: clamp(1.35rem, 1.23rem + 0.55vw, 1.65rem);
font-weight: 400;
color: var(--text-primary);
margin: 0 0 var(--space-m) 0;
line-height: 1.1;
font-family: var(--font-display);
font-size: clamp(1.35rem, 1.23rem + 0.55vw, 1.65rem);
font-weight: 400;
color: var(--text-primary);
margin: 0 0 var(--space-m) 0;
line-height: 1.1;
}
/* ------------------------------------------------------------------ */
@@ -203,28 +209,28 @@
/* ------------------------------------------------------------------ */
.apropos-contacts-grid {
display: flex;
flex-direction: column;
gap: 0;
display: flex;
flex-direction: column;
gap: 0;
}
.apropos-contact-card {
font-style: normal;
padding: var(--space-s) 0;
font-style: normal;
padding: var(--space-s) 0;
}
.apropos-contact-card strong {
display: block;
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--space-3xs);
display: block;
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--space-3xs);
}
.apropos-contact-card span {
display: block;
color: var(--text-secondary);
line-height: 1.4;
margin-bottom: var(--space-3xs);
display: block;
color: var(--text-secondary);
line-height: 1.4;
margin-bottom: var(--space-3xs);
}
/* ------------------------------------------------------------------ */
@@ -232,33 +238,33 @@
/* ------------------------------------------------------------------ */
.apropos-credits-list {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0;
}
.apropos-credit-row {
display: grid;
grid-template-columns: 1fr 1.6fr;
gap: var(--space-s);
padding: var(--space-s) 0;
align-items: baseline;
display: grid;
grid-template-columns: 1fr 1.6fr;
gap: var(--space-s);
padding: var(--space-s) 0;
align-items: baseline;
}
.apropos-credits-list dt {
/* font-size: var(--step--1); */
font-weight: 300;
letter-spacing: 0.04em;
text-transform: uppercase;
/* font-size: var(--step--1); */
font-weight: 300;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.apropos-credits-list dd {
/* font-size: var(--step-; */
color: var(--text-primary);
margin: 0;
line-height: 1.5;
/* font-size: var(--step-; */
color: var(--text-primary);
margin: 0;
line-height: 1.5;
}
/* ------------------------------------------------------------------ */
@@ -266,7 +272,7 @@
/* ------------------------------------------------------------------ */
.apropos-single {
max-width: 720px;
max-width: 720px;
}
/* ------------------------------------------------------------------ */
@@ -274,20 +280,20 @@
/* ------------------------------------------------------------------ */
@media (max-width: 600px) {
.page-content {
padding: var(--space-m) var(--space-s) 0;
}
.page-content {
padding: var(--space-m) var(--space-s) 0;
}
.page-content > article {
font-size: var(--step-0);
}
.page-content > article {
font-size: var(--step-0);
}
.content-section-title {
font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
}
.content-section-title {
font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
}
.apropos-credit-row {
grid-template-columns: 1fr;
gap: var(--space-3xs);
}
.apropos-credit-row {
grid-template-columns: 1fr;
gap: var(--space-3xs);
}
}