| index 431aff8..d9b80b6 100644 |
| --- a/internal/slides/static/editor.css |
| +++ b/internal/slides/static/editor.css |
| @@ -13,8 +13,18 @@ |
| at 320px (spec §8): the stage scrolls inside its own region, which |
| is the one allowance the spec makes. */ |
| |
| -/* The desk (static/desk.css) and the layout pictures' inks. */ |
| +/* Type sizes and corner radii are the published ones (spec §7): |
| + rastrillo's --rst-fs-xs|sm|base|lg (11.5, 12.5, 14, 17px; a step |
| + larger under a coarse pointer or below 40rem) and --rst-radius, |
| + --rst-radius-sm, --rst-radius-pill (12, 8, 999px), and estilo's |
| + --estilo-float-radius (9px), wherever one is within a pixel of what |
| + the part needs. What they lack is named here, once, for what it is |
| + for; nothing else in this file states a size or a radius as a number |
| + (TestQuieterCSSUsesTokens). A size that must not grow on touch, in a |
| + fixed box, is named here too. */ |
| +/* slides: named values */ |
| :root { |
| + /* The layout pictures' inks. */ |
| --slides-glyph-paper: light-dark(#ffffff, #23211f); |
| --slides-glyph-edge: light-dark(#cfc8bf, #4a4540); |
| --slides-glyph-ink: light-dark(#3d3832, #d8d2cb); |
| @@ -25,7 +35,34 @@ |
| light slide in the dark theme and a dark one in the light. */ |
| --slides-strip-gutter: 24px; |
| --slides-strip-menu-ground: light-dark(rgb(255 255 255 / 0.8), rgb(24 22 20 / 0.72)); |
| -} |
| + /* Type in a fixed box, which must not grow on touch: the strip's |
| + numbers in their gutter, and the initials (and the "+n") in a |
| + presence face's 22px circle. */ |
| + --slides-fs-strip-number: 12px; |
| + --slides-fs-avatar: 10px; |
| + --slides-fs-avatar-more: 9px; |
| + /* The speaker notes: larger than a form's text (--rst-fs-base), |
| + because they are written to be read aloud. */ |
| + --slides-fs-notes: 15px; |
| + /* Corners: a short grip's and a handle's; the ring round the text |
| + being edited; the slide lying on the desk, and on the phone's |
| + screen; a thumbnail's; the deck title's and a menu title's hover |
| + ground in the bar; a key cap's; the layouts popover's and the |
| + shortcuts dialog's; the assistant's, and its sheet's top on a |
| + phone; the phone frame's; a dot. */ |
| + --slides-radius-glyph: 2px; |
| + --slides-radius-edit-ring: 2px; |
| + --slides-radius-paper: 4px; |
| + --slides-radius-thumb: 6px; |
| + --slides-radius-bar-item: 6px; |
| + --slides-radius-key: 6px; |
| + --slides-radius-panel: 14px; |
| + --slides-radius-assist: 16px; |
| + --slides-radius-sheet: 18px; |
| + --slides-radius-phone: 28px; |
| + --slides-radius-circle: 50%; |
| +} |
| +/* end named values */ |
| |
| /* `hidden` must actually hide. The bundle shows and hides most of the |
| inspector with the hidden PROPERTY, and the UA's own |
| @@ -190,10 +227,11 @@ |
| background: transparent; |
| block-size: 28px; |
| border: 1px solid transparent; |
| - border-radius: 6px; |
| + border-radius: var(--slides-radius-bar-item); |
| box-sizing: border-box; |
| color: var(--rst-text); |
| - font: 600 17px/26px var(--rst-font, system-ui), sans-serif; |
| + font: 600 var(--rst-fs-lg) var(--rst-font, system-ui), sans-serif; |
| + line-height: 26px; |
| letter-spacing: -0.01em; |
| margin-inline-start: -7px; |
| max-inline-size: min(36rem, 100%); |
| @@ -220,11 +258,11 @@ |
| [slides-menubar] [estilo-menubar-title] { |
| align-items: center; |
| block-size: 24px; |
| - border-radius: 6px; |
| + border-radius: var(--slides-radius-bar-item); |
| color: var(--rst-text-muted); |
| cursor: pointer; |
| display: inline-flex; |
| - font-size: 13px; |
| + font-size: var(--rst-fs-sm); |
| line-height: 24px; |
| min-block-size: 0; |
| padding: 0 8px; |
| @@ -238,7 +276,7 @@ |
| layout's picture beside its name. */ |
| [slides-menu-heading] { |
| color: var(--rst-text-muted); |
| - font-size: 12px; |
| + font-size: var(--rst-fs-xs); |
| font-weight: 600; |
| margin: 6px 12px 2px; |
| } |
| @@ -258,7 +296,7 @@ |
| } |
| [slides-head-end] [estilo-save-status] { |
| color: var(--rst-text-muted); |
| - font-size: 13px; |
| + font-size: var(--rst-fs-sm); |
| margin-inline-end: 4px; |
| } |
| /* The history pill: Undo and Redo as one control. Each is an |
| @@ -267,7 +305,7 @@ |
| look: a grey pill, a hairline between. */ |
| [slides-history] { |
| align-items: center; |
| - border-radius: 999px; |
| + border-radius: var(--rst-radius-pill); |
| display: inline-flex; |
| } |
| [slides-history] button:focus-visible, |
| @@ -285,7 +323,7 @@ |
| background: none; |
| block-size: 32px; |
| border: 0; |
| - border-radius: 999px; |
| + border-radius: var(--rst-radius-pill); |
| color: var(--rst-text-muted); |
| cursor: pointer; |
| display: inline-flex; |
| @@ -342,11 +380,11 @@ |
| background: none; |
| block-size: 36px; |
| border: 0; |
| - border-radius: 999px; |
| + border-radius: var(--rst-radius-pill); |
| color: var(--rst-text-muted); |
| cursor: pointer; |
| display: inline-flex; |
| - font: 600 14px/1 var(--rst-font, system-ui), sans-serif; |
| + font: 600 var(--rst-fs-base)/1 var(--rst-font, system-ui), sans-serif; |
| gap: 6px; |
| padding: 0 14px 0 12px; |
| } |
| @@ -371,7 +409,7 @@ |
| [slides-head-share], |
| [slides-present-form] [rst-btn] { |
| block-size: 36px; |
| - border-radius: 999px; |
| + border-radius: var(--rst-radius-pill); |
| padding-inline: 16px; |
| } |
| [slides-present-form] [rst-btn] { |
| @@ -441,7 +479,7 @@ |
| justify-content: flex-end; |
| } |
| [slides-head-share] { |
| - font-size: 14px; |
| + font-size: var(--rst-fs-base); |
| padding-inline: 12px; |
| } |
| } |
| @@ -457,7 +495,7 @@ |
| [slides-keys-dialog] { |
| background: var(--rst-surface); |
| border: 1px solid var(--rst-line); |
| - border-radius: 14px; |
| + border-radius: var(--slides-radius-panel); |
| box-shadow: var(--rst-shadow-pop); |
| color: var(--rst-text); |
| inline-size: min(30rem, calc(100vw - 2rem)); |
| @@ -492,8 +530,8 @@ |
| [slides-keys-list] kbd { |
| background: var(--rst-surface-2); |
| border: 1px solid var(--rst-line); |
| - border-radius: 6px; |
| - font: 600 12px/1 var(--rst-font, system-ui), sans-serif; |
| + border-radius: var(--slides-radius-key); |
| + font: 600 var(--rst-fs-xs)/1 var(--rst-font, system-ui), sans-serif; |
| padding: 4px 7px; |
| } |
| [slides-keys-dialog] form > p { |
| @@ -523,7 +561,7 @@ |
| hidden twin at the start of the link's name instead, once. */ |
| [slides-strip-item] { |
| align-items: start; |
| - border-radius: 10px; |
| + border-radius: var(--estilo-float-radius); |
| box-sizing: border-box; |
| column-gap: 6px; |
| display: grid; |
| @@ -582,7 +620,7 @@ |
| [slides-layout-grid] { |
| background: var(--rst-surface); |
| border: 0; |
| - border-radius: 14px; |
| + border-radius: var(--slides-radius-panel); |
| box-shadow: |
| 0 0 0 1px light-dark(rgb(40 28 12 / 0.1), rgb(255 255 255 / 0.1)), |
| 0 10px 20px -8px rgb(40 28 12 / 0.2), |
| @@ -609,11 +647,11 @@ |
| align-items: center; |
| background: none; |
| border: 1px solid transparent; |
| - border-radius: 8px; |
| + border-radius: var(--rst-radius-sm); |
| color: var(--rst-text); |
| cursor: pointer; |
| display: grid; |
| - font-size: 12px; |
| + font-size: var(--rst-fs-xs); |
| gap: 6px; |
| justify-items: center; |
| padding: 8px 4px; |
| @@ -651,7 +689,7 @@ |
| [slides-thumb] { |
| aspect-ratio: 16 / 9; |
| background: var(--rst-surface); |
| - border-radius: 6px; |
| + border-radius: var(--slides-radius-thumb); |
| box-shadow: |
| 0 0 0 1px light-dark(rgb(40 28 12 / 0.08), rgb(255 255 255 / 0.08)), |
| 0 1px 2px rgb(40 28 12 / 0.10), |
| @@ -682,7 +720,7 @@ |
| [slides-strip-number] { |
| color: var(--rst-text-muted); |
| display: block; |
| - font-size: 12px; |
| + font-size: var(--slides-fs-strip-number); |
| font-variant-numeric: tabular-nums; |
| font-weight: 500; |
| line-height: 1.5; |
| @@ -740,7 +778,7 @@ |
| 0 12px 32px -16px rgb(40 28 12 / 0.35); |
| } |
| [slides-stage] > [slides-slide] { |
| - border-radius: 4px; |
| + border-radius: var(--slides-radius-paper); |
| box-shadow: var(--slides-paper-shadow); |
| } |
| /* ── The notes card (spec §5) ────────────────────────────────────── |
| @@ -785,7 +823,7 @@ |
| } |
| [slides-notes-heading] { |
| color: var(--rst-text-muted); |
| - font-size: 12px; |
| + font-size: var(--rst-fs-xs); |
| font-weight: 600; |
| letter-spacing: 0.02em; |
| margin: 0; |
| @@ -796,7 +834,7 @@ |
| background: none; |
| block-size: 28px; |
| border: 0; |
| - border-radius: 999px; |
| + border-radius: var(--rst-radius-pill); |
| color: var(--rst-text-muted); |
| cursor: pointer; |
| display: inline-flex; |
| @@ -824,7 +862,7 @@ |
| scrollbar-width: thin; |
| } |
| [slides-notes] { |
| - font-size: 15px; |
| + font-size: var(--slides-fs-notes); |
| line-height: 1.55; |
| } |
| /* The top edge: a 24px strip (the target size, WCAG 2.5.8) centred on |
| @@ -845,7 +883,7 @@ |
| [slides-notes-resize]::after { |
| background: var(--rst-line-strong); |
| block-size: 4px; |
| - border-radius: 2px; |
| + border-radius: var(--slides-radius-glyph); |
| content: ""; |
| inline-size: 36px; |
| inset-block-start: 10px; |
| @@ -878,7 +916,7 @@ |
| background: var(--rst-surface); |
| block-size: 32px; |
| border: 1px solid var(--rst-line); |
| - border-radius: 8px; |
| + border-radius: var(--rst-radius-sm); |
| box-shadow: 0 1px 2px rgb(23 32 60 / 0.08), 0 4px 10px -4px rgb(23 32 60 / 0.18); |
| box-sizing: border-box; |
| color: var(--rst-text-muted); |
| @@ -898,7 +936,7 @@ |
| [slides-notes-open][data-has-notes]::after { |
| background: var(--rst-accent); |
| block-size: 6px; |
| - border-radius: 50%; |
| + border-radius: var(--slides-radius-circle); |
| box-shadow: 0 0 0 1.5px var(--rst-surface); |
| content: ""; |
| inline-size: 6px; |
| @@ -934,7 +972,7 @@ |
| [slides-editor] .ProseMirror.ProseMirror-focused { |
| outline: 2px solid var(--rst-accent); |
| outline-offset: 3px; |
| - border-radius: 2px; |
| + border-radius: var(--slides-radius-edit-ring); |
| } |
| [slides-editor] .ProseMirror > * { |
| margin: 0; |
| @@ -1072,11 +1110,11 @@ |
| [slides-inspector-form] [rst-field-label], |
| [slides-inspector-form] legend { |
| color: var(--rst-text-muted); |
| - font-size: 12px; |
| + font-size: var(--rst-fs-xs); |
| font-weight: 500; |
| } |
| [slides-inspector-form] [rst-field-hint] { |
| - font-size: 11.5px; |
| + font-size: var(--rst-fs-xs); |
| line-height: 1.35; |
| margin: 0; |
| } |
| @@ -1090,11 +1128,11 @@ |
| } |
| [slides-inspector-form] [rst-input][type="color"] { |
| block-size: 28px; |
| - border-radius: 8px; |
| + border-radius: var(--rst-radius-sm); |
| padding: 2px; |
| } |
| [slides-inspector-form] [rst-input][type="file"] { |
| - font-size: 12px; |
| + font-size: var(--rst-fs-xs); |
| } |
| [slides-inspector-form] [rst-field-row] { |
| flex-wrap: nowrap; |
| @@ -1121,7 +1159,7 @@ |
| display: none; |
| } |
| [slides-inspector] [estilo-seg-item] { |
| - font-size: 12.5px; |
| + font-size: var(--rst-fs-sm); |
| } |
| [slides-inspector] [estilo-seg-item] .icon { |
| block-size: 16px; |
| @@ -1136,7 +1174,7 @@ |
| [slides-box-fields] > legend { |
| color: var(--rst-text-muted); |
| float: left; |
| - font-size: 12px; |
| + font-size: var(--rst-fs-xs); |
| font-weight: 500; |
| grid-column: 1 / -1; |
| margin: 0; |
| @@ -1147,7 +1185,7 @@ |
| gap: 6px; |
| } |
| [slides-inspector] [rst-btn="sm"] { |
| - border-radius: 999px; |
| + border-radius: var(--rst-radius-pill); |
| } |
| [slides-inspector-form] [rst-callout] { |
| margin: 0; |
| @@ -1188,7 +1226,7 @@ |
| padding: 0; |
| } |
| [slides-unused-none] { |
| - font-size: 12px; |
| + font-size: var(--rst-fs-sm); |
| } |
| [slides-unused-list] { |
| display: grid; |
| @@ -1213,7 +1251,7 @@ |
| /* The Boxes list: one button per box, the selected one pressed. |
| Pressed is a fill AND aria-pressed, never a tint alone. */ |
| [slides-blocks-none] { |
| - font-size: 12px; |
| + font-size: var(--rst-fs-sm); |
| } |
| [slides-blocks-buttons] { |
| display: grid; |
| @@ -1241,7 +1279,7 @@ |
| color: var(--rst-text-muted); |
| display: flex; |
| flex-wrap: wrap; |
| - font-size: 13px; |
| + font-size: var(--rst-fs-sm); |
| gap: var(--rst-sp-2) var(--rst-sp-4); |
| justify-content: center; |
| } |
| @@ -1317,7 +1355,7 @@ |
| align-self: start; |
| background: var(--slides-desk); |
| block-size: 844px; |
| - border-radius: 28px; |
| + border-radius: var(--slides-radius-phone); |
| box-shadow: var(--slides-paper-shadow); |
| box-sizing: border-box; |
| inline-size: 390px; |
| @@ -1354,7 +1392,7 @@ |
| inline-size: 390px; |
| } |
| [slides-phone-screen] > [slides-slide] { |
| - border-radius: 4px; |
| + border-radius: var(--slides-radius-paper); |
| box-shadow: var(--slides-paper-shadow); |
| } |
| /* The screen is the slide's room: the stage in it is as tall as the |
| @@ -1433,7 +1471,7 @@ |
| [slides-handle]::after { |
| background: var(--rst-surface); |
| border: 2px solid var(--rst-accent); |
| - border-radius: 2px; |
| + border-radius: var(--slides-radius-glyph); |
| content: ""; |
| height: 8px; |
| left: 6px; |
| @@ -1521,11 +1559,11 @@ |
| align-items: center; |
| background: var(--slides-presence-colour, var(--rst-text-muted)); |
| border: 2px solid var(--rst-surface); |
| - border-radius: 999px; |
| + border-radius: var(--rst-radius-pill); |
| box-sizing: border-box; |
| color: #fff; |
| display: flex; |
| - font-size: 10px; |
| + font-size: var(--slides-fs-avatar); |
| font-weight: 700; |
| height: 22px; |
| justify-content: center; |
| @@ -1534,7 +1572,7 @@ |
| } |
| [slides-presence-more] { |
| background: var(--rst-text-muted); |
| - font-size: 9px; |
| + font-size: var(--slides-fs-avatar-more); |
| } |
| |
| /* The outline on a block a colleague has selected, and their name in |
| @@ -1812,7 +1850,7 @@ |
| [slides-assist] { |
| background: var(--rst-surface); |
| border: 0; |
| - border-radius: 16px; |
| + border-radius: var(--slides-radius-assist); |
| box-shadow: |
| 0 0 0 1px light-dark(rgb(40 28 12 / 0.1), rgb(255 255 255 / 0.1)), |
| 0 10px 20px -8px rgb(40 28 12 / 0.2), |
| @@ -1839,7 +1877,7 @@ |
| [slides-assist-head] h2 { |
| align-items: center; |
| display: flex; |
| - font-size: 16px; |
| + font-size: var(--rst-fs-lg); |
| gap: 8px; |
| margin: 0; |
| } |
| @@ -1853,7 +1891,7 @@ |
| background: none; |
| block-size: 32px; |
| border: 0; |
| - border-radius: 999px; |
| + border-radius: var(--rst-radius-pill); |
| color: var(--rst-text-muted); |
| cursor: pointer; |
| display: inline-flex; |
| @@ -1892,7 +1930,7 @@ |
| } |
| [slides-assist-privacy] { |
| color: var(--rst-text-muted); |
| - font-size: 12px; |
| + font-size: var(--rst-fs-xs); |
| line-height: 1.45; |
| margin: 0; |
| } |
| @@ -1916,18 +1954,18 @@ |
| } |
| [slides-assist-summary] { |
| background: var(--rst-surface-2); |
| - border-radius: 10px; |
| + border-radius: var(--estilo-float-radius); |
| padding: 10px 12px; |
| } |
| [slides-assist-note] { |
| color: var(--rst-text-muted); |
| - font-size: 13px; |
| + font-size: var(--rst-fs-sm); |
| } |
| /* An error is said in words that say so; the colour is the second |
| carrier, never the only one. */ |
| [slides-assist-outcome][data-tone="error"] [slides-assist-note] { |
| background: var(--rst-tone-negative-bg); |
| - border-radius: 10px; |
| + border-radius: var(--estilo-float-radius); |
| color: var(--rst-tone-negative-fg); |
| font-weight: 600; |
| padding: 10px 12px; |
| @@ -1942,7 +1980,7 @@ |
| } |
| @media (max-width: 599px) { |
| [slides-assist] { |
| - border-radius: 18px 18px 0 0; |
| + border-radius: var(--slides-radius-sheet) var(--slides-radius-sheet) 0 0; |
| inline-size: 100vw; |
| inset: auto 0 0 0; |
| max-block-size: 88dvh; |