mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
CSS: - Remove duplicate 'background' fallbacks in base.css, header.css, search.css (solid color declared before gradient — gradient always wins) - Remove duplicate 'padding' in admin.css .admin-import-log JS (biome --write safe fixes applied): - function() → arrow functions in all IIFEs and callbacks - forEach/callback → arrow functions - evaluePtrn → parseInt(x, 10) in admin-contacts-form.js - Cleaned label text in build.mjs lint step Remaining warnings are intentional: !important overrides, descending specificity (admin.css cascade), noUnusedVariables (functions exported to window/onclick), useTemplate style preference.
77 lines
1.7 KiB
CSS
77 lines
1.7 KiB
CSS
/* ============================================================
|
|
BASE — Minimal site-wide rules. Keep this extremely small
|
|
(≤ 5 rules). Promote a pattern from a component to base
|
|
only once it's clearly universal.
|
|
============================================================ */
|
|
|
|
/* Full-height flex layout: header → main → (optional footer) */
|
|
html, body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Discreet scrollbars ─────────────────────────────────────────── */
|
|
/* WebKit browsers */
|
|
::-webkit-scrollbar {
|
|
width: 5px;
|
|
height: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--text-tertiary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-secondary);
|
|
}
|
|
|
|
/* Firefox */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--text-tertiary) transparent;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
font-weight: 300;
|
|
color: var(--text-primary);
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(0, 0, 0, 0) 92%,
|
|
rgba(149, 87, 181, 1) 100%
|
|
);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
main * {
|
|
overflow-wrap: anywhere;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Global heading scale — used by admin + public pages */
|
|
h1 { font-size: var(--step-4); }
|
|
h2 { font-size: var(--step-3); }
|
|
h3 { font-size: var(--step-2); }
|
|
h4 { font-size: var(--step-1); }
|
|
h5 { font-size: var(--step-0); }
|
|
h6 { font-size: var(--step--1); }
|
|
|
|
:where(h1, h2, h3, h4, h5, h6) {
|
|
font-family: var(--font-display);
|
|
font-weight: 400;
|
|
margin: 0 0 var(--space-l) 0;
|
|
line-height: 1.15;
|
|
}
|