| 1 | /* chrome/chrome.css: the suite's top bar, account menu, app switcher and |
| 2 | sign-in pages. Link it after menu.css (its panels are [estilo-menu]). |
| 3 | Two custom properties are PUBLIC contract, read by apps and never |
| 4 | copied as numbers: the bar's block size and its stacking level. */ |
| 5 | :root { |
| 6 | --estilo-bar-block-size: 3.25rem; /* 52px. PUBLIC */ |
| 7 | --estilo-z-bar: 45; /* PUBLIC: the bar's stacking level, and the ceiling for in-page layers */ |
| 8 | --estilo-trigger-size: 2rem; /* 32px targets, above the 24px floor */ |
| 9 | } |
| 10 | /* On touch every bar trigger (Menu, the switcher, the account) is a 44px |
| 11 | target, the size Apple's and Google's guidance ask for, in every app: |
| 12 | the phone web audit (2026-11-28, finding 9) measured them at 34x32 and |
| 13 | 44x32. The 52px bar has the room. */ |
| 14 | @media (pointer: coarse) { |
| 15 | :root { --estilo-trigger-size: 2.75rem; } |
| 16 | } |
| 17 | [estilo-bar] { |
| 18 | position: relative; |
| 19 | z-index: var(--estilo-z-bar); |
| 20 | box-sizing: border-box; |
| 21 | display: flex; |
| 22 | flex-wrap: nowrap; |
| 23 | align-items: center; |
| 24 | gap: var(--rst-sp-3); |
| 25 | block-size: var(--estilo-bar-block-size); /* fixed, not min: nothing may grow it */ |
| 26 | padding-inline: var(--rst-sp-4); |
| 27 | background: var(--rst-surface); |
| 28 | color: var(--rst-text); |
| 29 | border-block-end: 1px solid var(--rst-line); |
| 30 | } |
| 31 | [estilo-bar~="sticky"] { position: sticky; inset-block-start: 0; } |
| 32 | [estilo-bar-brand] { |
| 33 | display: inline-flex; |
| 34 | align-items: center; |
| 35 | gap: var(--rst-sp-2); |
| 36 | flex: none; |
| 37 | color: var(--rst-text); |
| 38 | font-weight: 650; |
| 39 | text-decoration: none; |
| 40 | white-space: nowrap; |
| 41 | } |
| 42 | [estilo-bar-brand] img { flex: none; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 21%; } |
| 43 | [estilo-bar-context] { |
| 44 | flex: 0 1 auto; |
| 45 | min-inline-size: 0; |
| 46 | overflow: hidden; |
| 47 | text-overflow: ellipsis; |
| 48 | white-space: nowrap; |
| 49 | padding-inline-start: var(--rst-sp-3); |
| 50 | border-inline-start: 1px solid var(--rst-line); |
| 51 | color: var(--rst-text); |
| 52 | font-weight: 550; |
| 53 | } |
| 54 | [estilo-bar-nav] { display: flex; align-self: stretch; gap: var(--rst-sp-4); } |
| 55 | [estilo-bar-nav] a { |
| 56 | display: flex; |
| 57 | align-items: center; |
| 58 | border-block: 2px solid transparent; /* square current marker, in-flow */ |
| 59 | color: var(--rst-text-muted); |
| 60 | font-size: var(--rst-fs-sm); |
| 61 | text-decoration: none; |
| 62 | white-space: nowrap; |
| 63 | } |
| 64 | [estilo-bar-nav] a:hover { color: var(--rst-text); } |
| 65 | [estilo-bar-nav] a[aria-current] { border-block-end-color: var(--rst-accent); color: var(--rst-text); font-weight: 550; } |
| 66 | [estilo-bar-end] { display: flex; align-items: center; gap: var(--rst-sp-2); flex: none; margin-inline-start: auto; } |
| 67 | [estilo-bar-actions] { display: flex; align-items: center; gap: var(--rst-sp-2); } |
| 68 | [estilo-bar-actions] form { display: contents; } /* a POST action lays out as its button */ |
| 69 | [estilo-bar-trigger] { |
| 70 | display: inline-flex; |
| 71 | align-items: center; |
| 72 | justify-content: center; |
| 73 | gap: var(--rst-sp-1); |
| 74 | box-sizing: border-box; |
| 75 | min-inline-size: var(--estilo-trigger-size); |
| 76 | block-size: var(--estilo-trigger-size); |
| 77 | padding-inline: var(--rst-sp-2); |
| 78 | border-radius: 0; /* in-flow: square */ |
| 79 | color: var(--rst-text-muted); |
| 80 | font-size: var(--rst-fs-sm); |
| 81 | cursor: pointer; |
| 82 | list-style: none; |
| 83 | user-select: none; |
| 84 | } |
| 85 | [estilo-bar-trigger]::-webkit-details-marker { display: none; } |
| 86 | [estilo-bar-trigger]::marker { content: ""; } |
| 87 | [estilo-bar-trigger] svg { flex: none; inline-size: 1.125rem; block-size: 1.125rem; } |
| 88 | [estilo-bar-trigger]:hover, |
| 89 | [open] > [estilo-bar-trigger] { color: var(--rst-text); background: var(--rst-surface-2); } |
| 90 | [estilo-bar-trigger]:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: -2px; } |
| 91 | [estilo-bar-more] { display: none; } |
| 92 | @media (max-width: 799.98px) { /* rastrillo's shell breakpoint */ |
| 93 | [estilo-bar-nav], [estilo-bar-actions] { display: none; } |
| 94 | [estilo-bar-more] { display: block; } |
| 95 | [estilo-bar]:has([estilo-bar-context], [estilo-bar-title]) [estilo-bar-name] { display: none; } /* the icon stays; the title gets the room */ |
| 96 | } |
| 97 | |
| 98 | /* The shell. <div estilo-shell> wraps the skip link, the bar and <main> |
| 99 | on every page and has no styling of its own. estilo-shell="fill" is the |
| 100 | full-height layout for the one kind of page that must fill the viewport |
| 101 | (Sheets' grid): the shell is exactly the viewport, the bar keeps its |
| 102 | 52px, and <main> takes the rest, so the working area is the viewport |
| 103 | less the bar without any app re-deriving that sum. The document never |
| 104 | scrolls there, so the root drops its reserved scrollbar gutter, which |
| 105 | would otherwise leave a dead strip down the inline end. <main> must be |
| 106 | the shell's direct child. */ |
| 107 | [estilo-shell~="fill"] { |
| 108 | display: flex; |
| 109 | flex-direction: column; |
| 110 | block-size: 100dvh; |
| 111 | } |
| 112 | [estilo-shell~="fill"] > [estilo-bar] { flex: none; } |
| 113 | [estilo-shell~="fill"] > main { flex: 1 1 auto; min-block-size: 0; } |
| 114 | :root:has([estilo-shell~="fill"]) { scrollbar-gutter: auto; } |
| 115 | |
| 116 | /* The editable title slot: the open object's title, renamed in place. The |
| 117 | input is a bordered control, so it keeps the theme's radius; its block size is |
| 118 | fixed so an input in the bar can never grow the bar. */ |
| 119 | [estilo-bar-title] { |
| 120 | display: flex; |
| 121 | align-items: center; |
| 122 | gap: var(--rst-sp-2); |
| 123 | flex: 0 1 22rem; |
| 124 | min-inline-size: 0; |
| 125 | margin: 0; |
| 126 | padding-inline-start: var(--rst-sp-3); |
| 127 | border-inline-start: 1px solid var(--rst-line); |
| 128 | } |
| 129 | [estilo-bar-title-input] { |
| 130 | box-sizing: border-box; |
| 131 | block-size: 2rem; |
| 132 | inline-size: 100%; |
| 133 | min-inline-size: 6rem; |
| 134 | padding-inline: var(--rst-sp-2); |
| 135 | border: 1px solid transparent; |
| 136 | border-radius: var(--rst-radius-sm); |
| 137 | background: transparent; |
| 138 | color: var(--rst-text); |
| 139 | font: inherit; |
| 140 | font-weight: 550; |
| 141 | text-overflow: ellipsis; |
| 142 | } |
| 143 | [estilo-bar-title-input]:hover { border-color: var(--rst-line); } |
| 144 | [estilo-bar-title-input]:focus { border-color: var(--rst-accent); outline: none; background: var(--rst-surface); } |
| 145 | /* iOS zooms the page into a text field under 16px. tokens.css lifts fields |
| 146 | to 16px on a coarse pointer, but with a bare `input` selector, which |
| 147 | font: inherit above outweighs. Same rule, restated at this weight. */ |
| 148 | @media (pointer: coarse) { |
| 149 | [estilo-bar-title-input] { |
| 150 | font-size: max(1rem, 1em); |
| 151 | } |
| 152 | } |
| 153 | [estilo-bar-title-submit] { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; } |
| 154 | [estilo-bar-title]:focus-within [estilo-bar-title-submit] { position: static; clip-path: none; inline-size: auto; block-size: 2rem; overflow: visible; flex: none; } |
| 155 | /* Below the shell breakpoint the row has no room for the button beside the |
| 156 | field: it would sit under Menu or the switcher, and a click at its centre |
| 157 | would open them instead (found in the first review, at 390px and 320px). |
| 158 | So the field takes whatever width is left, down to nothing but its own |
| 159 | padding, and on focus the button floats just under it, over the page, |
| 160 | where nothing in the bar competes for it. Enter renames at every width. */ |
| 161 | @media (max-width: 799.98px) { |
| 162 | [estilo-bar-title] { position: relative; } |
| 163 | [estilo-bar-title-input] { min-inline-size: 0; } |
| 164 | [estilo-bar-title]:focus-within [estilo-bar-title-submit] { |
| 165 | position: absolute; |
| 166 | inset-block-start: calc(100% + 0.5rem); |
| 167 | inset-inline-start: var(--rst-sp-3); |
| 168 | border: 1px solid var(--rst-line); |
| 169 | border-radius: var(--estilo-float-radius, 9px); /* a float */ |
| 170 | background: var(--rst-surface); |
| 171 | box-shadow: var(--rst-shadow-pop); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | /* The app switcher: a float, so its tiles may be rounded. */ |
| 176 | [estilo-switcher] { position: relative; } |
| 177 | [estilo-switcher-panel] { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 4px); } |
| 178 | [estilo-switcher-grid] { display: grid; grid-template-columns: repeat(3, 5.5rem); gap: var(--rst-sp-1); } |
| 179 | [estilo-switcher-app] { |
| 180 | display: flex; |
| 181 | flex-direction: column; |
| 182 | align-items: center; |
| 183 | gap: var(--rst-sp-1); |
| 184 | padding: var(--rst-sp-2) var(--rst-sp-1); |
| 185 | border-radius: var(--rst-radius-sm); /* inside a float: rounded is allowed */ |
| 186 | color: var(--rst-text); |
| 187 | font-size: var(--rst-fs-xs); |
| 188 | text-decoration: none; |
| 189 | } |
| 190 | [estilo-switcher-app]:hover, |
| 191 | [estilo-switcher-app]:focus-visible { background: var(--rst-accent-soft); } |
| 192 | [estilo-switcher-app][aria-current] { background: var(--rst-accent-soft); font-weight: 600; } |
| 193 | [estilo-switcher-app] img { border-radius: 21%; } |
| 194 | /* Three 5.5rem tiles hung from the trigger overflow a phone's inline start |
| 195 | (at 320px, and sooner when the corner is the wider "Sign in" link), so |
| 196 | below 30rem the panel spans the bar instead, as menubar panels do, and |
| 197 | the three columns share its width. */ |
| 198 | @media (max-width: 30rem) { |
| 199 | [estilo-switcher] { position: static; } |
| 200 | [estilo-switcher-panel] { inset-inline: 0.5rem; inline-size: auto; min-inline-size: 0; max-inline-size: none; } |
| 201 | [estilo-switcher-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)); } |
| 202 | } |
| 203 | |
| 204 | /* The account menu. The account is always the last thing at the inline |
| 205 | end of the bar: the "same corner" rule. */ |
| 206 | [estilo-account] { position: relative; } |
| 207 | [estilo-account-panel] { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 4px); min-inline-size: 15rem; } |
| 208 | [estilo-avatar] { |
| 209 | display: inline-flex; |
| 210 | align-items: center; |
| 211 | justify-content: center; |
| 212 | inline-size: 1.75rem; |
| 213 | block-size: 1.75rem; |
| 214 | border-radius: 50%; /* an identity mark, not a highlight */ |
| 215 | background: var(--rst-accent-soft); |
| 216 | color: var(--rst-accent); |
| 217 | font-size: var(--rst-fs-xs); |
| 218 | font-weight: 650; |
| 219 | } |
| 220 | [estilo-menu-identity] { display: grid; gap: 0; padding: var(--rst-sp-2) var(--estilo-item-padding-inline, var(--rst-sp-3)); } |
| 221 | [estilo-menu-identity-label] { color: var(--rst-text-muted); font-size: var(--rst-fs-xs); } |
| 222 | [estilo-menu-identity-name] { font-weight: 600; overflow-wrap: anywhere; } |
| 223 | [estilo-menu-identity-address] { color: var(--rst-text-muted); overflow-wrap: anywhere; } |
| 224 | [estilo-menu-identity-name] + [estilo-menu-identity-address] { font-size: var(--rst-fs-xs); } |
| 225 | [estilo-bar-signin] { flex: none; } |
| 226 | |
| 227 | /* The account at a sidebar rail's foot (Account.Rail), for an app whose |
| 228 | chrome is a rail rather than the bar. The trigger is a row the rail's |
| 229 | width: the avatar, then who is signed in, cut short with an ellipsis. |
| 230 | It stays in the page flow, so its highlight stays square. The panel is |
| 231 | the foot's own width, edge to edge with the trigger: hung from the |
| 232 | inline end of a foot narrower than the bar's 15rem panel it ran off |
| 233 | the window's start edge, and from the inline start it ran past the |
| 234 | rail, whose overflow-y: auto clips it (Fichas' first screenshot). */ |
| 235 | [estilo-account~="rail"] > [estilo-bar-trigger] { |
| 236 | justify-content: flex-start; |
| 237 | gap: var(--rst-sp-2); |
| 238 | inline-size: 100%; |
| 239 | block-size: auto; |
| 240 | min-block-size: 2.5rem; |
| 241 | color: var(--rst-text); |
| 242 | } |
| 243 | [estilo-account-who] { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 244 | [estilo-account~="rail"] > [estilo-account-panel] { inset-inline: 0; inline-size: auto; min-inline-size: 0; max-inline-size: none; } |
| 245 | /* A drop-up where the rail is the viewport's height (rastrillo's shell |
| 246 | breakpoint): below the foot there is only the window's edge. Below |
| 247 | 800px the rail is a disclosure at the top of the page, with the page |
| 248 | under it and too little above, so the panel opens downward there. */ |
| 249 | @media (pointer: coarse) { |
| 250 | [estilo-account~="rail"] > [estilo-bar-trigger] { min-block-size: 2.75rem; } |
| 251 | } |
| 252 | @media (min-width: 800px) { |
| 253 | [estilo-account~="rail"] > [estilo-account-panel] { |
| 254 | inset-block-start: auto; |
| 255 | inset-block-end: calc(100% + 4px); |
| 256 | max-block-size: max(calc(100dvh - 5rem), 8rem); |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | /* Visually hidden, still announced. */ |
| 261 | [estilo-visually-hidden] { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; } |
| 262 | |
| 263 | /* Sign-in, check-your-email and signed-out pages: the Oficina door. The |
| 264 | suite's sky behind (estilo sky.css places and animates it), one card on |
| 265 | it with the app's mark and name at its head — the same door Home draws |
| 266 | at id.oficina.works, in the app's own colour. The door spans the page |
| 267 | whatever the app's layout gives it, so the sky is never boxed in. */ |
| 268 | :root:has([estilo-door]) { overflow-x: clip; --rst-scrollbar-gutter: auto; scrollbar-gutter: auto; } |
| 269 | [estilo-door] { |
| 270 | box-sizing: border-box; |
| 271 | margin-inline: calc(50% - 50vw); /* spacing-allow: full-bleed, the door spans the viewport whatever column it sits in */ |
| 272 | padding: max(var(--rst-sp-6), 9vh) var(--rst-sp-4) var(--rst-sp-6); /* spacing-allow: the card sits lower on a taller window, 9vh down */ |
| 273 | min-block-size: 680px; |
| 274 | /* The whole sky lies inside the door, fading in and out, so the door's |
| 275 | edges never cut it: under an app's bar there is no page top to hide |
| 276 | an edge behind, as there is on Home. A sky's layers overhang its box |
| 277 | by 12% above and below (sky.css), and fade in over their first 22% |
| 278 | and out from 58% to 92% — so a 560px sky placed 67px down starts |
| 279 | transparent at the door's top and has faded out by 640px. */ |
| 280 | --estilo-sky-top: 67px; |
| 281 | --estilo-sky-height: 560px; |
| 282 | } |
| 283 | /* The card is a stack: its children's own block margins go, and the |
| 284 | space above each comes from the table Fiesta's rst-stack uses |
| 285 | (DESIGN.md, "The stack"), written here in estilo's own names because |
| 286 | an app's tokens.css may predate it: |
| 287 | |
| 288 | after a heading (h1 to h6) --rst-sp-2 |
| 289 | an actions row: a button, the card's |
| 290 | action or a paragraph holding it, |
| 291 | Forget (under another action: |
| 292 | --rst-sp-2) --rst-sp-4 |
| 293 | an input after its label or its hint |
| 294 | ([estilo-signin-hint]), a hint after |
| 295 | its input --rst-sp-2 |
| 296 | an h1 or h2, a section |
| 297 | ([estilo-signin-section]), or anything |
| 298 | after the brand, which heads the card |
| 299 | as a page header heads a page --rst-sp-5 |
| 300 | an h3 to h6 --rst-sp-4 |
| 301 | anything else --rst-sp-3 |
| 302 | |
| 303 | Higher in the table wins: each relation sets its own property on the |
| 304 | child, and the one margin rule reads them in the table's order, so |
| 305 | specificity never decides it; every child resets them first, so |
| 306 | content nested in the card never inherits an answer. A column, so |
| 307 | nothing collapses; a button or a picture keeps its own width. |
| 308 | |
| 309 | As in Fiesta's stack, the column's gap is the table's smallest step |
| 310 | and a child's margin is the rest of its answer: a hidden child (or a |
| 311 | hidden input) is no flex item and takes no gap, so the block after |
| 312 | one keeps --rst-sp-2 and never touches what is above it. */ |
| 313 | [estilo-signin] { |
| 314 | box-sizing: border-box; |
| 315 | display: flex; |
| 316 | flex-direction: column; |
| 317 | max-inline-size: 460px; |
| 318 | margin: 0 auto; |
| 319 | padding: var(--rst-sp-6); |
| 320 | gap: var(--rst-sp-2); |
| 321 | background: var(--rst-surface); |
| 322 | border-radius: 20px; |
| 323 | box-shadow: 0 0 0 1px light-dark(transparent, var(--rst-line)), var(--rst-shadow-lift); |
| 324 | } |
| 325 | [estilo-signin] > * { |
| 326 | --estilo-stack-heading: initial; |
| 327 | --estilo-stack-actions: initial; |
| 328 | --estilo-stack-control: initial; |
| 329 | --estilo-stack-section: initial; |
| 330 | --estilo-stack-sub: initial; |
| 331 | margin-block: 0; |
| 332 | } |
| 333 | [estilo-signin] > :not([hidden], [type="hidden"]) + :not([hidden]) { |
| 334 | /* spacing-allow: the table's step less the column's --rst-sp-2 gap; margin and gap together are the step */ |
| 335 | margin-block-start: calc(var(--estilo-stack-heading, var(--estilo-stack-actions, var(--estilo-stack-control, var(--estilo-stack-section, var(--estilo-stack-sub, var(--rst-sp-3)))))) - var(--rst-sp-2)); |
| 336 | } |
| 337 | [estilo-signin] > :is(img, button, a[estilo-signin-action]) { align-self: flex-start; } |
| 338 | [estilo-signin] > :not([hidden], [type="hidden"]) + :is(h3, h4, h5, h6) { --estilo-stack-sub: var(--rst-sp-4); } |
| 339 | [estilo-signin] > :not([hidden], [type="hidden"]) + :is(h1, h2), |
| 340 | [estilo-signin] > :not([hidden], [type="hidden"]) + [estilo-signin-section], |
| 341 | [estilo-signin] > [estilo-brand] + * { --estilo-stack-section: var(--rst-sp-5); } |
| 342 | [estilo-signin] > :is(label, [estilo-signin-hint]) + :is(input, select, textarea), |
| 343 | [estilo-signin] > :is(input, select, textarea) + [estilo-signin-hint] { --estilo-stack-control: var(--rst-sp-2); } |
| 344 | [estilo-signin] > :not([hidden], [type="hidden"]) + :is(button, [estilo-signin-action], [estilo-signin-forget], p:has(> [estilo-signin-action]), p:has(> button)) { --estilo-stack-actions: var(--rst-sp-4); } |
| 345 | [estilo-signin] > :is(button, [estilo-signin-action], [estilo-signin-forget], p:has(> [estilo-signin-action]), p:has(> button)) + :is(button, [estilo-signin-action], [estilo-signin-forget], p:has(> [estilo-signin-action]), p:has(> button)) { --estilo-stack-actions: var(--rst-sp-2); } |
| 346 | [estilo-signin] > :is(h1, h2, h3, h4, h5, h6) + * { --estilo-stack-heading: var(--rst-sp-2); } |
| 347 | [estilo-signin] > [estilo-brand] { display: flex; align-items: center; gap: var(--rst-sp-2); font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; } |
| 348 | [estilo-signin] > [estilo-brand] [estilo-brand-icon] { inline-size: 36px; block-size: 36px; } |
| 349 | [estilo-signin] h1 { font-size: 1.75rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; } |
| 350 | /* A heading the card holds directly is spaced by the stack above; one |
| 351 | nested deeper brings no margin of its own. */ |
| 352 | [estilo-signin] * h1 { margin: 0; } |
| 353 | [estilo-signin-lede] { color: var(--rst-text-muted); } |
| 354 | [estilo-signin-form] { max-inline-size: none; } |
| 355 | @media (max-width: 520px) { |
| 356 | [estilo-door] { padding-inline: var(--rst-sp-4); padding-block-start: var(--rst-sp-5); } |
| 357 | [estilo-signin] { padding: var(--rst-sp-5); } |
| 358 | } |
| 359 | /* The door's links are drawn here, not left to the app: an app that does |
| 360 | not link base.css (Calendar, Memoria, Calls, Fichas) showed the browser's |
| 361 | blue on the card. As base.css does, a link in the card is the app's |
| 362 | colour at the lowest specificity, so a link drawn as a button keeps the |
| 363 | button's. The card has no footer links (Paul, 2026-11-19). */ |
| 364 | :where([estilo-signin]) a { color: var(--rst-accent); text-underline-offset: 0.15em; } |
| 365 | /* The smart door (estilo-signin-screen): rastrillo's sign-in partial in |
| 366 | the card, inside [estilo-signin-screen]. The partial is a card of its |
| 367 | own, made for the stage shell, with its brand in a column beside the |
| 368 | way in; here the door is the card and its head is the brand, so the |
| 369 | partial's surface, edge, padding and columns go, and so does its brand |
| 370 | (the one brand on the card is the door's). Its buttons, rows and quiet |
| 371 | controls are rastrillo's own. The partial is reached by structure, not |
| 372 | by its rst- names, which are rastrillo's to style (AGENTS.md, |
| 373 | Vocabulary): its card is a <section> of two children, the brand column |
| 374 | then the door. The brand is hidden only while there are two, and never |
| 375 | a child holding the heading, so a partial that draws no brand |
| 376 | (HideBrand) keeps its door. Delete the hiding rule in the rastrillo |
| 377 | bump that adopts HideBrand. The heading restates the door's own size |
| 378 | one step more specific than rastrillo's door heading, so the order the |
| 379 | stylesheets are linked in never decides it. */ |
| 380 | [estilo-signin-screen] > section { display: block; inline-size: auto; max-inline-size: none; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; } |
| 381 | [estilo-signin-screen] > section > :first-child:not(:only-child):not(:has(h1)) { display: none; } |
| 382 | [estilo-signin] [estilo-signin-screen] h1 { margin: 0; font-size: 1.75rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; } |
| 383 | /* The door's buttons are the smart door's (Paul, 2026-11-21, "yes to pill |
| 384 | buttons"), on every card the door draws. The card's main action is a |
| 385 | full-width pill, 44px tall, lit from above, its shadow tinted by its |
| 386 | fill: the accent's, or red for a danger button. Its secondary controls |
| 387 | are quiet text buttons, centred under it: medium weight, the muted ink |
| 388 | that darkens over a soft pill on hover and focus, a touch smaller than |
| 389 | body text. rastrillo's one-way door already draws its own buttons this |
| 390 | way; nothing here reaches it. |
| 391 | |
| 392 | Keyed on estilo's hooks, never on rastrillo's button attributes, which |
| 393 | are rastrillo's to style (AGENTS.md, Vocabulary; internal/lint): |
| 394 | - a door sign-in form's submit ([estilo-signin-form]) is its main |
| 395 | action, so the classic form and every app's confirm step are pills; |
| 396 | - [estilo-signin-action] marks any other main action on the card, and |
| 397 | [estilo-signin-action~="danger"] a destructive one; |
| 398 | - [estilo-signin-action~="quiet"] marks a secondary control, as the |
| 399 | signed-out page's Forget ([estilo-signin-forget]) is. |
| 400 | The button keeps its rastrillo variant for its fill and states; these |
| 401 | rules give it the door's shape. A hidden button stays hidden. */ |
| 402 | [estilo-signin] :is([estilo-signin-form] [type="submit"], [estilo-signin-action]:not([estilo-signin-action~="quiet"])):not([hidden]) { |
| 403 | display: flex; inline-size: 100%; box-sizing: border-box; justify-content: center; align-items: center; |
| 404 | min-block-size: 44px; padding-inline: var(--rst-sp-4); border-radius: 999px; font-weight: 600; text-decoration: none; |
| 405 | } |
| 406 | /* The glow lifts the pill only at rest: pressed, rastrillo's own pressed |
| 407 | shadow draws it sinking. */ |
| 408 | [estilo-signin] :is([estilo-signin-form] [type="submit"], [estilo-signin-action]:not([estilo-signin-action~="quiet"])):not([hidden]):not(:active) { |
| 409 | box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1px 1px rgb(23 32 60 / 0.10), |
| 410 | 0 8px 18px -8px var(--estilo-signin-glow, light-dark(color-mix(in srgb, var(--rst-accent-fill, var(--rst-accent)) 80%, transparent), color-mix(in srgb, var(--rst-accent-fill, var(--rst-accent)) 30%, transparent))); |
| 411 | } |
| 412 | [estilo-signin] [estilo-signin-action~="danger"] { |
| 413 | --estilo-signin-glow: light-dark(color-mix(in srgb, var(--rst-danger-fill, var(--rst-tone-negative-fg)) 60%, transparent), color-mix(in srgb, var(--rst-danger-fill, var(--rst-tone-negative-fg)) 30%, transparent)); |
| 414 | } |
| 415 | [estilo-signin] :is([estilo-signin-action~="quiet"], [estilo-signin-forget] > button):not([hidden]) { |
| 416 | display: flex; inline-size: fit-content; margin-inline: auto; justify-content: center; align-items: center; |
| 417 | min-block-size: 2.5rem; padding: 0 var(--rst-sp-3); border-color: transparent; border-radius: 999px; background: transparent; box-shadow: none; |
| 418 | color: var(--rst-text-muted); font-size: calc(var(--rst-fs-base) * 0.9375); font-weight: 500; text-decoration: none; |
| 419 | } |
| 420 | /* On touch, and on a narrow screen, a quiet control is a full tap target, |
| 421 | as rastrillo's door draws its ghost (max(2.5rem, --rst-target), which is |
| 422 | 2.75rem there). Restated rather than read: estilo's pinned rastrillo |
| 423 | does not declare --rst-target, and every token chrome.css reads must be |
| 424 | declared by the pin (TestChromeUsesDefinedTokens). */ |
| 425 | @media (pointer: coarse), (max-width: 40rem) { |
| 426 | [estilo-signin] :is([estilo-signin-action~="quiet"], [estilo-signin-forget] > button):not([hidden]) { min-block-size: 2.75rem; } |
| 427 | } |
| 428 | [estilo-signin] :is([estilo-signin-action~="quiet"], [estilo-signin-forget] > button):is(:hover, :focus-visible) { background: var(--rst-ghost-face-hover, var(--rst-surface-2)); color: var(--rst-text); } |
| 429 | |
| 430 | /* ── Bar stack (Docs' I2 editor header, spec 2026-11-11) ──────────────── |
| 431 | Everything below is opt-in. Each rule is keyed on a hook only a bar |
| 432 | with a slot, a WideOnly or IconOnly action or the Appearance form |
| 433 | renders, so a bar with none of them looks exactly as it did |
| 434 | (TestEverythingAfterTheMarkerIsOptIn holds this, and that main's rules |
| 435 | above are unchanged). |
| 436 | |
| 437 | The hooks: [estilo-bar~="stacked"] (Bar.Menubar), [estilo-bar-stack] |
| 438 | and [estilo-bar-menubar] inside it, [estilo-bar-lead] (Bar.Lead), |
| 439 | [estilo-bar-control] (each action in a bar with a slot), |
| 440 | [estilo-bar-wide] (Action.WideOnly), [estilo-bar-icon] |
| 441 | (Action.IconOnly) and [estilo-appearance]. |
| 442 | |
| 443 | Breakpoints: 800px is rastrillo's shell breakpoint, the rule above |
| 444 | this section and every app's, so it stays in px: restated in rem it |
| 445 | would move apart from them whenever the reader's default font size is |
| 446 | not 16px. 64rem is where a WideOnly action appears, the same 64rem |
| 447 | Docs' inspector uses. A compact bar |
| 448 | (Bar.Compact, below) is the one exception: it is the 56px header from |
| 449 | 704px, so an iPad in portrait gets it (Paul, 2026-11-28), and nothing |
| 450 | else moves (Mapa and Fichas stack too, and their layouts change at |
| 451 | 800px). */ |
| 452 | |
| 453 | /* A WideOnly action exists only from 64rem (Docs' Format: the inspector |
| 454 | it toggles exists only there). It is also left out of the Menu sheet |
| 455 | (the template). (0,2,0), so it outweighs a POST action's display: |
| 456 | contents form. */ |
| 457 | @media (max-width: 63.99rem) { |
| 458 | [estilo-bar-actions] [estilo-bar-wide], |
| 459 | [estilo-bar-actions] [estilo-bar-control~="wide"] { display: none; } |
| 460 | } |
| 461 | |
| 462 | /* Each action in a bar with a slot sits in its own wrapper, which lays |
| 463 | out as its control. */ |
| 464 | [estilo-bar-control] { display: contents; } |
| 465 | [estilo-bar-lead] { display: flex; align-items: center; gap: var(--rst-sp-2); } |
| 466 | |
| 467 | /* The stacked bar's title is as wide as its title, never the bar's |
| 468 | room: its size attribute is the first paint's guess, chrome.js |
| 469 | measures the field and corrects it, and it is capped at the space it |
| 470 | has, where a longer title scrolls inside the field as it always has. |
| 471 | No ellipsis: the field is as wide as its title, so one would only ever |
| 472 | mark a guess that came out short, not a title cut off. */ |
| 473 | [estilo-bar~="stacked"] [estilo-bar-title] { flex: none; max-inline-size: 100%; } |
| 474 | [estilo-bar~="stacked"] [estilo-bar-title-input] { flex: 0 1 auto; inline-size: auto; min-inline-size: 0; max-inline-size: 100%; text-overflow: clip; } |
| 475 | [estilo-bar~="stacked"] [estilo-bar-context] { max-inline-size: 100%; } |
| 476 | [estilo-bar~="stacked"] [estilo-menubar-title] { cursor: pointer; } |
| 477 | |
| 478 | /* Below 800px the stacked header does not fit a phone (spec C6: File to |
| 479 | Help needs 261px, and at 320px the title fell to "U…"). So the bar |
| 480 | stays today's one row, and the app's menus are a full-width second |
| 481 | row under it: the stack dissolves and the same markup lays out on a |
| 482 | grid. The header grows by that row, and the published block size |
| 483 | with it. A menubar that wraps (English at 320px; a long locale |
| 484 | sooner) grows it further: chrome.js then publishes the header's real |
| 485 | height, and 85px is what a page without script gets. */ |
| 486 | @media (max-width: 799.98px) { |
| 487 | :root:has([estilo-bar~="stacked"]) { --estilo-bar-block-size: calc(3.25rem + 2rem + 1px); } /* 85px: the bar's row, one menubar row and the bottom border. PUBLIC */ |
| 488 | [estilo-bar~="stacked"] { |
| 489 | display: grid; |
| 490 | grid-template-columns: auto minmax(0, 1fr) auto; |
| 491 | grid-template-rows: 3.25rem auto; |
| 492 | grid-template-areas: "brand title end" "menus menus menus"; |
| 493 | column-gap: var(--rst-sp-3); |
| 494 | row-gap: 0; |
| 495 | align-items: center; |
| 496 | block-size: auto; |
| 497 | } |
| 498 | [estilo-bar~="stacked"] > [estilo-bar-brand] { grid-area: brand; } |
| 499 | [estilo-bar~="stacked"] > [estilo-bar-end] { grid-area: end; } |
| 500 | [estilo-bar~="stacked"] [estilo-bar-stack] { display: contents; } |
| 501 | [estilo-bar~="stacked"] [estilo-bar-title], |
| 502 | [estilo-bar~="stacked"] [estilo-bar-context] { grid-area: title; justify-self: start; } |
| 503 | [estilo-bar~="stacked"] [estilo-bar-menubar] { |
| 504 | grid-area: menus; |
| 505 | align-self: stretch; |
| 506 | min-inline-size: 0; |
| 507 | margin-inline: calc(-1 * var(--rst-sp-1)); /* the menus' edge 12px in (the bar's 16px less 4px), as Docs' own row had it */ |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | /* On touch the menu row's titles are 44px (menu.css), so the narrow |
| 512 | header is that much taller without script too. */ |
| 513 | @media (max-width: 799.98px) and (pointer: coarse) { |
| 514 | :root:has([estilo-bar~="stacked"]) { --estilo-bar-block-size: calc(3.25rem + 2.75rem + 1px); } /* 97px: the bar's row, a 44px menubar row and the bottom border. PUBLIC */ |
| 515 | } |
| 516 | |
| 517 | /* From 800px, the 56px stacked header: a 32px icon 12px in, and beside |
| 518 | it a 44px stack, the 24px title row (16px, 600) over the 20px menu row |
| 519 | (13px, muted), both starting at 56px (12 + 32 + 12). The app's name |
| 520 | goes: the icon is the brand. Optical balance, measured at 2x in WebKit |
| 521 | on the mock-up: the title's capitals start at the icon's top, so its |
| 522 | row sits 2.5px low; the menu row sits 1px low, its 24px highlight |
| 523 | stops 3px above the header's bottom edge, and an open panel hangs from |
| 524 | 1px above that edge. A compact bar gets this block from 704px too, as |
| 525 | a copy CSS() makes (buildCSS, chrome.go). */ |
| 526 | @media (min-width: 800px) { |
| 527 | :root:has([estilo-bar~="stacked"]) { --estilo-bar-block-size: 56px; } /* PUBLIC */ |
| 528 | [estilo-bar~="stacked"] { gap: var(--rst-sp-3); padding-inline: var(--rst-sp-3); } |
| 529 | [estilo-bar~="stacked"] [estilo-bar-brand] img { inline-size: 32px; block-size: 32px; } |
| 530 | [estilo-bar~="stacked"] [estilo-bar-name] { display: none; } |
| 531 | [estilo-bar-stack] { |
| 532 | display: flex; |
| 533 | flex-direction: column; |
| 534 | justify-content: center; |
| 535 | align-items: flex-start; |
| 536 | flex: 1 1 auto; |
| 537 | min-inline-size: 0; |
| 538 | block-size: 44px; |
| 539 | } |
| 540 | [estilo-bar~="stacked"] [estilo-bar-title] { |
| 541 | position: relative; |
| 542 | inset-block-start: 2.5px; |
| 543 | block-size: 24px; |
| 544 | margin: 0; |
| 545 | padding: 0; |
| 546 | border: 0; |
| 547 | } |
| 548 | [estilo-bar~="stacked"] [estilo-bar-title-input] { |
| 549 | block-size: 24px; |
| 550 | padding-block: 0; |
| 551 | margin-inline-start: calc(-1 * var(--rst-sp-2) - 1px); /* spacing-allow: the field's padding and 1px border pulled back, so its text sits on the edge */ |
| 552 | max-inline-size: calc(100% + var(--rst-sp-2) + 1px); /* the form is that much narrower than the field: the cap gives it back */ |
| 553 | font-size: 16px; |
| 554 | line-height: 24px; |
| 555 | font-weight: 600; |
| 556 | letter-spacing: -0.01em; |
| 557 | } |
| 558 | [estilo-bar~="stacked"] [estilo-bar-context] { |
| 559 | position: relative; |
| 560 | inset-block-start: 2.5px; |
| 561 | padding: 0; |
| 562 | border: 0; |
| 563 | font-size: 16px; |
| 564 | line-height: 24px; |
| 565 | font-weight: 600; |
| 566 | letter-spacing: -0.01em; |
| 567 | } |
| 568 | /* Rename, while the title is being edited: a 22px pill in the |
| 569 | accent's tint inside the 24px title row, not the 2rem button. The |
| 570 | box is the row's 24px, the 24px target floor (AGENTS.md); a |
| 571 | transparent 1px border with the fill clipped inside it paints the |
| 572 | 22px pill. */ |
| 573 | [estilo-bar~="stacked"] [estilo-bar-title]:focus-within [estilo-bar-title-submit] { |
| 574 | position: static; |
| 575 | align-self: center; |
| 576 | box-sizing: border-box; |
| 577 | block-size: 24px; |
| 578 | min-block-size: 0; |
| 579 | min-inline-size: 0; |
| 580 | margin: 0; |
| 581 | padding: 0 var(--rst-sp-2); |
| 582 | border: 1px solid transparent; |
| 583 | border-radius: 999px; |
| 584 | background-color: var(--rst-accent-soft); |
| 585 | background-image: none; |
| 586 | background-clip: padding-box; |
| 587 | box-shadow: none; |
| 588 | color: var(--rst-accent); |
| 589 | font: 600 12px/22px var(--rst-font); |
| 590 | } |
| 591 | [estilo-bar~="stacked"] [estilo-bar-title]:focus-within [estilo-bar-title-submit]:hover { |
| 592 | border-color: transparent; |
| 593 | background-color: var(--rst-accent); |
| 594 | color: var(--rst-on-accent); |
| 595 | } |
| 596 | |
| 597 | /* The menu row. estilo's 32px menubar floor goes here, and only here: |
| 598 | the row is 20px, and each title's highlight is a 24px pill with a 6px |
| 599 | radius, 2px over each edge by negative margins, so it takes no room. */ |
| 600 | [estilo-bar-menubar] { |
| 601 | position: relative; |
| 602 | inset-block-start: 1px; |
| 603 | block-size: 20px; |
| 604 | max-inline-size: calc(100% + var(--rst-sp-2)); |
| 605 | margin-inline-start: calc(-1 * var(--rst-sp-2)); /* the titles' padding pulled back: the first title's text sits on the edge */ |
| 606 | } |
| 607 | [estilo-bar~="stacked"] [estilo-menubar] { block-size: 20px; min-block-size: 0; align-items: center; flex-wrap: nowrap; } |
| 608 | [estilo-bar~="stacked"] [estilo-menubar-menu] { block-size: 20px; } |
| 609 | [estilo-bar~="stacked"] [estilo-menubar-title] { |
| 610 | block-size: 24px; |
| 611 | min-block-size: 0; |
| 612 | margin-block: -2px; /* spacing-allow: the 24px highlight overhangs the 20px row by 2px each way and takes no room */ |
| 613 | padding-inline: var(--rst-sp-2); |
| 614 | border-radius: 6px; |
| 615 | color: var(--rst-text-muted); |
| 616 | font-size: 13px; |
| 617 | line-height: 24px; |
| 618 | } |
| 619 | [estilo-bar~="stacked"] [estilo-menubar-title]:hover, |
| 620 | [estilo-bar~="stacked"] [open] > [estilo-menubar-title] { color: var(--rst-text); } |
| 621 | [estilo-bar~="stacked"] [estilo-menubar-menu] > [estilo-menu] { inset-block-start: calc(100% + 4.5px); } /* the row ends at 50.5 (the stack is centred in 55px inside the border): 55, 1px above the 56px edge */ |
| 622 | |
| 623 | /* Every panel in the stacked header matches it: 28px rows, 13px type, |
| 624 | shortcuts muted, 4px padding and a 10px radius. */ |
| 625 | [estilo-bar~="stacked"] [estilo-menu] { |
| 626 | --estilo-float-padding: var(--rst-sp-1); |
| 627 | --estilo-item-padding-block: var(--rst-sp-1); |
| 628 | --estilo-item-padding-inline: var(--rst-sp-3); |
| 629 | border-radius: 10px; |
| 630 | font-size: 13px; |
| 631 | } |
| 632 | [estilo-bar~="stacked"] [estilo-menu-item] { min-block-size: 28px; border-radius: 6px; } |
| 633 | [estilo-bar~="stacked"] [estilo-menu] hr { margin-block: var(--rst-sp-1); } |
| 634 | [estilo-bar~="stacked"] [estilo-menu-key] { color: var(--rst-text-muted); font-size: 12px; } |
| 635 | |
| 636 | /* The controls set, in a bar with a slot: every action a 28px pill, |
| 637 | 13px semibold, 8px apart; the primary the one filled pill; the |
| 638 | account its circle; and a divider between the page's controls and |
| 639 | the person's. Lit from above as the index's New document is, and far |
| 640 | fainter in dark. */ |
| 641 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end], |
| 642 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-actions] { gap: var(--rst-sp-2); } |
| 643 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) { |
| 644 | display: inline-flex; |
| 645 | align-items: center; |
| 646 | gap: var(--rst-sp-2); |
| 647 | box-sizing: border-box; |
| 648 | block-size: 28px; |
| 649 | min-block-size: 28px; |
| 650 | min-inline-size: 28px; |
| 651 | padding: 0 var(--rst-sp-3); |
| 652 | border: 0; |
| 653 | border-radius: 999px; |
| 654 | background-color: transparent; |
| 655 | box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.06)); |
| 656 | color: var(--rst-text-muted); |
| 657 | font: 600 13px/1 var(--rst-font); |
| 658 | text-decoration: none; |
| 659 | white-space: nowrap; |
| 660 | } |
| 661 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) svg { flex: none; inline-size: 15px; block-size: 15px; } |
| 662 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button):hover:not(:disabled) { |
| 663 | background-color: var(--rst-surface-2); |
| 664 | color: var(--rst-text); |
| 665 | box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.08)), 0 1px 2px rgb(23 32 60 / 0.08); |
| 666 | } |
| 667 | /* A toggle whose region is shown takes the accent's tint. */ |
| 668 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)[aria-expanded="true"] { |
| 669 | background-color: var(--rst-accent-soft); |
| 670 | color: var(--rst-accent); |
| 671 | box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.08)), 0 1px 2px rgb(23 32 60 / 0.08); |
| 672 | } |
| 673 | /* The primary: the one filled pill, a fine highlight on its top edge |
| 674 | and a shadow tinted with its own accent, 0 5px 12px -5px. */ |
| 675 | :is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button), |
| 676 | :is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button):hover:not(:disabled) { |
| 677 | padding-inline: var(--rst-sp-4); |
| 678 | background-color: var(--rst-accent); |
| 679 | color: var(--rst-on-accent); |
| 680 | box-shadow: |
| 681 | inset 0 1px 0 rgb(255 255 255 / 0.22), |
| 682 | 0 1px 1px rgb(23 32 60 / 0.10), |
| 683 | 0 5px 12px -5px light-dark(color-mix(in srgb, var(--rst-accent) 75%, transparent), color-mix(in srgb, var(--rst-accent) 25%, transparent)); |
| 684 | } |
| 685 | :is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button):hover:not(:disabled) { |
| 686 | background-color: var(--rst-accent-strong); |
| 687 | } |
| 688 | |
| 689 | /* The account is its circle: no square box behind it on hover or |
| 690 | open. The avatar darkens on hover and takes a 2px ring while its menu |
| 691 | is open; with no initials the glyph's own circle does the same. */ |
| 692 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger] { |
| 693 | inline-size: 28px; |
| 694 | min-inline-size: 0; |
| 695 | block-size: 28px; |
| 696 | padding: 0; |
| 697 | border-radius: 50%; |
| 698 | background: none; |
| 699 | } |
| 700 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:focus-visible { outline-offset: 2px; } |
| 701 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] [estilo-avatar] { |
| 702 | inline-size: 28px; |
| 703 | block-size: 28px; |
| 704 | font-size: 12px; |
| 705 | box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.06)), 0 1px 2px rgb(23 32 60 / 0.08); |
| 706 | transition: background-color 120ms ease, box-shadow 120ms ease; |
| 707 | } |
| 708 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:hover [estilo-avatar] { |
| 709 | background: color-mix(in srgb, var(--rst-accent) 18%, var(--rst-surface)); |
| 710 | } |
| 711 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account][open] [estilo-avatar], |
| 712 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account][open] > [estilo-bar-trigger]:not(:has([estilo-avatar])) { |
| 713 | box-shadow: 0 0 0 2px var(--rst-surface), 0 0 0 4px color-mix(in srgb, var(--rst-accent) 45%, transparent); |
| 714 | } |
| 715 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:not(:has([estilo-avatar])):hover { |
| 716 | background: var(--rst-surface-2); |
| 717 | } |
| 718 | |
| 719 | /* The divider: a 20px hairline before the account, 12px either side |
| 720 | (the set's 8px gap and 4px more, then 12px of padding), drawn as the |
| 721 | account's own background so it takes no element. Only when something |
| 722 | of the page's precedes it: never on a bar with no actions and no |
| 723 | lead. Below 64rem a WideOnly action is hidden, so it does not count |
| 724 | there. */ |
| 725 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-lead], > [estilo-bar-actions] > :not([estilo-bar-control~="wide"])) > [estilo-account] { |
| 726 | margin-inline-start: var(--rst-sp-1); |
| 727 | padding-inline-start: var(--rst-sp-3); |
| 728 | background: linear-gradient(var(--rst-line), var(--rst-line)) left center / 1px 20px no-repeat; |
| 729 | } |
| 730 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-lead], > [estilo-bar-actions] > :not([estilo-bar-control~="wide"])) > [estilo-account]:dir(rtl) { |
| 731 | background-position: right center; |
| 732 | } |
| 733 | |
| 734 | /* An icon-only action (Action.IconOnly: Search in Mapa and Fichas): |
| 735 | a square as tall as the set's controls, the glyph centred. Its |
| 736 | label is its accessible name and, with its shortcut, the tooltip |
| 737 | the template asks rastrillo's rst-tip for, which hangs from this |
| 738 | box, so the box is positioned. (0,2,0) outweighs the set's pill. */ |
| 739 | [estilo-bar-actions] [estilo-bar-icon] { |
| 740 | position: relative; |
| 741 | justify-content: center; |
| 742 | inline-size: 28px; |
| 743 | min-inline-size: 28px; |
| 744 | padding-inline: 0; |
| 745 | } |
| 746 | |
| 747 | /* Coarse pointers (an iPad): the header's controls are drawn 32px and |
| 748 | take 44px to a tap, the size the phone web audit asked for |
| 749 | (2026-11-28, finding 9), from a hit area drawn by nothing and taking |
| 750 | no room: 6px over the top and bottom, inside the 56px header, and 4px |
| 751 | either side, inside the 8px to the next control. The switcher keeps |
| 752 | the set's 32px rather than the 44px box every bar's trigger takes on |
| 753 | touch. The menubar titles keep their 24px look in the 20px row and |
| 754 | take 44px of height: 16px up into the title row and 4px down, to the |
| 755 | header's edge. Where that reaches up under the title field, the field |
| 756 | stays on top (z-index), so it keeps all of its own 24px; beside a |
| 757 | short title the space above File and Edit opens them. Menu rows are |
| 758 | 44px, as every menu's are on touch. */ |
| 759 | @media (pointer: coarse) { |
| 760 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) { block-size: 32px; min-block-size: 32px; } |
| 761 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) { position: relative; } |
| 762 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)::before { content: ""; position: absolute; inset: -6px -4px; } |
| 763 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger], |
| 764 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] [estilo-avatar] { inline-size: 32px; block-size: 32px; } |
| 765 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-switcher] > [estilo-bar-trigger] { min-inline-size: 32px; block-size: 32px; } |
| 766 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) :is([estilo-account], [estilo-switcher]) > [estilo-bar-trigger] { position: relative; } |
| 767 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) :is([estilo-account], [estilo-switcher]) > [estilo-bar-trigger]::before { content: ""; position: absolute; inset: -6px; } |
| 768 | [estilo-bar~="stacked"] [estilo-menubar-title] { position: relative; } |
| 769 | [estilo-bar~="stacked"] [estilo-menubar-title]::before { content: ""; position: absolute; inset-inline: 0; inset-block: -16px -4px; } |
| 770 | [estilo-bar~="stacked"] [estilo-bar-title] { z-index: 1; } |
| 771 | [estilo-bar~="stacked"] [estilo-menu-item] { min-block-size: 44px; } |
| 772 | /* The icon-only action is drawn 32px like the rest, and takes 44px |
| 773 | to a tap: 6px over each edge, drawn by nothing, inside the 56px |
| 774 | header and short of the 8px to its neighbours. ::before, since |
| 775 | ::after is the tooltip. */ |
| 776 | [estilo-bar-actions] [estilo-bar-icon] { inline-size: 32px; min-inline-size: 32px; } |
| 777 | [estilo-bar-actions] [estilo-bar-icon]::before { content: ""; position: absolute; inset: -6px; } |
| 778 | } |
| 779 | /* Where nothing hovers (a tablet), a tap leaves :hover on the control, |
| 780 | and the tooltip would stay up until the next tap elsewhere. There it |
| 781 | shows for keyboard focus only. */ |
| 782 | @media (hover: none) { |
| 783 | [estilo-bar-actions] [estilo-bar-icon]:not(:focus-visible)::after { display: none; } |
| 784 | } |
| 785 | } |
| 786 | /* Between 704px and 800px a compact bar is the 56px header, as every |
| 787 | stacked bar is from 800px: the copy of the block above that CSS() puts |
| 788 | here, and these, which undo the narrow two-row layout below 800px |
| 789 | (its stack dissolved, its menu row's margins: the copy keeps the |
| 790 | original rules' specificity, so the narrow ones would win) and put its |
| 791 | actions back in the bar. A compact bar with nav keeps its Menu |
| 792 | sheet there, as below 800px every bar does. */ |
| 793 | @media (min-width: 704px) and (max-width: 799.98px) and (not ((max-height: 480px) and (pointer: coarse))) { |
| 794 | [estilo-bar~="stacked"][estilo-bar~="compact"] { display: flex; block-size: var(--estilo-bar-block-size); } |
| 795 | [estilo-bar~="stacked"][estilo-bar~="compact"] [estilo-bar-stack] { display: flex; } |
| 796 | [estilo-bar~="stacked"][estilo-bar~="compact"] [estilo-bar-menubar] { align-self: auto; margin-inline: calc(-1 * var(--rst-sp-2)) 0; } /* the 56px header's, which the copy, at its own weight, no longer outweighs here */ |
| 797 | [estilo-bar~="compact"] [estilo-bar-actions] { display: flex; } |
| 798 | } |
| 799 | @media (min-width: 64rem) { |
| 800 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-actions]) > [estilo-account] { |
| 801 | margin-inline-start: var(--rst-sp-1); |
| 802 | padding-inline-start: var(--rst-sp-3); |
| 803 | background: linear-gradient(var(--rst-line), var(--rst-line)) left center / 1px 20px no-repeat; |
| 804 | } |
| 805 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-actions]) > [estilo-account]:dir(rtl) { |
| 806 | background-position: right center; |
| 807 | } |
| 808 | } |
| 809 | /* Forced colours drop the controls' fills and shadows, leaving their |
| 810 | border to draw them, and the set's border: 0 above outweighs |
| 811 | rastrillo's own forced-colors border on its buttons: Share and Format |
| 812 | would lose every edge. So the set gives it back, at its own weight and |
| 813 | after it. An expanded toggle's tint is gone too, so it is drawn in Highlight, |
| 814 | two pixels deep with the outline (left to the focus ring while that |
| 815 | shows). At every width: below 800px the same border is rastrillo's. */ |
| 816 | @media (forced-colors: active) { |
| 817 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) { border: 1px solid ButtonBorder; } |
| 818 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)[aria-expanded="true"] { border-color: Highlight; } |
| 819 | :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)[aria-expanded="true"]:not(:focus-visible) { outline: 1px solid Highlight; } |
| 820 | } |
| 821 | @media (prefers-reduced-motion: reduce) { |
| 822 | :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] [estilo-avatar] { transition: none; } |
| 823 | } |
| 824 | |
| 825 | /* ── Compact (the phone web design, Paul 2026-11-28) ─────────────────── |
| 826 | Bar.Compact: below 704px, or on a phone held sideways, the phone's one |
| 827 | 52px row, as Docs' native iPhone screen has it: Back (the brand: a |
| 828 | chevron and the app's name, in the accent, to App.Home), the title, |
| 829 | the app's Lead, then its Trail (Docs' Aa and •••). The menubar row, the |
| 830 | actions, the switcher and the account go: the trail carries the |
| 831 | commands, and the app's other screens the person's menus (native D4). |
| 832 | From 704px none of this applies, and the bar is the 56px header |
| 833 | (from 800px every stacked bar's; between 704px and 800px a compact |
| 834 | bar's alone, above). The breakpoints are px, as 800px is, so they |
| 835 | never part at a reader's larger default font size. A compact bar with |
| 836 | Bar.Nav keeps its Menu sheet, in the row, so the nav is never out of |
| 837 | reach. Every rule is keyed on a compact hook: |
| 838 | [estilo-bar~="compact"], [estilo-bar-back], [estilo-bar-trail], |
| 839 | [estilo-bar-compact-title] and [estilo-bar-tool], and the state the |
| 840 | app's script sets, [estilo-bar-folded]. |
| 841 | |
| 842 | The trail's panels are drop-downs from the bar's inline end (Paul's |
| 843 | answer 3: the ••• menu is a drop-down, not a bottom sheet), sized for a |
| 844 | finger: 44px rows at 16px, a 16px radius, no shortcut hints, and |
| 845 | iOS's grouped separator between sections. |
| 846 | |
| 847 | [estilo-bar-tool] is a 44px round control in the accent, for a button, |
| 848 | a link or a <summary> in the trail or the lead. */ |
| 849 | :is([estilo-bar-trail], [estilo-bar-compact-title], [estilo-bar-back]) { display: none; } |
| 850 | [estilo-bar-tool] { |
| 851 | display: inline-flex; |
| 852 | align-items: center; |
| 853 | justify-content: center; |
| 854 | gap: var(--rst-sp-1); |
| 855 | box-sizing: border-box; |
| 856 | min-inline-size: 44px; |
| 857 | block-size: 44px; |
| 858 | padding: 0 var(--rst-sp-2); |
| 859 | border: 0; |
| 860 | border-radius: 999px; |
| 861 | background: none; |
| 862 | color: var(--rst-accent); |
| 863 | font: inherit; |
| 864 | font-size: 1.0625rem; |
| 865 | cursor: pointer; |
| 866 | list-style: none; |
| 867 | user-select: none; |
| 868 | -webkit-tap-highlight-color: transparent; |
| 869 | } |
| 870 | [estilo-bar-tool]::-webkit-details-marker { display: none; } |
| 871 | [estilo-bar-tool]::marker { content: ""; } |
| 872 | [estilo-bar-tool] svg { flex: none; inline-size: 22px; block-size: 22px; } |
| 873 | [estilo-bar-tool]:is([aria-pressed="true"], [aria-expanded="true"]), |
| 874 | [open] > [estilo-bar-tool] { background: var(--rst-accent-soft); } |
| 875 | [estilo-bar-tool]:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: -2px; } |
| 876 | [estilo-bar-tool]:disabled { color: var(--rst-text-faint); cursor: default; } |
| 877 | @media (hover: hover) { |
| 878 | [estilo-bar-tool]:hover:not(:disabled):not([aria-pressed="true"], [aria-expanded="true"]) { background: var(--rst-surface-2); } |
| 879 | } |
| 880 | /* The trail's details are not positioned, so a panel hangs from the bar |
| 881 | itself, 8px in from its inline end, as wide as a phone allows. */ |
| 882 | [estilo-bar-trail] [estilo-menu] { |
| 883 | position: absolute; |
| 884 | inset-inline-end: var(--rst-sp-2); |
| 885 | inset-block-start: calc(100% + var(--rst-sp-1)); |
| 886 | inline-size: min(17rem, calc(100vw - var(--rst-sp-4))); |
| 887 | min-inline-size: 0; |
| 888 | max-inline-size: none; |
| 889 | padding: var(--rst-sp-1) 0; |
| 890 | border-radius: 16px; |
| 891 | font-size: 1rem; |
| 892 | --estilo-item-padding-inline: var(--rst-sp-4); |
| 893 | } |
| 894 | [estilo-bar-trail] [estilo-menu-item] { min-block-size: 44px; gap: var(--rst-sp-3); border-radius: 0; } |
| 895 | [estilo-bar-trail] [estilo-menu-key] { display: none; } |
| 896 | [estilo-bar-trail] [estilo-menu-check] { inline-size: 1.25rem; block-size: 1.25rem; } |
| 897 | [estilo-bar-trail] [estilo-menu] hr { |
| 898 | block-size: 7px; |
| 899 | margin: var(--rst-sp-1) 0; |
| 900 | border: 0; |
| 901 | background: light-dark(rgb(0 0 0 / 0.045), rgb(0 0 0 / 0.25)); |
| 902 | } |
| 903 | @media (max-width: 703.98px), (max-height: 480px) and (pointer: coarse) { |
| 904 | :root:has([estilo-bar~="compact"]) { --estilo-bar-block-size: 3.25rem; } /* 52px: the one row. PUBLIC */ |
| 905 | [estilo-bar~="compact"] { |
| 906 | display: flex; |
| 907 | gap: var(--rst-sp-1); |
| 908 | block-size: 3.25rem; |
| 909 | padding-inline: var(--rst-sp-2); |
| 910 | } |
| 911 | [estilo-bar~="compact"] [estilo-bar-menubar], |
| 912 | [estilo-bar~="compact"] [estilo-bar-actions], |
| 913 | [estilo-bar~="compact"] [estilo-switcher], |
| 914 | [estilo-bar~="compact"] [estilo-account] { display: none; } |
| 915 | [estilo-bar][estilo-bar~="compact"] [estilo-bar-end] { gap: var(--rst-sp-1); } /* (0,3,0): on a phone held sideways, past 800px, it outweighs the 56px header's */ |
| 916 | [estilo-bar~="compact"] [estilo-bar-stack] { display: contents; } |
| 917 | [estilo-bar~="compact"] [estilo-bar-more] { display: block; } |
| 918 | [estilo-bar~="compact"] [estilo-bar-trail] { display: flex; align-items: center; } |
| 919 | [estilo-bar~="compact"] [estilo-bar-compact-title] { display: block; flex: 1 1 auto; min-inline-size: 0; overflow: hidden; } |
| 920 | /* Back: the brand without its mark, the chevron before the name. */ |
| 921 | [estilo-bar~="compact"] [estilo-bar-back] { display: block; flex: none; } |
| 922 | [estilo-bar~="compact"] [estilo-bar-back]:dir(rtl) { transform: scaleX(-1); } |
| 923 | [estilo-bar~="compact"] [estilo-bar-brand] { |
| 924 | gap: 0; |
| 925 | min-block-size: 44px; |
| 926 | padding-inline: 0 var(--rst-sp-2); |
| 927 | border-radius: 999px; |
| 928 | font-size: 1.0625rem; |
| 929 | font-weight: 400; |
| 930 | } |
| 931 | /* Only a link is drawn in the accent: on a public page the brand is |
| 932 | plain text (App.Home empty) and has no Back. */ |
| 933 | [estilo-bar~="compact"] a[estilo-bar-brand] { color: var(--rst-accent); } |
| 934 | [estilo-bar~="compact"] [estilo-bar-brand] img { display: none; } |
| 935 | [estilo-bar~="compact"] [estilo-bar-brand] [estilo-bar-name] { display: inline; } |
| 936 | /* The bar's own title fills the room between Back and the end group, |
| 937 | one line ending in an ellipsis rather than cut mid-letter (the audit's |
| 938 | finding 2), unless Compact.Title takes its place. chrome.js leaves |
| 939 | the field unfitted here. */ |
| 940 | [estilo-bar~="compact"]:has(> [estilo-bar-compact-title]) :is([estilo-bar-title], [estilo-bar-context]) { display: none; } |
| 941 | [estilo-bar~="compact"] :is([estilo-bar-title], [estilo-bar-context]) { |
| 942 | flex: 1 1 auto; |
| 943 | inset-block-start: 0; |
| 944 | min-inline-size: 0; |
| 945 | max-inline-size: none; |
| 946 | block-size: auto; |
| 947 | padding-inline-start: 0; |
| 948 | border-inline-start: 0; |
| 949 | } |
| 950 | [estilo-bar~="compact"] [estilo-bar-title-input] { flex: 1 1 auto; inline-size: 100%; block-size: 2rem; max-inline-size: none; margin-inline-start: 0; text-overflow: ellipsis; } |
| 951 | /* With Compact.Title the page has a large title of its own (Docs), and |
| 952 | the bar is the large-title idiom: at rest Back and the end group on |
| 953 | no hairline, the compact title hidden; once the app's script marks |
| 954 | the bar folded (estilo-bar-folded, when its large title has scrolled |
| 955 | away), the compact title fades in, the hairline appears, and Back is |
| 956 | its chevron alone, the name kept as its accessible name. Without |
| 957 | script the bar never folds and the large title is the title. */ |
| 958 | [estilo-bar~="compact"]:has(> [estilo-bar-compact-title]) { border-block-end-color: transparent; } |
| 959 | [estilo-bar~="compact"] [estilo-bar-compact-title] { opacity: 0; visibility: hidden; transition: opacity 150ms ease, visibility 0s linear 150ms; } |
| 960 | [estilo-bar~="compact"][estilo-bar-folded]:has(> [estilo-bar-compact-title]) { border-block-end-color: var(--rst-line); } |
| 961 | [estilo-bar~="compact"][estilo-bar-folded] [estilo-bar-compact-title] { opacity: 1; visibility: visible; transition: opacity 150ms ease; } |
| 962 | [estilo-bar~="compact"][estilo-bar-folded]:has(> [estilo-bar-compact-title]) [estilo-bar-brand] { min-inline-size: 44px; justify-content: center; padding-inline: 0; } |
| 963 | [estilo-bar~="compact"][estilo-bar-folded]:has(> [estilo-bar-compact-title]) [estilo-bar-name] { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; } |
| 964 | } |
| 965 | @media (prefers-reduced-motion: reduce) { |
| 966 | [estilo-bar~="compact"] [estilo-bar-compact-title] { transition: none; } |
| 967 | } |
| 968 | |
| 969 | /* Appearance, in every app's account menu: Light, Dark and System as |
| 970 | three equal segments in one well, an icon over each word. The one in |
| 971 | force is raised (the surface, a step lighter in dark, where the |
| 972 | surface is barely off the well), bold, with its icon in the accent: |
| 973 | raised and bold, so more than colour says which. aria-pressed is the |
| 974 | state. chrome.js switches it in place. */ |
| 975 | [estilo-appearance] { |
| 976 | display: grid; |
| 977 | grid-template-columns: repeat(3, minmax(0, 1fr)); |
| 978 | gap: var(--rst-sp-1); |
| 979 | margin: var(--rst-sp-1) var(--rst-sp-2) var(--rst-sp-2); |
| 980 | padding: var(--rst-sp-1); |
| 981 | border-radius: 10px; |
| 982 | background: var(--rst-surface-2); |
| 983 | box-shadow: inset 0 1px 2px light-dark(rgb(23 32 60 / 0.06), rgb(0 0 0 / 0.25)); |
| 984 | } |
| 985 | [estilo-appearance] [estilo-menu-item] { |
| 986 | flex-direction: column; |
| 987 | justify-content: center; |
| 988 | gap: var(--rst-sp-1); |
| 989 | min-block-size: 46px; |
| 990 | padding: var(--rst-sp-2) var(--rst-sp-1); |
| 991 | border-radius: 8px; |
| 992 | background: none; |
| 993 | color: var(--rst-text-muted); |
| 994 | font-size: 12px; |
| 995 | text-align: center; |
| 996 | } |
| 997 | [estilo-appearance] [estilo-menu-label] { flex: none; max-inline-size: 100%; overflow-wrap: anywhere; } |
| 998 | [estilo-appearance-icon] { display: inline-flex; flex: none; inline-size: 16px; block-size: 16px; } |
| 999 | [estilo-appearance-icon] svg { inline-size: 100%; block-size: 100%; } |
| 1000 | [estilo-appearance] [estilo-menu-item]:hover:not([aria-pressed="true"]) { |
| 1001 | background: light-dark(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.04)); |
| 1002 | color: var(--rst-text); |
| 1003 | } |
| 1004 | [estilo-appearance] [estilo-menu-item][aria-pressed="true"] { |
| 1005 | background: light-dark(var(--rst-surface), #2f333d); |
| 1006 | color: var(--rst-text); |
| 1007 | font-weight: 600; |
| 1008 | box-shadow: |
| 1009 | inset 0 1px 0 light-dark(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.06)), |
| 1010 | 0 1px 2px rgb(23 32 60 / 0.12), |
| 1011 | 0 0 0 1px light-dark(rgb(23 32 60 / 0.06), rgb(255 255 255 / 0.06)); |
| 1012 | } |
| 1013 | [estilo-appearance] [estilo-menu-item][aria-pressed="true"] [estilo-appearance-icon] { color: var(--rst-accent); } |
| 1014 | |