feat: add mobile-first styling matching enconf's CI
Pages were unstyled HTML until now. design/enterprise.css (enconf's 4400-line stylesheet) is tightly coupled to Ant Design/React class names and a fixed desktop sidebar layout — not usable as-is for Deklarix's plain server-rendered forms. Instead, internal/web/static/ app.css is a small, purpose-built mobile-first stylesheet that reuses enconf's actual design tokens (primary blue #1677ff, radius scale, shadows, Inter) for brand consistency without dragging in the unrelated layout/framework rules. Inter is self-hosted (copied from enconf's font files) rather than pulled from Google Fonts, keeping the "no runtime internet dependency" property. Only the "latin" subset is included — German umlauts and ß all live in U+0000-00FF, so the cyrillic/greek/vietnamese subsets enconf ships aren't needed here. Inputs/buttons are sized for touch (44px min-height) and use 16px font size to avoid iOS's auto-zoom-on-focus. Findings are color-coded by severity (red/amber/green backgrounds with a matching left border). Verified visually with chromium --headless --screenshot at both mobile (390px) and desktop (1280px) viewports, including a real WK-001 finding fetched from the running server and rendered through the actual stylesheet — not just asserted via HTTP status codes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
13
internal/web/static/inter.css
Normal file
13
internal/web/static/inter.css
Normal file
@@ -0,0 +1,13 @@
|
||||
/* Inter, selbst gehostet (aus enconf übernommen) — nur der "latin"-Subset
|
||||
(U+0000-00FF u.a.), das deckt deutsche Umlaute und ß bereits ab, ohne
|
||||
Zeichensätze für Kyrillisch/Griechisch/Vietnamesisch mitzuladen, die
|
||||
Deklarix nicht braucht. Eine Datei für alle Schriftschnitte (variable
|
||||
Font), daher font-weight als Bereich. */
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url(/static/fonts/inter-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
Reference in New Issue
Block a user