iz_old
Clone
https://git.tahinli.com/Tahinli/iz_old.git
0 watching0 forksRustGPL-3.02.2 MiB4c154b4Tahinli2 months ago301 commits
| 1 | // Design tokens — two design languages selected by : |
| 2 | // |
| 3 | // instrument dense, neutral-cool tool (the default; the bare :root in the |
| 4 | // first block doubles as its light set and as a fallback for any |
| 5 | // document that somehow reaches this stylesheet without data-ui) |
| 6 | // ledger warm paper, hairline rules, serif display face |
| 7 | // |
| 8 | // data-theme="dark" (settings.rs SaveProfileForm.theme) flips either language. |
| 9 | // Component rules below read only these custom properties; the per-UI skins |
| 10 | // (_instrument.scss, _ledger.scss) add overrides on top. |
| 11 | @use "instrument"; |
| 12 | @use "ledger"; |
| 13 | |
| 14 | // Instrument, light: warm-gray ground, quiet borders, shared accent family. |
| 15 | :root, |
| 16 | [data-ui="instrument"] { |
| 17 | color-scheme: light; |
| 18 | --bg: #f2f2f0; |
| 19 | --surface: #fbfbfa; |
| 20 | --border: #dcdcd8; |
| 21 | --border-strong: #d0d0cb; |
| 22 | --ink: #1a1b1d; |
| 23 | --muted: #6b7078; |
| 24 | --muted-soft: #6b7078; |
| 25 | --accent: #46557b; |
| 26 | --accent-tint: #eef0f5; |
| 27 | --accent-ink: #2f3c5c; |
| 28 | |
| 29 | --field-bg: #f5f5f3; |
| 30 | --surface-sunken: #e9e9e7; |
| 31 | --surface-muted: #f5f5f3; |
| 32 | --ink-soft: #3d4045; |
| 33 | --row-hover: #ececea; |
| 34 | --panel-sunken: #eeeeec; |
| 35 | --border-soft: #d3d3ce; |
| 36 | --scrim: rgba(26, 27, 29, 0.46); |
| 37 | |
| 38 | --danger: #a04a24; |
| 39 | --danger-tint: #f9ece4; |
| 40 | --danger-tint-soft: #fdf6f2; |
| 41 | --danger-tint-alt: #fbf1ec; |
| 42 | --danger-border: #e8c9b8; |
| 43 | --danger-border-soft: #eddcd3; |
| 44 | --danger-border-alt: #ecd0bf; |
| 45 | |
| 46 | --warn-ink: #7a5c1e; |
| 47 | --warn-tint: #f7f0dd; |
| 48 | --warn-tint-soft: #fdfaf1; |
| 49 | --warn-border: #e6d7ae; |
| 50 | |
| 51 | --positive: #5c7b46; |
| 52 | --positive-ink: #4a6636; |
| 53 | --positive-tint: #eef3e9; |
| 54 | --positive-border: #d3e0c6; |
| 55 | |
| 56 | --accent-strong: #5a6a94; |
| 57 | --accent-border: #d6dbe8; |
| 58 | --accent-border-strong: #d8dce6; |
| 59 | |
| 60 | --avatar-tone-1: #7b6846; |
| 61 | --avatar-tone-3: #7b4655; |
| 62 | --avatar-tone-4: #46707b; |
| 63 | |
| 64 | --violet-tint: #f1eaf7; |
| 65 | --violet-border: #ddc4ec; |
| 66 | --violet-ink: #6a3f82; |
| 67 | |
| 68 | --font-sans: system-ui, sans-serif; |
| 69 | --font-mono: 'IBM Plex Mono', ui-monospace, monospace; |
| 70 | --font-display: var(--font-sans); |
| 71 | |
| 72 | --control-h: 32px; |
| 73 | --control-h-lg: 40px; |
| 74 | --rule-strong: #d0d0cb; |
| 75 | |
| 76 | --radius: 3px; |
| 77 | --radius-sm: var(--radius); |
| 78 | --radius-md: 3px; |
| 79 | --radius-lg: 3px; |
| 80 | --topbar-height: 56px; |
| 81 | |
| 82 | --shadow-1: none; |
| 83 | --shadow-2: none; |
| 84 | --shadow-3: none; |
| 85 | |
| 86 | --dur-fast: 120ms; |
| 87 | --ease: ease-out; |
| 88 | } |
| 89 | |
| 90 | // Instrument, dark: near-black neutral-cool; tint fills go translucent and |
| 91 | // tint borders go alpha so the ground shows through. |
| 92 | [data-ui="instrument"][data-theme="dark"] { |
| 93 | color-scheme: dark; |
| 94 | --bg: #0d0e10; |
| 95 | --surface: #14161a; |
| 96 | --border: #23262c; |
| 97 | --border-strong: #2e323a; |
| 98 | --ink: #e6e4de; |
| 99 | --muted: #7d8590; |
| 100 | --muted-soft: #4a4f58; |
| 101 | --accent: #8ba1e8; |
| 102 | --accent-tint: rgba(139, 161, 232, 0.14); |
| 103 | --accent-ink: #b9c6ee; |
| 104 | |
| 105 | --field-bg: #101216; |
| 106 | --surface-sunken: #101216; |
| 107 | --surface-muted: #0f1013; |
| 108 | --ink-soft: #c9c7c0; |
| 109 | --row-hover: #1a1d22; |
| 110 | --panel-sunken: #101216; |
| 111 | --border-soft: #1f2226; |
| 112 | --scrim: rgba(0, 0, 0, 0.75); |
| 113 | |
| 114 | --danger: #e0906a; |
| 115 | --danger-tint: rgba(224, 144, 106, 0.13); |
| 116 | --danger-tint-soft: rgba(224, 144, 106, 0.07); |
| 117 | --danger-tint-alt: rgba(224, 144, 106, 0.05); |
| 118 | --danger-border: rgba(224, 144, 106, 0.45); |
| 119 | --danger-border-soft: rgba(224, 144, 106, 0.3); |
| 120 | --danger-border-alt: rgba(224, 144, 106, 0.35); |
| 121 | |
| 122 | --warn-ink: #d4b16a; |
| 123 | --warn-tint: rgba(212, 177, 106, 0.14); |
| 124 | --warn-tint-soft: rgba(212, 177, 106, 0.07); |
| 125 | --warn-border: rgba(212, 177, 106, 0.4); |
| 126 | |
| 127 | --positive: #9db98a; |
| 128 | --positive-ink: #b4cba3; |
| 129 | --positive-tint: rgba(157, 185, 138, 0.13); |
| 130 | --positive-border: rgba(157, 185, 138, 0.4); |
| 131 | |
| 132 | --accent-strong: #7e93d9; |
| 133 | --accent-border: #3a4152; |
| 134 | --accent-border-strong: #2b3b63; |
| 135 | |
| 136 | --avatar-tone-1: #937d58; |
| 137 | --avatar-tone-3: #96606e; |
| 138 | --avatar-tone-4: #5b93a1; |
| 139 | |
| 140 | --violet-tint: rgba(185, 138, 151, 0.14); |
| 141 | --violet-border: rgba(185, 138, 151, 0.4); |
| 142 | --violet-ink: #b98a97; |
| 143 | |
| 144 | --font-sans: system-ui, sans-serif; |
| 145 | --font-mono: 'IBM Plex Mono', ui-monospace, monospace; |
| 146 | --font-display: var(--font-sans); |
| 147 | |
| 148 | --control-h: 32px; |
| 149 | --control-h-lg: 40px; |
| 150 | --rule-strong: #2e323a; |
| 151 | |
| 152 | --radius: 3px; |
| 153 | --radius-sm: var(--radius); |
| 154 | --radius-md: 3px; |
| 155 | --radius-lg: 3px; |
| 156 | --topbar-height: 56px; |
| 157 | |
| 158 | --shadow-1: none; |
| 159 | --shadow-2: none; |
| 160 | --shadow-3: none; |
| 161 | |
| 162 | --dur-fast: 120ms; |
| 163 | --ease: ease-out; |
| 164 | } |
| 165 | |
| 166 | // Ledger, light: warm paper; hairline rules carry structure, ink carries |
| 167 | // emphasis. Tint trio stays on the proven warm palette. |
| 168 | [data-ui="ledger"] { |
| 169 | color-scheme: light; |
| 170 | --bg: #f6f1e6; |
| 171 | --surface: #f6f1e6; |
| 172 | --border: #ddd5c2; |
| 173 | --border-strong: #221f18; |
| 174 | --ink: #221f18; |
| 175 | --muted: #7a7466; |
| 176 | --muted-soft: #a39b88; |
| 177 | --accent: #46557b; |
| 178 | --accent-tint: #eef0f5; |
| 179 | --accent-ink: #2f3c5c; |
| 180 | |
| 181 | --field-bg: #f1ebdd; |
| 182 | --surface-sunken: #efe9da; |
| 183 | --surface-muted: #f2ecdf; |
| 184 | --ink-soft: #4a453a; |
| 185 | --row-hover: #efe9da; |
| 186 | --panel-sunken: #f1ebdd; |
| 187 | --border-soft: #cfc6b0; |
| 188 | --scrim: rgba(34, 31, 24, 0.46); |
| 189 | |
| 190 | --danger: #a04a24; |
| 191 | --danger-tint: #f9ece4; |
| 192 | --danger-tint-soft: #fdf6f2; |
| 193 | --danger-tint-alt: #fbf1ec; |
| 194 | --danger-border: #e8c9b8; |
| 195 | --danger-border-soft: #eddcd3; |
| 196 | --danger-border-alt: #ecd0bf; |
| 197 | |
| 198 | --warn-ink: #7a5c1e; |
| 199 | --warn-tint: #f7f0dd; |
| 200 | --warn-tint-soft: #fdfaf1; |
| 201 | --warn-border: #e6d7ae; |
| 202 | |
| 203 | --positive: #5c7b46; |
| 204 | --positive-ink: #4a6636; |
| 205 | --positive-tint: #eef3e9; |
| 206 | --positive-border: #d3e0c6; |
| 207 | |
| 208 | --accent-strong: #5a6a94; |
| 209 | --accent-border: #d6dbe8; |
| 210 | --accent-border-strong: #d8dce6; |
| 211 | |
| 212 | --avatar-tone-1: #7b6846; |
| 213 | --avatar-tone-3: #7b4655; |
| 214 | --avatar-tone-4: #46707b; |
| 215 | |
| 216 | --violet-tint: #f1eaf7; |
| 217 | --violet-border: #ddc4ec; |
| 218 | --violet-ink: #6a3f82; |
| 219 | |
| 220 | --font-sans: system-ui, sans-serif; |
| 221 | --font-mono: 'IBM Plex Mono', ui-monospace, monospace; |
| 222 | --font-display: 'Newsreader', Georgia, serif; |
| 223 | |
| 224 | --control-h: 32px; |
| 225 | --control-h-lg: 40px; |
| 226 | --rule-strong: #221f18; |
| 227 | |
| 228 | --radius: 2px; |
| 229 | --radius-sm: var(--radius); |
| 230 | --radius-md: 2px; |
| 231 | --radius-lg: 2px; |
| 232 | --topbar-height: 56px; |
| 233 | |
| 234 | --shadow-1: none; |
| 235 | --shadow-2: none; |
| 236 | --shadow-3: none; |
| 237 | |
| 238 | --dur-fast: 120ms; |
| 239 | --ease: ease-out; |
| 240 | } |
| 241 | |
| 242 | // Ledger, dark: dimmed paper ground; semantic hues lifted for contrast, tint |
| 243 | // fills translucent over the paper tone. |
| 244 | [data-ui="ledger"][data-theme="dark"] { |
| 245 | color-scheme: dark; |
| 246 | --bg: #171511; |
| 247 | --surface: #171511; |
| 248 | --border: #3a352a; |
| 249 | --border-strong: #e8e2d4; |
| 250 | --ink: #e8e2d4; |
| 251 | --muted: #97907f; |
| 252 | --muted-soft: #6e6757; |
| 253 | --accent: #9db0dd; |
| 254 | --accent-tint: rgba(157, 176, 221, 0.14); |
| 255 | --accent-ink: #c3cfee; |
| 256 | |
| 257 | --field-bg: #1c1915; |
| 258 | --surface-sunken: #14120e; |
| 259 | --surface-muted: #1c1915; |
| 260 | --ink-soft: #cfc8b6; |
| 261 | --row-hover: #201c16; |
| 262 | --panel-sunken: #1b1814; |
| 263 | --border-soft: #2e2a20; |
| 264 | --scrim: rgba(0, 0, 0, 0.75); |
| 265 | |
| 266 | --danger: #d28a5a; |
| 267 | --danger-tint: rgba(210, 138, 90, 0.13); |
| 268 | --danger-tint-soft: rgba(210, 138, 90, 0.07); |
| 269 | --danger-tint-alt: rgba(210, 138, 90, 0.05); |
| 270 | --danger-border: rgba(210, 138, 90, 0.45); |
| 271 | --danger-border-soft: rgba(210, 138, 90, 0.3); |
| 272 | --danger-border-alt: rgba(210, 138, 90, 0.35); |
| 273 | |
| 274 | --warn-ink: #d4b16a; |
| 275 | --warn-tint: rgba(212, 177, 106, 0.14); |
| 276 | --warn-tint-soft: rgba(212, 177, 106, 0.07); |
| 277 | --warn-border: rgba(212, 177, 106, 0.4); |
| 278 | |
| 279 | --positive: #a3bd8b; |
| 280 | --positive-ink: #b8cda4; |
| 281 | --positive-tint: rgba(163, 189, 139, 0.13); |
| 282 | --positive-border: rgba(163, 189, 139, 0.4); |
| 283 | |
| 284 | --accent-strong: #8497c9; |
| 285 | --accent-border: #3f4658; |
| 286 | --accent-border-strong: #2c3550; |
| 287 | |
| 288 | --avatar-tone-1: #937d58; |
| 289 | --avatar-tone-3: #96606e; |
| 290 | --avatar-tone-4: #5b93a1; |
| 291 | |
| 292 | --violet-tint: rgba(201, 163, 222, 0.14); |
| 293 | --violet-border: rgba(201, 163, 222, 0.4); |
| 294 | --violet-ink: #c9a3de; |
| 295 | |
| 296 | --font-sans: system-ui, sans-serif; |
| 297 | --font-mono: 'IBM Plex Mono', ui-monospace, monospace; |
| 298 | --font-display: 'Newsreader', Georgia, serif; |
| 299 | |
| 300 | --control-h: 32px; |
| 301 | --control-h-lg: 40px; |
| 302 | --rule-strong: #e8e2d4; |
| 303 | |
| 304 | --radius: 2px; |
| 305 | --radius-sm: var(--radius); |
| 306 | --radius-md: 2px; |
| 307 | --radius-lg: 2px; |
| 308 | --topbar-height: 56px; |
| 309 | |
| 310 | --shadow-1: none; |
| 311 | --shadow-2: none; |
| 312 | --shadow-3: none; |
| 313 | |
| 314 | --dur-fast: 120ms; |
| 315 | --ease: ease-out; |
| 316 | } |
| 317 | |
| 318 | * { box-sizing: border-box; } |
| 319 | |
| 320 | body { |
| 321 | margin: 0; |
| 322 | background: var(--bg); |
| 323 | color: var(--ink); |
| 324 | font-family: var(--font-sans); |
| 325 | font-size: 13px; |
| 326 | } |
| 327 | |
| 328 | // The board page owns the viewport: chrome and the occasional refusal line |
| 329 | // keep their natural height, the stage absorbs the rest, the document never |
| 330 | // scrolls. |
| 331 | body:has(.board-stage) { |
| 332 | // dvh follows the browser chrome phones raise and lower; vh is the fallback |
| 333 | // for engines without it. |
| 334 | height: 100vh; |
| 335 | height: 100dvh; |
| 336 | overflow: hidden; |
| 337 | display: flex; |
| 338 | flex-direction: column; |
| 339 | |
| 340 | > * { flex: none; } |
| 341 | > .board-stage { flex: 1; min-height: 0; } |
| 342 | } |
| 343 | |
| 344 | body:has(.settings-shell) { |
| 345 | height: 100vh; |
| 346 | height: 100dvh; |
| 347 | overflow: hidden; |
| 348 | display: flex; |
| 349 | flex-direction: column; |
| 350 | |
| 351 | > * { flex: none; } |
| 352 | > .settings-shell { flex: 1; min-height: 0; } |
| 353 | } |
| 354 | |
| 355 | // A profile is one column of its own; it pans inside itself like every other |
| 356 | // page here, and the document never grows a scrollbar. |
| 357 | body:has(.people-shell) { |
| 358 | height: 100vh; |
| 359 | height: 100dvh; |
| 360 | overflow: hidden; |
| 361 | display: flex; |
| 362 | flex-direction: column; |
| 363 | |
| 364 | > * { flex: none; } |
| 365 | > .people-shell { flex: 1; min-height: 0; } |
| 366 | } |
| 367 | // The account screens take the same lock: the card centers in what is left |
| 368 | // of the viewport, and a card taller than it (a landscape phone) pans inside |
| 369 | // the stage instead of growing the document. |
| 370 | body:has(.auth-stage) { |
| 371 | height: 100vh; |
| 372 | height: 100dvh; |
| 373 | overflow: hidden; |
| 374 | display: flex; |
| 375 | flex-direction: column; |
| 376 | |
| 377 | > * { flex: none; } |
| 378 | > .auth-stage { |
| 379 | flex: 1; |
| 380 | min-height: 0; |
| 381 | overflow-y: auto; |
| 382 | scrollbar-width: none; |
| 383 | |
| 384 | &::-webkit-scrollbar { display: none; } |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | a { |
| 389 | color: var(--accent); |
| 390 | transition: color var(--dur-fast) var(--ease); |
| 391 | &:hover { color: var(--accent-ink); } |
| 392 | } |
| 393 | |
| 394 | .topbar { |
| 395 | height: var(--topbar-height); |
| 396 | background: var(--surface); |
| 397 | border-bottom: 1px solid var(--border); |
| 398 | display: flex; |
| 399 | align-items: center; |
| 400 | gap: 16px; |
| 401 | padding: 0 24px; |
| 402 | } |
| 403 | |
| 404 | // The brand lockup is the one thing the two skins do NOT restyle: same |
| 405 | // monogram, same face, same size in Instrument and Ledger, light and dark. |
| 406 | // The mark takes the ink from `currentColor` and the tittle from the accent, |
| 407 | // so it re-tints with the theme without a second drawing. |
| 408 | .wordmark { |
| 409 | display: flex; |
| 410 | align-items: center; |
| 411 | gap: 10px; |
| 412 | text-decoration: none; |
| 413 | color: inherit; |
| 414 | |
| 415 | &:hover { color: inherit; } |
| 416 | |
| 417 | &-mark { |
| 418 | flex: none; |
| 419 | display: block; |
| 420 | width: 24px; |
| 421 | height: 24px; |
| 422 | } |
| 423 | |
| 424 | // The word without the mark, on the sign-in page: nothing else |
| 425 | // in that chrome, so it can take the room the topbar version cannot. |
| 426 | &-lone &-text { |
| 427 | font-size: 18px; |
| 428 | letter-spacing: 0.01em; |
| 429 | } |
| 430 | |
| 431 | &-tittle { |
| 432 | fill: var(--accent); |
| 433 | } |
| 434 | |
| 435 | // Lower case, and not by taste: capitalised, the dotted `i` becomes `I` and |
| 436 | // the name reads as the English word. The tittle is the Turkish one, in the |
| 437 | // word as it is in the mark. |
| 438 | &-text { |
| 439 | font-family: var(--font-mono); |
| 440 | font-size: 15px; |
| 441 | font-weight: 500; |
| 442 | letter-spacing: 0.02em; |
| 443 | } |
| 444 | } |
| 445 | |
| 446 | .topbar-divider { |
| 447 | width: 1px; |
| 448 | height: 20px; |
| 449 | background: var(--border); |
| 450 | } |
| 451 | |
| 452 | // The family behind the monogram: the sibling apps' wordmarks, lowercase |
| 453 | // like the brand's own name, in a flyout that hangs under the mark and |
| 454 | // shows on hover or on keyboard focus (the mark is the topbar's ``, so |
| 455 | // focus-within carries it). Absolutely placed, so the chrome keeps the bare |
| 456 | // mark's height and the page nav its auto-margin place on the right; left |
| 457 | // under the mark, because this chrome is anchored there. It stays in the |
| 458 | // DOM so the links are reachable by tab, and there is no gap between mark |
| 459 | // and flyout, so the pointer can travel down into it without it closing. |
| 460 | // Under the page's own menus (z 20 and up), over everything else. |
| 461 | .wordmark-family { |
| 462 | position: relative; |
| 463 | display: flex; |
| 464 | |
| 465 | &:hover .service-switcher, |
| 466 | &:focus-within .service-switcher { |
| 467 | opacity: 1; |
| 468 | transform: translate(0, 0); |
| 469 | pointer-events: auto; |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | .service-switcher { |
| 474 | position: absolute; |
| 475 | top: 100%; |
| 476 | left: 0; |
| 477 | z-index: 5; |
| 478 | display: flex; |
| 479 | align-items: center; |
| 480 | gap: 10px; |
| 481 | padding: 6px 12px; |
| 482 | background: var(--surface); |
| 483 | border: 1px solid var(--border); |
| 484 | border-radius: var(--radius); |
| 485 | box-shadow: var(--shadow-2); |
| 486 | opacity: 0; |
| 487 | transform: translate(0, -4px); |
| 488 | pointer-events: none; |
| 489 | transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); |
| 490 | } |
| 491 | |
| 492 | .service-mark { |
| 493 | font-family: var(--font-mono); |
| 494 | font-size: 13px; |
| 495 | font-weight: 500; |
| 496 | letter-spacing: 0.02em; |
| 497 | color: var(--muted); |
| 498 | text-decoration: none; |
| 499 | white-space: nowrap; |
| 500 | |
| 501 | &:hover { color: var(--ink); } |
| 502 | } |
| 503 | |
| 504 | .service-sep { color: var(--muted-soft); } |
| 505 | |
| 506 | // The flyout's per-sibling state dot: green while the sibling's /healthz |
| 507 | // answers ok, muted when it does not — the same dot im's flyout wears, the |
| 508 | // green iz's connection card chose. The green is the only hard colour the |
| 509 | // flyout carries; the muted side follows the theme. |
| 510 | .health-dot { |
| 511 | display: inline-block; |
| 512 | width: 0.55rem; |
| 513 | height: 0.55rem; |
| 514 | border-radius: 50%; |
| 515 | margin-right: 0.4rem; |
| 516 | vertical-align: baseline; |
| 517 | |
| 518 | &.health-on { background: #2e9e5b; } |
| 519 | &.health-off { background: var(--muted); } |
| 520 | } |
| 521 | |
| 522 | .topbar-nav-links { |
| 523 | display: flex; |
| 524 | gap: 16px; |
| 525 | margin-left: auto; |
| 526 | } |
| 527 | |
| 528 | // The spacer's flex-grow eats the free space before auto margins see any, so |
| 529 | // inside the chrome the nav's auto margin does the pushing instead. |
| 530 | .topbar > .spacer { display: none; } |
| 531 | |
| 532 | .topbar-nav { |
| 533 | font-family: var(--font-mono); |
| 534 | font-size: 10px; |
| 535 | letter-spacing: 0.08em; |
| 536 | text-transform: uppercase; |
| 537 | color: var(--muted); |
| 538 | text-decoration: none; |
| 539 | // A two-word label ("Mail rules") folds under pressure and reads as two |
| 540 | // stacked links; the nav gives up room some other way. |
| 541 | white-space: nowrap; |
| 542 | padding-bottom: 2px; |
| 543 | |
| 544 | &:hover { color: var(--ink); } |
| 545 | |
| 546 | &-on { |
| 547 | color: var(--ink); |
| 548 | box-shadow: inset 0 -2px 0 var(--ink); |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | .scaffold-note { |
| 553 | margin: 24px; |
| 554 | padding: 20px 24px; |
| 555 | background: var(--surface); |
| 556 | border: 1px solid var(--border); |
| 557 | border-radius: var(--radius-lg); |
| 558 | color: var(--muted); |
| 559 | } |
| 560 | |
| 561 | // --- Sign-in card ----------------------------------------------------------- |
| 562 | |
| 563 | .auth-stage { |
| 564 | min-height: calc(100vh - var(--topbar-height)); |
| 565 | display: flex; |
| 566 | align-items: center; |
| 567 | justify-content: center; |
| 568 | padding: 0 40px 40px; |
| 569 | } |
| 570 | |
| 571 | .auth-column { |
| 572 | width: 520px; |
| 573 | max-width: 100%; |
| 574 | display: flex; |
| 575 | flex-direction: column; |
| 576 | gap: 10px; |
| 577 | } |
| 578 | |
| 579 | .auth-card { |
| 580 | background: var(--surface); |
| 581 | border: 1px solid var(--border); |
| 582 | border-radius: var(--radius-lg); |
| 583 | padding: 28px 28px; |
| 584 | display: flex; |
| 585 | flex-direction: column; |
| 586 | gap: 18px; |
| 587 | box-shadow: var(--shadow-2); |
| 588 | |
| 589 | form { |
| 590 | display: flex; |
| 591 | flex-direction: column; |
| 592 | gap: 20px; |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | .auth-head { |
| 597 | display: flex; |
| 598 | flex-direction: column; |
| 599 | gap: 6px; |
| 600 | } |
| 601 | |
| 602 | .auth-title { |
| 603 | font-size: 18px; |
| 604 | font-weight: 600; |
| 605 | letter-spacing: -0.01em; |
| 606 | } |
| 607 | |
| 608 | .auth-sub { |
| 609 | font-size: 13px; |
| 610 | color: var(--muted); |
| 611 | line-height: 1.5; |
| 612 | } |
| 613 | |
| 614 | .auth-submit { |
| 615 | height: var(--control-h-lg); |
| 616 | display: flex; |
| 617 | align-items: center; |
| 618 | justify-content: center; |
| 619 | gap: 8px; |
| 620 | background: var(--accent); |
| 621 | color: var(--surface); |
| 622 | border: 0; |
| 623 | border-radius: var(--radius); |
| 624 | cursor: pointer; |
| 625 | font-family: var(--font-sans); |
| 626 | |
| 627 | &:disabled { |
| 628 | opacity: 0.45; |
| 629 | cursor: default; |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | .auth-submit-text { |
| 634 | font-size: 13px; |
| 635 | font-weight: 600; |
| 636 | } |
| 637 | |
| 638 | .auth-problem { |
| 639 | font-size: 13px; |
| 640 | color: var(--danger); |
| 641 | background: var(--danger-tint-alt); |
| 642 | border: 1px solid var(--danger-border-soft); |
| 643 | border-radius: var(--radius); |
| 644 | padding: 10px 12px; |
| 645 | } |
| 646 | |
| 647 | // -- the board (Main and EmptyBoard artboards) ------------------------------- |
| 648 | |
| 649 | .spacer { flex-grow: 1; } |
| 650 | |
| 651 | .user-menu { position: relative; } |
| 652 | |
| 653 | .user-menu-trigger { |
| 654 | display: inline-flex; |
| 655 | align-items: center; |
| 656 | gap: 8px; |
| 657 | padding: 0; |
| 658 | background: none; |
| 659 | border: none; |
| 660 | font-family: inherit; |
| 661 | font-size: 13px; |
| 662 | color: var(--muted); |
| 663 | cursor: pointer; |
| 664 | transition: color var(--dur-fast) var(--ease); |
| 665 | |
| 666 | &:hover { color: var(--accent-ink); } |
| 667 | } |
| 668 | |
| 669 | .user-menu-panel { |
| 670 | position: absolute; |
| 671 | top: 100%; |
| 672 | right: 0; |
| 673 | z-index: 30; |
| 674 | width: 220px; |
| 675 | padding: 8px 0; |
| 676 | background: var(--surface); |
| 677 | border: 1px solid var(--border-strong); |
| 678 | border-radius: var(--radius-lg); |
| 679 | box-shadow: var(--shadow-2); |
| 680 | visibility: hidden; |
| 681 | opacity: 0; |
| 682 | pointer-events: none; |
| 683 | transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease); |
| 684 | } |
| 685 | |
| 686 | .user-menu:hover .user-menu-panel, |
| 687 | .user-menu:focus-within .user-menu-panel { |
| 688 | visibility: visible; |
| 689 | opacity: 1; |
| 690 | pointer-events: auto; |
| 691 | } |
| 692 | .user-menu.user-menu-esc .user-menu-panel { visibility: hidden; opacity: 0; pointer-events: none; } |
| 693 | |
| 694 | .user-menu-name { |
| 695 | padding: 4px 14px 0; |
| 696 | font-size: 13px; |
| 697 | font-weight: 600; |
| 698 | } |
| 699 | |
| 700 | .user-menu-email { |
| 701 | padding: 2px 14px 0; |
| 702 | font-size: 12px; |
| 703 | color: var(--muted); |
| 704 | word-break: break-all; |
| 705 | } |
| 706 | |
| 707 | .user-menu-role { |
| 708 | padding: 2px 14px 6px; |
| 709 | font-size: 12px; |
| 710 | color: var(--muted-soft); |
| 711 | text-transform: capitalize; |
| 712 | } |
| 713 | |
| 714 | .user-menu-item { |
| 715 | display: flex; |
| 716 | align-items: center; |
| 717 | width: 100%; |
| 718 | height: 32px; |
| 719 | padding: 0 14px; |
| 720 | border: none; |
| 721 | background: none; |
| 722 | font-family: inherit; |
| 723 | font-size: 13px; |
| 724 | color: var(--ink-soft); |
| 725 | text-decoration: none; |
| 726 | text-align: left; |
| 727 | cursor: pointer; |
| 728 | transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); |
| 729 | |
| 730 | &:hover { background: var(--row-hover); color: var(--ink); } |
| 731 | } |
| 732 | |
| 733 | .user-menu-item-form { display: block; } |
| 734 | |
| 735 | .filterbar { |
| 736 | min-height: 52px; |
| 737 | background: var(--surface); |
| 738 | border-bottom: 1px solid var(--border); |
| 739 | display: flex; |
| 740 | align-items: center; |
| 741 | flex-wrap: wrap; |
| 742 | row-gap: 8px; |
| 743 | gap: 14px; |
| 744 | padding: 8px 24px; |
| 745 | } |
| 746 | |
| 747 | .segmented { |
| 748 | display: flex; |
| 749 | align-items: center; |
| 750 | background: var(--panel-sunken); |
| 751 | border: 1px solid var(--border-strong); |
| 752 | border-radius: var(--radius); |
| 753 | padding: 2px; |
| 754 | gap: 2px; |
| 755 | } |
| 756 | |
| 757 | .chip { |
| 758 | display: flex; |
| 759 | align-items: center; |
| 760 | height: 24px; |
| 761 | padding: 0 10px; |
| 762 | border-radius: var(--radius); |
| 763 | font-size: 11px; |
| 764 | font-weight: 600; |
| 765 | |
| 766 | &-overdue { |
| 767 | background: var(--danger-tint); |
| 768 | color: var(--danger); |
| 769 | } |
| 770 | |
| 771 | &-blocked { |
| 772 | background: var(--warn-tint); |
| 773 | color: var(--warn-ink); |
| 774 | } |
| 775 | |
| 776 | &-role, |
| 777 | &-admin, |
| 778 | &-connected, |
| 779 | &-off { |
| 780 | text-transform: capitalize; |
| 781 | } |
| 782 | |
| 783 | &-role { background: var(--surface-sunken); border: 1px solid var(--border-strong); color: var(--ink-soft); } |
| 784 | &-admin { background: var(--panel-sunken); border: 1px solid var(--border-strong); color: var(--muted); } |
| 785 | &-connected { background: var(--positive-tint); color: var(--positive-ink); } |
| 786 | &-off { background: var(--warn-tint); color: var(--warn-ink); } |
| 787 | } |
| 788 | |
| 789 | .board-stage { |
| 790 | position: relative; |
| 791 | display: flex; |
| 792 | flex-direction: column; |
| 793 | flex: 1; |
| 794 | min-height: 0; |
| 795 | padding: 20px 24px 24px 24px; |
| 796 | } |
| 797 | |
| 798 | .board-columns { |
| 799 | flex: 1; |
| 800 | min-height: 0; |
| 801 | display: grid; |
| 802 | grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); |
| 803 | gap: 16px; |
| 804 | align-items: stretch; |
| 805 | } |
| 806 | |
| 807 | .column { |
| 808 | background: var(--surface-sunken); |
| 809 | border-radius: var(--radius-lg); |
| 810 | padding: 12px; |
| 811 | display: flex; |
| 812 | flex-direction: column; |
| 813 | gap: 10px; |
| 814 | min-height: 120px; |
| 815 | } |
| 816 | |
| 817 | .column-head { |
| 818 | display: flex; |
| 819 | align-items: center; |
| 820 | gap: 8px; |
| 821 | padding: 2px 4px; |
| 822 | } |
| 823 | |
| 824 | .column-name { |
| 825 | font-size: 13px; |
| 826 | font-weight: 600; |
| 827 | } |
| 828 | |
| 829 | .column-count { |
| 830 | font-family: var(--font-mono); |
| 831 | font-size: 11px; |
| 832 | font-variant-numeric: tabular-nums; |
| 833 | color: var(--muted-soft); |
| 834 | background: var(--panel-sunken); |
| 835 | border-radius: var(--radius); |
| 836 | padding: 1px 6px; |
| 837 | } |
| 838 | |
| 839 | .column-cards { |
| 840 | display: flex; |
| 841 | flex-direction: column; |
| 842 | gap: 8px; |
| 843 | flex: 1; |
| 844 | min-height: 0; |
| 845 | overflow-y: auto; |
| 846 | scrollbar-width: none; |
| 847 | |
| 848 | &::-webkit-scrollbar { display: none; } |
| 849 | } |
| 850 | |
| 851 | .column-empty { |
| 852 | flex: 1; |
| 853 | display: flex; |
| 854 | align-items: center; |
| 855 | justify-content: center; |
| 856 | min-height: 60px; |
| 857 | border: 1px dashed var(--border-strong); |
| 858 | border-radius: var(--radius-md); |
| 859 | background: var(--surface-sunken); |
| 860 | font-size: 12px; |
| 861 | color: var(--muted-soft); |
| 862 | } |
| 863 | |
| 864 | .card { |
| 865 | // The card is an anchor so it has an address; it must not read as one. |
| 866 | display: block; |
| 867 | text-decoration: none; |
| 868 | color: inherit; |
| 869 | background: var(--surface); |
| 870 | border: 1px solid var(--border); |
| 871 | border-radius: var(--radius-md); |
| 872 | padding: 10px 12px; |
| 873 | box-shadow: var(--shadow-1); |
| 874 | cursor: pointer; |
| 875 | transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); |
| 876 | |
| 877 | &:hover { |
| 878 | background: var(--row-hover); |
| 879 | border-color: var(--border-strong); |
| 880 | } |
| 881 | } |
| 882 | |
| 883 | /* Where a dragged card may land. Only columns it is not already in light up: |
| 884 | the card's own column is not a destination. */ |
| 885 | .column-drop { |
| 886 | outline: 1px dashed var(--border-strong); |
| 887 | outline-offset: 4px; |
| 888 | border-radius: var(--radius-md); |
| 889 | background: var(--accent-tint); |
| 890 | } |
| 891 | |
| 892 | .card-done { |
| 893 | background: var(--surface-muted); |
| 894 | box-shadow: none; |
| 895 | |
| 896 | .card-title { color: var(--muted); } |
| 897 | } |
| 898 | |
| 899 | .card-keys { |
| 900 | display: flex; |
| 901 | align-items: baseline; |
| 902 | gap: 6px; |
| 903 | font-family: var(--font-mono); |
| 904 | font-size: 10px; |
| 905 | } |
| 906 | |
| 907 | .card-key { color: var(--muted); } |
| 908 | |
| 909 | .card-blocks, |
| 910 | .card-blocked-by { color: var(--warn-ink); } |
| 911 | |
| 912 | .card-title { |
| 913 | font-size: 13px; |
| 914 | font-weight: 600; |
| 915 | line-height: 1.4; |
| 916 | margin-top: 4px; |
| 917 | // A pasted URL has no space to wrap at; without this it runs off the card |
| 918 | // instead of folding. |
| 919 | overflow-wrap: anywhere; |
| 920 | } |
| 921 | |
| 922 | .card-foot { |
| 923 | display: flex; |
| 924 | align-items: center; |
| 925 | gap: 6px; |
| 926 | margin-top: 10px; |
| 927 | flex-wrap: wrap; |
| 928 | } |
| 929 | |
| 930 | .card-deadline { |
| 931 | display: flex; |
| 932 | align-items: center; |
| 933 | font-family: var(--font-mono); |
| 934 | font-size: 11px; |
| 935 | font-variant-numeric: tabular-nums; |
| 936 | color: var(--muted); |
| 937 | background: var(--surface-sunken); |
| 938 | border-radius: var(--radius-sm); |
| 939 | padding: 2px 6px; |
| 940 | |
| 941 | &-overdue { |
| 942 | color: var(--danger); |
| 943 | background: var(--danger-tint); |
| 944 | } |
| 945 | |
| 946 | &-none { |
| 947 | color: var(--muted-soft); |
| 948 | background: transparent; |
| 949 | padding-left: 0; |
| 950 | } |
| 951 | } |
| 952 | |
| 953 | .card-comments, |
| 954 | .card-subtasks { |
| 955 | font-family: var(--font-mono); |
| 956 | font-size: 11px; |
| 957 | color: var(--muted); |
| 958 | } |
| 959 | |
| 960 | .card-tag { |
| 961 | font-family: var(--font-mono); |
| 962 | font-size: 11px; |
| 963 | color: var(--muted); |
| 964 | background: var(--surface-sunken); |
| 965 | border-radius: var(--radius-sm); |
| 966 | padding: 2px 6px; |
| 967 | } |
| 968 | |
| 969 | /// Parts still open is the same warning the blocker chips carry: this card |
| 970 | /// cannot reach the done column yet. |
| 971 | .card-subtasks-open { color: var(--warn-ink); } |
| 972 | |
| 973 | .avatars { |
| 974 | display: flex; |
| 975 | align-items: center; |
| 976 | min-width: 0; |
| 977 | overflow: hidden; |
| 978 | |
| 979 | // The data-name tooltip pokes above the row; hovering drops the clip so it |
| 980 | // is not cut off by the overlap truncation. |
| 981 | &:has(.avatar:hover) { overflow: visible; } |
| 982 | } |
| 983 | |
| 984 | .avatar { |
| 985 | width: 22px; |
| 986 | height: 22px; |
| 987 | border-radius: 50%; |
| 988 | border: 2px solid var(--surface); |
| 989 | color: var(--surface); |
| 990 | font-family: var(--font-mono); |
| 991 | font-size: 10px; |
| 992 | display: flex; |
| 993 | align-items: center; |
| 994 | justify-content: center; |
| 995 | position: relative; |
| 996 | |
| 997 | & + & { margin-left: -8px; } |
| 998 | |
| 999 | &-none { |
| 1000 | border: 1px dashed var(--border-strong); |
| 1001 | background: transparent; |
| 1002 | } |
| 1003 | |
| 1004 | // The modal asks for two other sizes: 18px inside an assignee chip, 28px |
| 1005 | // beside a comment. The border is the board's overlap trick and has no job |
| 1006 | // on a lone avatar, so these drop it. |
| 1007 | // |
| 1008 | // They are written as `.avatar.avatar-sm` on purpose: the Instrument skin |
| 1009 | // sizes `.avatar` from a `[data-ui]` scope, which outweighs a lone class — |
| 1010 | // a plain `.avatar-lg` lost to it, and every size modifier collapsed to |
| 1011 | // 18px on that skin without anybody noticing. |
| 1012 | &.avatar-sm { |
| 1013 | width: 18px; |
| 1014 | height: 18px; |
| 1015 | border: none; |
| 1016 | font-size: 10px; |
| 1017 | } |
| 1018 | |
| 1019 | &.avatar-lg { |
| 1020 | width: 28px; |
| 1021 | height: 28px; |
| 1022 | border: none; |
| 1023 | font-size: 11px; |
| 1024 | flex: none; |
| 1025 | } |
| 1026 | |
| 1027 | // The profile page's own picture: the one place a face is the subject of |
| 1028 | // the screen rather than a mark beside somebody's name. |
| 1029 | &.avatar-xl { |
| 1030 | width: 92px; |
| 1031 | height: 92px; |
| 1032 | border: none; |
| 1033 | font-size: 30px; |
| 1034 | font-weight: 500; |
| 1035 | flex: none; |
| 1036 | } |
| 1037 | |
| 1038 | // A bare avatar carries `data-name`; hovering raises a house tooltip in |
| 1039 | // place of the native `title`. |
| 1040 | &[data-name]:hover::after { |
| 1041 | content: attr(data-name); |
| 1042 | position: absolute; |
| 1043 | bottom: calc(100% + 6px); |
| 1044 | left: 50%; |
| 1045 | transform: translateX(-50%); |
| 1046 | background: var(--surface); |
| 1047 | border: 1px solid var(--border); |
| 1048 | border-radius: var(--radius-sm); |
| 1049 | padding: 3px 8px; |
| 1050 | font-size: 11px; |
| 1051 | color: var(--ink-soft); |
| 1052 | box-shadow: var(--shadow-2); |
| 1053 | white-space: nowrap; |
| 1054 | z-index: 30; |
| 1055 | pointer-events: none; |
| 1056 | } |
| 1057 | |
| 1058 | &-tone-0 { background: var(--accent); } |
| 1059 | &-tone-1 { background: var(--avatar-tone-1); } |
| 1060 | &-tone-2 { background: var(--positive); } |
| 1061 | &-tone-3 { background: var(--avatar-tone-3); } |
| 1062 | &-tone-4 { background: var(--avatar-tone-4); } |
| 1063 | } |
| 1064 | |
| 1065 | // A photo avatar is the same box with the picture where the tone fill was; |
| 1066 | // size and shape ride the shared .avatar classes. |
| 1067 | img.avatar { |
| 1068 | object-fit: cover; |
| 1069 | display: block; |
| 1070 | } |
| 1071 | |
| 1072 | // The initials and the im photo in one box: the photo draws over the tone |
| 1073 | // fill, and hides itself when im has none (see `avatar_script`), leaving |
| 1074 | // the initials beneath as the fallback. |
| 1075 | .avatar-stack { |
| 1076 | display: inline-grid; |
| 1077 | flex: none; |
| 1078 | |
| 1079 | > * { grid-area: 1 / 1; } |
| 1080 | > .avatar + .avatar { margin-left: 0; } |
| 1081 | } |
| 1082 | |
| 1083 | // The avatar leads the profile panel: the face beside the name and |
| 1084 | // address im vouches, neither of which is edited here. |
| 1085 | .identity-row { |
| 1086 | display: flex; |
| 1087 | align-items: center; |
| 1088 | gap: 14px; |
| 1089 | } |
| 1090 | |
| 1091 | .identity-who { |
| 1092 | display: flex; |
| 1093 | flex-direction: column; |
| 1094 | gap: 2px; |
| 1095 | min-width: 0; |
| 1096 | } |
| 1097 | |
| 1098 | .identity-name { |
| 1099 | font-size: 15px; |
| 1100 | font-weight: 600; |
| 1101 | } |
| 1102 | |
| 1103 | .identity-address { |
| 1104 | font-size: 12px; |
| 1105 | color: var(--muted); |
| 1106 | } |
| 1107 | |
| 1108 | // -- the card context menu --------------------------------------------------- |
| 1109 | // |
| 1110 | // A right-click opens this at the cursor; `card_menu_script` (board.rs) sets |
| 1111 | // its position and the `card-menu-open` class, and a document click closes |
| 1112 | // whichever one is open. The panel and its rows wear the same floating-list |
| 1113 | // chrome as the assignee and link pickers (`.pop-panel`/`.pop-list`/`.pop-row`). |
| 1114 | |
| 1115 | .card-menu { |
| 1116 | display: none; |
| 1117 | position: fixed; |
| 1118 | z-index: 25; |
| 1119 | min-width: 160px; |
| 1120 | |
| 1121 | &-open { display: block; } |
| 1122 | } |
| 1123 | |
| 1124 | .card-menu-move { position: relative; } |
| 1125 | |
| 1126 | .card-menu-submenu { |
| 1127 | display: none; |
| 1128 | position: absolute; |
| 1129 | left: 100%; |
| 1130 | top: 0; |
| 1131 | margin-left: 4px; |
| 1132 | min-width: 140px; |
| 1133 | } |
| 1134 | |
| 1135 | .card-menu-move:hover > .card-menu-submenu, |
| 1136 | .card-menu-move-trigger:focus + .card-menu-submenu { display: block; } |
| 1137 | |
| 1138 | .card-menu-danger { color: var(--danger); } |
| 1139 | |
| 1140 | // -- the task detail modal -------------------------------------------------- |
| 1141 | // |
| 1142 | // The modal is a view. Every region that can be changed is a `` wearing |
| 1143 | // the view's clothes: the read-only shape is a ``, the form beneath it |
| 1144 | // is hidden until a visually-hidden checkbox is checked, and the checkbox is |
| 1145 | // checked by clicking that label. Cancel is a second label pointing at the |
| 1146 | // same checkbox, so entering and leaving the edit state both work with wasm |
| 1147 | // blocked. Nothing else on the screen changes when one region opens. |
| 1148 | |
| 1149 | .modal-scrim { |
| 1150 | position: fixed; |
| 1151 | inset: 0; |
| 1152 | background: var(--scrim); |
| 1153 | display: flex; |
| 1154 | align-items: flex-start; |
| 1155 | justify-content: center; |
| 1156 | padding: 48px 24px; |
| 1157 | overflow-y: auto; |
| 1158 | // The scrim is the silent pan surface for tall page-style modals: it may |
| 1159 | // scroll, but it never shows a scrollbar. |
| 1160 | scrollbar-width: none; |
| 1161 | |
| 1162 | &::-webkit-scrollbar { display: none; } |
| 1163 | |
| 1164 | z-index: 20; |
| 1165 | } |
| 1166 | |
| 1167 | .modal { |
| 1168 | width: 780px; |
| 1169 | max-width: 100%; |
| 1170 | max-height: calc(100vh - 96px); |
| 1171 | overflow-y: auto; |
| 1172 | background: var(--surface); |
| 1173 | border: 1px solid var(--border); |
| 1174 | border-radius: var(--radius-lg); |
| 1175 | box-shadow: var(--shadow-3); |
| 1176 | padding: 0; |
| 1177 | outline: none; |
| 1178 | } |
| 1179 | |
| 1180 | .modal-loading { height: 220px; } |
| 1181 | |
| 1182 | .modal-note, |
| 1183 | .modal-problem { |
| 1184 | margin: 8px 24px 0; |
| 1185 | font-size: 13px; |
| 1186 | color: var(--danger); |
| 1187 | } |
| 1188 | |
| 1189 | .modal-new-task { |
| 1190 | width: 480px; |
| 1191 | // The Task-tab fields can push this past a short viewport; it pans inside |
| 1192 | // itself, but it never shows a scrollbar. |
| 1193 | scrollbar-width: none; |
| 1194 | |
| 1195 | &::-webkit-scrollbar { display: none; } |
| 1196 | } |
| 1197 | |
| 1198 | // The task-detail modal shares `.modal` with the new-task modal and the |
| 1199 | // viewer, which stay centered. The base only fixes the frame — a header on |
| 1200 | // top, one body that pans invisibly between header and composer — because |
| 1201 | // the skins reshape it: instrument docks it as a 560px side panel, ledger |
| 1202 | // lays it out as its own opaque page. |
| 1203 | .modal-task { |
| 1204 | display: flex; |
| 1205 | flex-direction: column; |
| 1206 | max-height: none; |
| 1207 | overflow: visible; |
| 1208 | } |
| 1209 | |
| 1210 | .detail-mast { |
| 1211 | flex: none; |
| 1212 | } |
| 1213 | |
| 1214 | // Dependencies ride in the mast, and a task can be blocked by any number of |
| 1215 | // others — so the list keeps three whole rows' worth of room and pans inside itself, |
| 1216 | // silently, rather than pushing the task's own text off the screen. |
| 1217 | .detail-mast .dep-list { |
| 1218 | max-height: 160px; |
| 1219 | overflow-y: auto; |
| 1220 | scrollbar-width: none; |
| 1221 | |
| 1222 | &::-webkit-scrollbar { display: none; } |
| 1223 | } |
| 1224 | |
| 1225 | .detail-mast .detail-block { |
| 1226 | margin-top: 14px; |
| 1227 | } |
| 1228 | |
| 1229 | .detail-body { |
| 1230 | flex: 1; |
| 1231 | min-height: 0; |
| 1232 | overflow-y: auto; |
| 1233 | scrollbar-width: none; |
| 1234 | |
| 1235 | &::-webkit-scrollbar { display: none; } |
| 1236 | } |
| 1237 | |
| 1238 | // The in-app file viewer: same scrim/panel chrome as the task modal, rendered |
| 1239 | // as a later sibling of it so the task modal underneath hides while it is |
| 1240 | // open — one popup on screen at a time, the same rule the delete confirm |
| 1241 | // uses. Closing is a `.viewer-close` anchor stretched over the whole scrim |
| 1242 | // under the panel — outside clicks land on it and navigate, clicks on the |
| 1243 | // media land on the panel above it and stay. |
| 1244 | .viewer-close { position: absolute; inset: 0; cursor: default; } |
| 1245 | |
| 1246 | .modal-scrim:has(~ .viewer-scrim) { visibility: hidden; } |
| 1247 | |
| 1248 | .viewer { position: relative; width: auto; max-width: min(90vw, 960px); } |
| 1249 | |
| 1250 | .viewer-body { |
| 1251 | display: flex; |
| 1252 | align-items: center; |
| 1253 | justify-content: center; |
| 1254 | padding: 20px 24px 24px; |
| 1255 | } |
| 1256 | |
| 1257 | .viewer-media { max-width: 100%; max-height: 78vh; border-radius: var(--radius-md); } |
| 1258 | |
| 1259 | // The house audio player: the native pill is browser chrome — it ignores the |
| 1260 | // theme's shape language and swallows Escape while focused, so the viewer |
| 1261 | // draws its own controls over a hidden ``. |
| 1262 | .audio-player { |
| 1263 | display: flex; |
| 1264 | align-items: center; |
| 1265 | gap: 12px; |
| 1266 | width: min(480px, 80vw); |
| 1267 | padding: 12px 16px; |
| 1268 | background: var(--surface); |
| 1269 | border: 1px solid var(--border); |
| 1270 | border-radius: var(--radius-md); |
| 1271 | |
| 1272 | .audio-el { display: none; } |
| 1273 | } |
| 1274 | |
| 1275 | .audio-play { |
| 1276 | display: grid; |
| 1277 | place-items: center; |
| 1278 | width: 32px; |
| 1279 | height: 32px; |
| 1280 | flex: none; |
| 1281 | padding: 0; |
| 1282 | border: 1px solid var(--accent-border); |
| 1283 | border-radius: 50%; |
| 1284 | background: var(--accent-tint); |
| 1285 | color: var(--accent-ink); |
| 1286 | cursor: pointer; |
| 1287 | |
| 1288 | .glyph-pause { display: none; } |
| 1289 | &:hover { border-color: var(--accent-strong); } |
| 1290 | } |
| 1291 | |
| 1292 | .audio-playing .audio-play { |
| 1293 | .glyph-play { display: none; } |
| 1294 | .glyph-pause { display: block; } |
| 1295 | } |
| 1296 | |
| 1297 | .audio-time { |
| 1298 | font-family: var(--font-mono); |
| 1299 | font-size: 12px; |
| 1300 | color: var(--muted); |
| 1301 | min-width: 34px; |
| 1302 | text-align: center; |
| 1303 | } |
| 1304 | |
| 1305 | .audio-seek { |
| 1306 | flex: 1; |
| 1307 | appearance: none; |
| 1308 | height: 4px; |
| 1309 | margin: 0; |
| 1310 | background: var(--border); |
| 1311 | border-radius: 2px; |
| 1312 | cursor: pointer; |
| 1313 | |
| 1314 | &::-webkit-slider-thumb { |
| 1315 | appearance: none; |
| 1316 | width: 12px; |
| 1317 | height: 12px; |
| 1318 | border: none; |
| 1319 | border-radius: 50%; |
| 1320 | background: var(--accent); |
| 1321 | } |
| 1322 | |
| 1323 | &::-moz-range-thumb { |
| 1324 | width: 12px; |
| 1325 | height: 12px; |
| 1326 | border: none; |
| 1327 | border-radius: 50%; |
| 1328 | background: var(--accent); |
| 1329 | } |
| 1330 | |
| 1331 | &::-moz-range-track { |
| 1332 | height: 4px; |
| 1333 | background: var(--border); |
| 1334 | border-radius: 2px; |
| 1335 | } |
| 1336 | |
| 1337 | &::-moz-range-progress { |
| 1338 | height: 4px; |
| 1339 | background: var(--accent); |
| 1340 | border-radius: 2px; |
| 1341 | } |
| 1342 | } |
| 1343 | |
| 1344 | .viewer-pdf { width: 100%; height: 78vh; border: 1px solid var(--border); border-radius: var(--radius-md); } |
| 1345 | |
| 1346 | // A PDF is the browser's own reader living in an , and it reads like |
| 1347 | // a workbook does: the panel takes the viewer the whole way out, because the |
| 1348 | // plugin only unfolds its full toolbar — page box, thumbnails, zoom — when |
| 1349 | // it has the room, and a document is read, not peeked at through 960px. |
| 1350 | .viewer:has(.viewer-pdf) { |
| 1351 | width: min(96vw, 1400px); |
| 1352 | height: calc(100vh - 96px); |
| 1353 | display: flex; |
| 1354 | flex-direction: column; |
| 1355 | overflow: hidden; |
| 1356 | |
| 1357 | .viewer-body { |
| 1358 | flex: 1; |
| 1359 | min-height: 0; |
| 1360 | align-items: stretch; |
| 1361 | padding: 16px 20px 20px; |
| 1362 | } |
| 1363 | |
| 1364 | .viewer-pdf { height: 100%; max-height: none; } |
| 1365 | } |
| 1366 | |
| 1367 | // Presented, the panel is the screen. The plugin keeps its own toolbar and |
| 1368 | // the header keeps its actions; only the frame's chrome comes off. |
| 1369 | .viewer:fullscreen { |
| 1370 | width: 100%; |
| 1371 | max-width: none; |
| 1372 | height: 100%; |
| 1373 | max-height: none; |
| 1374 | border: none; |
| 1375 | border-radius: 0; |
| 1376 | } |
| 1377 | |
| 1378 | // The viewer's header actions line up on one centered row: the filename is a |
| 1379 | // single line, and the download/present boxes center against it instead of |
| 1380 | // riding the headline's top edge the way the task modal's taller controls do. |
| 1381 | .viewer .detail-head { align-items: center; } |
| 1382 | |
| 1383 | .viewer .detail-esc { margin-top: 0; } |
| 1384 | |
| 1385 | // A workbook has no element of its own, so the viewer draws it: a tab strip |
| 1386 | // when the book has more than one sheet, and a grid that pans inside its own |
| 1387 | // box — the document never scrolls. |
| 1388 | // A workbook is wider and taller than anything else the viewer opens, so it |
| 1389 | // takes the panel the whole way out: the modal grows to the viewport and no |
| 1390 | // further, and the grid takes whatever is left under the tab strip and pans |
| 1391 | // inside that — the panel itself never leaves the screen. |
| 1392 | .viewer:has(.viewer-sheet) { |
| 1393 | width: auto; |
| 1394 | max-width: min(96vw, 1400px); |
| 1395 | display: flex; |
| 1396 | flex-direction: column; |
| 1397 | overflow: hidden; |
| 1398 | |
| 1399 | .viewer-body { |
| 1400 | flex: 1; |
| 1401 | min-height: 0; |
| 1402 | align-items: stretch; |
| 1403 | padding: 16px 20px 20px; |
| 1404 | } |
| 1405 | } |
| 1406 | |
| 1407 | .viewer-sheet { |
| 1408 | display: flex; |
| 1409 | flex-direction: column; |
| 1410 | gap: 10px; |
| 1411 | width: 100%; |
| 1412 | // The viewer body is a row flex, so without these the sheet's automatic |
| 1413 | // minimum size is the whole table's width and height, and a wide book |
| 1414 | // pushes the panel off the screen instead of panning inside it. |
| 1415 | min-width: 0; |
| 1416 | min-height: 0; |
| 1417 | } |
| 1418 | |
| 1419 | .sheet-tabs { |
| 1420 | display: flex; |
| 1421 | gap: 6px; |
| 1422 | overflow-x: auto; |
| 1423 | scrollbar-width: none; |
| 1424 | |
| 1425 | &::-webkit-scrollbar { display: none; } |
| 1426 | } |
| 1427 | |
| 1428 | .sheet-tab { |
| 1429 | padding: 4px 10px; |
| 1430 | border: 1px solid var(--border); |
| 1431 | border-radius: var(--radius-sm); |
| 1432 | color: var(--text-dim); |
| 1433 | font-size: 12px; |
| 1434 | white-space: nowrap; |
| 1435 | text-decoration: none; |
| 1436 | } |
| 1437 | |
| 1438 | .sheet-tab-on { |
| 1439 | color: var(--text); |
| 1440 | border-color: var(--accent); |
| 1441 | } |
| 1442 | |
| 1443 | // A window is sized to land on a screen, so the grid takes only the room its |
| 1444 | // own rows need — the pagers below it stay in view rather than being pushed |
| 1445 | // off by a table that always claims the whole panel. |
| 1446 | .sheet-grid { |
| 1447 | flex: 0 1 auto; |
| 1448 | min-width: 0; |
| 1449 | min-height: 0; |
| 1450 | overflow: auto; |
| 1451 | scrollbar-width: none; |
| 1452 | border: 1px solid var(--border); |
| 1453 | border-radius: var(--radius-md); |
| 1454 | |
| 1455 | &::-webkit-scrollbar { display: none; } |
| 1456 | } |
| 1457 | |
| 1458 | .sheet-table { |
| 1459 | border-collapse: collapse; |
| 1460 | font-size: 12px; |
| 1461 | font-variant-numeric: tabular-nums; |
| 1462 | |
| 1463 | th, |
| 1464 | td { |
| 1465 | padding: 4px 8px; |
| 1466 | border-right: 1px solid var(--border); |
| 1467 | border-bottom: 1px solid var(--border); |
| 1468 | max-width: 180px; |
| 1469 | overflow: hidden; |
| 1470 | text-overflow: ellipsis; |
| 1471 | white-space: nowrap; |
| 1472 | text-align: left; |
| 1473 | } |
| 1474 | |
| 1475 | // The column letters and row numbers are chrome, not data: dim, sticky at |
| 1476 | // the edges they name, so a cell keeps its address while the grid pans. |
| 1477 | thead th { |
| 1478 | position: sticky; |
| 1479 | top: 0; |
| 1480 | z-index: 1; |
| 1481 | background: var(--surface); |
| 1482 | color: var(--text-dim); |
| 1483 | font-weight: 500; |
| 1484 | } |
| 1485 | |
| 1486 | .sheet-gutter { |
| 1487 | position: sticky; |
| 1488 | left: 0; |
| 1489 | background: var(--surface); |
| 1490 | color: var(--text-dim); |
| 1491 | font-weight: 500; |
| 1492 | text-align: right; |
| 1493 | } |
| 1494 | |
| 1495 | thead .sheet-gutter { z-index: 2; } |
| 1496 | } |
| 1497 | |
| 1498 | .sheet-note { |
| 1499 | margin: 0; |
| 1500 | color: var(--text-dim); |
| 1501 | font-size: 12px; |
| 1502 | } |
| 1503 | |
| 1504 | // A sheet is read one window at a time, and these move it: the rows down the |
| 1505 | // left, the columns across the right, each counted against the whole sheet. |
| 1506 | // A step with nowhere to go stays in place, dimmed, so the pair never moves |
| 1507 | // under the pointer. |
| 1508 | .sheet-foot { |
| 1509 | display: flex; |
| 1510 | align-items: center; |
| 1511 | justify-content: space-between; |
| 1512 | gap: 16px; |
| 1513 | } |
| 1514 | |
| 1515 | .sheet-pager { |
| 1516 | display: flex; |
| 1517 | align-items: center; |
| 1518 | gap: 4px; |
| 1519 | } |
| 1520 | |
| 1521 | .sheet-range { |
| 1522 | color: var(--text-dim); |
| 1523 | font-size: 12px; |
| 1524 | font-variant-numeric: tabular-nums; |
| 1525 | margin-right: 4px; |
| 1526 | } |
| 1527 | |
| 1528 | .sheet-step { |
| 1529 | display: inline-flex; |
| 1530 | align-items: center; |
| 1531 | justify-content: center; |
| 1532 | width: 26px; |
| 1533 | height: 24px; |
| 1534 | border: 1px solid var(--border); |
| 1535 | border-radius: var(--radius-sm); |
| 1536 | color: var(--text-dim); |
| 1537 | |
| 1538 | &:hover { color: var(--text); border-color: var(--accent); } |
| 1539 | } |
| 1540 | |
| 1541 | // One chevron points down; the other three are that chevron turned. |
| 1542 | .sheet-step-up .glyph { transform: rotate(180deg); } |
| 1543 | .sheet-step-left .glyph { transform: rotate(90deg); } |
| 1544 | .sheet-step-right .glyph { transform: rotate(-90deg); } |
| 1545 | |
| 1546 | .sheet-step-off { |
| 1547 | opacity: 0.3; |
| 1548 | |
| 1549 | &:hover { color: var(--text-dim); border-color: var(--border); } |
| 1550 | } |
| 1551 | |
| 1552 | // A deck is the second format no browser renders, read the same way a |
| 1553 | // workbook is: the panel takes the viewer the whole way out, the outline |
| 1554 | // pans inside its own box, and the document never scrolls. The slide strip |
| 1555 | // is the sheet tab strip with numbers instead of names; the pager is the |
| 1556 | // sheet's pair with one step set. |
| 1557 | .viewer:has(.viewer-slides) { |
| 1558 | display: flex; |
| 1559 | flex-direction: column; |
| 1560 | overflow: hidden; |
| 1561 | |
| 1562 | .viewer-body { |
| 1563 | flex: 1; |
| 1564 | min-height: 0; |
| 1565 | align-items: stretch; |
| 1566 | padding: 16px 20px 20px; |
| 1567 | } |
| 1568 | } |
| 1569 | |
| 1570 | .viewer-slides { |
| 1571 | display: flex; |
| 1572 | flex-direction: column; |
| 1573 | gap: 10px; |
| 1574 | width: 100%; |
| 1575 | min-width: 0; |
| 1576 | min-height: 0; |
| 1577 | } |
| 1578 | |
| 1579 | .slides-nav { |
| 1580 | display: flex; |
| 1581 | gap: 6px; |
| 1582 | overflow-x: auto; |
| 1583 | scrollbar-width: none; |
| 1584 | |
| 1585 | &::-webkit-scrollbar { display: none; } |
| 1586 | } |
| 1587 | |
| 1588 | .slide-tab { |
| 1589 | padding: 4px 10px; |
| 1590 | border: 1px solid var(--border); |
| 1591 | border-radius: var(--radius-sm); |
| 1592 | color: var(--text-dim); |
| 1593 | font-size: 12px; |
| 1594 | font-variant-numeric: tabular-nums; |
| 1595 | white-space: nowrap; |
| 1596 | text-decoration: none; |
| 1597 | } |
| 1598 | |
| 1599 | .slide-tab-on { |
| 1600 | color: var(--text); |
| 1601 | border-color: var(--accent); |
| 1602 | } |
| 1603 | |
| 1604 | // The outline is what the deck says, not what it draws, so the card takes |
| 1605 | // the room left under the strip and pans inside itself when a slide runs |
| 1606 | // long rather than pushing the pager out of view. |
| 1607 | .slide-card { |
| 1608 | flex: 1; |
| 1609 | min-width: 0; |
| 1610 | min-height: 0; |
| 1611 | overflow: auto; |
| 1612 | scrollbar-width: none; |
| 1613 | padding: 20px 24px; |
| 1614 | border: 1px solid var(--border); |
| 1615 | border-radius: var(--radius-md); |
| 1616 | |
| 1617 | &::-webkit-scrollbar { display: none; } |
| 1618 | } |
| 1619 | |
| 1620 | .slide-title { |
| 1621 | margin: 0 0 12px; |
| 1622 | font-size: 16px; |
| 1623 | } |
| 1624 | |
| 1625 | .slide-line { |
| 1626 | margin: 0 0 8px; |
| 1627 | font-size: 13px; |
| 1628 | } |
| 1629 | |
| 1630 | .slides-foot { |
| 1631 | display: flex; |
| 1632 | align-items: center; |
| 1633 | justify-content: space-between; |
| 1634 | gap: 16px; |
| 1635 | } |
| 1636 | |
| 1637 | .slides-pager { |
| 1638 | display: flex; |
| 1639 | align-items: center; |
| 1640 | gap: 4px; |
| 1641 | } |
| 1642 | |
| 1643 | .slides-range { |
| 1644 | color: var(--text-dim); |
| 1645 | font-size: 12px; |
| 1646 | font-variant-numeric: tabular-nums; |
| 1647 | margin-right: 4px; |
| 1648 | } |
| 1649 | |
| 1650 | .slides-step { |
| 1651 | display: inline-flex; |
| 1652 | align-items: center; |
| 1653 | justify-content: center; |
| 1654 | width: 26px; |
| 1655 | height: 24px; |
| 1656 | border: 1px solid var(--border); |
| 1657 | border-radius: var(--radius-sm); |
| 1658 | color: var(--text-dim); |
| 1659 | |
| 1660 | &:hover { color: var(--text); border-color: var(--accent); } |
| 1661 | } |
| 1662 | |
| 1663 | // The chevron points down; the pair turns it sideways. |
| 1664 | .slides-step-left .glyph { transform: rotate(90deg); } |
| 1665 | .slides-step-right .glyph { transform: rotate(-90deg); } |
| 1666 | |
| 1667 | .slides-step-off { |
| 1668 | opacity: 0.3; |
| 1669 | |
| 1670 | &:hover { color: var(--text-dim); border-color: var(--border); } |
| 1671 | } |
| 1672 | |
| 1673 | .new-task-form { |
| 1674 | display: flex; |
| 1675 | flex-direction: column; |
| 1676 | gap: 20px; |
| 1677 | padding: 20px 24px 24px; |
| 1678 | } |
| 1679 | |
| 1680 | .new-task-row { |
| 1681 | display: flex; |
| 1682 | gap: 16px; |
| 1683 | } |
| 1684 | |
| 1685 | .new-task-foot { |
| 1686 | display: flex; |
| 1687 | align-items: center; |
| 1688 | gap: 10px; |
| 1689 | } |
| 1690 | |
| 1691 | // -- the edit state --------------------------------------------------------- |
| 1692 | |
| 1693 | .edit { position: relative; } |
| 1694 | |
| 1695 | // Focusable but invisible: it is the state, and a keyboard must be able to |
| 1696 | // reach it. Not `display: none` — that would take it out of the tab order. |
| 1697 | .edit-toggle { |
| 1698 | position: absolute; |
| 1699 | width: 1px; |
| 1700 | height: 1px; |
| 1701 | margin: 0; |
| 1702 | padding: 0; |
| 1703 | opacity: 0; |
| 1704 | pointer-events: none; |
| 1705 | } |
| 1706 | |
| 1707 | .edit-hit { cursor: text; } |
| 1708 | |
| 1709 | .edit-form { display: none; } |
| 1710 | |
| 1711 | .edit:not(.edit-pop) > .edit-toggle:checked ~ .edit-view { display: none; } |
| 1712 | .edit-toggle:checked ~ .edit-form { display: block; } |
| 1713 | .edit-toggle:checked ~ .title-form { display: flex; } |
| 1714 | .detail-head:has(.edit-toggle:checked) .detail-state, |
| 1715 | .detail-head:has(.edit-toggle:checked) .spacer, |
| 1716 | .detail-head:has(.edit-toggle:checked) .detail-esc, |
| 1717 | .detail-head:has(.edit-toggle:checked) .detail-close, |
| 1718 | .detail-head:has(.edit-toggle:checked) .detail-board { |
| 1719 | display: none; |
| 1720 | } |
| 1721 | .edit-toggle:focus-visible ~ .edit-view { |
| 1722 | outline: 2px solid var(--accent); |
| 1723 | outline-offset: 2px; |
| 1724 | border-radius: var(--radius-sm); |
| 1725 | } |
| 1726 | |
| 1727 | .edit-row { |
| 1728 | display: flex; |
| 1729 | align-items: center; |
| 1730 | gap: 8px; |
| 1731 | margin-top: 8px; |
| 1732 | } |
| 1733 | |
| 1734 | .edit-save, |
| 1735 | .comment-post { |
| 1736 | height: var(--control-h); |
| 1737 | padding: 0 12px; |
| 1738 | border: none; |
| 1739 | border-radius: var(--radius); |
| 1740 | background: var(--accent); |
| 1741 | color: var(--surface); |
| 1742 | font-family: inherit; |
| 1743 | font-size: 12px; |
| 1744 | cursor: pointer; |
| 1745 | transition: background var(--dur-fast) var(--ease); |
| 1746 | |
| 1747 | &:hover { background: var(--accent-strong); } |
| 1748 | |
| 1749 | &:disabled { opacity: 0.5; cursor: default; } |
| 1750 | } |
| 1751 | |
| 1752 | .edit-cancel { |
| 1753 | font-size: 12px; |
| 1754 | color: var(--muted); |
| 1755 | cursor: pointer; |
| 1756 | transition: color var(--dur-fast) var(--ease); |
| 1757 | |
| 1758 | &:hover { color: var(--ink); } |
| 1759 | } |
| 1760 | |
| 1761 | // A popover is the same machinery, floated. |
| 1762 | .edit-pop { |
| 1763 | .edit-form { |
| 1764 | position: absolute; |
| 1765 | top: calc(100% + 6px); |
| 1766 | left: 0; |
| 1767 | z-index: 4; |
| 1768 | } |
| 1769 | } |
| 1770 | |
| 1771 | .pop-panel { |
| 1772 | min-width: 200px; |
| 1773 | padding: 8px; |
| 1774 | background: var(--surface); |
| 1775 | border: 1px solid var(--border-strong); |
| 1776 | border-radius: var(--radius-md); |
| 1777 | box-shadow: var(--shadow-2); |
| 1778 | } |
| 1779 | |
| 1780 | // The wide pickers hang off a trigger sitting at a panel's edge; a flat |
| 1781 | // 320px floor walks them past a phone's viewport, where the locked body |
| 1782 | // keeps them unreachable. The floor yields to the screen first. |
| 1783 | .pop-panel-wide { |
| 1784 | min-width: min(320px, calc(100dvw - 32px)); |
| 1785 | max-width: calc(100dvw - 32px); |
| 1786 | } |
| 1787 | |
| 1788 | .pop-list { |
| 1789 | display: flex; |
| 1790 | flex-direction: column; |
| 1791 | gap: 2px; |
| 1792 | } |
| 1793 | |
| 1794 | .pop-list-scroll { |
| 1795 | max-height: 220px; |
| 1796 | overflow-y: auto; |
| 1797 | } |
| 1798 | |
| 1799 | .pop-row-form { display: block; } |
| 1800 | |
| 1801 | .pop-row { |
| 1802 | position: relative; |
| 1803 | display: flex; |
| 1804 | align-items: center; |
| 1805 | gap: 8px; |
| 1806 | width: 100%; |
| 1807 | padding: 4px 6px; |
| 1808 | border: none; |
| 1809 | border-radius: var(--radius-sm); |
| 1810 | background: transparent; |
| 1811 | font-family: inherit; |
| 1812 | font-size: 13px; |
| 1813 | color: var(--ink); |
| 1814 | text-align: left; |
| 1815 | text-decoration: none; |
| 1816 | cursor: pointer; |
| 1817 | transition: background-color var(--dur-fast) var(--ease); |
| 1818 | |
| 1819 | &:hover { background: var(--row-hover); } |
| 1820 | &:has(:checked) { |
| 1821 | background: color-mix(in srgb, var(--accent) 32%, var(--surface)); |
| 1822 | color: var(--accent-ink); |
| 1823 | } |
| 1824 | &:has(:checked):hover { |
| 1825 | background: color-mix(in srgb, var(--accent) 32%, var(--surface)); |
| 1826 | } |
| 1827 | } |
| 1828 | |
| 1829 | .pop-row-name { font-size: 12px; } |
| 1830 | |
| 1831 | |
| 1832 | .pick-row { |
| 1833 | display: flex; |
| 1834 | align-items: center; |
| 1835 | gap: 8px; |
| 1836 | padding: 4px 6px; |
| 1837 | border-radius: var(--radius-sm); |
| 1838 | font-size: 12px; |
| 1839 | cursor: pointer; |
| 1840 | transition: background-color var(--dur-fast) var(--ease); |
| 1841 | |
| 1842 | &:hover { background: var(--row-hover); } |
| 1843 | } |
| 1844 | |
| 1845 | .pick-title { color: var(--muted); } |
| 1846 | |
| 1847 | .pick-direction { |
| 1848 | display: flex; |
| 1849 | align-items: center; |
| 1850 | gap: 12px; |
| 1851 | margin: 8px 0 0; |
| 1852 | padding: 8px 6px 0; |
| 1853 | border: none; |
| 1854 | border-top: 1px solid var(--border); |
| 1855 | font-size: 12px; |
| 1856 | |
| 1857 | label { |
| 1858 | display: inline-flex; |
| 1859 | align-items: center; |
| 1860 | gap: 4px; |
| 1861 | cursor: pointer; |
| 1862 | } |
| 1863 | } |
| 1864 | |
| 1865 | // -- header ----------------------------------------------------------------- |
| 1866 | |
| 1867 | .detail-head { |
| 1868 | display: flex; |
| 1869 | align-items: flex-start; |
| 1870 | gap: 10px; |
| 1871 | // Measured against the artboard: the key sits 26px below the modal's own top |
| 1872 | // edge, and every row under it inherits that. |
| 1873 | padding: 22px 24px 0; |
| 1874 | } |
| 1875 | |
| 1876 | // The generic spacer grows, and here it once split the head's free width |
| 1877 | // with the headline fifty-fifty: a long title wrapped inside half the mast |
| 1878 | // while the other half sat empty. The headline's own flex already pushes |
| 1879 | // the trailing controls (status pill, close, board link) to the right edge, |
| 1880 | // so the spacer has nothing to do in this row. |
| 1881 | .detail-head > .spacer { flex-grow: 0; } |
| 1882 | |
| 1883 | .detail-headline { |
| 1884 | flex: 1; |
| 1885 | min-width: 0; |
| 1886 | } |
| 1887 | |
| 1888 | // -- tab strip ---------------------------------------------------------- |
| 1889 | |
| 1890 | .detail-tabs { |
| 1891 | display: flex; |
| 1892 | gap: 2px; |
| 1893 | flex: none; |
| 1894 | padding: 0 16px; |
| 1895 | border-bottom: 1px solid var(--border); |
| 1896 | } |
| 1897 | |
| 1898 | .detail-tab { |
| 1899 | padding: 9px 10px; |
| 1900 | font-family: var(--font-mono); |
| 1901 | font-size: 10px; |
| 1902 | letter-spacing: 0.08em; |
| 1903 | text-transform: uppercase; |
| 1904 | color: var(--muted); |
| 1905 | } |
| 1906 | |
| 1907 | .detail-tab-on { color: var(--ink); } |
| 1908 | |
| 1909 | .detail-tab-count { margin-left: 4px; color: var(--muted-soft); } |
| 1910 | |
| 1911 | .detail-key { |
| 1912 | display: block; |
| 1913 | font-family: var(--font-mono); |
| 1914 | font-size: 11px; |
| 1915 | color: var(--muted-soft); |
| 1916 | } |
| 1917 | |
| 1918 | // Where this task sits, on one line above its title. A subtask stacked its |
| 1919 | // parent's key above its own read as two near-identical mono strings with |
| 1920 | // nothing to say which was which; left-to-right order says it instead, and |
| 1921 | // the parent's title is what makes its key legible at all. |
| 1922 | .detail-crumbs { |
| 1923 | display: flex; |
| 1924 | align-items: baseline; |
| 1925 | gap: 6px; |
| 1926 | min-width: 0; |
| 1927 | // The key used to sit flush under a much larger title and got away with |
| 1928 | // it; a crumb is a whole line of text with an underline dipping below its |
| 1929 | // baseline, and flush reads as collided. |
| 1930 | margin-bottom: 9px; |
| 1931 | // The parent's title is the only part allowed to give way; a key broken |
| 1932 | // across two lines is not a key any more. |
| 1933 | flex-wrap: nowrap; |
| 1934 | |
| 1935 | .detail-key { |
| 1936 | flex: none; |
| 1937 | white-space: nowrap; |
| 1938 | } |
| 1939 | } |
| 1940 | |
| 1941 | .detail-crumb { |
| 1942 | display: flex; |
| 1943 | align-items: baseline; |
| 1944 | gap: 6px; |
| 1945 | min-width: 0; |
| 1946 | flex: 0 1 auto; |
| 1947 | color: var(--muted); |
| 1948 | text-decoration: none; |
| 1949 | |
| 1950 | &:hover { |
| 1951 | color: var(--ink); |
| 1952 | |
| 1953 | .detail-crumb-title { text-decoration: underline; } |
| 1954 | } |
| 1955 | } |
| 1956 | |
| 1957 | .detail-crumb-key { |
| 1958 | flex: none; |
| 1959 | font-family: var(--font-mono); |
| 1960 | font-size: 11px; |
| 1961 | } |
| 1962 | |
| 1963 | // Underlined at rest, solid: the ledger skin marks a record's own key with a |
| 1964 | // *dotted* underline, so without this the one thing on the line that is not |
| 1965 | // a link was the only thing that looked like one. |
| 1966 | .detail-crumb-title { |
| 1967 | overflow: hidden; |
| 1968 | text-overflow: ellipsis; |
| 1969 | white-space: nowrap; |
| 1970 | max-width: 28ch; |
| 1971 | flex: 0 1 auto; |
| 1972 | min-width: 3ch; |
| 1973 | font-size: 12px; |
| 1974 | text-decoration: underline; |
| 1975 | text-decoration-color: var(--border-strong); |
| 1976 | text-underline-offset: 3px; |
| 1977 | } |
| 1978 | |
| 1979 | .detail-crumb:hover .detail-crumb-title { |
| 1980 | text-decoration-color: currentColor; |
| 1981 | } |
| 1982 | |
| 1983 | .detail-crumb-sep { |
| 1984 | flex: none; |
| 1985 | font-size: 11px; |
| 1986 | color: var(--muted-soft); |
| 1987 | } |
| 1988 | |
| 1989 | .detail-title { |
| 1990 | margin: 0; |
| 1991 | font-size: 18px; |
| 1992 | font-weight: 600; |
| 1993 | letter-spacing: -0.01em; |
| 1994 | line-height: 1.3; |
| 1995 | // Same trap as the prose: an unbroken run would push the head row wider |
| 1996 | // than the panel instead of folding. |
| 1997 | overflow-wrap: anywhere; |
| 1998 | } |
| 1999 | |
| 2000 | .title-form { |
| 2001 | align-items: center; |
| 2002 | gap: 8px; |
| 2003 | } |
| 2004 | |
| 2005 | .title-input { |
| 2006 | flex: 1; |
| 2007 | min-width: 0; |
| 2008 | height: var(--control-h); |
| 2009 | padding: 0 8px; |
| 2010 | border: 1px solid var(--border-strong); |
| 2011 | border-radius: var(--radius); |
| 2012 | background: var(--surface); |
| 2013 | font-family: inherit; |
| 2014 | font-size: 18px; |
| 2015 | font-weight: 600; |
| 2016 | color: var(--ink); |
| 2017 | } |
| 2018 | |
| 2019 | .detail-esc { |
| 2020 | margin-top: 4px; |
| 2021 | font-family: var(--font-mono); |
| 2022 | font-size: 10px; |
| 2023 | color: var(--muted); |
| 2024 | text-transform: uppercase; |
| 2025 | letter-spacing: 0.08em; |
| 2026 | } |
| 2027 | |
| 2028 | .detail-close { |
| 2029 | display: inline-flex; |
| 2030 | align-items: center; |
| 2031 | justify-content: center; |
| 2032 | width: 36px; |
| 2033 | height: 36px; |
| 2034 | border: none; |
| 2035 | border-radius: var(--radius); |
| 2036 | background: transparent; |
| 2037 | color: var(--muted); |
| 2038 | text-decoration: none; |
| 2039 | cursor: pointer; |
| 2040 | transition: background-color var(--dur-fast) var(--ease); |
| 2041 | |
| 2042 | &:hover { background: var(--row-hover); } |
| 2043 | } |
| 2044 | |
| 2045 | .detail-state { |
| 2046 | display: inline-flex; |
| 2047 | align-items: center; |
| 2048 | } |
| 2049 | |
| 2050 | .detail-board { |
| 2051 | align-self: center; |
| 2052 | white-space: nowrap; |
| 2053 | } |
| 2054 | |
| 2055 | // -- the field row ---------------------------------------------------------- |
| 2056 | |
| 2057 | // Status and a date are short and sit side by side; the people carry names, |
| 2058 | // which no third of a panel holds, so they take a row of their own. |
| 2059 | .detail-fields { |
| 2060 | display: grid; |
| 2061 | grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); |
| 2062 | gap: 12px; |
| 2063 | padding: 18px 24px 0; |
| 2064 | margin-top: 2px; |
| 2065 | } |
| 2066 | |
| 2067 | .detail-field-people { |
| 2068 | grid-column: 1 / -1; |
| 2069 | } |
| 2070 | |
| 2071 | .detail-field { |
| 2072 | display: flex; |
| 2073 | flex-direction: column; |
| 2074 | gap: 6px; |
| 2075 | min-width: 0; |
| 2076 | } |
| 2077 | |
| 2078 | .detail-label { |
| 2079 | font-family: var(--font-mono); |
| 2080 | font-size: 10px; |
| 2081 | letter-spacing: 0.08em; |
| 2082 | text-transform: uppercase; |
| 2083 | color: var(--muted-soft); |
| 2084 | } |
| 2085 | |
| 2086 | .detail-count { |
| 2087 | font-family: var(--font-mono); |
| 2088 | font-size: 11px; |
| 2089 | font-variant-numeric: tabular-nums; |
| 2090 | color: var(--muted-soft); |
| 2091 | } |
| 2092 | |
| 2093 | // Every value in the field row wears the same box, so a ``, a label |
| 2094 | // and a plain span all line up at 36px. |
| 2095 | .field-box, |
| 2096 | .status-form { |
| 2097 | display: flex; |
| 2098 | align-items: center; |
| 2099 | gap: 8px; |
| 2100 | height: var(--control-h); |
| 2101 | padding: 0 10px; |
| 2102 | background: var(--field-bg); |
| 2103 | border: 1px solid var(--border-strong); |
| 2104 | border-radius: var(--radius); |
| 2105 | font-size: 13px; |
| 2106 | color: var(--ink); |
| 2107 | cursor: pointer; |
| 2108 | } |
| 2109 | |
| 2110 | .field-box { |
| 2111 | font-size: 13px; |
| 2112 | color: var(--ink); |
| 2113 | cursor: pointer; |
| 2114 | } |
| 2115 | |
| 2116 | .field-text { |
| 2117 | flex: 1; |
| 2118 | min-width: 0; |
| 2119 | overflow: hidden; |
| 2120 | text-overflow: ellipsis; |
| 2121 | white-space: nowrap; |
| 2122 | } |
| 2123 | |
| 2124 | // The board's Sort and Project selects keep their natural width, but a |
| 2125 | // selected project can carry any name a workspace typed. Box and select |
| 2126 | // shrink under pressure and the label ellipsizes, instead of pushing the |
| 2127 | // bar past the viewport; the bar itself wraps when the row still outruns |
| 2128 | // the width. |
| 2129 | .field-box-sort { |
| 2130 | flex: 0 1 auto; |
| 2131 | min-width: 0; |
| 2132 | |
| 2133 | .status-select { |
| 2134 | flex: 0 1 auto; |
| 2135 | width: auto; |
| 2136 | min-width: 0; |
| 2137 | max-width: 220px; |
| 2138 | overflow: hidden; |
| 2139 | text-overflow: ellipsis; |
| 2140 | white-space: nowrap; |
| 2141 | } |
| 2142 | } |
| 2143 | |
| 2144 | // The board's search field is the bar's third field-box, and its typing |
| 2145 | // area is the house's own type-as-filter input: the rules `.dd-search` |
| 2146 | // wears inside dropdown panels, freed of the panel-only block geometry and |
| 2147 | // filling the box past its label. |
| 2148 | .field-box-search { |
| 2149 | flex: 0 1 240px; |
| 2150 | min-width: 0; |
| 2151 | |
| 2152 | .field-text { flex: none; } |
| 2153 | |
| 2154 | .dd-search { |
| 2155 | flex: 1; |
| 2156 | min-width: 0; |
| 2157 | width: auto; |
| 2158 | height: auto; |
| 2159 | margin-bottom: 0; |
| 2160 | padding: 0; |
| 2161 | } |
| 2162 | } |
| 2163 | |
| 2164 | .glyph { |
| 2165 | flex: none; |
| 2166 | color: var(--muted-soft); |
| 2167 | } |
| 2168 | |
| 2169 | .status-dot { |
| 2170 | flex: none; |
| 2171 | width: 8px; |
| 2172 | height: 8px; |
| 2173 | border-radius: 50%; |
| 2174 | background: var(--muted-soft); |
| 2175 | } |
| 2176 | |
| 2177 | .status-dot-done { background: var(--positive); } |
| 2178 | |
| 2179 | // The select carries no chrome of its own: the box around it is the control. |
| 2180 | .status-select { |
| 2181 | flex: 1; |
| 2182 | min-width: 0; |
| 2183 | border: none; |
| 2184 | background: transparent; |
| 2185 | appearance: none; |
| 2186 | font-family: inherit; |
| 2187 | font-size: 13px; |
| 2188 | color: var(--ink); |
| 2189 | cursor: pointer; |
| 2190 | } |
| 2191 | |
| 2192 | .detail-overdue { |
| 2193 | border-color: var(--danger-border); |
| 2194 | color: var(--danger); |
| 2195 | |
| 2196 | .glyph { color: var(--danger); } |
| 2197 | } |
| 2198 | |
| 2199 | // -- deadline calendar ------------------------------------------------------- |
| 2200 | |
| 2201 | .datepick-panel { width: 190px; } |
| 2202 | |
| 2203 | // The time row rides the same panel as the day grid: two two-digit boxes |
| 2204 | // and a colon between them, one line. An input's intrinsic width is wider |
| 2205 | // than its half, so each box fills its half and centers what is typed. |
| 2206 | .datepick-time { |
| 2207 | display: flex; |
| 2208 | gap: 4px; |
| 2209 | align-items: center; |
| 2210 | margin-top: 6px; |
| 2211 | } |
| 2212 | |
| 2213 | .datepick-time .field-input { |
| 2214 | width: 100%; |
| 2215 | min-width: 0; |
| 2216 | text-align: center; |
| 2217 | } |
| 2218 | |
| 2219 | .datepick-colon { |
| 2220 | font-family: var(--font-mono); |
| 2221 | color: var(--ink-soft); |
| 2222 | } |
| 2223 | |
| 2224 | .datepick-head { |
| 2225 | display: flex; |
| 2226 | align-items: center; |
| 2227 | justify-content: space-between; |
| 2228 | margin-bottom: 6px; |
| 2229 | } |
| 2230 | |
| 2231 | .datepick-title { |
| 2232 | font-family: var(--font-mono); |
| 2233 | font-size: 11px; |
| 2234 | color: var(--ink); |
| 2235 | } |
| 2236 | |
| 2237 | .datepick-nav { |
| 2238 | display: inline-flex; |
| 2239 | align-items: center; |
| 2240 | justify-content: center; |
| 2241 | width: 20px; |
| 2242 | height: 20px; |
| 2243 | border: none; |
| 2244 | border-radius: var(--radius-sm); |
| 2245 | background: transparent; |
| 2246 | color: var(--muted); |
| 2247 | cursor: pointer; |
| 2248 | transition: background-color var(--dur-fast) var(--ease); |
| 2249 | |
| 2250 | &:hover { background: var(--row-hover); } |
| 2251 | } |
| 2252 | |
| 2253 | .datepick-prev .glyph { transform: rotate(90deg); } |
| 2254 | .datepick-next .glyph { transform: rotate(-90deg); } |
| 2255 | |
| 2256 | .datepick-weekdays, |
| 2257 | .datepick-grid { |
| 2258 | display: grid; |
| 2259 | grid-template-columns: repeat(7, 1fr); |
| 2260 | } |
| 2261 | |
| 2262 | .datepick-weekdays { |
| 2263 | margin-bottom: 2px; |
| 2264 | font-family: var(--font-mono); |
| 2265 | font-size: 10px; |
| 2266 | color: var(--muted-soft); |
| 2267 | text-align: center; |
| 2268 | } |
| 2269 | |
| 2270 | .datepick-cell { |
| 2271 | height: 24px; |
| 2272 | border: none; |
| 2273 | background: transparent; |
| 2274 | font-family: inherit; |
| 2275 | font-size: 11px; |
| 2276 | } |
| 2277 | |
| 2278 | .datepick-day { |
| 2279 | border-radius: var(--radius-sm); |
| 2280 | color: var(--ink); |
| 2281 | cursor: pointer; |
| 2282 | font-variant-numeric: tabular-nums; |
| 2283 | transition: background-color var(--dur-fast) var(--ease); |
| 2284 | |
| 2285 | &:hover { background: var(--row-hover); } |
| 2286 | } |
| 2287 | |
| 2288 | .datepick-today { box-shadow: inset 0 0 0 1px var(--accent); } |
| 2289 | |
| 2290 | .datepick-selected { |
| 2291 | background: var(--accent); |
| 2292 | color: var(--surface); |
| 2293 | |
| 2294 | &:hover { background: var(--accent); } |
| 2295 | } |
| 2296 | |
| 2297 | .datepick-foot { |
| 2298 | display: flex; |
| 2299 | align-items: center; |
| 2300 | justify-content: space-between; |
| 2301 | margin-top: 6px; |
| 2302 | padding-top: 6px; |
| 2303 | border-top: 1px solid var(--border); |
| 2304 | } |
| 2305 | |
| 2306 | .datepick-action { |
| 2307 | border: none; |
| 2308 | background: transparent; |
| 2309 | font-family: inherit; |
| 2310 | font-size: 12px; |
| 2311 | color: var(--muted); |
| 2312 | cursor: pointer; |
| 2313 | transition: color var(--dur-fast) var(--ease); |
| 2314 | |
| 2315 | &:hover { color: var(--ink); } |
| 2316 | } |
| 2317 | |
| 2318 | // -- assignees -------------------------------------------------------------- |
| 2319 | |
| 2320 | .detail-assignees { |
| 2321 | display: flex; |
| 2322 | align-items: center; |
| 2323 | gap: 6px; |
| 2324 | min-width: 0; |
| 2325 | height: 36px; |
| 2326 | padding: 0 6px; |
| 2327 | background: var(--field-bg); |
| 2328 | border: 1px solid var(--border-strong); |
| 2329 | border-radius: var(--radius); |
| 2330 | } |
| 2331 | |
| 2332 | // A chip shrinks before it overflows: the field box is one cell of a three |
| 2333 | // column grid, so a long name has to fold into an ellipsis rather than push |
| 2334 | // its own remove cross — and the round "+" — out past the box edge. |
| 2335 | .assignee-chip { |
| 2336 | display: inline-flex; |
| 2337 | flex: 0 1 auto; |
| 2338 | min-width: 0; |
| 2339 | align-items: center; |
| 2340 | gap: 4px; |
| 2341 | white-space: nowrap; |
| 2342 | padding: 3px 6px 3px 3px; |
| 2343 | border-radius: var(--radius-sm); |
| 2344 | background: var(--surface); |
| 2345 | border: 1px solid var(--border); |
| 2346 | } |
| 2347 | |
| 2348 | .assignee-name { |
| 2349 | flex: 0 1 auto; |
| 2350 | min-width: 0; |
| 2351 | overflow: hidden; |
| 2352 | text-overflow: ellipsis; |
| 2353 | white-space: nowrap; |
| 2354 | font-size: 12px; |
| 2355 | color: var(--ink); |
| 2356 | } |
| 2357 | |
| 2358 | // Two people share one cell, so each name gives up half its room before the |
| 2359 | // policy below drops names altogether. |
| 2360 | // Four names fit the full-width row, sharing the slack evenly. Past that the |
| 2361 | // labels go together — never half of them, which reads as a rendering fault — |
| 2362 | // and the chips stand as avatars, legible where a clipped name is not. The |
| 2363 | // round "+" keeps its size either way. |
| 2364 | .detail-assignees:has(.assignee-chip:nth-child(5)) { |
| 2365 | .assignee-name { display: none; } |
| 2366 | } |
| 2367 | |
| 2368 | .assignee-drop { display: inline-flex; } |
| 2369 | |
| 2370 | .assignee-remove { |
| 2371 | display: inline-flex; |
| 2372 | flex: none; |
| 2373 | align-items: center; |
| 2374 | justify-content: center; |
| 2375 | width: 14px; |
| 2376 | height: 14px; |
| 2377 | border: none; |
| 2378 | background: transparent; |
| 2379 | color: var(--muted-soft); |
| 2380 | cursor: pointer; |
| 2381 | transition: color var(--dur-fast) var(--ease); |
| 2382 | |
| 2383 | &:hover { color: var(--danger); } |
| 2384 | } |
| 2385 | |
| 2386 | // The artboard's round dashed "+". It is a label, and the popover it opens |
| 2387 | // holds one tiny form per person — a submit button's own name/value does not |
| 2388 | // survive `ActionForm`, so each row carries its own hidden field instead. |
| 2389 | .assignee-add { |
| 2390 | display: inline-flex; |
| 2391 | flex: none; |
| 2392 | align-items: center; |
| 2393 | justify-content: center; |
| 2394 | width: var(--control-h); |
| 2395 | height: var(--control-h); |
| 2396 | border: 1px dashed var(--border-strong); |
| 2397 | border-radius: 50%; |
| 2398 | color: var(--muted-soft); |
| 2399 | cursor: pointer; |
| 2400 | transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); |
| 2401 | |
| 2402 | &:hover { color: var(--ink); border-color: var(--muted-soft); } |
| 2403 | } |
| 2404 | |
| 2405 | // The round "+" is the only way to assign anyone, so it never gets crowded off |
| 2406 | // the row: the chips give up width first. |
| 2407 | .detail-assignees > .edit { flex: none; } |
| 2408 | |
| 2409 | .assignee-pop .edit-form { left: auto; right: 0; } |
| 2410 | |
| 2411 | // -- blocks ----------------------------------------------------------------- |
| 2412 | |
| 2413 | .detail-block { |
| 2414 | display: flex; |
| 2415 | flex-direction: column; |
| 2416 | gap: 10px; |
| 2417 | padding: 22px 24px 0; |
| 2418 | } |
| 2419 | |
| 2420 | .detail-block-head { |
| 2421 | display: flex; |
| 2422 | align-items: center; |
| 2423 | gap: 8px; |
| 2424 | margin-bottom: -2px; |
| 2425 | } |
| 2426 | |
| 2427 | .detail-prose { |
| 2428 | display: block; |
| 2429 | margin: 0; |
| 2430 | min-width: 0; |
| 2431 | font-size: 13px; |
| 2432 | line-height: 1.6; |
| 2433 | color: var(--ink-soft); |
| 2434 | white-space: pre-wrap; |
| 2435 | // A pasted URL or an unbroken run of characters has no space to wrap at; |
| 2436 | // without this it runs off the panel instead of folding. |
| 2437 | overflow-wrap: anywhere; |
| 2438 | } |
| 2439 | |
| 2440 | .detail-prose-empty { color: var(--muted-soft); } |
| 2441 | |
| 2442 | // One tab's region owns the whole body: the block stretches, and the list |
| 2443 | // inside it pans rather than stopping short and leaving the panel empty |
| 2444 | // below (the old 320px cap made sense only when every region shared one |
| 2445 | // scrolling column). |
| 2446 | .detail-body { display: flex; flex-direction: column; } |
| 2447 | |
| 2448 | .detail-block-fill { |
| 2449 | flex: 1; |
| 2450 | min-height: 0; |
| 2451 | display: flex; |
| 2452 | flex-direction: column; |
| 2453 | |
| 2454 | > .comment-list, |
| 2455 | > .activity-list { |
| 2456 | flex: 1; |
| 2457 | min-height: 0; |
| 2458 | max-height: none; |
| 2459 | } |
| 2460 | } |
| 2461 | |
| 2462 | .detail-quiet { |
| 2463 | margin: 0; |
| 2464 | font-size: 13px; |
| 2465 | color: var(--muted-soft); |
| 2466 | } |
| 2467 | |
| 2468 | .detail-textarea, |
| 2469 | .comment-input { |
| 2470 | width: 100%; |
| 2471 | padding: 8px 10px; |
| 2472 | border: 1px solid var(--border-strong); |
| 2473 | border-radius: var(--radius); |
| 2474 | background: var(--surface); |
| 2475 | font-family: inherit; |
| 2476 | font-size: 13px; |
| 2477 | line-height: 1.6; |
| 2478 | color: var(--ink); |
| 2479 | resize: vertical; |
| 2480 | } |
| 2481 | |
| 2482 | |
| 2483 | // -- dependencies ----------------------------------------------------------- |
| 2484 | |
| 2485 | .dep-chip, |
| 2486 | .file-chip { |
| 2487 | display: inline-flex; |
| 2488 | align-items: center; |
| 2489 | gap: 4px; |
| 2490 | height: 24px; |
| 2491 | padding: 0 8px; |
| 2492 | border: 1px solid var(--border-strong); |
| 2493 | border-radius: var(--radius-sm); |
| 2494 | background: var(--surface); |
| 2495 | font-size: 12px; |
| 2496 | color: var(--muted); |
| 2497 | } |
| 2498 | |
| 2499 | .dep-chip { |
| 2500 | cursor: pointer; |
| 2501 | transition: color var(--dur-fast) var(--ease); |
| 2502 | |
| 2503 | &:hover { color: var(--ink); } |
| 2504 | } |
| 2505 | |
| 2506 | .dep-chip-text { font-size: 12px; } |
| 2507 | |
| 2508 | .link-pop .edit-form { left: auto; right: 0; } |
| 2509 | |
| 2510 | .dep-list { |
| 2511 | display: flex; |
| 2512 | flex-direction: column; |
| 2513 | gap: 6px; |
| 2514 | } |
| 2515 | |
| 2516 | .dep-row { |
| 2517 | display: flex; |
| 2518 | align-items: center; |
| 2519 | gap: 10px; |
| 2520 | padding: 10px 12px; |
| 2521 | border: 1px solid var(--border); |
| 2522 | border-radius: var(--radius-md); |
| 2523 | background: var(--field-bg); |
| 2524 | font-size: 13px; |
| 2525 | } |
| 2526 | |
| 2527 | // The parts fill their tab and pan inside it, the house way: a task with |
| 2528 | // forty of them does not scroll the document. |
| 2529 | .subtask-list { |
| 2530 | display: flex; |
| 2531 | flex-direction: column; |
| 2532 | min-height: 0; |
| 2533 | overflow-y: auto; |
| 2534 | scrollbar-width: none; |
| 2535 | |
| 2536 | &::-webkit-scrollbar { display: none; } |
| 2537 | } |
| 2538 | |
| 2539 | // A part is a lighter thing than a dependency: no box of its own, a rule |
| 2540 | // between rows instead, so a list of eight does not read as eight cards. |
| 2541 | .subtask-row { |
| 2542 | display: flex; |
| 2543 | align-items: center; |
| 2544 | gap: 10px; |
| 2545 | padding: 8px 4px; |
| 2546 | border-bottom: 1px solid var(--border); |
| 2547 | font-size: 13px; |
| 2548 | |
| 2549 | &:last-child { border-bottom: none; } |
| 2550 | } |
| 2551 | |
| 2552 | // The key and the title are one target, so the row has one way in rather |
| 2553 | // than two adjacent links a pointer can fall between. |
| 2554 | .subtask-open { |
| 2555 | display: flex; |
| 2556 | align-items: center; |
| 2557 | gap: 10px; |
| 2558 | min-width: 0; |
| 2559 | color: inherit; |
| 2560 | text-decoration: none; |
| 2561 | |
| 2562 | &:hover .subtask-title { text-decoration: underline; } |
| 2563 | } |
| 2564 | |
| 2565 | .subtask-mark { |
| 2566 | display: flex; |
| 2567 | color: var(--muted-soft); |
| 2568 | } |
| 2569 | |
| 2570 | .subtask-key { |
| 2571 | font-family: var(--font-mono); |
| 2572 | font-size: 11px; |
| 2573 | color: var(--muted); |
| 2574 | } |
| 2575 | |
| 2576 | .subtask-title { |
| 2577 | overflow: hidden; |
| 2578 | text-overflow: ellipsis; |
| 2579 | white-space: nowrap; |
| 2580 | } |
| 2581 | |
| 2582 | .subtask-status { |
| 2583 | font-family: var(--font-mono); |
| 2584 | font-size: 11px; |
| 2585 | color: var(--muted-soft); |
| 2586 | } |
| 2587 | |
| 2588 | // A finished part stays legible and plainly out of the way. The tick and |
| 2589 | // the muted title each say it once; there is no strikethrough on top, which |
| 2590 | // only made the title harder to read and fought the hover underline. |
| 2591 | .subtask-row-done { |
| 2592 | .subtask-title { color: var(--muted); } |
| 2593 | } |
| 2594 | |
| 2595 | .subtask-new { |
| 2596 | display: flex; |
| 2597 | align-items: center; |
| 2598 | gap: 8px; |
| 2599 | margin-bottom: 8px; |
| 2600 | } |
| 2601 | |
| 2602 | .subtask-new-input { |
| 2603 | flex: 1; |
| 2604 | min-width: 0; |
| 2605 | } |
| 2606 | |
| 2607 | .dep-row-waiting { |
| 2608 | background: var(--warn-tint-soft); |
| 2609 | border-color: var(--warn-border); |
| 2610 | |
| 2611 | .dep-tag, |
| 2612 | .dep-note, |
| 2613 | .glyph { color: var(--warn-ink); } |
| 2614 | } |
| 2615 | |
| 2616 | .dep-tag { |
| 2617 | flex: none; |
| 2618 | width: 78px; |
| 2619 | font-family: var(--font-mono); |
| 2620 | font-size: 10px; |
| 2621 | letter-spacing: 0.06em; |
| 2622 | color: var(--muted-soft); |
| 2623 | } |
| 2624 | |
| 2625 | .dep-tick { color: var(--positive); } |
| 2626 | |
| 2627 | .dep-key { |
| 2628 | flex: none; |
| 2629 | font-family: var(--font-mono); |
| 2630 | font-size: 11px; |
| 2631 | color: var(--muted-soft); |
| 2632 | } |
| 2633 | |
| 2634 | .dep-title { |
| 2635 | min-width: 0; |
| 2636 | overflow: hidden; |
| 2637 | text-overflow: ellipsis; |
| 2638 | white-space: nowrap; |
| 2639 | } |
| 2640 | |
| 2641 | .dep-note { |
| 2642 | flex: none; |
| 2643 | font-size: 11px; |
| 2644 | color: var(--muted-soft); |
| 2645 | } |
| 2646 | |
| 2647 | // The dependency row's way in, the subtask row's own shape (`subtask-open`): |
| 2648 | // tag, key, title and note are one target, so the whole stretch between the |
| 2649 | // row's edges and the X is one anchor — `flex: 1` keeps the note at the row's |
| 2650 | // right edge where it stood before the row learned to open its task. |
| 2651 | .dep-link { |
| 2652 | display: flex; |
| 2653 | flex: 1; |
| 2654 | align-items: center; |
| 2655 | gap: 10px; |
| 2656 | min-width: 0; |
| 2657 | color: inherit; |
| 2658 | text-decoration: none; |
| 2659 | |
| 2660 | &:hover .dep-title { text-decoration: underline; } |
| 2661 | } |
| 2662 | |
| 2663 | .dep-unlink-form { display: inline-flex; } |
| 2664 | |
| 2665 | .dep-unlink { |
| 2666 | display: inline-flex; |
| 2667 | align-items: center; |
| 2668 | justify-content: center; |
| 2669 | width: 24px; |
| 2670 | height: 24px; |
| 2671 | border: none; |
| 2672 | border-radius: var(--radius-sm); |
| 2673 | background: transparent; |
| 2674 | color: var(--muted-soft); |
| 2675 | cursor: pointer; |
| 2676 | transition: color var(--dur-fast) var(--ease); |
| 2677 | |
| 2678 | &:hover { color: var(--danger); } |
| 2679 | } |
| 2680 | |
| 2681 | // -- files -------------------------------------------------------------- |
| 2682 | |
| 2683 | .file-list { |
| 2684 | display: flex; |
| 2685 | flex-direction: column; |
| 2686 | align-items: stretch; |
| 2687 | gap: 6px; |
| 2688 | } |
| 2689 | |
| 2690 | // Rows, not chips: every attachment takes the full width, the name takes |
| 2691 | // what is left, and size/note/remove hold their columns — a long name |
| 2692 | // ellipsizes instead of wrapping the row's tail onto a second line. |
| 2693 | .file-list .file-chip { |
| 2694 | display: flex; |
| 2695 | width: 100%; |
| 2696 | gap: 8px; |
| 2697 | } |
| 2698 | |
| 2699 | .file-chip-name { |
| 2700 | flex: 1; |
| 2701 | min-width: 0; |
| 2702 | overflow: hidden; |
| 2703 | text-overflow: ellipsis; |
| 2704 | white-space: nowrap; |
| 2705 | color: inherit; |
| 2706 | text-decoration: none; |
| 2707 | transition: color var(--dur-fast) var(--ease); |
| 2708 | |
| 2709 | &:hover { color: var(--ink); } |
| 2710 | } |
| 2711 | |
| 2712 | .file-chip-size { |
| 2713 | flex: none; |
| 2714 | white-space: nowrap; |
| 2715 | font-family: var(--font-mono); |
| 2716 | font-size: 11px; |
| 2717 | color: var(--muted-soft); |
| 2718 | } |
| 2719 | |
| 2720 | .file-chip-note { |
| 2721 | flex: none; |
| 2722 | white-space: nowrap; |
| 2723 | font-size: 11px; |
| 2724 | color: var(--muted-soft); |
| 2725 | } |
| 2726 | |
| 2727 | .file-chip-drop-form { display: inline-flex; flex: none; } |
| 2728 | |
| 2729 | .file-chip-drop { |
| 2730 | display: inline-flex; |
| 2731 | align-items: center; |
| 2732 | justify-content: center; |
| 2733 | width: 20px; |
| 2734 | height: 20px; |
| 2735 | border: none; |
| 2736 | border-radius: var(--radius-sm); |
| 2737 | background: transparent; |
| 2738 | color: var(--muted-soft); |
| 2739 | cursor: pointer; |
| 2740 | transition: color var(--dur-fast) var(--ease); |
| 2741 | |
| 2742 | &:hover { color: var(--danger); } |
| 2743 | } |
| 2744 | |
| 2745 | .file-upload { |
| 2746 | display: flex; |
| 2747 | align-items: center; |
| 2748 | gap: 8px; |
| 2749 | margin-top: 10px; |
| 2750 | } |
| 2751 | |
| 2752 | // A button, not a text field: `.field-box`'s recessed `--field-bg` reads as |
| 2753 | // pressed here, so it sits back on `--surface` like `.quiet`/`.detail-delete`. |
| 2754 | .file-upload-box { |
| 2755 | position: relative; |
| 2756 | flex: none; |
| 2757 | max-width: 220px; |
| 2758 | background: var(--surface); |
| 2759 | transition: border-color var(--dur-fast) var(--ease); |
| 2760 | cursor: pointer; |
| 2761 | |
| 2762 | &:hover { border-color: var(--accent); } |
| 2763 | // A drag parked over the box wears the same accent as `:hover`. |
| 2764 | &.file-upload-over { border-color: var(--accent); color: var(--accent); } |
| 2765 | |
| 2766 | &:has(.file-upload-input:focus-visible) { |
| 2767 | outline: 2px solid var(--accent); |
| 2768 | outline-offset: 1px; |
| 2769 | } |
| 2770 | } |
| 2771 | |
| 2772 | .file-upload-name { max-width: 160px; } |
| 2773 | |
| 2774 | .file-upload-input { |
| 2775 | position: absolute; |
| 2776 | width: 1px; |
| 2777 | height: 1px; |
| 2778 | clip-path: inset(50%); |
| 2779 | opacity: 0; |
| 2780 | } |
| 2781 | |
| 2782 | // Upload progress: a client-made hairline along the upload box's inside |
| 2783 | // bottom edge; the accent fill tracks the request as it climbs. No text and |
| 2784 | // no native `` chrome — the box is the control, the rule is the |
| 2785 | // meter, in the same border/accent pair the box itself wears. |
| 2786 | .upload-progress { |
| 2787 | position: absolute; |
| 2788 | left: 1px; |
| 2789 | right: 22px; |
| 2790 | bottom: 1px; |
| 2791 | height: 2px; |
| 2792 | background: var(--border); |
| 2793 | border-radius: var(--radius-sm); |
| 2794 | pointer-events: none; |
| 2795 | overflow: hidden; |
| 2796 | } |
| 2797 | |
| 2798 | .upload-progress-fill { |
| 2799 | width: 0; |
| 2800 | height: 100%; |
| 2801 | background: var(--accent); |
| 2802 | transition: width var(--dur-fast) var(--ease); |
| 2803 | } |
| 2804 | |
| 2805 | // The cancel cross is the chip remove control seconded to the bar: same |
| 2806 | // `.file-chip-drop` 20px hit box, glyph and hover-to-danger, only moved to |
| 2807 | // the track's right end. It cancels the request and nothing else — never |
| 2808 | // the picker the box itself is. |
| 2809 | .upload-progress-drop { |
| 2810 | position: absolute; |
| 2811 | right: 1px; |
| 2812 | bottom: 1px; |
| 2813 | } |
| 2814 | |
| 2815 | // -- comments --------------------------------------------------------------- |
| 2816 | |
| 2817 | .comment-list { |
| 2818 | display: flex; |
| 2819 | flex-direction: column; |
| 2820 | gap: 14px; |
| 2821 | max-height: 320px; |
| 2822 | overflow-y: auto; |
| 2823 | scrollbar-width: none; |
| 2824 | |
| 2825 | &::-webkit-scrollbar { display: none; } |
| 2826 | } |
| 2827 | |
| 2828 | .comment { |
| 2829 | display: flex; |
| 2830 | align-items: flex-start; |
| 2831 | gap: 10px; |
| 2832 | } |
| 2833 | |
| 2834 | .comment-said { |
| 2835 | min-width: 0; |
| 2836 | flex: 1; |
| 2837 | } |
| 2838 | |
| 2839 | .comment-head { |
| 2840 | display: flex; |
| 2841 | align-items: baseline; |
| 2842 | gap: 8px; |
| 2843 | } |
| 2844 | |
| 2845 | .comment-who { |
| 2846 | font-size: 13px; |
| 2847 | font-weight: 600; |
| 2848 | color: var(--ink); |
| 2849 | } |
| 2850 | |
| 2851 | .comment-when { |
| 2852 | font-family: var(--font-mono); |
| 2853 | font-size: 11px; |
| 2854 | color: var(--muted-soft); |
| 2855 | } |
| 2856 | |
| 2857 | .comment-body { |
| 2858 | margin-top: 3px; |
| 2859 | font-size: 13px; |
| 2860 | line-height: 1.55; |
| 2861 | color: var(--ink-soft); |
| 2862 | white-space: pre-wrap; |
| 2863 | // pre-wrap keeps the author's lines but still needs somewhere to break |
| 2864 | // a run that never ends. |
| 2865 | overflow-wrap: anywhere; |
| 2866 | } |
| 2867 | |
| 2868 | .comment-composer { |
| 2869 | display: flex; |
| 2870 | flex-direction: column; |
| 2871 | gap: 8px; |
| 2872 | margin-top: 14px; |
| 2873 | } |
| 2874 | |
| 2875 | .comment-input { font-size: 13px; } |
| 2876 | |
| 2877 | .comment-row { |
| 2878 | display: flex; |
| 2879 | align-items: center; |
| 2880 | gap: 8px; |
| 2881 | } |
| 2882 | |
| 2883 | // -- activity --------------------------------------------------------------- |
| 2884 | |
| 2885 | .activity-list { |
| 2886 | display: flex; |
| 2887 | flex-direction: column; |
| 2888 | gap: 10px; |
| 2889 | max-height: 320px; |
| 2890 | overflow-y: auto; |
| 2891 | scrollbar-width: none; |
| 2892 | |
| 2893 | &::-webkit-scrollbar { display: none; } |
| 2894 | } |
| 2895 | |
| 2896 | .activity-line { |
| 2897 | display: flex; |
| 2898 | flex-wrap: wrap; |
| 2899 | align-items: baseline; |
| 2900 | gap: 6px 10px; |
| 2901 | font-size: 12px; |
| 2902 | color: var(--muted); |
| 2903 | } |
| 2904 | |
| 2905 | .activity-stamp { |
| 2906 | flex: none; |
| 2907 | font-family: var(--font-mono); |
| 2908 | font-size: 11px; |
| 2909 | color: var(--muted-soft); |
| 2910 | } |
| 2911 | |
| 2912 | .activity-who { |
| 2913 | flex: none; |
| 2914 | color: var(--ink); |
| 2915 | } |
| 2916 | |
| 2917 | // -- footer ----------------------------------------------------------------- |
| 2918 | |
| 2919 | // The foot sits outside `.detail-body`, so a description that runs on |
| 2920 | // forever scrolls under it rather than pushing Close off the panel. |
| 2921 | .detail-foot { |
| 2922 | display: flex; |
| 2923 | align-items: center; |
| 2924 | gap: 8px; |
| 2925 | flex: none; |
| 2926 | padding: 22px 24px 24px; |
| 2927 | margin-top: 4px; |
| 2928 | } |
| 2929 | |
| 2930 | .detail-delete-form { display: inline-flex; } |
| 2931 | |
| 2932 | .detail-delete { |
| 2933 | display: inline-flex; |
| 2934 | align-items: center; |
| 2935 | gap: 6px; |
| 2936 | height: var(--control-h); |
| 2937 | padding: 0 14px; |
| 2938 | border: 1px solid var(--danger-border); |
| 2939 | border-radius: var(--radius); |
| 2940 | background: var(--surface); |
| 2941 | font-family: inherit; |
| 2942 | font-size: 13px; |
| 2943 | color: var(--danger); |
| 2944 | cursor: pointer; |
| 2945 | |
| 2946 | &:disabled { opacity: 0.5; cursor: default; } |
| 2947 | } |
| 2948 | |
| 2949 | // -- the delete confirmation ------------------------------------------------ |
| 2950 | // |
| 2951 | // The open `` becomes a scrim + centered panel, the same shape as |
| 2952 | // the task modal's `.modal-scrim`/`.modal` (main.scss above), with no script: |
| 2953 | // the backdrop is the open details' own `::before`. Closing is handled by |
| 2954 | // `escape_closes`/`card_menu_script` (outside click, Esc) — the trigger |
| 2955 | // summary is hidden while open (below) so it is not a second, floating |
| 2956 | // "Delete task" button on screen. |
| 2957 | |
| 2958 | .confirm-details[open] { |
| 2959 | position: relative; |
| 2960 | z-index: 21; |
| 2961 | } |
| 2962 | |
| 2963 | // While the confirm is open, the modal panel behind it is not visible: one |
| 2964 | // popup on screen at a time. `visibility` (not `display`) so the scrim |
| 2965 | // keeps showing and the confirm — a fixed-position descendant that would |
| 2966 | // otherwise inherit the hidden visibility — is pulled back to visible. The |
| 2967 | // summary trigger stays out of that "pulled back" set: it sits in normal |
| 2968 | // flow at its footer position, so leaving it visible reads as a second, |
| 2969 | // floating delete button. |
| 2970 | .modal:has(details.confirm-details[open]) { |
| 2971 | visibility: hidden; |
| 2972 | |
| 2973 | details.confirm-details[open], |
| 2974 | details.confirm-details[open]::before, |
| 2975 | details.confirm-details[open] .confirm { |
| 2976 | visibility: visible; |
| 2977 | } |
| 2978 | |
| 2979 | details.confirm-details[open] > summary { |
| 2980 | display: none; |
| 2981 | } |
| 2982 | } |
| 2983 | |
| 2984 | .confirm-details[open]::before { |
| 2985 | content: ""; |
| 2986 | position: fixed; |
| 2987 | inset: 0; |
| 2988 | background: var(--scrim); |
| 2989 | z-index: 20; |
| 2990 | } |
| 2991 | |
| 2992 | .confirm { |
| 2993 | position: fixed; |
| 2994 | top: 50%; |
| 2995 | left: 50%; |
| 2996 | transform: translate(-50%, -50%); |
| 2997 | z-index: 21; |
| 2998 | width: 420px; |
| 2999 | max-width: calc(100% - 48px); |
| 3000 | margin: 0; |
| 3001 | padding: 18px 20px; |
| 3002 | border: 1px solid var(--border); |
| 3003 | border-radius: var(--radius-lg); |
| 3004 | background: var(--surface); |
| 3005 | box-shadow: var(--shadow-3); |
| 3006 | } |
| 3007 | |
| 3008 | .confirm-title { |
| 3009 | font-size: 13px; |
| 3010 | font-weight: 600; |
| 3011 | color: var(--ink); |
| 3012 | } |
| 3013 | |
| 3014 | .confirm-list { |
| 3015 | margin: 8px 0 0; |
| 3016 | padding-left: 18px; |
| 3017 | font-size: 13px; |
| 3018 | color: var(--ink-soft); |
| 3019 | } |
| 3020 | |
| 3021 | .confirm-row { |
| 3022 | display: flex; |
| 3023 | align-items: center; |
| 3024 | gap: 8px; |
| 3025 | margin-top: 12px; |
| 3026 | } |
| 3027 | |
| 3028 | |
| 3029 | // --- Settings (Settings and MemberSettings artboards) ---------------------- |
| 3030 | |
| 3031 | .settings-shell { |
| 3032 | display: flex; |
| 3033 | } |
| 3034 | |
| 3035 | .settings-stage { |
| 3036 | flex: 1; |
| 3037 | min-width: 0; |
| 3038 | padding: 24px 32px 40px; |
| 3039 | display: flex; |
| 3040 | flex-direction: column; |
| 3041 | gap: 20px; |
| 3042 | max-width: 860px; |
| 3043 | overflow-y: auto; |
| 3044 | scrollbar-width: none; |
| 3045 | &::-webkit-scrollbar { display: none; } |
| 3046 | |
| 3047 | // A panel's own `overflow: hidden` (the corner clip) zeroes its flex |
| 3048 | // min-height, so the column would compress it to the viewport and clip the |
| 3049 | // rows invisibly. Panels keep natural height; the stage is what pans. |
| 3050 | > * { flex: none; } |
| 3051 | } |
| 3052 | |
| 3053 | .settings-head { |
| 3054 | display: flex; |
| 3055 | align-items: center; |
| 3056 | flex-wrap: wrap; |
| 3057 | gap: 10px; |
| 3058 | } |
| 3059 | |
| 3060 | .settings-sections { |
| 3061 | flex: none; |
| 3062 | width: 200px; |
| 3063 | display: flex; |
| 3064 | flex-direction: column; |
| 3065 | gap: 2px; |
| 3066 | padding: 16px 0; |
| 3067 | border-right: 1px solid var(--border); |
| 3068 | } |
| 3069 | |
| 3070 | .settings-section-link { |
| 3071 | display: block; |
| 3072 | padding: 8px 16px; |
| 3073 | font-family: var(--font-mono); |
| 3074 | font-size: 10px; |
| 3075 | letter-spacing: 0.08em; |
| 3076 | text-transform: uppercase; |
| 3077 | color: var(--muted-soft); |
| 3078 | text-decoration: none; |
| 3079 | |
| 3080 | &:hover { color: var(--ink); } |
| 3081 | } |
| 3082 | |
| 3083 | .settings-title { |
| 3084 | margin: 0; |
| 3085 | font-size: 18px; |
| 3086 | font-weight: 700; |
| 3087 | letter-spacing: -0.01em; |
| 3088 | } |
| 3089 | |
| 3090 | .panel { |
| 3091 | background: var(--surface); |
| 3092 | border: 1px solid var(--border); |
| 3093 | border-radius: var(--radius-lg); |
| 3094 | overflow: hidden; |
| 3095 | } |
| 3096 | |
| 3097 | .panel-head { |
| 3098 | display: flex; |
| 3099 | align-items: center; |
| 3100 | gap: 10px; |
| 3101 | padding: 14px 18px; |
| 3102 | border-bottom: 1px solid var(--border); |
| 3103 | } |
| 3104 | |
| 3105 | .panel-title { |
| 3106 | margin: 0; |
| 3107 | font-size: 13px; |
| 3108 | font-weight: 600; |
| 3109 | } |
| 3110 | |
| 3111 | .panel-body { |
| 3112 | padding: 18px; |
| 3113 | display: flex; |
| 3114 | flex-direction: column; |
| 3115 | gap: 20px; |
| 3116 | } |
| 3117 | |
| 3118 | .panel-lede { |
| 3119 | margin: 0; |
| 3120 | font-size: 13px; |
| 3121 | line-height: 1.5; |
| 3122 | color: var(--muted); |
| 3123 | } |
| 3124 | |
| 3125 | .panel-foot { |
| 3126 | display: flex; |
| 3127 | // A foot inside a `.panel-body` would inherit that column, and a foot is a row. |
| 3128 | flex-direction: row; |
| 3129 | align-items: center; |
| 3130 | gap: 12px; |
| 3131 | justify-content: flex-end; |
| 3132 | |
| 3133 | // A foot with something to say on the left and the button on the right. |
| 3134 | &-split { justify-content: space-between; } |
| 3135 | |
| 3136 | } |
| 3137 | |
| 3138 | // One end of a split foot: its own controls, kept together. |
| 3139 | .foot-side { |
| 3140 | display: flex; |
| 3141 | align-items: center; |
| 3142 | gap: 12px; |
| 3143 | min-width: 0; |
| 3144 | } |
| 3145 | |
| 3146 | .field { |
| 3147 | display: flex; |
| 3148 | flex-direction: column; |
| 3149 | gap: 6px; |
| 3150 | flex-grow: 1; |
| 3151 | min-width: 0; |
| 3152 | } |
| 3153 | |
| 3154 | .field-row { |
| 3155 | display: flex; |
| 3156 | gap: 16px; |
| 3157 | } |
| 3158 | |
| 3159 | // Fields carry no top margin of their own: each wrapping container is a |
| 3160 | // flex column whose gap is the spacing. The one unclassed form — its id is |
| 3161 | // load-bearing for the foot's `form=` submit — is named directly here. |
| 3162 | #sender-settings { |
| 3163 | display: flex; |
| 3164 | flex-direction: column; |
| 3165 | gap: 20px; |
| 3166 | } |
| 3167 | |
| 3168 | .field-narrow { flex-grow: 0; width: 120px; } |
| 3169 | |
| 3170 | .field-label { |
| 3171 | font-family: var(--font-mono); |
| 3172 | font-size: 10px; |
| 3173 | letter-spacing: 0.08em; |
| 3174 | text-transform: uppercase; |
| 3175 | color: var(--muted-soft); |
| 3176 | } |
| 3177 | |
| 3178 | .auth-input, |
| 3179 | .field-input { |
| 3180 | height: 40px; |
| 3181 | padding: 0 12px; |
| 3182 | background: var(--field-bg); |
| 3183 | border: 1px solid var(--border-strong); |
| 3184 | border-radius: var(--radius); |
| 3185 | font-family: var(--font-sans); |
| 3186 | font-size: 13px; |
| 3187 | color: var(--ink); |
| 3188 | |
| 3189 | &:focus-visible { |
| 3190 | background: var(--surface); |
| 3191 | border-color: var(--accent); |
| 3192 | } |
| 3193 | |
| 3194 | &:disabled { |
| 3195 | background: var(--panel-sunken); |
| 3196 | color: var(--muted); |
| 3197 | } |
| 3198 | } |
| 3199 | |
| 3200 | .auth-input-mono { |
| 3201 | font-family: var(--font-mono); |
| 3202 | } |
| 3203 | |
| 3204 | // The house dropdown trigger — `dropdown.rs`'s clone of a select — |
| 3205 | // draws the same chevron the rest of the app uses, so the closed look stands |
| 3206 | // in for the field it replaced. A native select keeps the browser's own |
| 3207 | // arrow on the plain .field-input box. |
| 3208 | .field-input.dd-trigger { |
| 3209 | appearance: none; |
| 3210 | -webkit-appearance: none; |
| 3211 | cursor: pointer; |
| 3212 | padding-right: 32px; |
| 3213 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23726d61' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); |
| 3214 | background-repeat: no-repeat; |
| 3215 | background-position: right 12px center; |
| 3216 | } |
| 3217 | |
| 3218 | // Dark theme's lighter muted ink, baked into a second copy of the chevron: |
| 3219 | // a data-URI can't read custom properties. |
| 3220 | [data-theme="dark"] { |
| 3221 | .field-input.dd-trigger { |
| 3222 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); |
| 3223 | } |
| 3224 | } |
| 3225 | |
| 3226 | // The browser's native option list ignores theme tokens by default — dark |
| 3227 | // mode showed the OS's white/blue list until these are set explicitly. |
| 3228 | // Belt-and-braces for any select `dropdown.rs` hasn't converted. |
| 3229 | option { |
| 3230 | background: var(--surface); |
| 3231 | color: var(--ink); |
| 3232 | } |
| 3233 | |
| 3234 | option:checked { |
| 3235 | background: var(--accent-tint); |
| 3236 | color: var(--accent-ink); |
| 3237 | } |
| 3238 | |
| 3239 | option:hover { |
| 3240 | background: var(--panel-sunken); |
| 3241 | } |
| 3242 | |
| 3243 | input[type="checkbox"], |
| 3244 | input[type="radio"] { |
| 3245 | accent-color: var(--accent); |
| 3246 | } |
| 3247 | |
| 3248 | // -- house dropdown (dropdown.rs) -------------------------------------------- |
| 3249 | // |
| 3250 | // `dropdown.rs` hides the native `` and portals a trigger + panel |
| 3251 | // in its place, so no browser engine's own popup chrome ever shows — every |
| 3252 | // engine themes identically because none of them draw this one. |
| 3253 | |
| 3254 | .dd-native { display: none; } |
| 3255 | |
| 3256 | // The trigger carries the select's own classes (`.status-select` or |
| 3257 | // `.field-input`), so its closed look is already right; this only resets |
| 3258 | // what a bare `` adds on top of that. |
| 3259 | .dd-trigger { |
| 3260 | display: flex; |
| 3261 | align-items: center; |
| 3262 | font: inherit; |
| 3263 | text-align: left; |
| 3264 | cursor: pointer; |
| 3265 | } |
| 3266 | |
| 3267 | .status-select.dd-trigger { padding: 0; } |
| 3268 | |
| 3269 | .dd-panel { |
| 3270 | position: fixed; |
| 3271 | z-index: 60; |
| 3272 | max-height: 260px; |
| 3273 | overflow-y: auto; |
| 3274 | background: var(--surface); |
| 3275 | border: 1px solid var(--border-strong); |
| 3276 | border-radius: var(--radius-md); |
| 3277 | box-shadow: var(--shadow-2); |
| 3278 | padding: 8px; |
| 3279 | display: none; |
| 3280 | } |
| 3281 | |
| 3282 | .dd-panel.dd-open { display: block; } |
| 3283 | |
| 3284 | .dd-option { |
| 3285 | display: block; |
| 3286 | width: 100%; |
| 3287 | padding: 6px 10px; |
| 3288 | border: none; |
| 3289 | border-radius: var(--radius-sm); |
| 3290 | background: none; |
| 3291 | font: inherit; |
| 3292 | font-size: 13px; |
| 3293 | text-align: left; |
| 3294 | color: var(--ink); |
| 3295 | white-space: nowrap; |
| 3296 | cursor: pointer; |
| 3297 | transition: background-color var(--dur-fast) var(--ease); |
| 3298 | |
| 3299 | &:hover, |
| 3300 | &:focus, |
| 3301 | &.dd-option-active { background: var(--row-hover); outline: none; } |
| 3302 | } |
| 3303 | |
| 3304 | .dd-option-selected { background: var(--accent-tint); color: var(--accent-ink); } |
| 3305 | |
| 3306 | .dd-option-hidden { display: none; } |
| 3307 | |
| 3308 | // Type-to-filter, injected as the panel's first child on any select with |
| 3309 | // more than 7 options (dropdown.rs `enhance`) — small selects (Newest/ |
| 3310 | // Oldest, yes/no) stay clean. Its own focus-visible override sits after |
| 3311 | // the shared ring rule below (same (0,2,0) trick as `.modal:focus-visible`). |
| 3312 | .dd-search { |
| 3313 | display: block; |
| 3314 | width: 100%; |
| 3315 | margin-bottom: 6px; |
| 3316 | padding: 8px 10px; |
| 3317 | border: none; |
| 3318 | border-bottom: 1px solid var(--border); |
| 3319 | background: none; |
| 3320 | font: inherit; |
| 3321 | font-size: 13px; |
| 3322 | color: var(--ink); |
| 3323 | } |
| 3324 | |
| 3325 | // A row that states a fact instead of pretending to be an editable field. An |
| 3326 | // empty box that silently does nothing is worse than a sentence. |
| 3327 | .field-stated { |
| 3328 | display: flex; |
| 3329 | align-items: center; |
| 3330 | height: 40px; |
| 3331 | padding: 0 12px; |
| 3332 | background: var(--panel-sunken); |
| 3333 | border: 1px dashed var(--border-strong); |
| 3334 | border-radius: var(--radius); |
| 3335 | font-size: 13px; |
| 3336 | color: var(--muted); |
| 3337 | } |
| 3338 | |
| 3339 | .field-note { |
| 3340 | font-size: 12px; |
| 3341 | line-height: 1.5; |
| 3342 | color: var(--muted); |
| 3343 | } |
| 3344 | |
| 3345 | .field-error { |
| 3346 | font-size: 12px; |
| 3347 | color: var(--danger); |
| 3348 | } |
| 3349 | |
| 3350 | .primary { |
| 3351 | display: inline-flex; |
| 3352 | align-items: center; |
| 3353 | justify-content: center; |
| 3354 | height: var(--control-h); |
| 3355 | padding: 0 16px; |
| 3356 | background: var(--accent); |
| 3357 | border: 1px solid var(--accent); |
| 3358 | border-radius: var(--radius); |
| 3359 | color: var(--surface); |
| 3360 | font-family: var(--font-sans); |
| 3361 | font-size: 13px; |
| 3362 | font-weight: 600; |
| 3363 | text-decoration: none; |
| 3364 | cursor: pointer; |
| 3365 | transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); |
| 3366 | |
| 3367 | &:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--surface); } |
| 3368 | } |
| 3369 | |
| 3370 | // One keyboard-focus ring for everything interactive — buttons, links, |
| 3371 | // fields, the house dropdown trigger, tabindex'd widgets. Outline only: |
| 3372 | // the field recipe's background/border-color swap would invert the solid |
| 3373 | // buttons — their own label is var(--surface) — into invisibility. |
| 3374 | // Placed after .dd-option's own `&:focus { outline: none }`: the (0,2,0) |
| 3375 | // tie falls to this rule, so keyboard focus still rings an option. |
| 3376 | :is(button, a, input, select, textarea, summary, .dd-trigger, [tabindex]):focus-visible { |
| 3377 | outline: 2px solid var(--accent); |
| 3378 | outline-offset: 1px; |
| 3379 | } |
| 3380 | |
| 3381 | // Modals take programmatic focus on open (tabindex="-1") and are not |
| 3382 | // controls — no ring. Re-stated here because a plain `.modal` rule loses |
| 3383 | // the specificity tie against the shared rule above. |
| 3384 | .modal:focus-visible { outline: none; } |
| 3385 | |
| 3386 | // A boxed outline inside a panel that's already bordered reads as a double |
| 3387 | // frame; the hairline brightening to the accent color is enough. |
| 3388 | .dd-search:focus-visible { |
| 3389 | outline: none; |
| 3390 | border-bottom-color: var(--accent); |
| 3391 | } |
| 3392 | |
| 3393 | // -- the member list -------------------------------------------------------- |
| 3394 | |
| 3395 | // The members register keeps its named columns and pans inside the panel |
| 3396 | // rather than squeezing the role select out of the screen. Panning is not a |
| 3397 | // phone rescue: a mid-size window squeezes the same way. |
| 3398 | .table-pan { |
| 3399 | overflow-x: auto; |
| 3400 | scrollbar-width: none; |
| 3401 | |
| 3402 | &::-webkit-scrollbar { display: none; } |
| 3403 | |
| 3404 | .member-table { min-width: 560px; } |
| 3405 | } |
| 3406 | |
| 3407 | // The columns are named, not counted, and only one of them is elastic. |
| 3408 | // |
| 3409 | // This was `table-layout: fixed` with a single hardcoded `width: 30%` on the |
| 3410 | // last column, which made the other three exactly a third of the rest each — |
| 3411 | // a geometry decided without reference to anything that would be in it. A |
| 3412 | // mono-spaced address longer than a third of the table simply ran out from |
| 3413 | // under its own cell and printed across the role select next to it. Auto |
| 3414 | // layout asks the content instead: every column takes the width it needs, |
| 3415 | // and the address — the one column whose length is somebody else's decision |
| 3416 | // — absorbs what is left and ends in an ellipsis rather than in the |
| 3417 | // neighbouring column. |
| 3418 | .member-table { |
| 3419 | width: 100%; |
| 3420 | border-collapse: collapse; |
| 3421 | table-layout: auto; |
| 3422 | font-size: 13px; |
| 3423 | |
| 3424 | th { |
| 3425 | text-align: left; |
| 3426 | padding: 0 12px 8px 0; |
| 3427 | font-family: var(--font-mono); |
| 3428 | font-size: 10px; |
| 3429 | letter-spacing: 0.08em; |
| 3430 | text-transform: uppercase; |
| 3431 | font-weight: 400; |
| 3432 | color: var(--muted-soft); |
| 3433 | border-bottom: 1px solid var(--border); |
| 3434 | } |
| 3435 | |
| 3436 | // Row height comes from the tallest thing in the row. A fixed 48px was a |
| 3437 | // guess that held until a cell had two things in it, and then the second |
| 3438 | // one hung out over the row's own border. |
| 3439 | td { |
| 3440 | padding: 10px 12px 10px 0; |
| 3441 | vertical-align: middle; |
| 3442 | } |
| 3443 | |
| 3444 | // Everything but the address is as wide as its content and no wider: |
| 3445 | // `width: 1%` is how a table cell asks for its intrinsic width. |
| 3446 | .member-col-name, |
| 3447 | .member-col-role, |
| 3448 | .member-col-account { |
| 3449 | width: 1%; |
| 3450 | white-space: nowrap; |
| 3451 | } |
| 3452 | |
| 3453 | // The elastic one. `max-width: 0` with `width: 100%` is what lets a table |
| 3454 | // cell be told "take the slack, and clip rather than overflow". |
| 3455 | .member-col-address { |
| 3456 | width: 100%; |
| 3457 | max-width: 0; |
| 3458 | overflow: hidden; |
| 3459 | text-overflow: ellipsis; |
| 3460 | white-space: nowrap; |
| 3461 | } |
| 3462 | |
| 3463 | .member-row { |
| 3464 | border-bottom: 1px solid var(--border); |
| 3465 | } |
| 3466 | } |
| 3467 | |
| 3468 | // Every data cell's content sits in a row wrapper, not the `` itself: |
| 3469 | // `display: flex` directly on a `` drops it out of the table's row/column |
| 3470 | // model, which is what left this list's columns loose and its rows |
| 3471 | // unevenly centered. |
| 3472 | .member-name-row, |
| 3473 | .member-account-row { |
| 3474 | display: flex; |
| 3475 | align-items: center; |
| 3476 | } |
| 3477 | |
| 3478 | .member-name { font-weight: 600; } |
| 3479 | .member-name-row { gap: 8px; } |
| 3480 | |
| 3481 | .member-you { |
| 3482 | flex: none; |
| 3483 | padding: 1px 8px; |
| 3484 | border-radius: 999px; |
| 3485 | background: var(--field-bg); |
| 3486 | border: 1px solid var(--border-strong); |
| 3487 | font-size: 11px; |
| 3488 | font-weight: 500; |
| 3489 | color: var(--muted); |
| 3490 | } |
| 3491 | |
| 3492 | .member-address { |
| 3493 | font-family: var(--font-mono); |
| 3494 | font-size: 12px; |
| 3495 | color: var(--muted); |
| 3496 | } |
| 3497 | |
| 3498 | .member-account { color: var(--muted); } |
| 3499 | .member-account-row { gap: 10px; } |
| 3500 | .member-status { flex: none; white-space: nowrap; } |
| 3501 | |
| 3502 | .member-resend { display: inline-flex; flex: none; } |
| 3503 | |
| 3504 | .quiet { |
| 3505 | display: inline-flex; |
| 3506 | align-items: center; |
| 3507 | height: var(--control-h); |
| 3508 | padding: 0 10px; |
| 3509 | background: var(--surface); |
| 3510 | border: 1px solid var(--border-strong); |
| 3511 | border-radius: var(--radius); |
| 3512 | font-family: var(--font-sans); |
| 3513 | font-size: 12px; |
| 3514 | color: var(--ink-soft); |
| 3515 | text-decoration: none; |
| 3516 | cursor: pointer; |
| 3517 | transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); |
| 3518 | |
| 3519 | &:hover { border-color: var(--accent); color: var(--accent); } |
| 3520 | } |
| 3521 | |
| 3522 | // Danger modifier for a `.quiet` button — the "Delete" action in a rule row. |
| 3523 | // Written `.quiet.quiet-danger` for the same reason the avatar sizes are: |
| 3524 | // the skins style `.quiet` from a `[data-ui]` scope, which outweighs a lone |
| 3525 | // modifier class — on the Ledger skin a delete button lost its red border, |
| 3526 | // and its red text on hover, to a rule about ordinary quiet buttons. |
| 3527 | .quiet.quiet-danger { |
| 3528 | border-color: var(--danger-border); |
| 3529 | color: var(--danger); |
| 3530 | |
| 3531 | &:hover { border-color: var(--danger); color: var(--danger); background: var(--surface-sunken); } |
| 3532 | } |
| 3533 | |
| 3534 | // The chevron floats over the trigger's right end rather than sitting next |
| 3535 | // to it in the flex row: the trigger then spans the whole box, so the box |
| 3536 | // is clickable edge to edge. |
| 3537 | .member-role { |
| 3538 | position: relative; |
| 3539 | padding: 0; |
| 3540 | |
| 3541 | > .glyph { position: absolute; right: 10px; pointer-events: none; color: var(--muted); } |
| 3542 | .status-select { align-self: stretch; padding: 0 28px 0 10px; } |
| 3543 | } |
| 3544 | |
| 3545 | .member-invite { |
| 3546 | display: flex; |
| 3547 | align-items: flex-end; |
| 3548 | gap: 12px; |
| 3549 | flex-wrap: wrap; |
| 3550 | } |
| 3551 | |
| 3552 | .field-role { flex-grow: 0; width: 140px; } |
| 3553 | |
| 3554 | // One control height, matching `.primary`, for this row's fields, so the |
| 3555 | // role select and the "Add member" button share one height and baseline. |
| 3556 | .member-invite .field-input { height: var(--control-h); } |
| 3557 | |
| 3558 | // The link exists once. It is shown once, and said to be shown once. |
| 3559 | .member-link { |
| 3560 | display: flex; |
| 3561 | flex-direction: column; |
| 3562 | gap: 6px; |
| 3563 | padding: 12px; |
| 3564 | background: var(--accent-tint); |
| 3565 | border: 1px solid var(--accent-border); |
| 3566 | border-radius: var(--radius); |
| 3567 | } |
| 3568 | |
| 3569 | .member-link-value { |
| 3570 | font-family: var(--font-mono); |
| 3571 | font-size: 12px; |
| 3572 | color: var(--accent-ink); |
| 3573 | word-break: break-all; |
| 3574 | } |
| 3575 | |
| 3576 | // --- Mail rules (MailRules artboard) --------------------------------------- |
| 3577 | |
| 3578 | // Text only a screen reader needs: the switch says what it does in a word the |
| 3579 | // eye reads from its position, and the ear cannot. |
| 3580 | .visually-hidden { |
| 3581 | position: absolute; |
| 3582 | width: 1px; |
| 3583 | height: 1px; |
| 3584 | margin: -1px; |
| 3585 | padding: 0; |
| 3586 | overflow: hidden; |
| 3587 | clip-path: inset(50%); |
| 3588 | white-space: nowrap; |
| 3589 | } |
| 3590 | |
| 3591 | .rules-quiet { |
| 3592 | margin: 0; |
| 3593 | font-size: 13px; |
| 3594 | color: var(--muted); |
| 3595 | } |
| 3596 | |
| 3597 | .rule-list { |
| 3598 | display: flex; |
| 3599 | flex-direction: column; |
| 3600 | gap: 10px; |
| 3601 | } |
| 3602 | |
| 3603 | .rule-row { |
| 3604 | display: flex; |
| 3605 | align-items: center; |
| 3606 | gap: 14px; |
| 3607 | padding: 16px; |
| 3608 | background: var(--surface); |
| 3609 | border: 1px solid var(--border); |
| 3610 | border-radius: var(--radius-md); |
| 3611 | |
| 3612 | // A rule that is switched off is still listed — the screen shows what |
| 3613 | // exists, not what is live — and reads as the quieter of the two. |
| 3614 | &-off { |
| 3615 | background: var(--surface-muted); |
| 3616 | opacity: 0.75; |
| 3617 | } |
| 3618 | } |
| 3619 | |
| 3620 | .rule-switch-form { display: flex; flex-shrink: 0; } |
| 3621 | |
| 3622 | .rule-switch { |
| 3623 | width: 36px; |
| 3624 | height: 20px; |
| 3625 | padding: 0; |
| 3626 | border: none; |
| 3627 | border-radius: var(--radius-lg); |
| 3628 | background: var(--border-soft); |
| 3629 | position: relative; |
| 3630 | cursor: pointer; |
| 3631 | |
| 3632 | &-knob { |
| 3633 | position: absolute; |
| 3634 | top: 2px; |
| 3635 | left: 2px; |
| 3636 | width: 16px; |
| 3637 | height: 16px; |
| 3638 | border-radius: 50%; |
| 3639 | background: var(--surface); |
| 3640 | } |
| 3641 | |
| 3642 | &-on { |
| 3643 | background: var(--accent); |
| 3644 | .rule-switch-knob { left: auto; right: 2px; } |
| 3645 | } |
| 3646 | } |
| 3647 | |
| 3648 | .rule-sentence { |
| 3649 | display: flex; |
| 3650 | align-items: center; |
| 3651 | flex-wrap: wrap; |
| 3652 | gap: 8px; |
| 3653 | flex-grow: 1; |
| 3654 | min-width: 0; |
| 3655 | font-size: 13px; |
| 3656 | color: var(--ink-soft); |
| 3657 | } |
| 3658 | |
| 3659 | // One chosen word inside the sentence: a column, a subject, an audience. |
| 3660 | // Identity, not state — a neutral outline so the toned verdict chips below |
| 3661 | // stand out next to it instead of blending in. |
| 3662 | .rule-term { |
| 3663 | display: inline-flex; |
| 3664 | align-items: center; |
| 3665 | padding: 3px 8px; |
| 3666 | background: transparent; |
| 3667 | border: 1px solid var(--border-strong); |
| 3668 | border-radius: var(--radius-sm); |
| 3669 | font-weight: 500; |
| 3670 | color: var(--ink); |
| 3671 | } |
| 3672 | |
| 3673 | .rule-row-off .rule-term { |
| 3674 | border-color: var(--border-soft); |
| 3675 | color: var(--muted-soft); |
| 3676 | } |
| 3677 | |
| 3678 | // A verdict or a queue state, toned so the eye can sort a page of them |
| 3679 | // without reading every word: sent/queued reads as the app's accent blue, |
| 3680 | // failed/abandoned as its danger orange, held/pending as its warning amber, |
| 3681 | // no recipients gets its own violet tone, and everything that is quietly |
| 3682 | // not-a-failure (not matched, rule off) stays muted rather than competing |
| 3683 | // for attention. |
| 3684 | .rule-term-owed, |
| 3685 | .rule-term-already_owed, |
| 3686 | .rule-term-sent { |
| 3687 | background: var(--accent-tint); |
| 3688 | border-color: var(--accent-border); |
| 3689 | color: var(--accent-ink); |
| 3690 | } |
| 3691 | |
| 3692 | .rule-term-failed, |
| 3693 | .rule-term-abandoned { |
| 3694 | background: var(--danger-tint); |
| 3695 | border-color: var(--danger-border-alt); |
| 3696 | color: var(--danger); |
| 3697 | } |
| 3698 | |
| 3699 | .rule-term-held, |
| 3700 | .rule-term-pending { |
| 3701 | background: var(--warn-tint); |
| 3702 | border-color: var(--warn-border); |
| 3703 | color: var(--warn-ink); |
| 3704 | } |
| 3705 | |
| 3706 | .rule-term-not_matched, |
| 3707 | .rule-term-disabled { |
| 3708 | background: var(--surface-sunken); |
| 3709 | border-color: var(--border-strong); |
| 3710 | color: var(--muted); |
| 3711 | } |
| 3712 | |
| 3713 | .rule-term-no_recipients { |
| 3714 | background: var(--violet-tint); |
| 3715 | border-color: var(--violet-border); |
| 3716 | color: var(--violet-ink); |
| 3717 | } |
| 3718 | |
| 3719 | .rule-term-task_gone { |
| 3720 | background: var(--danger-tint-soft); |
| 3721 | border-color: var(--danger-border-soft); |
| 3722 | color: var(--danger); |
| 3723 | } |
| 3724 | |
| 3725 | // One event and every rule's verdict on it, so the task and moment are said |
| 3726 | // once instead of once per rule. |
| 3727 | .decision-block { |
| 3728 | display: flex; |
| 3729 | flex-direction: column; |
| 3730 | gap: 8px; |
| 3731 | padding: 16px; |
| 3732 | background: var(--surface); |
| 3733 | border: 1px solid var(--border); |
| 3734 | border-radius: var(--radius-md); |
| 3735 | } |
| 3736 | |
| 3737 | .decision-head { |
| 3738 | display: flex; |
| 3739 | align-items: center; |
| 3740 | justify-content: space-between; |
| 3741 | gap: 8px; |
| 3742 | } |
| 3743 | |
| 3744 | .decision-title { |
| 3745 | font-size: 13px; |
| 3746 | font-weight: 600; |
| 3747 | color: var(--ink-soft); |
| 3748 | } |
| 3749 | |
| 3750 | .decision-verdicts { |
| 3751 | display: flex; |
| 3752 | flex-direction: column; |
| 3753 | gap: 6px; |
| 3754 | } |
| 3755 | |
| 3756 | .decision-verdict { |
| 3757 | display: flex; |
| 3758 | align-items: center; |
| 3759 | flex-wrap: wrap; |
| 3760 | gap: 8px; |
| 3761 | font-size: 13px; |
| 3762 | color: var(--ink-soft); |
| 3763 | } |
| 3764 | |
| 3765 | .rule-stamp { |
| 3766 | flex-shrink: 0; |
| 3767 | font-family: var(--font-mono); |
| 3768 | font-size: 11px; |
| 3769 | color: var(--muted-soft); |
| 3770 | } |
| 3771 | |
| 3772 | // Activity log: a columnar register, not a card list — one line per event, |
| 3773 | // time-first, ruled by hairlines instead of boxed rows. |
| 3774 | .log-list { |
| 3775 | display: flex; |
| 3776 | flex-direction: column; |
| 3777 | } |
| 3778 | |
| 3779 | .log-row { |
| 3780 | display: flex; |
| 3781 | align-items: baseline; |
| 3782 | gap: 12px; |
| 3783 | padding: 8px 2px; |
| 3784 | border-bottom: 1px solid var(--border); |
| 3785 | } |
| 3786 | |
| 3787 | .log-stamp { |
| 3788 | flex-shrink: 0; |
| 3789 | min-width: 110px; |
| 3790 | font-family: var(--font-mono); |
| 3791 | font-size: 10px; |
| 3792 | letter-spacing: 0.08em; |
| 3793 | text-transform: uppercase; |
| 3794 | color: var(--muted); |
| 3795 | } |
| 3796 | |
| 3797 | .log-actor { |
| 3798 | flex-shrink: 0; |
| 3799 | font-size: 13px; |
| 3800 | font-weight: 500; |
| 3801 | color: var(--ink); |
| 3802 | } |
| 3803 | |
| 3804 | .log-line { |
| 3805 | flex: 1; |
| 3806 | min-width: 0; |
| 3807 | font-size: 13px; |
| 3808 | color: var(--ink-soft); |
| 3809 | overflow: hidden; |
| 3810 | text-overflow: ellipsis; |
| 3811 | white-space: nowrap; |
| 3812 | } |
| 3813 | |
| 3814 | // The activity panel's filter row is the board's control row living inside a |
| 3815 | // panel body: the page-bar chrome (min strip, own bottom rule, bar padding) |
| 3816 | // is opted out of — the panel head rules the row, the body pads it. The |
| 3817 | // two-class selector out-ranks both `.filterbar` bases, the |
| 3818 | // narrow-viewport one included. |
| 3819 | .filterbar.log-filterbar { |
| 3820 | min-height: 0; |
| 3821 | padding: 0; |
| 3822 | background: none; |
| 3823 | border-bottom: none; |
| 3824 | flex-wrap: wrap; |
| 3825 | gap: 10px; |
| 3826 | } |
| 3827 | |
| 3828 | .log-range-dash { |
| 3829 | align-self: center; |
| 3830 | margin: 0 2px; |
| 3831 | color: var(--muted); |
| 3832 | } |
| 3833 | |
| 3834 | // The pager foot's read of where the rendered rows sit in the whole feed. |
| 3835 | .log-count { |
| 3836 | font-family: var(--font-mono); |
| 3837 | font-size: 10px; |
| 3838 | color: var(--muted); |
| 3839 | } |
| 3840 | |
| 3841 | .log-title { |
| 3842 | flex-shrink: 1; |
| 3843 | min-width: 0; |
| 3844 | font-size: 13px; |
| 3845 | color: var(--muted); |
| 3846 | overflow: hidden; |
| 3847 | text-overflow: ellipsis; |
| 3848 | white-space: nowrap; |
| 3849 | } |
| 3850 | |
| 3851 | .log-key { |
| 3852 | flex: none; |
| 3853 | font-family: var(--font-mono); |
| 3854 | font-size: 10px; |
| 3855 | letter-spacing: 0.08em; |
| 3856 | text-transform: uppercase; |
| 3857 | color: var(--muted); |
| 3858 | } |
| 3859 | |
| 3860 | |
| 3861 | .rule-new { |
| 3862 | background: var(--surface); |
| 3863 | border: 1px solid var(--border); |
| 3864 | border-radius: var(--radius-lg); |
| 3865 | } |
| 3866 | |
| 3867 | .rule-new-open { |
| 3868 | display: flex; |
| 3869 | align-items: center; |
| 3870 | height: var(--control-h); |
| 3871 | padding: 0 16px; |
| 3872 | font-size: 13px; |
| 3873 | font-weight: 600; |
| 3874 | color: var(--accent-ink); |
| 3875 | cursor: pointer; |
| 3876 | list-style: none; |
| 3877 | |
| 3878 | &::marker, &::-webkit-details-marker { display: none; } |
| 3879 | &::before { content: '+'; margin-right: 8px; font-size: 13px; } |
| 3880 | } |
| 3881 | |
| 3882 | .rule-new-body { |
| 3883 | display: flex; |
| 3884 | flex-direction: column; |
| 3885 | gap: 20px; |
| 3886 | padding: 0 16px 16px; |
| 3887 | border-top: 1px solid var(--border); |
| 3888 | padding-top: 16px; |
| 3889 | } |
| 3890 | |
| 3891 | .rule-field { |
| 3892 | display: flex; |
| 3893 | flex-direction: column; |
| 3894 | gap: 6px; |
| 3895 | } |
| 3896 | |
| 3897 | .tag-list { |
| 3898 | display: flex; |
| 3899 | flex-direction: column; |
| 3900 | gap: 10px; |
| 3901 | } |
| 3902 | |
| 3903 | .tag-row { |
| 3904 | display: flex; |
| 3905 | align-items: center; |
| 3906 | gap: 14px; |
| 3907 | padding: 16px; |
| 3908 | background: var(--surface); |
| 3909 | border: 1px solid var(--border); |
| 3910 | border-radius: var(--radius-md); |
| 3911 | } |
| 3912 | |
| 3913 | .tag-name { |
| 3914 | flex-grow: 1; |
| 3915 | min-width: 0; |
| 3916 | font-size: 13px; |
| 3917 | overflow: hidden; |
| 3918 | text-overflow: ellipsis; |
| 3919 | white-space: nowrap; |
| 3920 | } |
| 3921 | |
| 3922 | // How many cards are on the project, in the same chip the board counts its |
| 3923 | // columns with. It is also the reason the delete control beside it is or is |
| 3924 | // not there. |
| 3925 | .tag-count { |
| 3926 | flex: none; |
| 3927 | font-family: var(--font-mono); |
| 3928 | font-size: 11px; |
| 3929 | font-variant-numeric: tabular-nums; |
| 3930 | color: var(--muted-soft); |
| 3931 | background: var(--panel-sunken); |
| 3932 | border-radius: var(--radius); |
| 3933 | padding: 1px 6px; |
| 3934 | } |
| 3935 | |
| 3936 | .tag-new { |
| 3937 | background: var(--surface); |
| 3938 | border: 1px solid var(--border); |
| 3939 | border-radius: var(--radius-lg); |
| 3940 | } |
| 3941 | |
| 3942 | .tag-new-open { |
| 3943 | display: flex; |
| 3944 | align-items: center; |
| 3945 | height: var(--control-h); |
| 3946 | padding: 0 16px; |
| 3947 | font-size: 13px; |
| 3948 | font-weight: 600; |
| 3949 | color: var(--accent-ink); |
| 3950 | cursor: pointer; |
| 3951 | list-style: none; |
| 3952 | |
| 3953 | &::marker, &::-webkit-details-marker { display: none; } |
| 3954 | &::before { content: '+'; margin-right: 8px; font-size: 13px; } |
| 3955 | } |
| 3956 | |
| 3957 | .tag-form { |
| 3958 | display: flex; |
| 3959 | flex-direction: column; |
| 3960 | gap: 20px; |
| 3961 | padding: 0 16px 16px; |
| 3962 | border-top: 1px solid var(--border); |
| 3963 | padding-top: 16px; |
| 3964 | } |
| 3965 | |
| 3966 | .tag-field { |
| 3967 | display: flex; |
| 3968 | flex-direction: column; |
| 3969 | gap: 6px; |
| 3970 | } |
| 3971 | |
| 3972 | // --- Profile (a member's page) ---------------------------------------------- |
| 3973 | |
| 3974 | .people-shell { |
| 3975 | width: 100%; |
| 3976 | max-width: 860px; |
| 3977 | margin: 0 auto; |
| 3978 | padding: 24px 32px 40px; |
| 3979 | display: flex; |
| 3980 | flex-direction: column; |
| 3981 | gap: 20px; |
| 3982 | overflow-y: auto; |
| 3983 | scrollbar-width: none; |
| 3984 | |
| 3985 | &::-webkit-scrollbar { display: none; } |
| 3986 | > * { flex: none; } |
| 3987 | } |
| 3988 | |
| 3989 | // A face or a name that leads to the person it names. The chrome stays the |
| 3990 | // chrome — the link exists to be clicked, not to look like one. |
| 3991 | .person-link { |
| 3992 | display: inline-flex; |
| 3993 | align-items: center; |
| 3994 | gap: inherit; |
| 3995 | color: inherit; |
| 3996 | text-decoration: none; |
| 3997 | min-width: 0; |
| 3998 | |
| 3999 | &:hover { text-decoration: underline; } |
| 4000 | } |
| 4001 | |
| 4002 | .person-card { |
| 4003 | overflow: hidden; |
| 4004 | } |
| 4005 | |
| 4006 | // The head is the identity: a picture big enough to be a picture, the name, |
| 4007 | // what the workspace calls this person, and — on your own page only — the way |
| 4008 | // to the one screen that can change any of it. |
| 4009 | .person-head { |
| 4010 | display: flex; |
| 4011 | align-items: center; |
| 4012 | gap: 18px; |
| 4013 | padding: 22px 22px 20px; |
| 4014 | } |
| 4015 | |
| 4016 | .person-heading { |
| 4017 | display: flex; |
| 4018 | flex-direction: column; |
| 4019 | gap: 8px; |
| 4020 | min-width: 0; |
| 4021 | } |
| 4022 | |
| 4023 | .person-name { |
| 4024 | margin: 0; |
| 4025 | font-family: var(--font-display); |
| 4026 | font-size: 22px; |
| 4027 | font-weight: 600; |
| 4028 | line-height: 1.1; |
| 4029 | overflow: hidden; |
| 4030 | text-overflow: ellipsis; |
| 4031 | white-space: nowrap; |
| 4032 | } |
| 4033 | |
| 4034 | .person-marks { |
| 4035 | display: flex; |
| 4036 | align-items: center; |
| 4037 | gap: 6px; |
| 4038 | } |
| 4039 | |
| 4040 | .person-edit { |
| 4041 | margin-left: auto; |
| 4042 | flex: none; |
| 4043 | } |
| 4044 | |
| 4045 | // Every fact sits in a named cell instead of floating as a line of text. The |
| 4046 | // cells share the panel's own hairlines, so the block reads as one table |
| 4047 | // rather than as paragraphs that happen to be near each other. |
| 4048 | .person-fields { |
| 4049 | display: grid; |
| 4050 | grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); |
| 4051 | margin: 0; |
| 4052 | border-top: 1px solid var(--border); |
| 4053 | } |
| 4054 | |
| 4055 | .person-field { |
| 4056 | padding: 12px 22px 14px; |
| 4057 | min-width: 0; |
| 4058 | border-right: 1px solid var(--border); |
| 4059 | |
| 4060 | &:last-child { border-right: none; } |
| 4061 | |
| 4062 | dt { |
| 4063 | font-size: 10px; |
| 4064 | letter-spacing: 0.09em; |
| 4065 | text-transform: uppercase; |
| 4066 | color: var(--muted); |
| 4067 | } |
| 4068 | |
| 4069 | dd { |
| 4070 | margin: 4px 0 0; |
| 4071 | font-size: 13px; |
| 4072 | color: var(--ink); |
| 4073 | overflow: hidden; |
| 4074 | text-overflow: ellipsis; |
| 4075 | white-space: nowrap; |
| 4076 | } |
| 4077 | } |
| 4078 | |
| 4079 | .person-field dd.person-address { |
| 4080 | font-family: var(--font-mono); |
| 4081 | font-size: 12px; |
| 4082 | } |
| 4083 | |
| 4084 | // The hover tooltip names a face that is standing beside its own name. |
| 4085 | .person-head .avatar[data-name]:hover::after { content: none; } |
| 4086 | |
| 4087 | // Four counts, four boxes. The number leads and the label sits under it, so a |
| 4088 | // column reads as one thing rather than as a word with a digit beside it. |
| 4089 | .person-stats { |
| 4090 | display: grid; |
| 4091 | grid-template-columns: repeat(4, 1fr); |
| 4092 | margin: 0; |
| 4093 | |
| 4094 | @media (max-width: 620px) { |
| 4095 | grid-template-columns: repeat(2, 1fr); |
| 4096 | |
| 4097 | // Two by two: the rule runs between the columns and under the first |
| 4098 | // row, not off the right edge of every cell. |
| 4099 | .person-stat { |
| 4100 | border-right: none; |
| 4101 | border-bottom: 1px solid var(--border); |
| 4102 | |
| 4103 | &:nth-child(odd) { border-right: 1px solid var(--border); } |
| 4104 | &:nth-child(n + 3) { border-bottom: none; } |
| 4105 | } |
| 4106 | } |
| 4107 | } |
| 4108 | |
| 4109 | .person-stat { |
| 4110 | padding: 16px 22px 18px; |
| 4111 | border-right: 1px solid var(--border); |
| 4112 | |
| 4113 | &:last-child { border-right: none; } |
| 4114 | |
| 4115 | dd { |
| 4116 | margin: 0; |
| 4117 | font-family: var(--font-mono); |
| 4118 | font-size: 26px; |
| 4119 | font-weight: 500; |
| 4120 | line-height: 1.1; |
| 4121 | font-variant-numeric: tabular-nums; |
| 4122 | } |
| 4123 | |
| 4124 | dt { |
| 4125 | margin-top: 6px; |
| 4126 | font-size: 10px; |
| 4127 | letter-spacing: 0.09em; |
| 4128 | text-transform: uppercase; |
| 4129 | color: var(--muted); |
| 4130 | } |
| 4131 | } |
| 4132 | |
| 4133 | .person-feed { |
| 4134 | list-style: none; |
| 4135 | margin: 0; |
| 4136 | padding: 0; |
| 4137 | } |
| 4138 | |
| 4139 | .person-line { |
| 4140 | display: flex; |
| 4141 | align-items: baseline; |
| 4142 | gap: 12px; |
| 4143 | padding: 9px 18px; |
| 4144 | border-top: 1px solid var(--border); |
| 4145 | min-width: 0; |
| 4146 | |
| 4147 | &:first-child { border-top: none; } |
| 4148 | &:hover { background: var(--surface-muted); } |
| 4149 | } |
| 4150 | |
| 4151 | .person-verb { |
| 4152 | flex: none; |
| 4153 | width: 88px; |
| 4154 | font-size: 11px; |
| 4155 | letter-spacing: 0.06em; |
| 4156 | text-transform: uppercase; |
| 4157 | color: var(--muted); |
| 4158 | } |
| 4159 | |
| 4160 | .person-task { |
| 4161 | display: flex; |
| 4162 | align-items: baseline; |
| 4163 | gap: 8px; |
| 4164 | min-width: 0; |
| 4165 | color: inherit; |
| 4166 | text-decoration: none; |
| 4167 | |
| 4168 | &:hover .person-title { text-decoration: underline; } |
| 4169 | } |
| 4170 | |
| 4171 | .person-key { |
| 4172 | flex: none; |
| 4173 | font-family: var(--font-mono); |
| 4174 | font-size: 11px; |
| 4175 | color: var(--muted); |
| 4176 | } |
| 4177 | |
| 4178 | .person-title { |
| 4179 | overflow: hidden; |
| 4180 | text-overflow: ellipsis; |
| 4181 | white-space: nowrap; |
| 4182 | font-size: 13px; |
| 4183 | } |
| 4184 | |
| 4185 | .person-day { |
| 4186 | margin-left: auto; |
| 4187 | flex: none; |
| 4188 | white-space: nowrap; |
| 4189 | color: var(--muted); |
| 4190 | font-size: 12px; |
| 4191 | } |
| 4192 | // --- Mobile (narrow viewports) ---------------------------------------------- |
| 4193 | // |
| 4194 | // One breakpoint, at the same 620px the person stats already fold at. The |
| 4195 | // document stays viewport-locked on every page (the body:has(...) rules |
| 4196 | // above); what a narrow screen changes is geometry: chrome tightens, the |
| 4197 | // settings rail becomes a strip, the board's columns pan sideways, and the |
| 4198 | // regions that already pan keep panning. Nothing here may open a document |
| 4199 | // scrollbar, and nothing here may grow explainer text. |
| 4200 | @media (max-width: 620px) { |
| 4201 | // -- chrome ---------------------------------------------------------------- |
| 4202 | |
| 4203 | .topbar { |
| 4204 | gap: 10px; |
| 4205 | padding: 0 12px; |
| 4206 | } |
| 4207 | |
| 4208 | .topbar-nav-links { |
| 4209 | gap: 12px; |
| 4210 | // Five admin links outrun the narrowest phones; the strip pans under the |
| 4211 | // finger the way every other overflow region here does, and the wordmark |
| 4212 | // and avatar stay pinned at the edges. |
| 4213 | min-width: 0; |
| 4214 | overflow-x: auto; |
| 4215 | scrollbar-width: none; |
| 4216 | |
| 4217 | &::-webkit-scrollbar { display: none; } |
| 4218 | } |
| 4219 | |
| 4220 | // The avatar says who is signed in at this width; the name is the menu's. |
| 4221 | .user-menu-trigger-name { display: none; } |
| 4222 | |
| 4223 | // The last squeeze, below the smallest common phone: the chrome gives up |
| 4224 | // its air before the nav gives up legibility. |
| 4225 | @media (max-width: 360px) { |
| 4226 | .topbar { |
| 4227 | gap: 8px; |
| 4228 | padding: 0 8px; |
| 4229 | } |
| 4230 | |
| 4231 | .topbar-nav-links { gap: 10px; } |
| 4232 | |
| 4233 | // The stamp is a clock reading, not the news; below the smallest common |
| 4234 | // phone it gives up its width and ends in an ellipsis, one line. |
| 4235 | .log-stamp { |
| 4236 | flex-shrink: 1; |
| 4237 | min-width: 0; |
| 4238 | overflow: hidden; |
| 4239 | text-overflow: ellipsis; |
| 4240 | white-space: nowrap; |
| 4241 | } |
| 4242 | } |
| 4243 | |
| 4244 | // -- board ----------------------------------------------------------------- |
| 4245 | |
| 4246 | .filterbar { |
| 4247 | height: auto; |
| 4248 | min-height: 44px; |
| 4249 | flex-wrap: wrap; |
| 4250 | row-gap: 8px; |
| 4251 | padding: 8px 12px; |
| 4252 | } |
| 4253 | |
| 4254 | // A rule floating alone at the head of a wrapped row says nothing. |
| 4255 | .filterbar .topbar-divider { display: none; } |
| 4256 | |
| 4257 | .filterbar .primary, |
| 4258 | .filterbar .chip { flex: none; } |
| 4259 | |
| 4260 | .board-stage { padding: 12px; } |
| 4261 | |
| 4262 | // The columns stop sharing one row and become a rail: each as wide as a |
| 4263 | // card needs, the row panning sideways under the finger, silently. |
| 4264 | .board-columns { |
| 4265 | grid-template-columns: none; |
| 4266 | grid-auto-flow: column; |
| 4267 | grid-auto-columns: min(72vw, 280px); |
| 4268 | overflow-x: auto; |
| 4269 | scroll-snap-type: x proximity; |
| 4270 | scrollbar-width: none; |
| 4271 | |
| 4272 | &::-webkit-scrollbar { display: none; } |
| 4273 | } |
| 4274 | |
| 4275 | .column { scroll-snap-align: start; } |
| 4276 | |
| 4277 | // -- modals ---------------------------------------------------------------- |
| 4278 | |
| 4279 | .modal-scrim { padding: 16px; } |
| 4280 | |
| 4281 | .modal { max-height: calc(100dvh - 32px); } |
| 4282 | .viewer:has(.viewer-pdf) { height: calc(100dvh - 32px); } |
| 4283 | |
| 4284 | .new-task-row { flex-wrap: wrap; } |
| 4285 | |
| 4286 | .detail-head { padding: 16px 16px 0; } |
| 4287 | |
| 4288 | // Six tabs outrun a phone; the strip pans, the way a column of cards does. |
| 4289 | .detail-tabs { |
| 4290 | overflow-x: auto; |
| 4291 | scrollbar-width: none; |
| 4292 | |
| 4293 | &::-webkit-scrollbar { display: none; } |
| 4294 | } |
| 4295 | |
| 4296 | .detail-tab { white-space: nowrap; } |
| 4297 | |
| 4298 | .detail-crumb-title { max-width: 16ch; } |
| 4299 | |
| 4300 | .detail-fields { |
| 4301 | grid-template-columns: minmax(0, 1fr); |
| 4302 | padding: 14px 16px 0; |
| 4303 | } |
| 4304 | |
| 4305 | .detail-block { padding: 16px 16px 0; } |
| 4306 | |
| 4307 | .detail-foot { padding: 14px 16px 16px; } |
| 4308 | |
| 4309 | // -- popovers ---------------------------------------------------------------- |
| 4310 | |
| 4311 | // The datepick hangs from the right end of the filter row; anchored left |
| 4312 | // it opens past the panel's clipped edge. Anchor it right, the way the |
| 4313 | // assignee pop already is. |
| 4314 | .datepick-pop .edit-form { |
| 4315 | left: auto; |
| 4316 | right: 0; |
| 4317 | } |
| 4318 | |
| 4319 | // -- the settings shell: rail becomes a strip ------------------------------- |
| 4320 | |
| 4321 | .settings-shell { flex-direction: column; } |
| 4322 | |
| 4323 | .settings-sections { |
| 4324 | width: auto; |
| 4325 | flex-direction: row; |
| 4326 | padding: 0 8px; |
| 4327 | border-right: none; |
| 4328 | border-bottom: 1px solid var(--border); |
| 4329 | overflow-x: auto; |
| 4330 | scrollbar-width: none; |
| 4331 | |
| 4332 | &::-webkit-scrollbar { display: none; } |
| 4333 | } |
| 4334 | |
| 4335 | .settings-section-link { |
| 4336 | flex: none; |
| 4337 | padding: 12px 10px; |
| 4338 | white-space: nowrap; |
| 4339 | } |
| 4340 | |
| 4341 | .settings-stage { padding: 16px 16px 32px; } |
| 4342 | |
| 4343 | .field-row { flex-wrap: wrap; } |
| 4344 | |
| 4345 | // -- people ----------------------------------------------------------------- |
| 4346 | |
| 4347 | .people-shell { padding: 16px 16px 32px; } |
| 4348 | |
| 4349 | .person-head { flex-wrap: wrap; } |
| 4350 | |
| 4351 | .person-fields { grid-template-columns: minmax(0, 1fr); } |
| 4352 | |
| 4353 | // Stacked cells rule underneath each other, not off their right edge. |
| 4354 | .person-field { |
| 4355 | border-right: none; |
| 4356 | border-bottom: 1px solid var(--border); |
| 4357 | |
| 4358 | &:last-child { |
| 4359 | border-right: none; |
| 4360 | border-bottom: none; |
| 4361 | } |
| 4362 | } |
| 4363 | |
| 4364 | // -- account screens --------------------------------------------------------- |
| 4365 | |
| 4366 | .auth-stage { padding: 0 16px 24px; } |
| 4367 | } |
| 4368 | |
| 4369 | // --- Tablet (between the phone fold and the desktop) ------------------------ |
| 4370 | // |
| 4371 | // The desktop layout holds here, but its evenly shared columns and fields |
| 4372 | // run short of room: a track keeps a floor to stay readable, and what does |
| 4373 | // not fit pans inside its region, the way it does on a phone. No document |
| 4374 | // scrollbar opens here either. |
| 4375 | @media (min-width: 621px) and (max-width: 1024px) { |
| 4376 | |
| 4377 | // -- board ----------------------------------------------------------------- |
| 4378 | |
| 4379 | // Five or seven columns shared across a 620-something window are 90px |
| 4380 | // slivers. Each keeps a card's width instead; the row pans sideways under |
| 4381 | // the finger, silently, as the phone rail already does. |
| 4382 | .board-columns { |
| 4383 | grid-template-columns: none; |
| 4384 | grid-auto-flow: column; |
| 4385 | grid-auto-columns: minmax(180px, 1fr); |
| 4386 | overflow-x: auto; |
| 4387 | scroll-snap-type: x proximity; |
| 4388 | scrollbar-width: none; |
| 4389 | |
| 4390 | &::-webkit-scrollbar { display: none; } |
| 4391 | } |
| 4392 | |
| 4393 | .column { scroll-snap-align: start; } |
| 4394 | |
| 4395 | // -- settings ---------------------------------------------------------------- |
| 4396 | |
| 4397 | // The rail keeps its width; two fields that no longer have the room for |
| 4398 | // their columns stack instead of squeezing into slivers. |
| 4399 | .field-row { flex-wrap: wrap; } |
| 4400 | } |
| 4401 | |
| 4402 | // The Settings Connection card: the identity mirror's stand, as facts and a |
| 4403 | // state dot — green while the /directory/live stream is open, amber while |
| 4404 | // iz waits out a reconnection. |
| 4405 | .connection-facts { |
| 4406 | display: grid; |
| 4407 | grid-template-columns: max-content 1fr; |
| 4408 | gap: 0.4rem 1.5rem; |
| 4409 | margin: 0; |
| 4410 | |
| 4411 | dt { |
| 4412 | font-weight: 600; |
| 4413 | white-space: nowrap; |
| 4414 | } |
| 4415 | } |
| 4416 | |
| 4417 | .connection-dot { |
| 4418 | display: inline-block; |
| 4419 | width: 0.55rem; |
| 4420 | height: 0.55rem; |
| 4421 | border-radius: 50%; |
| 4422 | margin-right: 0.4rem; |
| 4423 | vertical-align: baseline; |
| 4424 | |
| 4425 | &.connection-on { |
| 4426 | background: #2e9e5b; |
| 4427 | } |
| 4428 | |
| 4429 | &.connection-wait { |
| 4430 | background: #d99a26; |
| 4431 | } |
| 4432 | } |
| 4433 | |
| 4434 | // The migration meter on the Storage card's Migration fact: a tinted pill |
| 4435 | // of track under an accent fill that carries a travelling highlight — a |
| 4436 | // quota is a level, but a migration is activity, so the light moves the |
| 4437 | // way the rows do, and the fill holds full accent against the 9% track so |
| 4438 | // the meter reads at a glance from across the room. The level rides the |
| 4439 | // fill's inline width; the highlight rides a background sweep that stands |
| 4440 | // still for anyone who asked motion to stop. |
| 4441 | .quota-bar { |
| 4442 | height: 6px; |
| 4443 | margin-top: 0.45rem; |
| 4444 | background: color-mix(in srgb, var(--accent) 9%, transparent); |
| 4445 | border-radius: 999px; |
| 4446 | overflow: hidden; |
| 4447 | } |
| 4448 | |
| 4449 | .quota-fill { |
| 4450 | height: 100%; |
| 4451 | border-radius: 999px; |
| 4452 | background: linear-gradient( |
| 4453 | 100deg, |
| 4454 | var(--accent) 0%, |
| 4455 | var(--accent) 38%, |
| 4456 | color-mix(in srgb, var(--accent) 35%, white) 50%, |
| 4457 | var(--accent) 62%, |
| 4458 | var(--accent) 100% |
| 4459 | ); |
| 4460 | background-size: 200% 100%; |
| 4461 | animation: quota-sweep 1.4s linear infinite; |
| 4462 | |
| 4463 | @media (prefers-reduced-motion: reduce) { |
| 4464 | animation: none; |
| 4465 | background: var(--accent); |
| 4466 | } |
| 4467 | } |
| 4468 | |
| 4469 | @keyframes quota-sweep { |
| 4470 | from { |
| 4471 | background-position: 100% 0; |
| 4472 | } |
| 4473 | |
| 4474 | to { |
| 4475 | background-position: 0 0; |
| 4476 | } |
| 4477 | } |