651 lines · 22.8 KBRaw
| 1 | @import "@fontsource-variable/inter/opsz.css"; |
| 2 | @import "@fontsource-variable/inter/opsz-italic.css"; |
| 3 | @import "@fontsource-variable/geist-mono/wght.css"; |
| 4 | @import "tailwindcss"; |
| 5 | @source "./"; |
| 6 | |
| 7 | /* |
| 8 | * refs: Quiet Line. |
| 9 | * A calm ink interface. Surfaces sit on soft shadow rings, chrome is a translucent material, and colour |
| 10 | * appears only where it carries meaning: blue is a person, amber needs you, green is merged. |
| 11 | * The line of decisions stays the one signature. Tokens are semantic; every component reads them. |
| 12 | */ |
| 13 | |
| 14 | @theme { |
| 15 | --font-sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; |
| 16 | --font-mono: "Geist Mono Variable", ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace; |
| 17 | |
| 18 | --color-ground: var(--ground); |
| 19 | --color-rail: var(--rail); |
| 20 | --color-panel: var(--panel); |
| 21 | --color-raised: var(--raised); |
| 22 | --color-sunken: var(--sunken); |
| 23 | --color-hover: var(--hover); |
| 24 | --color-control: var(--control); |
| 25 | --color-field: var(--field); |
| 26 | --color-control-hover: var(--control-hover); |
| 27 | --color-hairline: var(--hairline); |
| 28 | --color-line: var(--line); |
| 29 | --color-ink: var(--ink); |
| 30 | --color-muted: var(--muted); |
| 31 | --color-faint: var(--faint); |
| 32 | --color-primary: var(--primary); |
| 33 | --color-primary-hover: var(--primary-hover); |
| 34 | --color-on-primary: var(--on-primary); |
| 35 | --color-accent: var(--accent); |
| 36 | --color-accent-hover: var(--accent-hover); |
| 37 | --color-accent-text: var(--accent-text); |
| 38 | --color-accent-tint: var(--accent-tint); |
| 39 | --color-on-accent: var(--on-accent); |
| 40 | --color-needs: var(--needs); |
| 41 | --color-needs-text: var(--needs-text); |
| 42 | --color-needs-tint: var(--needs-tint); |
| 43 | --color-success: var(--success); |
| 44 | --color-success-tint: var(--success-tint); |
| 45 | --color-danger: var(--danger); |
| 46 | --color-danger-tint: var(--danger-tint); |
| 47 | --color-caution: var(--caution); |
| 48 | --color-porcelain: var(--porcelain); |
| 49 | --color-ochre: var(--ochre); |
| 50 | --color-sage: var(--sage); |
| 51 | |
| 52 | /* |
| 53 | * The type scale, in rem, so every size follows the reader's text size. Values assume the 14px root. |
| 54 | * title 24, heading 22, headline 16, callout 15, base 14, compact 13, xs 12. Nothing is smaller than 12. |
| 55 | */ |
| 56 | --text-title: 1.7143rem; |
| 57 | --text-heading: 1.5714rem; |
| 58 | --text-headline: 1.1429rem; |
| 59 | --text-callout: 1.0714rem; |
| 60 | --text-compact: 0.9286rem; |
| 61 | --text-xs: 0.8571rem; |
| 62 | --text-xs--line-height: 1.4; |
| 63 | |
| 64 | /* Concentric: a 12px panel with 4px padding holds 8px controls; an 8px control holds a 6px chip. */ |
| 65 | --radius-chip: 6px; |
| 66 | --radius-control: 8px; |
| 67 | --radius-panel: 12px; |
| 68 | --radius-sheet: 16px; |
| 69 | |
| 70 | --shadow-card: var(--elevation-card); |
| 71 | --shadow-control: var(--elevation-control); |
| 72 | --shadow-surface: var(--elevation-surface); |
| 73 | |
| 74 | --ease-out: cubic-bezier(0.23, 1, 0.32, 1); |
| 75 | --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); |
| 76 | --ease-icon: cubic-bezier(0.2, 0, 0, 1); |
| 77 | --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); |
| 78 | } |
| 79 | |
| 80 | :root, |
| 81 | :root[data-mode="dark"] { |
| 82 | color-scheme: dark; |
| 83 | --ground: #0e0e10; |
| 84 | --rail: #0a0a0c; |
| 85 | --panel: #151517; |
| 86 | --raised: #1d1d20; |
| 87 | --sunken: #09090b; |
| 88 | --control: #1a1a1d; |
| 89 | --field: rgb(255 255 255 / 0.035); |
| 90 | --control-hover: #232326; |
| 91 | --hover: rgb(255 255 255 / 0.06); |
| 92 | --hairline: rgb(255 255 255 / 0.07); |
| 93 | --line: rgb(255 255 255 / 0.13); |
| 94 | --ink: #f2f2f3; |
| 95 | --muted: #a3a3ab; |
| 96 | --faint: #83838c; |
| 97 | --primary: #f2f2f3; |
| 98 | --primary-hover: #dedee2; |
| 99 | --on-primary: #111113; |
| 100 | --accent: #3d69f2; |
| 101 | --accent-hover: #6a90ff; |
| 102 | --accent-text: #92adff; |
| 103 | --accent-tint: rgb(79 124 255 / 0.15); |
| 104 | --on-accent: #ffffff; |
| 105 | --needs: #f5b83d; |
| 106 | --needs-text: #f7c85f; |
| 107 | --needs-tint: rgb(245 184 61 / 0.12); |
| 108 | --success: #45c287; |
| 109 | --success-tint: rgb(69 194 135 / 0.13); |
| 110 | --danger: #f26a63; |
| 111 | --danger-tint: rgb(242 106 99 / 0.13); |
| 112 | --caution: #d9a85a; |
| 113 | --porcelain: #d8d8dc; |
| 114 | --ochre: #d0a455; |
| 115 | --sage: #7db892; |
| 116 | --image-outline: oklch(1 0 0 / 0.1); |
| 117 | --scrim: rgb(0 0 0 / 0.6); |
| 118 | |
| 119 | /* On dark, depth is a single light ring plus the top edge catching light. Drop shadows only under floating layers. */ |
| 120 | --elevation-card: 0 0 0 1px rgb(255 255 255 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.03); |
| 121 | --elevation-control: 0 0 0 1px rgb(255 255 255 / 0.11), inset 0 1px 0 rgb(255 255 255 / 0.04), 0 1px 2px rgb(0 0 0 / 0.4); |
| 122 | --elevation-surface: 0 0 0 1px rgb(255 255 255 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.05), 0 4px 12px -4px rgb(0 0 0 / 0.5), 0 20px 48px -12px rgb(0 0 0 / 0.7); |
| 123 | --shimmer-light: rgb(255 255 255 / 0.07); |
| 124 | --material-chrome: rgb(14 14 16 / 0.72); |
| 125 | --material-popup: rgb(29 29 32 / 0.84); |
| 126 | } |
| 127 | |
| 128 | :root[data-mode="light"] { |
| 129 | color-scheme: light; |
| 130 | --ground: #fafafa; |
| 131 | --rail: #f4f4f5; |
| 132 | --panel: #ffffff; |
| 133 | --raised: #ffffff; |
| 134 | --sunken: #f3f3f4; |
| 135 | --control: #ffffff; |
| 136 | --field: #ffffff; |
| 137 | --control-hover: #f5f5f6; |
| 138 | --hover: rgb(0 0 0 / 0.05); |
| 139 | --hairline: rgb(0 0 0 / 0.07); |
| 140 | --line: rgb(0 0 0 / 0.13); |
| 141 | --ink: #18181b; |
| 142 | --muted: #5c5c66; |
| 143 | --faint: #6c6c76; |
| 144 | --primary: #18181b; |
| 145 | --primary-hover: #2e2e33; |
| 146 | --on-primary: #ffffff; |
| 147 | --accent: #2f5bf0; |
| 148 | --accent-hover: #2449d6; |
| 149 | --accent-text: #2449d6; |
| 150 | --accent-tint: rgb(47 91 240 / 0.1); |
| 151 | --on-accent: #ffffff; |
| 152 | --needs: #d99a0b; |
| 153 | --needs-text: #8a5d00; |
| 154 | --needs-tint: rgb(217 154 11 / 0.14); |
| 155 | --success: #1c8551; |
| 156 | --success-tint: rgb(28 133 81 / 0.1); |
| 157 | --danger: #cc3a34; |
| 158 | --danger-tint: rgb(204 58 52 / 0.08); |
| 159 | --caution: #8f6a1f; |
| 160 | --porcelain: #3a3a40; |
| 161 | --ochre: #a77b2a; |
| 162 | --sage: #4f7d5b; |
| 163 | --image-outline: oklch(0 0 0 / 0.1); |
| 164 | --scrim: rgb(0 0 0 / 0.32); |
| 165 | |
| 166 | /* On light, a ring, a tight lift and an ambient layer. */ |
| 167 | --elevation-card: 0 0 0 1px rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06), 0 2px 4px rgb(0 0 0 / 0.03); |
| 168 | --elevation-control: 0 0 0 1px rgb(0 0 0 / 0.1), 0 1px 2px rgb(0 0 0 / 0.05); |
| 169 | --elevation-surface: 0 0 0 1px rgb(0 0 0 / 0.08), 0 4px 12px -4px rgb(0 0 0 / 0.08), 0 20px 48px -12px rgb(0 0 0 / 0.18); |
| 170 | --shimmer-light: rgb(255 255 255 / 0.75); |
| 171 | --material-chrome: rgb(250 250 250 / 0.76); |
| 172 | --material-popup: rgb(255 255 255 / 0.86); |
| 173 | } |
| 174 | |
| 175 | @layer base { |
| 176 | html { |
| 177 | scrollbar-gutter: stable; |
| 178 | -webkit-font-smoothing: antialiased; |
| 179 | -moz-osx-font-smoothing: grayscale; |
| 180 | font-family: var(--font-sans); |
| 181 | /* 14px at the default setting, and it follows the reader's own text size. */ |
| 182 | font-size: 87.5%; |
| 183 | line-height: 1.5; |
| 184 | letter-spacing: -0.006em; |
| 185 | font-optical-sizing: auto; |
| 186 | background: var(--ground); |
| 187 | color: var(--ink); |
| 188 | accent-color: var(--accent); |
| 189 | caret-color: var(--accent-hover); |
| 190 | -webkit-tap-highlight-color: transparent; |
| 191 | } |
| 192 | |
| 193 | /* |
| 194 | * On a phone the text and every control grow one step: body text is 16px and a button is 40px tall. |
| 195 | * A finger and a held screen need more than a pointer and a desk. |
| 196 | */ |
| 197 | @media (pointer: coarse) and (max-width: 639px) { |
| 198 | html { font-size: 100%; } |
| 199 | } |
| 200 | |
| 201 | body { background: var(--ground); color: var(--ink); } |
| 202 | |
| 203 | ::selection { background: var(--accent-tint); color: var(--ink); } |
| 204 | |
| 205 | :focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; } |
| 206 | |
| 207 | * { scrollbar-color: var(--line) transparent; scrollbar-width: thin; } |
| 208 | ::-webkit-resizer { background: transparent; } |
| 209 | |
| 210 | /* Tracking follows size: large text tightens, small text stays open. */ |
| 211 | h1, h2, h3, h4 { text-wrap: balance; } |
| 212 | h1 { letter-spacing: -0.022em; } |
| 213 | h2 { letter-spacing: -0.017em; } |
| 214 | h3 { letter-spacing: -0.012em; } |
| 215 | p, li, dd, figcaption, blockquote, label { text-wrap: pretty; } |
| 216 | time, kbd, td { font-variant-numeric: tabular-nums; } |
| 217 | code, kbd, pre, samp { font-family: var(--font-mono); letter-spacing: 0; } |
| 218 | |
| 219 | a { |
| 220 | text-underline-offset: 0.18em; |
| 221 | transition-property: color, text-decoration-color; |
| 222 | transition-duration: 150ms; |
| 223 | transition-timing-function: ease; |
| 224 | } |
| 225 | |
| 226 | img { outline: 1px solid var(--image-outline); outline-offset: -1px; } |
| 227 | } |
| 228 | |
| 229 | @utility font-mono { |
| 230 | letter-spacing: 0; |
| 231 | } |
| 232 | |
| 233 | /* |
| 234 | * Icons carry one optical weight: a 1.5px stroke at every size, so a 14px icon and a 20px icon match the |
| 235 | * text beside them. `bold` is for emphasis, such as the current rail row. |
| 236 | */ |
| 237 | .lucide { stroke-width: 1.5px; } |
| 238 | .lucide :where(path, circle, rect, line, polyline, polygon, ellipse) { vector-effect: non-scaling-stroke; } |
| 239 | .lucide[data-weight="bold"] { stroke-width: 2px; } |
| 240 | |
| 241 | /* A quiet label for a row, a field or a group. It names the data beside it. */ |
| 242 | .caption { |
| 243 | font-size: var(--text-xs); |
| 244 | font-weight: 500; |
| 245 | line-height: 1.35; |
| 246 | letter-spacing: 0; |
| 247 | } |
| 248 | |
| 249 | .wordmark { |
| 250 | display: inline-flex; |
| 251 | align-items: center; |
| 252 | gap: 0.42em; |
| 253 | font-weight: 600; |
| 254 | letter-spacing: -0.03em; |
| 255 | line-height: 1; |
| 256 | white-space: nowrap; |
| 257 | } |
| 258 | |
| 259 | /* |
| 260 | * Materials. Chrome that floats over content (the header, menus, popovers) is translucent, so content |
| 261 | * scrolls under it. Content itself is never glass. |
| 262 | */ |
| 263 | .material-chrome { |
| 264 | background: var(--material-chrome); |
| 265 | -webkit-backdrop-filter: saturate(150%) blur(20px); |
| 266 | backdrop-filter: saturate(150%) blur(20px); |
| 267 | } |
| 268 | |
| 269 | .material-popup { |
| 270 | background: var(--material-popup); |
| 271 | -webkit-backdrop-filter: saturate(150%) blur(28px); |
| 272 | backdrop-filter: saturate(150%) blur(28px); |
| 273 | } |
| 274 | |
| 275 | @media (prefers-reduced-transparency: reduce) { |
| 276 | .material-chrome { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; } |
| 277 | .material-popup { background: var(--raised); -webkit-backdrop-filter: none; backdrop-filter: none; } |
| 278 | } |
| 279 | |
| 280 | /* Increase Contrast: stronger separators, rings and quiet text, and solid materials. */ |
| 281 | @media (prefers-contrast: more) { |
| 282 | :root, |
| 283 | :root[data-mode="dark"] { |
| 284 | --hairline: rgb(255 255 255 / 0.22); |
| 285 | --line: rgb(255 255 255 / 0.45); |
| 286 | --muted: #cfcfd5; |
| 287 | --faint: #b4b4bc; |
| 288 | --elevation-card: 0 0 0 1px rgb(255 255 255 / 0.28); |
| 289 | --elevation-control: 0 0 0 1px rgb(255 255 255 / 0.45); |
| 290 | } |
| 291 | :root[data-mode="light"] { |
| 292 | --hairline: rgb(0 0 0 / 0.22); |
| 293 | --line: rgb(0 0 0 / 0.5); |
| 294 | --muted: #36363d; |
| 295 | --faint: #47474f; |
| 296 | --elevation-card: 0 0 0 1px rgb(0 0 0 / 0.3); |
| 297 | --elevation-control: 0 0 0 1px rgb(0 0 0 / 0.5); |
| 298 | } |
| 299 | .material-chrome { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; } |
| 300 | .material-popup { background: var(--raised); -webkit-backdrop-filter: none; backdrop-filter: none; } |
| 301 | } |
| 302 | |
| 303 | /* A scroll edge: the hairline under floating chrome shows only once content is under it. */ |
| 304 | .scroll-edge::after { |
| 305 | content: ""; |
| 306 | position: absolute; |
| 307 | inset-inline: 0; |
| 308 | bottom: 0; |
| 309 | height: 1px; |
| 310 | background: var(--hairline); |
| 311 | pointer-events: none; |
| 312 | } |
| 313 | |
| 314 | @keyframes scroll-edge-in { to { opacity: 1; } } |
| 315 | |
| 316 | @supports (animation-timeline: scroll()) { |
| 317 | .scroll-edge::after { |
| 318 | opacity: 0; |
| 319 | animation: scroll-edge-in linear both; |
| 320 | animation-timeline: scroll(root block); |
| 321 | animation-range: 0 24px; |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | /* Press feedback, on pointer-down. Frequent controls (menu items, options, tabs, rail rows, checkboxes) stay still. */ |
| 326 | .pressable { |
| 327 | transition-property: color, background-color, box-shadow, opacity, scale; |
| 328 | transition-duration: 150ms; |
| 329 | transition-timing-function: var(--ease-out); |
| 330 | } |
| 331 | |
| 332 | .pressable:active:not(:disabled, [aria-disabled="true"], [data-static]) { scale: 0.96; } |
| 333 | |
| 334 | /* Popups grow from their trigger and leave faster than they arrive. */ |
| 335 | .popup { |
| 336 | transform-origin: var(--transform-origin); |
| 337 | transition-property: opacity, scale; |
| 338 | transition-duration: 180ms; |
| 339 | transition-timing-function: var(--ease-out); |
| 340 | } |
| 341 | |
| 342 | .popup[data-starting-style] { opacity: 0; scale: 0.96; } |
| 343 | .popup[data-ending-style] { opacity: 0; scale: 0.98; transition-duration: 120ms; } |
| 344 | .popup[data-instant] { transition-duration: 0ms; } |
| 345 | |
| 346 | .tooltip { transition-duration: 125ms; } |
| 347 | .tooltip:is([data-starting-style], [data-ending-style]) { scale: 0.97; } |
| 348 | |
| 349 | /* Modals are not anchored, so they stay centred. */ |
| 350 | .modal { |
| 351 | transition-property: opacity, scale; |
| 352 | transition-duration: 220ms; |
| 353 | transition-timing-function: var(--ease-out); |
| 354 | } |
| 355 | |
| 356 | .modal:is([data-starting-style], [data-ending-style]) { opacity: 0; scale: 0.96; } |
| 357 | .modal[data-ending-style] { transition-duration: 150ms; } |
| 358 | |
| 359 | .backdrop { |
| 360 | background: var(--scrim); |
| 361 | transition-property: opacity; |
| 362 | transition-duration: 220ms; |
| 363 | transition-timing-function: var(--ease-out); |
| 364 | } |
| 365 | |
| 366 | .backdrop:is([data-starting-style], [data-ending-style]) { opacity: 0; } |
| 367 | |
| 368 | dialog { |
| 369 | opacity: 0; |
| 370 | scale: 0.96; |
| 371 | transition-property: opacity, scale, overlay, display; |
| 372 | transition-duration: 150ms; |
| 373 | transition-timing-function: var(--ease-out); |
| 374 | transition-behavior: allow-discrete; |
| 375 | } |
| 376 | |
| 377 | dialog[open] { |
| 378 | opacity: 1; |
| 379 | scale: 1; |
| 380 | transition-duration: 220ms; |
| 381 | @starting-style { opacity: 0; scale: 0.96; } |
| 382 | } |
| 383 | |
| 384 | dialog::backdrop { |
| 385 | background: var(--scrim); |
| 386 | opacity: 0; |
| 387 | transition-property: opacity, overlay, display; |
| 388 | transition-duration: 150ms; |
| 389 | transition-timing-function: var(--ease-out); |
| 390 | transition-behavior: allow-discrete; |
| 391 | } |
| 392 | |
| 393 | dialog[open]::backdrop { |
| 394 | opacity: 1; |
| 395 | transition-duration: 220ms; |
| 396 | @starting-style { opacity: 0; } |
| 397 | } |
| 398 | |
| 399 | /* A horizontal scroller that fades at the edges it can still scroll to, so clipped content reads as more, not as cut. */ |
| 400 | @media (max-width: 639px) { |
| 401 | .scroll-fade { mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%); } |
| 402 | } |
| 403 | |
| 404 | /* Contextual icon swaps: scale 0.25 to 1, opacity 0 to 1, blur 4px to 0. */ |
| 405 | .swap-icon { |
| 406 | display: inline-flex; |
| 407 | transition-property: opacity, scale, filter; |
| 408 | transition-duration: 300ms; |
| 409 | transition-timing-function: var(--ease-icon); |
| 410 | } |
| 411 | |
| 412 | .swap-icon[data-hidden] { opacity: 0; scale: 0.25; filter: blur(4px); } |
| 413 | |
| 414 | /* |
| 415 | * Loading has one language: a placeholder in the shape of the content, with a soft light that sweeps across. |
| 416 | * The sweep moves with a transform, so it stays smooth while the page is busy. |
| 417 | */ |
| 418 | .shimmer { |
| 419 | position: relative; |
| 420 | overflow: hidden; |
| 421 | border-radius: var(--radius-chip); |
| 422 | background: var(--hover); |
| 423 | } |
| 424 | |
| 425 | .shimmer::after { |
| 426 | content: ""; |
| 427 | position: absolute; |
| 428 | inset: 0; |
| 429 | translate: -100% 0; |
| 430 | background: linear-gradient(90deg, transparent, var(--shimmer-light), transparent); |
| 431 | } |
| 432 | |
| 433 | @keyframes shimmer { |
| 434 | to { translate: 100% 0; } |
| 435 | } |
| 436 | |
| 437 | @keyframes shimmer-rest { |
| 438 | 50% { opacity: 0.55; } |
| 439 | } |
| 440 | |
| 441 | .fade-in { animation: fade-in 200ms var(--ease-out) both; } |
| 442 | |
| 443 | /* Content that replaces a loading placeholder fades in. */ |
| 444 | .arrive { |
| 445 | transition: opacity 200ms var(--ease-out); |
| 446 | @starting-style { opacity: 0; } |
| 447 | } |
| 448 | |
| 449 | /* Something a click reveals in place, such as the steer form. It grows from the control above it. */ |
| 450 | .reveal { |
| 451 | transform-origin: top; |
| 452 | transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); |
| 453 | @starting-style { opacity: 0; transform: translateY(-4px) scale(0.98); } |
| 454 | } |
| 455 | |
| 456 | /* Small icon-only controls keep a 40px target without growing visually. */ |
| 457 | .hit-area { position: relative; } |
| 458 | |
| 459 | .hit-area::after { |
| 460 | content: ""; |
| 461 | position: absolute; |
| 462 | top: 50%; |
| 463 | left: 50%; |
| 464 | width: max(100%, 40px); |
| 465 | height: max(100%, 40px); |
| 466 | translate: -50% -50%; |
| 467 | } |
| 468 | |
| 469 | /* On touch screens the target of a small control is 44px, the size a finger needs. */ |
| 470 | @media (pointer: coarse) { |
| 471 | .hit-area::after { width: max(100%, 44px); height: max(100%, 44px); } |
| 472 | } |
| 473 | |
| 474 | /* The reader can hide the rail. The choice is restored before paint, so the layout does not jump. */ |
| 475 | :root[data-rail="hidden"] .rail { display: none; } |
| 476 | .rail-hidden-only { display: none; } |
| 477 | @media (min-width: 768px) { |
| 478 | :root[data-rail="hidden"] .rail-hidden-only { display: inline-flex; } |
| 479 | } |
| 480 | |
| 481 | /* |
| 482 | * On a phone a dialog is a sheet: it rises from the bottom edge and leaves the same way. It has no grabber, |
| 483 | * because it does not resize. |
| 484 | */ |
| 485 | @media (max-width: 639px) { |
| 486 | .modal { |
| 487 | transition-property: translate, opacity; |
| 488 | transition-duration: 350ms; |
| 489 | transition-timing-function: var(--ease-drawer); |
| 490 | } |
| 491 | .modal:is([data-starting-style], [data-ending-style]) { opacity: 1; scale: 1; translate: 0 100%; } |
| 492 | .modal[data-ending-style] { transition-duration: 250ms; } |
| 493 | |
| 494 | dialog { translate: 0 100%; scale: 1; opacity: 1; transition-property: translate, overlay, display; transition-duration: 250ms; transition-timing-function: var(--ease-drawer); } |
| 495 | dialog[open] { translate: 0 0; transition-duration: 350ms; @starting-style { translate: 0 100%; scale: 1; opacity: 1; } } |
| 496 | } |
| 497 | |
| 498 | /* |
| 499 | * A form's main button is available only when the required data is present. The fields still explain |
| 500 | * themselves when the reader presses Return. |
| 501 | */ |
| 502 | form:has(:required:invalid) button[type="submit"]:not([name]) { |
| 503 | opacity: 0.45; |
| 504 | pointer-events: none; |
| 505 | } |
| 506 | |
| 507 | /* Fields are 16px on touch screens, so the page does not zoom when one takes focus. */ |
| 508 | @media (pointer: coarse) { |
| 509 | input:not([type="checkbox"], [type="radio"]), textarea, select { font-size: 16px !important; } |
| 510 | } |
| 511 | |
| 512 | /* Empty states are rare, so they may enter in stages. */ |
| 513 | @keyframes enter-up { |
| 514 | from { opacity: 0; transform: translateY(8px); filter: blur(4px); } |
| 515 | } |
| 516 | |
| 517 | /* The line draws itself once when a pull request opens: the one authored motion moment. */ |
| 518 | @keyframes line-draw { |
| 519 | from { stroke-dashoffset: var(--line-length); } |
| 520 | } |
| 521 | |
| 522 | @keyframes station-in { |
| 523 | from { opacity: 0; scale: 0.6; } |
| 524 | } |
| 525 | |
| 526 | /* A one-shot entrance for rare pages (landing, sign-in). `--delay` and `--rise` set each element's part. */ |
| 527 | @keyframes rise-in { |
| 528 | from { opacity: 0; transform: translateY(var(--rise, 12px)); } |
| 529 | } |
| 530 | |
| 531 | @keyframes fade-in { |
| 532 | from { opacity: 0; } |
| 533 | } |
| 534 | |
| 535 | /* The merge lands: one ring leaves the interchange after the line arrives. */ |
| 536 | @keyframes merge-ping { |
| 537 | from { opacity: 0.55; scale: 1; } |
| 538 | to { opacity: 0; scale: 2.4; } |
| 539 | } |
| 540 | |
| 541 | .merge-ping { opacity: 0; } |
| 542 | |
| 543 | @keyframes needs-pulse { |
| 544 | 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--needs) 45%, transparent); } |
| 545 | 50% { box-shadow: 0 0 0 5px transparent; } |
| 546 | } |
| 547 | |
| 548 | @media (prefers-reduced-motion: no-preference) { |
| 549 | .empty-enter > * { animation: enter-up 350ms var(--ease-out) both; } |
| 550 | .empty-enter > :nth-child(2) { animation-delay: 70ms; } |
| 551 | .empty-enter > :nth-child(3) { animation-delay: 130ms; } |
| 552 | .empty-enter > :nth-child(4) { animation-delay: 180ms; } |
| 553 | |
| 554 | .line-draw { stroke-dasharray: var(--line-length); animation: line-draw 700ms var(--ease-out) both; } |
| 555 | .station-in { animation: station-in 260ms var(--ease-out) both; transform-box: fill-box; transform-origin: center; } |
| 556 | |
| 557 | .needs-pulse { animation: needs-pulse 2s ease-out infinite; } |
| 558 | |
| 559 | .rise-in { animation: rise-in var(--rise-duration, 550ms) var(--ease-out) var(--delay, 0ms) both; } |
| 560 | .shimmer::after { animation: shimmer 1.4s linear infinite; } |
| 561 | .merge-ping { transform-box: fill-box; transform-origin: center; animation: merge-ping 800ms var(--ease-out) 650ms both; } |
| 562 | |
| 563 | /* A disclosure opens and closes instead of snapping. Browsers without `interpolate-size` keep the snap. */ |
| 564 | @supports (interpolate-size: allow-keywords) { |
| 565 | details { interpolate-size: allow-keywords; } |
| 566 | details::details-content { |
| 567 | height: 0; |
| 568 | opacity: 0; |
| 569 | overflow: clip; |
| 570 | overflow-clip-margin: 4px; |
| 571 | transition: height 200ms var(--ease-out), opacity 200ms var(--ease-out), content-visibility 200ms allow-discrete; |
| 572 | } |
| 573 | details[open]::details-content { height: auto; opacity: 1; } |
| 574 | } |
| 575 | } |
| 576 | |
| 577 | @media (prefers-reduced-motion: reduce) { |
| 578 | .rise-in { animation: fade-in 200ms ease both; } |
| 579 | .modal:is([data-starting-style], [data-ending-style]) { translate: none !important; opacity: 0; } |
| 580 | dialog, dialog[open] { translate: none !important; } |
| 581 | .shimmer { animation: shimmer-rest 2s ease-in-out infinite; } |
| 582 | .reveal { @starting-style { transform: none; } } |
| 583 | .pressable:active { scale: none !important; } |
| 584 | :is(.popup, .modal, .tooltip):is([data-starting-style], [data-ending-style]) { scale: none !important; } |
| 585 | .swap-icon[data-hidden] { scale: 1; filter: none; } |
| 586 | dialog, dialog[open] { scale: 1; @starting-style { scale: 1; } } |
| 587 | } |
| 588 | |
| 589 | .markdown { |
| 590 | font-size: var(--text-callout); |
| 591 | line-height: 1.65; |
| 592 | overflow-wrap: break-word; |
| 593 | max-width: 74ch; |
| 594 | } |
| 595 | .markdown > :first-child { margin-top: 0; } |
| 596 | .markdown > :last-child { margin-bottom: 0; } |
| 597 | .markdown h1, .markdown h2 { padding-bottom: 0.4rem; border-bottom: 1px solid var(--hairline); font-weight: 600; } |
| 598 | .markdown h1 { font-size: 1.6rem; line-height: 1.25; margin: 2rem 0 0.875rem; } |
| 599 | .markdown h2 { font-size: 1.3rem; line-height: 1.3; margin: 1.75rem 0 0.75rem; } |
| 600 | .markdown h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; } |
| 601 | .markdown p, .markdown ul, .markdown ol, .markdown table, .markdown pre, .markdown blockquote { margin: 0 0 1rem; } |
| 602 | .markdown ul, .markdown ol { padding-left: 1.4em; } |
| 603 | .markdown ul { list-style: disc; } |
| 604 | .markdown ol { list-style: decimal; } |
| 605 | .markdown li { margin: 0.2rem 0; } |
| 606 | .markdown li::marker { color: var(--faint); } |
| 607 | .markdown li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.3em; } |
| 608 | .markdown input[type="checkbox"] { margin-right: 0.4rem; } |
| 609 | .markdown a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent-text) 40%, transparent); } |
| 610 | .markdown a:hover { text-decoration-color: currentColor; } |
| 611 | .markdown code { font-size: 0.86em; padding: 0.1rem 0.35rem; border-radius: var(--radius-chip); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--hairline); } |
| 612 | .markdown pre { font-size: 0.8rem; line-height: 1.6; padding: 0.875rem 1rem; border-radius: var(--radius-control); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--hairline); overflow-x: auto; } |
| 613 | .markdown pre code { padding: 0; background: none; box-shadow: none; font-size: inherit; } |
| 614 | .markdown img { max-width: 100%; display: inline; border-radius: var(--radius-chip); } |
| 615 | .markdown table { border-collapse: collapse; } |
| 616 | .markdown th, .markdown td { border-bottom: 1px solid var(--hairline); padding: 0.4rem 0.8rem; text-align: left; } |
| 617 | .markdown th { font-weight: 600; color: var(--muted); } |
| 618 | .markdown blockquote { padding: 0.1rem 0 0.1rem 1rem; color: var(--muted); box-shadow: inset 2px 0 0 var(--line); } |
| 619 | .markdown hr { border: 0; border-top: 1px solid var(--hairline); margin: 1.5rem 0; } |
| 620 | |
| 621 | /* An agent mentioned in prose: a hollow station ring before its name. */ |
| 622 | .agent-mention { |
| 623 | display: inline-flex; |
| 624 | align-items: center; |
| 625 | gap: 0.35rem; |
| 626 | padding: 0 0.4rem; |
| 627 | border-radius: var(--radius-chip); |
| 628 | font-family: var(--font-mono); |
| 629 | font-size: 0.85em; |
| 630 | letter-spacing: 0; |
| 631 | background: var(--sunken); |
| 632 | box-shadow: inset 0 0 0 1px var(--hairline); |
| 633 | white-space: nowrap; |
| 634 | } |
| 635 | .agent-mention::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 9999px; box-shadow: inset 0 0 0 1.5px var(--porcelain); } |
| 636 | .agent-mention[data-live="false"]::before { box-shadow: inset 0 0 0 1.5px var(--faint); } |
| 637 | |
| 638 | .code-view { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.65; letter-spacing: 0; } |
| 639 | .code-view tr:first-child td { padding-top: 0.75rem; } |
| 640 | .code-view tr:last-child td { padding-bottom: 0.75rem; } |
| 641 | .code-view .line-number { width: 1%; min-width: 3.5rem; padding: 0 1rem; text-align: right; user-select: none; color: var(--faint); font-variant-numeric: tabular-nums; } |
| 642 | .code-view .line-number a:hover { color: var(--accent-text); } |
| 643 | .code-view .line { padding: 0 1rem; white-space: pre; } |
| 644 | .code-view tr:target { background: var(--accent-tint); } |
| 645 | /* Syntax colours come per token for both themes; the mode picks one. A token without a colour keeps the ink. */ |
| 646 | .code-view .line span { color: var(--token-dark, inherit); } |
| 647 | :root[data-mode="light"] .code-view .line span { color: var(--token-light, inherit); } |
| 648 | |
| 649 | .checkerboard { |
| 650 | background: repeating-conic-gradient(var(--sunken) 0 25%, var(--panel) 0 50%) 0 0 / 16px 16px; |
| 651 | } |