Add text size buttons to the console's top bar (v3.2.1)

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-29 20:48:03 -08:00
1 parent 8277c8b548
commit 634e4df10e
25 files changed
+188 -40

No files matched your search

+19 -11
View File
@@ -76,17 +76,19 @@
/* The column's width: the card, the pager and the documents. */
--card-width: 880px;
/* Type: text steps, h1 to h4, one poster size; weights 400, 600, 700 only. */
--fs-2xs: 11px;
--fs-xs: 12px;
--fs-sm: 13px;
--fs-md: 14px;
--fs-base: 15px;
--fs-lg: 17px;
--fs-h4: 16px;
--fs-h3: 18px;
--fs-h2: 21px;
--fs-h1: 25px;
--fs-poster: 38px;
--fs-2xs: calc(11px * var(--text-scale));
--fs-xs: calc(12px * var(--text-scale));
--fs-sm: calc(13px * var(--text-scale));
--fs-md: calc(14px * var(--text-scale));
--fs-base: calc(15px * var(--text-scale));
--fs-lg: calc(17px * var(--text-scale));
--fs-h4: calc(16px * var(--text-scale));
--fs-h3: calc(18px * var(--text-scale));
--fs-h2: calc(21px * var(--text-scale));
--fs-h1: calc(25px * var(--text-scale));
--fs-poster: calc(38px * var(--text-scale));
/* The top bar's text size: 1 until [data-text-size] says otherwise (rules below). */
--text-scale: 1;
--lh-tight: 1.25;
--lh-ui: 1.4;
--lh-body: 1.55;
@@ -101,6 +103,12 @@
:root[data-width="narrow"] { --card-width: 720px; }
:root[data-width="wide"] { --card-width: 1080px; }
:root[data-width="ultrawide"] { --card-width: 1440px; }
:root[data-text-size="80"] { --text-scale: 0.8; }
:root[data-text-size="90"] { --text-scale: 0.9; }
:root[data-text-size="110"] { --text-scale: 1.1; }
:root[data-text-size="120"] { --text-scale: 1.2; }
:root[data-text-size="135"] { --text-scale: 1.35; }
:root[data-text-size="150"] { --text-scale: 1.5; }
/* Dark is written twice on purpose. The first copy follows the system unless
light was chosen; the second is the explicit ask. Without the `:not()` a