| 1 | /* desk.css — the desk the slides sit on (I2, after Docs' editor): one |
| 2 | colour for the deck list, the viewer and the editor, so moving between |
| 3 | them never changes the room. Docs' own cool grey in light, near-black |
| 4 | in dark, so a slide reads as a lit page on a surface. The colour is |
| 5 | estilo's (--estilo-desk, desk.css under static/estilo/), so Slides and |
| 6 | Docs sit on the same desk; this file only names it for Slides. |
| 7 | |
| 8 | Registered as a <color> so the token resolves on :root, in the |
| 9 | reader's scheme, and the resolved colour is what inherits. */ |
| 10 | @property --slides-desk { |
| 11 | syntax: "<color>"; |
| 12 | inherits: true; |
| 13 | initial-value: #e3e7ee; |
| 14 | } |
| 15 | :root { |
| 16 | --slides-desk: var(--estilo-desk); |
| 17 | } |
| 18 | body:has(:is([slides-editor], [slides-viewer], [slides-decks])) { |
| 19 | background: var(--slides-desk); |
| 20 | } |
| 21 | |
| 22 | /* The viewer's page, in the two lengths the editor's phone frame |
| 23 | places the slide by (editor.css, "The phone frame") and the viewer |
| 24 | lays itself out with, so the two cannot drift apart: |
| 25 | - the bar over the page: the height of estilo's one-row bar, which |
| 26 | the viewer has. A length, not --estilo-bar-block-size: the editor's |
| 27 | stacked bar changes that on :root. |
| 28 | - the viewer's pills: Edit, Present, the overflow and the pager. */ |
| 29 | :root { |
| 30 | --slides-page-bar-block-size: 3.25rem; |
| 31 | --slides-pill-block-size: 36px; |
| 32 | } |
| 33 | |