in_old
Clone
https://git.tahinli.com/Tahinli/in_old.git
0 watching0 forksRustGPL-3.01.1 MiB218b775Tahinli2 months ago90 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 and setup pages: 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-nav-links { |
| 447 | display: flex; |
| 448 | gap: 16px; |
| 449 | margin-left: auto; |
| 450 | } |
| 451 | |
| 452 | // The spacer's flex-grow eats the free space before auto margins see any, so |
| 453 | // inside the chrome the nav's auto margin does the pushing instead. |
| 454 | .topbar > .spacer { display: none; } |
| 455 | |
| 456 | .topbar-nav { |
| 457 | font-family: var(--font-mono); |
| 458 | font-size: 10px; |
| 459 | letter-spacing: 0.08em; |
| 460 | text-transform: uppercase; |
| 461 | color: var(--muted); |
| 462 | text-decoration: none; |
| 463 | // A two-word label ("Mail rules") folds under pressure and reads as two |
| 464 | // stacked links; the nav gives up room some other way. |
| 465 | white-space: nowrap; |
| 466 | padding-bottom: 2px; |
| 467 | |
| 468 | &:hover { color: var(--ink); } |
| 469 | |
| 470 | &-on { |
| 471 | color: var(--ink); |
| 472 | box-shadow: inset 0 -2px 0 var(--ink); |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | // The family behind the monogram: the sibling apps' wordmarks, middots |
| 477 | // between, in a flyout that hangs under the mark and shows on hover or on |
| 478 | // keyboard focus (the mark is a link, so it focuses itself). Absolutely |
| 479 | // placed, so the chrome keeps the bare monogram's width; it stays in the |
| 480 | // DOM so the links are reachable by tab, which is what opens it for a |
| 481 | // keyboard. No gap between mark and flyout, so the pointer can travel down |
| 482 | // into it without it closing. |
| 483 | .wordmark-family { |
| 484 | position: relative; |
| 485 | display: flex; |
| 486 | // The mark keeps its width at every width: the page nav beside it is the |
| 487 | // region that pans under the finger, this never squishes. |
| 488 | flex: none; |
| 489 | |
| 490 | &:hover .app-switcher, |
| 491 | &:focus-within .app-switcher { |
| 492 | opacity: 1; |
| 493 | transform: translate(0, 0); |
| 494 | pointer-events: auto; |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | .app-switcher { |
| 499 | position: absolute; |
| 500 | top: 100%; |
| 501 | left: 0; |
| 502 | // Over the page, under the house dropdown's panel (60), which may open |
| 503 | // from a row the flyout hangs across. |
| 504 | z-index: 50; |
| 505 | display: flex; |
| 506 | align-items: center; |
| 507 | gap: 10px; |
| 508 | padding: 6px 12px; |
| 509 | background: var(--surface); |
| 510 | border: 1px solid var(--border); |
| 511 | border-radius: var(--radius); |
| 512 | box-shadow: var(--shadow-2); |
| 513 | opacity: 0; |
| 514 | transform: translate(0, -4px); |
| 515 | pointer-events: none; |
| 516 | transition: opacity 120ms ease, transform 120ms ease; |
| 517 | |
| 518 | &-mark { |
| 519 | font-family: var(--font-mono); |
| 520 | font-size: 13px; |
| 521 | font-weight: 500; |
| 522 | letter-spacing: 0.02em; |
| 523 | color: var(--muted); |
| 524 | text-decoration: none; |
| 525 | // The flyout shrink-fits to the monogram's width; without this the |
| 526 | // health dot wraps off its key. It grows right instead, over the page |
| 527 | // nav, under the house dropdown's panel. |
| 528 | white-space: nowrap; |
| 529 | |
| 530 | &:hover { color: var(--ink); } |
| 531 | } |
| 532 | |
| 533 | &-sep { color: var(--muted-soft); } |
| 534 | } |
| 535 | |
| 536 | // The wordmark flyout's per-service state dot: green while the service's |
| 537 | // /healthz answers ok, muted when it does not — the same light iz's |
| 538 | // connection card and im's flyout carry, one green across the family. |
| 539 | .health-dot { |
| 540 | display: inline-block; |
| 541 | width: 0.55rem; |
| 542 | height: 0.55rem; |
| 543 | border-radius: 50%; |
| 544 | margin-right: 0.4rem; |
| 545 | vertical-align: baseline; |
| 546 | |
| 547 | &.health-on { background: #2e9e5b; } |
| 548 | &.health-off { background: var(--muted); } |
| 549 | } |
| 550 | .scaffold-note { |
| 551 | margin: 24px; |
| 552 | padding: 20px 24px; |
| 553 | background: var(--surface); |
| 554 | border: 1px solid var(--border); |
| 555 | border-radius: var(--radius-lg); |
| 556 | color: var(--muted); |
| 557 | } |
| 558 | |
| 559 | // The public card's image preview is a bare `` — no class of its own — |
| 560 | // so a picture wider than the card must shrink to it instead of widening |
| 561 | // the page. Nothing that already fits changes size. |
| 562 | .scaffold-note img { max-width: 100%; } |
| 563 | |
| 564 | // --- Account screens (FirstLogin artboard) --------------------------------- |
| 565 | |
| 566 | .auth-stage { |
| 567 | min-height: calc(100vh - var(--topbar-height)); |
| 568 | display: flex; |
| 569 | align-items: center; |
| 570 | justify-content: center; |
| 571 | padding: 0 40px 40px; |
| 572 | } |
| 573 | |
| 574 | .auth-column { |
| 575 | width: 520px; |
| 576 | max-width: 100%; |
| 577 | display: flex; |
| 578 | flex-direction: column; |
| 579 | gap: 10px; |
| 580 | } |
| 581 | |
| 582 | .auth-card { |
| 583 | background: var(--surface); |
| 584 | border: 1px solid var(--border); |
| 585 | border-radius: var(--radius-lg); |
| 586 | padding: 28px 28px; |
| 587 | display: flex; |
| 588 | flex-direction: column; |
| 589 | gap: 18px; |
| 590 | box-shadow: var(--shadow-2); |
| 591 | |
| 592 | form { |
| 593 | display: flex; |
| 594 | flex-direction: column; |
| 595 | gap: 20px; |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | .auth-head { |
| 600 | display: flex; |
| 601 | flex-direction: column; |
| 602 | gap: 6px; |
| 603 | } |
| 604 | |
| 605 | .auth-title { |
| 606 | font-size: 18px; |
| 607 | font-weight: 600; |
| 608 | letter-spacing: -0.01em; |
| 609 | } |
| 610 | |
| 611 | .auth-sub { |
| 612 | font-size: 13px; |
| 613 | color: var(--muted); |
| 614 | line-height: 1.5; |
| 615 | } |
| 616 | |
| 617 | .auth-field { |
| 618 | display: flex; |
| 619 | flex-direction: column; |
| 620 | gap: 6px; |
| 621 | } |
| 622 | |
| 623 | .auth-label { |
| 624 | font-family: var(--font-mono); |
| 625 | font-size: 10px; |
| 626 | letter-spacing: 0.08em; |
| 627 | color: var(--muted-soft); |
| 628 | text-transform: uppercase; |
| 629 | } |
| 630 | |
| 631 | // The address an invited member signs in as: shown, never edited. |
| 632 | .auth-locked { |
| 633 | display: flex; |
| 634 | align-items: center; |
| 635 | gap: 8px; |
| 636 | height: 40px; |
| 637 | padding: 0 12px; |
| 638 | background: var(--panel-sunken); |
| 639 | border: 1px solid var(--border-strong); |
| 640 | border-radius: var(--radius); |
| 641 | } |
| 642 | |
| 643 | .auth-locked-value { |
| 644 | font-family: var(--font-mono); |
| 645 | font-size: 13px; |
| 646 | color: var(--muted); |
| 647 | flex-grow: 1; |
| 648 | } |
| 649 | |
| 650 | .auth-submit { |
| 651 | height: var(--control-h-lg); |
| 652 | display: flex; |
| 653 | align-items: center; |
| 654 | justify-content: center; |
| 655 | gap: 8px; |
| 656 | background: var(--accent); |
| 657 | color: var(--surface); |
| 658 | border: 0; |
| 659 | border-radius: var(--radius); |
| 660 | cursor: pointer; |
| 661 | font-family: var(--font-sans); |
| 662 | |
| 663 | &:disabled { |
| 664 | opacity: 0.45; |
| 665 | cursor: default; |
| 666 | } |
| 667 | } |
| 668 | |
| 669 | .auth-submit-text { |
| 670 | font-size: 13px; |
| 671 | font-weight: 600; |
| 672 | } |
| 673 | |
| 674 | .auth-key { |
| 675 | font-family: var(--font-mono); |
| 676 | font-size: 10px; |
| 677 | background: var(--accent-strong); |
| 678 | border-radius: var(--radius-sm); |
| 679 | padding: 1px 4px; |
| 680 | } |
| 681 | |
| 682 | .auth-problem { |
| 683 | font-size: 13px; |
| 684 | color: var(--danger); |
| 685 | background: var(--danger-tint-alt); |
| 686 | border: 1px solid var(--danger-border-soft); |
| 687 | border-radius: var(--radius); |
| 688 | padding: 10px 12px; |
| 689 | } |
| 690 | |
| 691 | .auth-note { |
| 692 | font-size: 13px; |
| 693 | color: var(--muted); |
| 694 | background: var(--panel-sunken); |
| 695 | border: 1px solid var(--border-soft); |
| 696 | border-radius: var(--radius); |
| 697 | padding: 10px 12px; |
| 698 | } |
| 699 | |
| 700 | .auth-alt { |
| 701 | font-size: 12px; |
| 702 | color: var(--muted); |
| 703 | text-decoration: none; |
| 704 | align-self: center; |
| 705 | |
| 706 | &:hover { color: var(--accent-ink); } |
| 707 | } |
| 708 | |
| 709 | // -- the board (Main and EmptyBoard artboards) ------------------------------- |
| 710 | |
| 711 | .spacer { flex-grow: 1; } |
| 712 | |
| 713 | .user-menu { position: relative; } |
| 714 | |
| 715 | .user-menu-trigger { |
| 716 | display: inline-flex; |
| 717 | align-items: center; |
| 718 | gap: 8px; |
| 719 | padding: 0; |
| 720 | background: none; |
| 721 | border: none; |
| 722 | font-family: inherit; |
| 723 | font-size: 13px; |
| 724 | color: var(--muted); |
| 725 | cursor: pointer; |
| 726 | transition: color var(--dur-fast) var(--ease); |
| 727 | |
| 728 | &:hover { color: var(--accent-ink); } |
| 729 | } |
| 730 | |
| 731 | .user-menu-panel { |
| 732 | position: absolute; |
| 733 | top: 100%; |
| 734 | right: 0; |
| 735 | z-index: 30; |
| 736 | width: 220px; |
| 737 | padding: 8px; |
| 738 | background: var(--surface); |
| 739 | border: 1px solid var(--border-strong); |
| 740 | border-radius: var(--radius-md); |
| 741 | box-shadow: var(--shadow-2); |
| 742 | visibility: hidden; |
| 743 | opacity: 0; |
| 744 | pointer-events: none; |
| 745 | transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease); |
| 746 | } |
| 747 | |
| 748 | .user-menu:hover .user-menu-panel, |
| 749 | .user-menu:focus-within .user-menu-panel { |
| 750 | visibility: visible; |
| 751 | opacity: 1; |
| 752 | pointer-events: auto; |
| 753 | } |
| 754 | .user-menu.user-menu-esc .user-menu-panel { visibility: hidden; opacity: 0; pointer-events: none; } |
| 755 | |
| 756 | .user-menu-name { |
| 757 | padding: 4px 10px 0; |
| 758 | font-size: 13px; |
| 759 | font-weight: 600; |
| 760 | } |
| 761 | |
| 762 | .user-menu-email { |
| 763 | padding: 2px 10px 0; |
| 764 | font-size: 12px; |
| 765 | color: var(--muted); |
| 766 | word-break: break-all; |
| 767 | } |
| 768 | |
| 769 | .user-menu-role { |
| 770 | padding: 2px 10px 6px; |
| 771 | font-size: 12px; |
| 772 | color: var(--muted-soft); |
| 773 | text-transform: capitalize; |
| 774 | } |
| 775 | |
| 776 | .user-menu-item { |
| 777 | display: flex; |
| 778 | align-items: center; |
| 779 | width: 100%; |
| 780 | height: 32px; |
| 781 | padding: 0 10px; |
| 782 | border-radius: var(--radius-sm); |
| 783 | border: none; |
| 784 | background: none; |
| 785 | font-family: inherit; |
| 786 | font-size: 13px; |
| 787 | color: var(--ink-soft); |
| 788 | text-decoration: none; |
| 789 | text-align: left; |
| 790 | cursor: pointer; |
| 791 | transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); |
| 792 | |
| 793 | &:hover { background: var(--row-hover); color: var(--ink); } |
| 794 | } |
| 795 | |
| 796 | .user-menu-item-form { display: block; } |
| 797 | |
| 798 | .filterbar { |
| 799 | min-height: 52px; |
| 800 | background: var(--surface); |
| 801 | border-bottom: 1px solid var(--border); |
| 802 | display: flex; |
| 803 | align-items: center; |
| 804 | flex-wrap: wrap; |
| 805 | row-gap: 8px; |
| 806 | gap: 14px; |
| 807 | padding: 8px 24px; |
| 808 | } |
| 809 | |
| 810 | // The drive page's create-folder form sits inside the filterbar, where the |
| 811 | // column form's stacking (gap, padding, top rule) would blow the 40px |
| 812 | // instrument bar apart and float oddly centred in ledger too: inline here, |
| 813 | // so the row fits the bar in both skins. |
| 814 | .filterbar .tag-form { |
| 815 | flex-direction: row; |
| 816 | align-items: center; |
| 817 | gap: 10px; |
| 818 | padding: 0; |
| 819 | border-top: none; |
| 820 | } |
| 821 | // The drive's + menu trigger is a details summary wearing the primary button |
| 822 | // skin; the disclosure marker stays hidden, the '+' is literal text. The |
| 823 | // open panel is the house `.user-menu-panel` — no bar-local rules, no script. |
| 824 | .drive-add-trigger { |
| 825 | list-style: none; |
| 826 | |
| 827 | &::marker, &::-webkit-details-marker { display: none; } |
| 828 | } |
| 829 | |
| 830 | .segmented { |
| 831 | display: flex; |
| 832 | align-items: center; |
| 833 | background: var(--panel-sunken); |
| 834 | border: 1px solid var(--border-strong); |
| 835 | border-radius: var(--radius); |
| 836 | padding: 2px; |
| 837 | gap: 2px; |
| 838 | } |
| 839 | |
| 840 | .chip { |
| 841 | display: flex; |
| 842 | align-items: center; |
| 843 | height: 24px; |
| 844 | padding: 0 10px; |
| 845 | border-radius: var(--radius); |
| 846 | font-size: 11px; |
| 847 | font-weight: 600; |
| 848 | |
| 849 | &-overdue { |
| 850 | background: var(--danger-tint); |
| 851 | color: var(--danger); |
| 852 | } |
| 853 | |
| 854 | &-blocked { |
| 855 | background: var(--warn-tint); |
| 856 | color: var(--warn-ink); |
| 857 | } |
| 858 | |
| 859 | &-role, |
| 860 | &-admin, |
| 861 | &-shared, |
| 862 | &-connected, |
| 863 | &-off { |
| 864 | text-transform: capitalize; |
| 865 | } |
| 866 | |
| 867 | &-role { background: var(--surface-sunken); border: 1px solid var(--border-strong); color: var(--ink-soft); } |
| 868 | &-admin, |
| 869 | &-shared { background: var(--panel-sunken); border: 1px solid var(--border-strong); color: var(--muted); } |
| 870 | &-connected { background: var(--positive-tint); color: var(--positive-ink); } |
| 871 | &-off { background: var(--warn-tint); color: var(--warn-ink); } |
| 872 | } |
| 873 | |
| 874 | .board-stage { |
| 875 | position: relative; |
| 876 | display: flex; |
| 877 | flex-direction: column; |
| 878 | flex: 1; |
| 879 | min-height: 0; |
| 880 | padding: 20px 24px 24px 24px; |
| 881 | } |
| 882 | |
| 883 | .board-columns { |
| 884 | flex: 1; |
| 885 | min-height: 0; |
| 886 | display: grid; |
| 887 | grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); |
| 888 | gap: 16px; |
| 889 | align-items: stretch; |
| 890 | } |
| 891 | |
| 892 | .column { |
| 893 | background: var(--surface-sunken); |
| 894 | border-radius: var(--radius-lg); |
| 895 | padding: 12px; |
| 896 | display: flex; |
| 897 | flex-direction: column; |
| 898 | gap: 10px; |
| 899 | min-height: 120px; |
| 900 | } |
| 901 | |
| 902 | .column-head { |
| 903 | display: flex; |
| 904 | align-items: center; |
| 905 | gap: 8px; |
| 906 | padding: 2px 4px; |
| 907 | } |
| 908 | |
| 909 | .column-name { |
| 910 | font-size: 13px; |
| 911 | font-weight: 600; |
| 912 | } |
| 913 | |
| 914 | .column-count { |
| 915 | font-family: var(--font-mono); |
| 916 | font-size: 11px; |
| 917 | font-variant-numeric: tabular-nums; |
| 918 | color: var(--muted-soft); |
| 919 | background: var(--panel-sunken); |
| 920 | border-radius: var(--radius); |
| 921 | padding: 1px 6px; |
| 922 | } |
| 923 | |
| 924 | .column-cards { |
| 925 | display: flex; |
| 926 | flex-direction: column; |
| 927 | gap: 8px; |
| 928 | flex: 1; |
| 929 | min-height: 0; |
| 930 | overflow-y: auto; |
| 931 | scrollbar-width: none; |
| 932 | |
| 933 | &::-webkit-scrollbar { display: none; } |
| 934 | } |
| 935 | |
| 936 | .column-empty { |
| 937 | flex: 1; |
| 938 | display: flex; |
| 939 | align-items: center; |
| 940 | justify-content: center; |
| 941 | min-height: 60px; |
| 942 | border: 1px dashed var(--border-strong); |
| 943 | border-radius: var(--radius-md); |
| 944 | background: var(--surface-sunken); |
| 945 | font-size: 12px; |
| 946 | color: var(--muted-soft); |
| 947 | } |
| 948 | |
| 949 | .card { |
| 950 | // The card is an anchor so it has an address; it must not read as one. |
| 951 | display: block; |
| 952 | text-decoration: none; |
| 953 | color: inherit; |
| 954 | background: var(--surface); |
| 955 | border: 1px solid var(--border); |
| 956 | border-radius: var(--radius-md); |
| 957 | padding: 10px 12px; |
| 958 | box-shadow: var(--shadow-1); |
| 959 | cursor: pointer; |
| 960 | transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); |
| 961 | |
| 962 | &:hover { |
| 963 | background: var(--row-hover); |
| 964 | border-color: var(--border-strong); |
| 965 | } |
| 966 | } |
| 967 | |
| 968 | /* Where a dragged card may land. Only columns it is not already in light up: |
| 969 | the card's own column is not a destination. */ |
| 970 | .column-drop { |
| 971 | outline: 1px dashed var(--border-strong); |
| 972 | outline-offset: 4px; |
| 973 | border-radius: var(--radius-md); |
| 974 | background: var(--accent-tint); |
| 975 | } |
| 976 | |
| 977 | .card-done { |
| 978 | background: var(--surface-muted); |
| 979 | box-shadow: none; |
| 980 | |
| 981 | .card-title { color: var(--muted); } |
| 982 | } |
| 983 | |
| 984 | .card-keys { |
| 985 | display: flex; |
| 986 | align-items: baseline; |
| 987 | gap: 6px; |
| 988 | font-family: var(--font-mono); |
| 989 | font-size: 10px; |
| 990 | } |
| 991 | |
| 992 | .card-key { color: var(--muted); } |
| 993 | |
| 994 | .card-blocks, |
| 995 | .card-blocked-by { color: var(--warn-ink); } |
| 996 | |
| 997 | .card-title { |
| 998 | font-size: 13px; |
| 999 | font-weight: 600; |
| 1000 | line-height: 1.4; |
| 1001 | margin-top: 4px; |
| 1002 | } |
| 1003 | |
| 1004 | .card-foot { |
| 1005 | display: flex; |
| 1006 | align-items: center; |
| 1007 | gap: 6px; |
| 1008 | margin-top: 10px; |
| 1009 | flex-wrap: wrap; |
| 1010 | } |
| 1011 | |
| 1012 | .card-deadline { |
| 1013 | display: flex; |
| 1014 | align-items: center; |
| 1015 | font-family: var(--font-mono); |
| 1016 | font-size: 11px; |
| 1017 | font-variant-numeric: tabular-nums; |
| 1018 | color: var(--muted); |
| 1019 | background: var(--surface-sunken); |
| 1020 | border-radius: var(--radius-sm); |
| 1021 | padding: 2px 6px; |
| 1022 | |
| 1023 | &-overdue { |
| 1024 | color: var(--danger); |
| 1025 | background: var(--danger-tint); |
| 1026 | } |
| 1027 | |
| 1028 | &-none { |
| 1029 | color: var(--muted-soft); |
| 1030 | background: transparent; |
| 1031 | padding-left: 0; |
| 1032 | } |
| 1033 | } |
| 1034 | |
| 1035 | .card-comments, |
| 1036 | .card-subtasks { |
| 1037 | font-family: var(--font-mono); |
| 1038 | font-size: 11px; |
| 1039 | color: var(--muted); |
| 1040 | } |
| 1041 | |
| 1042 | .card-tag { |
| 1043 | font-family: var(--font-mono); |
| 1044 | font-size: 11px; |
| 1045 | color: var(--muted); |
| 1046 | background: var(--surface-sunken); |
| 1047 | border-radius: var(--radius-sm); |
| 1048 | padding: 2px 6px; |
| 1049 | } |
| 1050 | |
| 1051 | /// Parts still open is the same warning the blocker chips carry: this card |
| 1052 | /// cannot reach the done column yet. |
| 1053 | .card-subtasks-open { color: var(--warn-ink); } |
| 1054 | |
| 1055 | .avatars { |
| 1056 | display: flex; |
| 1057 | align-items: center; |
| 1058 | min-width: 0; |
| 1059 | overflow: hidden; |
| 1060 | |
| 1061 | // The data-name tooltip pokes above the row; hovering drops the clip so it |
| 1062 | // is not cut off by the overlap truncation. |
| 1063 | &:has(.avatar:hover) { overflow: visible; } |
| 1064 | } |
| 1065 | |
| 1066 | .avatar { |
| 1067 | width: 22px; |
| 1068 | height: 22px; |
| 1069 | border-radius: 50%; |
| 1070 | border: 2px solid var(--surface); |
| 1071 | color: var(--surface); |
| 1072 | font-family: var(--font-mono); |
| 1073 | font-size: 10px; |
| 1074 | display: flex; |
| 1075 | align-items: center; |
| 1076 | justify-content: center; |
| 1077 | position: relative; |
| 1078 | |
| 1079 | & + & { margin-left: -8px; } |
| 1080 | |
| 1081 | &-none { |
| 1082 | border: 1px dashed var(--border-strong); |
| 1083 | background: transparent; |
| 1084 | } |
| 1085 | |
| 1086 | // The modal asks for two other sizes: 18px inside an assignee chip, 28px |
| 1087 | // beside a comment. The border is the board's overlap trick and has no job |
| 1088 | // on a lone avatar, so these drop it. |
| 1089 | // |
| 1090 | // They are written as `.avatar.avatar-sm` on purpose: the Instrument skin |
| 1091 | // sizes `.avatar` from a `[data-ui]` scope, which outweighs a lone class — |
| 1092 | // a plain `.avatar-lg` lost to it, and every size modifier collapsed to |
| 1093 | // 18px on that skin without anybody noticing. |
| 1094 | &.avatar-sm { |
| 1095 | width: 18px; |
| 1096 | height: 18px; |
| 1097 | border: none; |
| 1098 | font-size: 10px; |
| 1099 | } |
| 1100 | |
| 1101 | &.avatar-lg { |
| 1102 | width: 28px; |
| 1103 | height: 28px; |
| 1104 | border: none; |
| 1105 | font-size: 11px; |
| 1106 | flex: none; |
| 1107 | } |
| 1108 | |
| 1109 | // The profile page's own picture: the one place a face is the subject of |
| 1110 | // the screen rather than a mark beside somebody's name. |
| 1111 | &.avatar-xl { |
| 1112 | width: 92px; |
| 1113 | height: 92px; |
| 1114 | border: none; |
| 1115 | font-size: 30px; |
| 1116 | font-weight: 500; |
| 1117 | flex: none; |
| 1118 | } |
| 1119 | |
| 1120 | // A bare avatar carries `data-name`; hovering raises a house tooltip in |
| 1121 | // place of the native `title`. |
| 1122 | &[data-name]:hover::after { |
| 1123 | content: attr(data-name); |
| 1124 | position: absolute; |
| 1125 | bottom: calc(100% + 6px); |
| 1126 | left: 50%; |
| 1127 | transform: translateX(-50%); |
| 1128 | background: var(--surface); |
| 1129 | border: 1px solid var(--border); |
| 1130 | border-radius: var(--radius-sm); |
| 1131 | padding: 3px 8px; |
| 1132 | font-size: 11px; |
| 1133 | color: var(--ink-soft); |
| 1134 | box-shadow: var(--shadow-2); |
| 1135 | white-space: nowrap; |
| 1136 | z-index: 30; |
| 1137 | pointer-events: none; |
| 1138 | } |
| 1139 | |
| 1140 | &-tone-0 { background: var(--accent); } |
| 1141 | &-tone-1 { background: var(--avatar-tone-1); } |
| 1142 | &-tone-2 { background: var(--positive); } |
| 1143 | &-tone-3 { background: var(--avatar-tone-3); } |
| 1144 | &-tone-4 { background: var(--avatar-tone-4); } |
| 1145 | } |
| 1146 | |
| 1147 | // A photo avatar is the same box with the picture where the tone fill was; |
| 1148 | // size and shape ride the shared .avatar classes. |
| 1149 | img.avatar { |
| 1150 | object-fit: cover; |
| 1151 | display: block; |
| 1152 | } |
| 1153 | |
| 1154 | // The topbar face: the initials block stays beneath and the photo, when im |
| 1155 | // has one, covers it — a missing photo hides itself (see `avatar_script` in |
| 1156 | // `layout.rs`) and the initials show through. One grid cell shared by both, |
| 1157 | // so no absolute positioning and no second copy of the avatar's size; the |
| 1158 | // overlap rule for grouped faces is unwound here, where the pair is one face. |
| 1159 | .avatar-stack { |
| 1160 | display: inline-grid; |
| 1161 | flex: none; |
| 1162 | |
| 1163 | > * { grid-area: 1 / 1; } |
| 1164 | > .avatar + .avatar { margin-left: 0; } |
| 1165 | } |
| 1166 | |
| 1167 | // The avatar leads the profile panel. Without a photo it is itself the |
| 1168 | // upload control — the file input rides its `form` attribute to a hidden |
| 1169 | // sibling form, so nothing nests inside the profile form. With one, the |
| 1170 | // click opens the photo viewer and a Change button owns the picker instead. |
| 1171 | .identity-row { |
| 1172 | display: flex; |
| 1173 | align-items: center; |
| 1174 | gap: 14px; |
| 1175 | } |
| 1176 | |
| 1177 | // The two faces of the profile picture box: the picker label and, once a |
| 1178 | // photo exists, the viewer trigger. The person page's own card wears the |
| 1179 | // trigger too — the box rules are shared, the size is not. |
| 1180 | .avatar-upload, |
| 1181 | .avatar-view { |
| 1182 | position: relative; |
| 1183 | flex: none; |
| 1184 | cursor: pointer; |
| 1185 | |
| 1186 | // The name tooltip has no job on your own picture. |
| 1187 | .avatar[data-name]:hover::after { content: none; } |
| 1188 | } |
| 1189 | |
| 1190 | // The settings row's picture is 64px whatever size class the avatar wears; |
| 1191 | // the person card's keeps its xl. |
| 1192 | .identity-row .avatar-upload .avatar, |
| 1193 | .identity-row .avatar-view .avatar { |
| 1194 | width: 64px; |
| 1195 | height: 64px; |
| 1196 | font-size: 20px; |
| 1197 | } |
| 1198 | |
| 1199 | // The trigger is the label's box with a button's chrome stripped. |
| 1200 | .avatar-view { |
| 1201 | appearance: none; |
| 1202 | background: none; |
| 1203 | border: none; |
| 1204 | padding: 0; |
| 1205 | } |
| 1206 | |
| 1207 | .avatar-upload { |
| 1208 | // The upload affordance: a veil and a plus over the picture, on hover or |
| 1209 | // keyboard focus only. |
| 1210 | &::after { |
| 1211 | content: "+"; |
| 1212 | position: absolute; |
| 1213 | inset: 0; |
| 1214 | display: flex; |
| 1215 | align-items: center; |
| 1216 | justify-content: center; |
| 1217 | background: rgb(0 0 0 / 0.4); |
| 1218 | border-radius: 50%; |
| 1219 | color: #fff; |
| 1220 | font-size: 24px; |
| 1221 | font-weight: 300; |
| 1222 | opacity: 0; |
| 1223 | transition: opacity var(--dur-fast) var(--ease); |
| 1224 | pointer-events: none; |
| 1225 | } |
| 1226 | |
| 1227 | &:hover::after, |
| 1228 | &:has(.file-upload-input:focus-visible)::after { opacity: 1; } |
| 1229 | } |
| 1230 | |
| 1231 | // -- the card context menu --------------------------------------------------- |
| 1232 | // |
| 1233 | // A right-click opens this at the cursor; `card_menu_script` (board.rs) sets |
| 1234 | // its position and the `card-menu-open` class, and a document click closes |
| 1235 | // whichever one is open. The panel and its rows wear the same floating-list |
| 1236 | // chrome as the assignee and link pickers (`.pop-panel`/`.pop-list`/`.pop-row`). |
| 1237 | |
| 1238 | .card-menu { |
| 1239 | display: none; |
| 1240 | position: fixed; |
| 1241 | z-index: 25; |
| 1242 | min-width: 160px; |
| 1243 | |
| 1244 | &-open { display: block; } |
| 1245 | } |
| 1246 | |
| 1247 | .card-menu-move { position: relative; } |
| 1248 | |
| 1249 | .card-menu-submenu { |
| 1250 | display: none; |
| 1251 | position: absolute; |
| 1252 | left: 100%; |
| 1253 | top: 0; |
| 1254 | margin-left: 4px; |
| 1255 | min-width: 140px; |
| 1256 | } |
| 1257 | |
| 1258 | .card-menu-move:hover > .card-menu-submenu, |
| 1259 | .card-menu-move-trigger:focus + .card-menu-submenu { display: block; } |
| 1260 | |
| 1261 | .card-menu-danger { color: var(--danger); } |
| 1262 | |
| 1263 | // -- the task detail modal -------------------------------------------------- |
| 1264 | // |
| 1265 | // The modal is a view. Every region that can be changed is a `` wearing |
| 1266 | // the view's clothes: the read-only shape is a ``, the form beneath it |
| 1267 | // is hidden until a visually-hidden checkbox is checked, and the checkbox is |
| 1268 | // checked by clicking that label. Cancel is a second label pointing at the |
| 1269 | // same checkbox, so entering and leaving the edit state both work with wasm |
| 1270 | // blocked. Nothing else on the screen changes when one region opens. |
| 1271 | |
| 1272 | .modal-scrim { |
| 1273 | position: fixed; |
| 1274 | inset: 0; |
| 1275 | background: var(--scrim); |
| 1276 | display: flex; |
| 1277 | align-items: flex-start; |
| 1278 | justify-content: center; |
| 1279 | padding: 48px 24px; |
| 1280 | overflow-y: auto; |
| 1281 | // The scrim is the silent pan surface for tall page-style modals: it may |
| 1282 | // scroll, but it never shows a scrollbar. |
| 1283 | scrollbar-width: none; |
| 1284 | |
| 1285 | &::-webkit-scrollbar { display: none; } |
| 1286 | |
| 1287 | z-index: 20; |
| 1288 | } |
| 1289 | |
| 1290 | .modal { |
| 1291 | width: 780px; |
| 1292 | max-width: 100%; |
| 1293 | max-height: calc(100vh - 96px); |
| 1294 | overflow-y: auto; |
| 1295 | background: var(--surface); |
| 1296 | border: 1px solid var(--border); |
| 1297 | border-radius: var(--radius-lg); |
| 1298 | box-shadow: var(--shadow-3); |
| 1299 | padding: 0; |
| 1300 | outline: none; |
| 1301 | } |
| 1302 | |
| 1303 | .modal-loading { height: 220px; } |
| 1304 | |
| 1305 | .modal-note, |
| 1306 | .modal-problem { |
| 1307 | margin: 8px 24px 0; |
| 1308 | font-size: 13px; |
| 1309 | color: var(--danger); |
| 1310 | } |
| 1311 | |
| 1312 | .modal-new-task { width: 480px; } |
| 1313 | |
| 1314 | // The task-detail modal shares `.modal` with the new-task modal and the |
| 1315 | // viewer, which stay centered. The base only fixes the frame — a header on |
| 1316 | // top, one body that pans invisibly between header and composer — because |
| 1317 | // the skins reshape it: instrument docks it as a 560px side panel, ledger |
| 1318 | // lays it out as its own opaque page. |
| 1319 | .modal-task { |
| 1320 | display: flex; |
| 1321 | flex-direction: column; |
| 1322 | max-height: none; |
| 1323 | overflow: visible; |
| 1324 | } |
| 1325 | |
| 1326 | .detail-mast { |
| 1327 | flex: none; |
| 1328 | } |
| 1329 | |
| 1330 | // Dependencies ride in the mast, and a task can be blocked by any number of |
| 1331 | // others — so the list keeps three whole rows' worth of room and pans inside itself, |
| 1332 | // silently, rather than pushing the task's own text off the screen. |
| 1333 | .detail-mast .dep-list { |
| 1334 | max-height: 160px; |
| 1335 | overflow-y: auto; |
| 1336 | scrollbar-width: none; |
| 1337 | |
| 1338 | &::-webkit-scrollbar { display: none; } |
| 1339 | } |
| 1340 | |
| 1341 | .detail-mast .detail-block { |
| 1342 | margin-top: 14px; |
| 1343 | } |
| 1344 | |
| 1345 | .detail-body { |
| 1346 | flex: 1; |
| 1347 | min-height: 0; |
| 1348 | overflow-y: auto; |
| 1349 | scrollbar-width: none; |
| 1350 | |
| 1351 | &::-webkit-scrollbar { display: none; } |
| 1352 | } |
| 1353 | |
| 1354 | // The in-app file viewer: same scrim/panel chrome as the task modal, rendered |
| 1355 | // as a later sibling of it so the task modal underneath hides while it is |
| 1356 | // open — one popup on screen at a time, the same rule the delete confirm |
| 1357 | // uses. Closing is a `.viewer-close` anchor stretched over the whole scrim |
| 1358 | // under the panel — outside clicks land on it and navigate, clicks on the |
| 1359 | // media land on the panel above it and stay. |
| 1360 | .viewer-close { position: absolute; inset: 0; cursor: default; } |
| 1361 | |
| 1362 | .modal-scrim:has(~ .viewer-scrim) { visibility: hidden; } |
| 1363 | |
| 1364 | .viewer { position: relative; width: auto; max-width: min(90vw, 960px); } |
| 1365 | |
| 1366 | .viewer-body { |
| 1367 | display: flex; |
| 1368 | align-items: center; |
| 1369 | justify-content: center; |
| 1370 | padding: 20px 24px 24px; |
| 1371 | } |
| 1372 | |
| 1373 | .viewer-media { max-width: 100%; max-height: 78vh; border-radius: var(--radius-md); } |
| 1374 | |
| 1375 | // The house media player: the native controls are browser chrome — they |
| 1376 | // ignore the theme's shape language and swallow Escape while focused, so the |
| 1377 | // viewer draws its own over a controls-less element. One player serves both |
| 1378 | // kinds: audio is the bar alone, video stacks the bar under the picture. |
| 1379 | .media-player { |
| 1380 | display: flex; |
| 1381 | align-items: center; |
| 1382 | gap: 10px; |
| 1383 | width: min(560px, 80vw); |
| 1384 | padding: 12px 16px; |
| 1385 | background: var(--surface); |
| 1386 | border: 1px solid var(--border); |
| 1387 | border-radius: var(--radius-md); |
| 1388 | |
| 1389 | .media-el { display: none; } |
| 1390 | } |
| 1391 | |
| 1392 | .media-player-video { |
| 1393 | flex-direction: column; |
| 1394 | align-items: stretch; |
| 1395 | gap: 0; |
| 1396 | width: 100%; |
| 1397 | // No card of its own: the viewer stage already frames it. |
| 1398 | padding: 0; |
| 1399 | border: none; |
| 1400 | background: none; |
| 1401 | |
| 1402 | // The controls bar lives under the picture, and the page chrome (topbar, |
| 1403 | // head, title, meta, stage padding) takes ~330px above it: the picture's |
| 1404 | // cap pays for both, so player and bar land on screen together. |
| 1405 | .media-el { |
| 1406 | display: block; |
| 1407 | width: 100%; |
| 1408 | height: auto; |
| 1409 | max-height: calc(100vh - 380px); |
| 1410 | border-radius: var(--radius-md); |
| 1411 | background: #000; |
| 1412 | cursor: pointer; |
| 1413 | } |
| 1414 | } |
| 1415 | |
| 1416 | // A browser that cannot demux the stored bytes marks the player `media-dead` |
| 1417 | // from the wire script: the element and the controls give way to the note. |
| 1418 | // The note ships `hidden`; the class is what shows it. |
| 1419 | .media-player.media-dead .media-el, |
| 1420 | .media-player.media-dead .media-controls { display: none; } |
| 1421 | |
| 1422 | .media-player.media-dead .media-error { |
| 1423 | display: block; |
| 1424 | width: 100%; |
| 1425 | margin: 0; |
| 1426 | padding: 14px 18px; |
| 1427 | border: 1px solid var(--border); |
| 1428 | border-radius: var(--radius-md); |
| 1429 | color: var(--muted); |
| 1430 | font-size: 12px; |
| 1431 | text-align: center; |
| 1432 | } |
| 1433 | |
| 1434 | .media-controls { |
| 1435 | display: flex; |
| 1436 | align-items: center; |
| 1437 | gap: 12px; |
| 1438 | padding: 10px 16px; |
| 1439 | border-top: 1px solid var(--border); |
| 1440 | } |
| 1441 | |
| 1442 | .media-play { |
| 1443 | display: grid; |
| 1444 | place-items: center; |
| 1445 | width: 32px; |
| 1446 | height: 32px; |
| 1447 | flex: none; |
| 1448 | padding: 0; |
| 1449 | border: 1px solid var(--accent-border); |
| 1450 | border-radius: 50%; |
| 1451 | background: var(--accent-tint); |
| 1452 | color: var(--accent-ink); |
| 1453 | cursor: pointer; |
| 1454 | |
| 1455 | .glyph-pause { display: none; } |
| 1456 | &:hover { border-color: var(--accent-strong); } |
| 1457 | } |
| 1458 | |
| 1459 | .media-playing .media-play { |
| 1460 | .glyph-play { display: none; } |
| 1461 | .glyph-pause { display: block; } |
| 1462 | } |
| 1463 | |
| 1464 | .media-time { |
| 1465 | font-family: var(--font-mono); |
| 1466 | font-size: 12px; |
| 1467 | color: var(--muted); |
| 1468 | min-width: 34px; |
| 1469 | text-align: center; |
| 1470 | } |
| 1471 | .media-seek, .media-vol-slider { |
| 1472 | appearance: none; |
| 1473 | height: 4px; |
| 1474 | margin: 0; |
| 1475 | background: var(--border); |
| 1476 | border-radius: 2px; |
| 1477 | cursor: pointer; |
| 1478 | } |
| 1479 | |
| 1480 | .media-seek { |
| 1481 | flex: 1; |
| 1482 | } |
| 1483 | |
| 1484 | .media-vol-slider { |
| 1485 | width: 64px; |
| 1486 | flex: none; |
| 1487 | } |
| 1488 | |
| 1489 | .media-seek, .media-vol-slider { |
| 1490 | &::-webkit-slider-thumb { |
| 1491 | appearance: none; |
| 1492 | width: 12px; |
| 1493 | height: 12px; |
| 1494 | border: none; |
| 1495 | border-radius: 50%; |
| 1496 | background: var(--accent); |
| 1497 | } |
| 1498 | |
| 1499 | &::-moz-range-thumb { |
| 1500 | width: 12px; |
| 1501 | height: 12px; |
| 1502 | border: none; |
| 1503 | border-radius: 50%; |
| 1504 | background: var(--accent); |
| 1505 | } |
| 1506 | |
| 1507 | &::-moz-range-track { |
| 1508 | height: 4px; |
| 1509 | background: var(--border); |
| 1510 | border-radius: 2px; |
| 1511 | } |
| 1512 | |
| 1513 | &::-moz-range-progress { |
| 1514 | height: 4px; |
| 1515 | background: var(--accent); |
| 1516 | border-radius: 2px; |
| 1517 | } |
| 1518 | } |
| 1519 | |
| 1520 | .media-full, .media-vol { |
| 1521 | display: grid; |
| 1522 | place-items: center; |
| 1523 | width: 28px; |
| 1524 | height: 28px; |
| 1525 | flex: none; |
| 1526 | padding: 0; |
| 1527 | border: none; |
| 1528 | border-radius: var(--radius); |
| 1529 | background: none; |
| 1530 | color: var(--muted); |
| 1531 | cursor: pointer; |
| 1532 | |
| 1533 | &:hover { background: var(--row-hover); color: var(--ink); } |
| 1534 | } |
| 1535 | |
| 1536 | .media-vol .glyph-vol-off { display: none; } |
| 1537 | .media-muted .media-vol { |
| 1538 | .glyph-vol-on { display: none; } |
| 1539 | .glyph-vol-off { display: block; } |
| 1540 | } |
| 1541 | |
| 1542 | // The speed cycle reads as a value, not an icon: mono, quiet, button-sized. |
| 1543 | // The width is fixed in ch — the longest label on the ladder ("0.75×") — so |
| 1544 | // cycling never moves the bar's other controls. |
| 1545 | .media-speed { |
| 1546 | flex: none; |
| 1547 | width: 5.5ch; |
| 1548 | height: 28px; |
| 1549 | padding: 0; |
| 1550 | text-align: center; |
| 1551 | border: none; |
| 1552 | border-radius: var(--radius); |
| 1553 | background: none; |
| 1554 | font-family: var(--font-mono); |
| 1555 | font-size: 12px; |
| 1556 | color: var(--muted); |
| 1557 | cursor: pointer; |
| 1558 | |
| 1559 | &:hover { background: var(--row-hover); color: var(--ink); } |
| 1560 | } |
| 1561 | |
| 1562 | // Fullscreen re-frames the same player: the picture takes the screen and the |
| 1563 | // bar settles at its bottom. |
| 1564 | .media-player-video:fullscreen { |
| 1565 | width: 100%; |
| 1566 | max-width: none; |
| 1567 | background: #000; |
| 1568 | |
| 1569 | .media-el { height: calc(100% - 48px); max-height: none; object-fit: contain; border-radius: 0; } |
| 1570 | } |
| 1571 | |
| 1572 | .viewer-pdf { width: 100%; height: 78vh; border: 1px solid var(--border); border-radius: var(--radius-md); } |
| 1573 | |
| 1574 | // A workbook has no element of its own, so the viewer draws it: a tab strip |
| 1575 | // when the book has more than one sheet, and a grid that pans inside its own |
| 1576 | // box — the document never scrolls. |
| 1577 | // A workbook is wider and taller than anything else the viewer opens, so it |
| 1578 | // takes the panel the whole way out: the modal grows to the viewport and no |
| 1579 | // further, and the grid takes whatever is left under the tab strip and pans |
| 1580 | // inside that — the panel itself never leaves the screen. |
| 1581 | .viewer:has(.viewer-sheet) { |
| 1582 | width: auto; |
| 1583 | max-width: min(96vw, 1400px); |
| 1584 | display: flex; |
| 1585 | flex-direction: column; |
| 1586 | overflow: hidden; |
| 1587 | |
| 1588 | .viewer-body { |
| 1589 | flex: 1; |
| 1590 | min-height: 0; |
| 1591 | align-items: stretch; |
| 1592 | padding: 16px 20px 20px; |
| 1593 | } |
| 1594 | } |
| 1595 | |
| 1596 | .viewer-sheet { |
| 1597 | display: flex; |
| 1598 | flex-direction: column; |
| 1599 | gap: 10px; |
| 1600 | width: 100%; |
| 1601 | // The viewer body is a row flex, so without these the sheet's automatic |
| 1602 | // minimum size is the whole table's width and height, and a wide book |
| 1603 | // pushes the panel off the screen instead of panning inside it. |
| 1604 | min-width: 0; |
| 1605 | min-height: 0; |
| 1606 | } |
| 1607 | |
| 1608 | .sheet-tabs { |
| 1609 | display: flex; |
| 1610 | gap: 6px; |
| 1611 | overflow-x: auto; |
| 1612 | scrollbar-width: none; |
| 1613 | |
| 1614 | &::-webkit-scrollbar { display: none; } |
| 1615 | } |
| 1616 | |
| 1617 | .sheet-tab { |
| 1618 | padding: 4px 10px; |
| 1619 | border: 1px solid var(--border); |
| 1620 | border-radius: var(--radius-sm); |
| 1621 | color: var(--text-dim); |
| 1622 | font-size: 12px; |
| 1623 | white-space: nowrap; |
| 1624 | text-decoration: none; |
| 1625 | } |
| 1626 | |
| 1627 | .sheet-tab-on { |
| 1628 | color: var(--text); |
| 1629 | border-color: var(--accent); |
| 1630 | } |
| 1631 | |
| 1632 | // A window is sized to land on a screen, so the grid takes only the room its |
| 1633 | // own rows need — the pagers below it stay in view rather than being pushed |
| 1634 | // off by a table that always claims the whole panel. |
| 1635 | .sheet-grid { |
| 1636 | flex: 0 1 auto; |
| 1637 | min-width: 0; |
| 1638 | min-height: 0; |
| 1639 | overflow: auto; |
| 1640 | scrollbar-width: none; |
| 1641 | border: 1px solid var(--border); |
| 1642 | border-radius: var(--radius-md); |
| 1643 | |
| 1644 | &::-webkit-scrollbar { display: none; } |
| 1645 | } |
| 1646 | |
| 1647 | .sheet-table { |
| 1648 | border-collapse: collapse; |
| 1649 | font-size: 12px; |
| 1650 | font-variant-numeric: tabular-nums; |
| 1651 | |
| 1652 | th, |
| 1653 | td { |
| 1654 | padding: 4px 8px; |
| 1655 | border-right: 1px solid var(--border); |
| 1656 | border-bottom: 1px solid var(--border); |
| 1657 | max-width: 180px; |
| 1658 | overflow: hidden; |
| 1659 | text-overflow: ellipsis; |
| 1660 | white-space: nowrap; |
| 1661 | text-align: left; |
| 1662 | } |
| 1663 | |
| 1664 | // The column letters and row numbers are chrome, not data: dim, sticky at |
| 1665 | // the edges they name, so a cell keeps its address while the grid pans. |
| 1666 | thead th { |
| 1667 | position: sticky; |
| 1668 | top: 0; |
| 1669 | z-index: 1; |
| 1670 | background: var(--surface); |
| 1671 | color: var(--text-dim); |
| 1672 | font-weight: 500; |
| 1673 | } |
| 1674 | |
| 1675 | .sheet-gutter { |
| 1676 | position: sticky; |
| 1677 | left: 0; |
| 1678 | background: var(--surface); |
| 1679 | color: var(--text-dim); |
| 1680 | font-weight: 500; |
| 1681 | text-align: right; |
| 1682 | } |
| 1683 | |
| 1684 | thead .sheet-gutter { z-index: 2; } |
| 1685 | } |
| 1686 | |
| 1687 | .sheet-note { |
| 1688 | margin: 0; |
| 1689 | color: var(--text-dim); |
| 1690 | font-size: 12px; |
| 1691 | } |
| 1692 | |
| 1693 | // A sheet is read one window at a time, and these move it: the rows down the |
| 1694 | // left, the columns across the right, each counted against the whole sheet. |
| 1695 | // A step with nowhere to go stays in place, dimmed, so the pair never moves |
| 1696 | // under the pointer. |
| 1697 | .sheet-foot { |
| 1698 | display: flex; |
| 1699 | align-items: center; |
| 1700 | justify-content: space-between; |
| 1701 | gap: 16px; |
| 1702 | } |
| 1703 | |
| 1704 | .sheet-pager { |
| 1705 | display: flex; |
| 1706 | align-items: center; |
| 1707 | gap: 4px; |
| 1708 | } |
| 1709 | |
| 1710 | .sheet-range { |
| 1711 | color: var(--text-dim); |
| 1712 | font-size: 12px; |
| 1713 | font-variant-numeric: tabular-nums; |
| 1714 | margin-right: 4px; |
| 1715 | } |
| 1716 | |
| 1717 | .sheet-step { |
| 1718 | display: inline-flex; |
| 1719 | align-items: center; |
| 1720 | justify-content: center; |
| 1721 | width: 26px; |
| 1722 | height: 24px; |
| 1723 | border: 1px solid var(--border); |
| 1724 | border-radius: var(--radius-sm); |
| 1725 | color: var(--text-dim); |
| 1726 | |
| 1727 | &:hover { color: var(--text); border-color: var(--accent); } |
| 1728 | } |
| 1729 | |
| 1730 | // One chevron points down; the other three are that chevron turned. |
| 1731 | .sheet-step-up .glyph { transform: rotate(180deg); } |
| 1732 | .sheet-step-left .glyph { transform: rotate(90deg); } |
| 1733 | .sheet-step-right .glyph { transform: rotate(-90deg); } |
| 1734 | |
| 1735 | .sheet-step-off { |
| 1736 | opacity: 0.3; |
| 1737 | |
| 1738 | &:hover { color: var(--text-dim); border-color: var(--border); } |
| 1739 | } |
| 1740 | |
| 1741 | // A deck is the second format no browser renders, read the same way a |
| 1742 | // workbook is: the panel takes the viewer the whole way out, the outline |
| 1743 | // pans inside its own box, and the document never scrolls. The slide strip |
| 1744 | // is the sheet tab strip with numbers instead of names; the pager is the |
| 1745 | // sheet's pair with one step set. |
| 1746 | .viewer:has(.viewer-slides) { |
| 1747 | display: flex; |
| 1748 | flex-direction: column; |
| 1749 | overflow: hidden; |
| 1750 | |
| 1751 | .viewer-body { |
| 1752 | flex: 1; |
| 1753 | min-height: 0; |
| 1754 | align-items: stretch; |
| 1755 | padding: 16px 20px 20px; |
| 1756 | } |
| 1757 | } |
| 1758 | |
| 1759 | .viewer-slides { |
| 1760 | display: flex; |
| 1761 | flex-direction: column; |
| 1762 | gap: 10px; |
| 1763 | width: 100%; |
| 1764 | min-width: 0; |
| 1765 | min-height: 0; |
| 1766 | } |
| 1767 | |
| 1768 | .slides-nav { |
| 1769 | display: flex; |
| 1770 | gap: 6px; |
| 1771 | overflow-x: auto; |
| 1772 | scrollbar-width: none; |
| 1773 | |
| 1774 | &::-webkit-scrollbar { display: none; } |
| 1775 | } |
| 1776 | |
| 1777 | .slide-tab { |
| 1778 | padding: 4px 10px; |
| 1779 | border: 1px solid var(--border); |
| 1780 | border-radius: var(--radius-sm); |
| 1781 | color: var(--text-dim); |
| 1782 | font-size: 12px; |
| 1783 | font-variant-numeric: tabular-nums; |
| 1784 | white-space: nowrap; |
| 1785 | text-decoration: none; |
| 1786 | } |
| 1787 | |
| 1788 | .slide-tab-on { |
| 1789 | color: var(--text); |
| 1790 | border-color: var(--accent); |
| 1791 | } |
| 1792 | |
| 1793 | // The outline is what the deck says, not what it draws, so the card takes |
| 1794 | // the room left under the strip and pans inside itself when a slide runs |
| 1795 | // long rather than pushing the pager out of view. |
| 1796 | .slide-card { |
| 1797 | flex: 1; |
| 1798 | min-width: 0; |
| 1799 | min-height: 0; |
| 1800 | overflow: auto; |
| 1801 | scrollbar-width: none; |
| 1802 | padding: 20px 24px; |
| 1803 | border: 1px solid var(--border); |
| 1804 | border-radius: var(--radius-md); |
| 1805 | |
| 1806 | &::-webkit-scrollbar { display: none; } |
| 1807 | } |
| 1808 | |
| 1809 | .slide-title { |
| 1810 | margin: 0 0 12px; |
| 1811 | font-size: 16px; |
| 1812 | } |
| 1813 | |
| 1814 | .slide-line { |
| 1815 | margin: 0 0 8px; |
| 1816 | font-size: 13px; |
| 1817 | } |
| 1818 | |
| 1819 | .slides-foot { |
| 1820 | display: flex; |
| 1821 | align-items: center; |
| 1822 | justify-content: space-between; |
| 1823 | gap: 16px; |
| 1824 | } |
| 1825 | |
| 1826 | .slides-pager { |
| 1827 | display: flex; |
| 1828 | align-items: center; |
| 1829 | gap: 4px; |
| 1830 | } |
| 1831 | |
| 1832 | .slides-range { |
| 1833 | color: var(--text-dim); |
| 1834 | font-size: 12px; |
| 1835 | font-variant-numeric: tabular-nums; |
| 1836 | margin-right: 4px; |
| 1837 | } |
| 1838 | |
| 1839 | .slides-step { |
| 1840 | display: inline-flex; |
| 1841 | align-items: center; |
| 1842 | justify-content: center; |
| 1843 | width: 26px; |
| 1844 | height: 24px; |
| 1845 | border: 1px solid var(--border); |
| 1846 | border-radius: var(--radius-sm); |
| 1847 | color: var(--text-dim); |
| 1848 | |
| 1849 | &:hover { color: var(--text); border-color: var(--accent); } |
| 1850 | } |
| 1851 | |
| 1852 | // The chevron points down; the pair turns it sideways. |
| 1853 | .slides-step-left .glyph { transform: rotate(90deg); } |
| 1854 | .slides-step-right .glyph { transform: rotate(-90deg); } |
| 1855 | |
| 1856 | .slides-step-off { |
| 1857 | opacity: 0.3; |
| 1858 | |
| 1859 | &:hover { color: var(--text-dim); border-color: var(--border); } |
| 1860 | } |
| 1861 | |
| 1862 | .new-task-form { |
| 1863 | display: flex; |
| 1864 | flex-direction: column; |
| 1865 | gap: 20px; |
| 1866 | padding: 20px 24px 24px; |
| 1867 | } |
| 1868 | |
| 1869 | .new-task-row { |
| 1870 | display: flex; |
| 1871 | gap: 16px; |
| 1872 | } |
| 1873 | |
| 1874 | .new-task-foot { |
| 1875 | display: flex; |
| 1876 | align-items: center; |
| 1877 | gap: 10px; |
| 1878 | } |
| 1879 | |
| 1880 | // -- the edit state --------------------------------------------------------- |
| 1881 | |
| 1882 | .edit { position: relative; } |
| 1883 | |
| 1884 | // Focusable but invisible: it is the state, and a keyboard must be able to |
| 1885 | // reach it. Not `display: none` — that would take it out of the tab order. |
| 1886 | .edit-toggle { |
| 1887 | position: absolute; |
| 1888 | width: 1px; |
| 1889 | height: 1px; |
| 1890 | margin: 0; |
| 1891 | padding: 0; |
| 1892 | opacity: 0; |
| 1893 | pointer-events: none; |
| 1894 | } |
| 1895 | |
| 1896 | .edit-hit { cursor: text; } |
| 1897 | |
| 1898 | .edit-form { display: none; } |
| 1899 | |
| 1900 | .edit:not(.edit-pop) > .edit-toggle:checked ~ .edit-view { display: none; } |
| 1901 | .edit-toggle:checked ~ .edit-form { display: block; } |
| 1902 | .edit-toggle:checked ~ .title-form { display: flex; } |
| 1903 | .detail-head:has(.edit-toggle:checked) .detail-state, |
| 1904 | .detail-head:has(.edit-toggle:checked) .spacer, |
| 1905 | .detail-head:has(.edit-toggle:checked) .detail-esc, |
| 1906 | .detail-head:has(.edit-toggle:checked) .detail-close, |
| 1907 | .detail-head:has(.edit-toggle:checked) .detail-board { |
| 1908 | display: none; |
| 1909 | } |
| 1910 | .edit-toggle:focus-visible ~ .edit-view { |
| 1911 | outline: 2px solid var(--accent); |
| 1912 | outline-offset: 2px; |
| 1913 | border-radius: var(--radius-sm); |
| 1914 | } |
| 1915 | |
| 1916 | .edit-row { |
| 1917 | display: flex; |
| 1918 | align-items: center; |
| 1919 | gap: 8px; |
| 1920 | margin-top: 8px; |
| 1921 | } |
| 1922 | |
| 1923 | .edit-save, |
| 1924 | .comment-post { |
| 1925 | height: var(--control-h); |
| 1926 | padding: 0 12px; |
| 1927 | border: none; |
| 1928 | border-radius: var(--radius); |
| 1929 | background: var(--accent); |
| 1930 | color: var(--surface); |
| 1931 | font-family: inherit; |
| 1932 | font-size: 12px; |
| 1933 | cursor: pointer; |
| 1934 | transition: background var(--dur-fast) var(--ease); |
| 1935 | |
| 1936 | &:hover { background: var(--accent-strong); } |
| 1937 | |
| 1938 | &:disabled { opacity: 0.5; cursor: default; } |
| 1939 | } |
| 1940 | |
| 1941 | .edit-cancel { |
| 1942 | font-size: 12px; |
| 1943 | color: var(--muted); |
| 1944 | cursor: pointer; |
| 1945 | transition: color var(--dur-fast) var(--ease); |
| 1946 | |
| 1947 | &:hover { color: var(--ink); } |
| 1948 | } |
| 1949 | |
| 1950 | // A popover is the same machinery, floated. |
| 1951 | .edit-pop { |
| 1952 | .edit-form { |
| 1953 | position: absolute; |
| 1954 | top: calc(100% + 6px); |
| 1955 | left: 0; |
| 1956 | z-index: 4; |
| 1957 | } |
| 1958 | } |
| 1959 | |
| 1960 | .pop-panel { |
| 1961 | min-width: 200px; |
| 1962 | padding: 8px; |
| 1963 | background: var(--surface); |
| 1964 | border: 1px solid var(--border-strong); |
| 1965 | border-radius: var(--radius-md); |
| 1966 | box-shadow: var(--shadow-2); |
| 1967 | } |
| 1968 | |
| 1969 | .pop-panel-wide { min-width: 320px; } |
| 1970 | |
| 1971 | .pop-list { |
| 1972 | display: flex; |
| 1973 | flex-direction: column; |
| 1974 | gap: 2px; |
| 1975 | } |
| 1976 | |
| 1977 | .pop-list-scroll { |
| 1978 | max-height: 220px; |
| 1979 | overflow-y: auto; |
| 1980 | } |
| 1981 | |
| 1982 | // in's rows pair a dropdown with its submit (move), so the form is a row of |
| 1983 | // controls, not a block — iz's pop-rows only ever hold one. |
| 1984 | .pop-row-form { display: flex; align-items: center; gap: 8px; } |
| 1985 | |
| 1986 | .pop-row { |
| 1987 | display: flex; |
| 1988 | align-items: center; |
| 1989 | gap: 8px; |
| 1990 | width: 100%; |
| 1991 | padding: 4px 6px; |
| 1992 | border: none; |
| 1993 | border-radius: var(--radius-sm); |
| 1994 | background: transparent; |
| 1995 | font-family: inherit; |
| 1996 | font-size: 13px; |
| 1997 | color: var(--ink); |
| 1998 | text-align: left; |
| 1999 | text-decoration: none; |
| 2000 | cursor: pointer; |
| 2001 | transition: background-color var(--dur-fast) var(--ease); |
| 2002 | |
| 2003 | &:hover { background: var(--row-hover); } |
| 2004 | } |
| 2005 | |
| 2006 | .pop-row-name { font-size: 12px; } |
| 2007 | |
| 2008 | |
| 2009 | .pick-row { |
| 2010 | display: flex; |
| 2011 | align-items: center; |
| 2012 | gap: 8px; |
| 2013 | padding: 4px 6px; |
| 2014 | border-radius: var(--radius-sm); |
| 2015 | font-size: 12px; |
| 2016 | cursor: pointer; |
| 2017 | transition: background-color var(--dur-fast) var(--ease); |
| 2018 | |
| 2019 | &:hover { background: var(--row-hover); } |
| 2020 | } |
| 2021 | |
| 2022 | .pick-title { color: var(--muted); } |
| 2023 | |
| 2024 | .pick-direction { |
| 2025 | display: flex; |
| 2026 | align-items: center; |
| 2027 | gap: 12px; |
| 2028 | margin: 8px 0 0; |
| 2029 | padding: 8px 6px 0; |
| 2030 | border: none; |
| 2031 | border-top: 1px solid var(--border); |
| 2032 | font-size: 12px; |
| 2033 | |
| 2034 | label { |
| 2035 | display: inline-flex; |
| 2036 | align-items: center; |
| 2037 | gap: 4px; |
| 2038 | cursor: pointer; |
| 2039 | } |
| 2040 | } |
| 2041 | |
| 2042 | // -- header ----------------------------------------------------------------- |
| 2043 | |
| 2044 | .detail-head { |
| 2045 | display: flex; |
| 2046 | align-items: flex-start; |
| 2047 | gap: 10px; |
| 2048 | // Measured against the artboard: the key sits 26px below the modal's own top |
| 2049 | // edge, and every row under it inherits that. |
| 2050 | padding: 22px 24px 0; |
| 2051 | } |
| 2052 | |
| 2053 | .detail-headline { |
| 2054 | flex: 1; |
| 2055 | min-width: 0; |
| 2056 | } |
| 2057 | |
| 2058 | // -- tab strip ---------------------------------------------------------- |
| 2059 | |
| 2060 | .detail-tabs { |
| 2061 | display: flex; |
| 2062 | gap: 2px; |
| 2063 | flex: none; |
| 2064 | padding: 0 16px; |
| 2065 | border-bottom: 1px solid var(--border); |
| 2066 | } |
| 2067 | |
| 2068 | .detail-tab { |
| 2069 | padding: 9px 10px; |
| 2070 | font-family: var(--font-mono); |
| 2071 | font-size: 10px; |
| 2072 | letter-spacing: 0.08em; |
| 2073 | text-transform: uppercase; |
| 2074 | color: var(--muted); |
| 2075 | } |
| 2076 | |
| 2077 | .detail-tab-on { color: var(--ink); } |
| 2078 | |
| 2079 | .detail-tab-count { margin-left: 4px; color: var(--muted-soft); } |
| 2080 | |
| 2081 | .detail-key { |
| 2082 | display: block; |
| 2083 | font-family: var(--font-mono); |
| 2084 | font-size: 11px; |
| 2085 | color: var(--muted-soft); |
| 2086 | } |
| 2087 | |
| 2088 | // Where this task sits, on one line above its title. A subtask stacked its |
| 2089 | // parent's key above its own read as two near-identical mono strings with |
| 2090 | // nothing to say which was which; left-to-right order says it instead, and |
| 2091 | // the parent's title is what makes its key legible at all. |
| 2092 | .detail-crumbs { |
| 2093 | display: flex; |
| 2094 | align-items: baseline; |
| 2095 | gap: 6px; |
| 2096 | min-width: 0; |
| 2097 | // The key used to sit flush under a much larger title and got away with |
| 2098 | // it; a crumb is a whole line of text with an underline dipping below its |
| 2099 | // baseline, and flush reads as collided. |
| 2100 | margin-bottom: 9px; |
| 2101 | // The parent's title is the only part allowed to give way; a key broken |
| 2102 | // across two lines is not a key any more. |
| 2103 | flex-wrap: nowrap; |
| 2104 | |
| 2105 | .detail-key { |
| 2106 | flex: none; |
| 2107 | white-space: nowrap; |
| 2108 | } |
| 2109 | } |
| 2110 | |
| 2111 | .detail-crumb { |
| 2112 | display: flex; |
| 2113 | align-items: baseline; |
| 2114 | gap: 6px; |
| 2115 | min-width: 0; |
| 2116 | flex: 0 1 auto; |
| 2117 | color: var(--muted); |
| 2118 | text-decoration: none; |
| 2119 | |
| 2120 | &:hover { |
| 2121 | color: var(--ink); |
| 2122 | |
| 2123 | .detail-crumb-title { text-decoration: underline; } |
| 2124 | } |
| 2125 | } |
| 2126 | |
| 2127 | .detail-crumb-key { |
| 2128 | flex: none; |
| 2129 | font-family: var(--font-mono); |
| 2130 | font-size: 11px; |
| 2131 | } |
| 2132 | |
| 2133 | // Underlined at rest, solid: the ledger skin marks a record's own key with a |
| 2134 | // *dotted* underline, so without this the one thing on the line that is not |
| 2135 | // a link was the only thing that looked like one. |
| 2136 | .detail-crumb-title { |
| 2137 | overflow: hidden; |
| 2138 | text-overflow: ellipsis; |
| 2139 | white-space: nowrap; |
| 2140 | max-width: 28ch; |
| 2141 | flex: 0 1 auto; |
| 2142 | min-width: 3ch; |
| 2143 | font-size: 12px; |
| 2144 | text-decoration: underline; |
| 2145 | text-decoration-color: var(--border-strong); |
| 2146 | text-underline-offset: 3px; |
| 2147 | } |
| 2148 | |
| 2149 | .detail-crumb:hover .detail-crumb-title { |
| 2150 | text-decoration-color: currentColor; |
| 2151 | } |
| 2152 | |
| 2153 | .detail-crumb-sep { |
| 2154 | flex: none; |
| 2155 | font-size: 11px; |
| 2156 | color: var(--muted-soft); |
| 2157 | } |
| 2158 | |
| 2159 | .detail-title { |
| 2160 | margin: 0; |
| 2161 | font-size: 18px; |
| 2162 | font-weight: 600; |
| 2163 | letter-spacing: -0.01em; |
| 2164 | line-height: 1.3; |
| 2165 | } |
| 2166 | |
| 2167 | .title-form { |
| 2168 | align-items: center; |
| 2169 | gap: 8px; |
| 2170 | } |
| 2171 | |
| 2172 | .title-input { |
| 2173 | flex: 1; |
| 2174 | min-width: 0; |
| 2175 | height: var(--control-h); |
| 2176 | padding: 0 8px; |
| 2177 | border: 1px solid var(--border-strong); |
| 2178 | border-radius: var(--radius); |
| 2179 | background: var(--surface); |
| 2180 | font-family: inherit; |
| 2181 | font-size: 18px; |
| 2182 | font-weight: 600; |
| 2183 | color: var(--ink); |
| 2184 | } |
| 2185 | |
| 2186 | .detail-esc { |
| 2187 | margin-top: 4px; |
| 2188 | font-family: var(--font-mono); |
| 2189 | font-size: 10px; |
| 2190 | color: var(--muted); |
| 2191 | text-transform: uppercase; |
| 2192 | letter-spacing: 0.08em; |
| 2193 | } |
| 2194 | |
| 2195 | .detail-close { |
| 2196 | display: inline-flex; |
| 2197 | align-items: center; |
| 2198 | justify-content: center; |
| 2199 | width: 36px; |
| 2200 | height: 36px; |
| 2201 | border: none; |
| 2202 | border-radius: var(--radius); |
| 2203 | background: transparent; |
| 2204 | color: var(--muted); |
| 2205 | text-decoration: none; |
| 2206 | cursor: pointer; |
| 2207 | transition: background-color var(--dur-fast) var(--ease); |
| 2208 | |
| 2209 | &:hover { background: var(--row-hover); } |
| 2210 | } |
| 2211 | |
| 2212 | .detail-state { |
| 2213 | display: inline-flex; |
| 2214 | align-items: center; |
| 2215 | } |
| 2216 | |
| 2217 | .detail-board { |
| 2218 | align-self: center; |
| 2219 | white-space: nowrap; |
| 2220 | } |
| 2221 | |
| 2222 | // -- the field row ---------------------------------------------------------- |
| 2223 | |
| 2224 | // Status and a date are short and sit side by side; the people carry names, |
| 2225 | // which no third of a panel holds, so they take a row of their own. |
| 2226 | .detail-fields { |
| 2227 | display: grid; |
| 2228 | grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); |
| 2229 | gap: 12px; |
| 2230 | padding: 18px 24px 0; |
| 2231 | margin-top: 2px; |
| 2232 | } |
| 2233 | |
| 2234 | .detail-field-people { |
| 2235 | grid-column: 1 / -1; |
| 2236 | } |
| 2237 | |
| 2238 | .detail-field { |
| 2239 | display: flex; |
| 2240 | flex-direction: column; |
| 2241 | gap: 6px; |
| 2242 | min-width: 0; |
| 2243 | } |
| 2244 | |
| 2245 | .detail-label { |
| 2246 | font-family: var(--font-mono); |
| 2247 | font-size: 10px; |
| 2248 | letter-spacing: 0.08em; |
| 2249 | color: var(--muted-soft); |
| 2250 | } |
| 2251 | |
| 2252 | .detail-count { |
| 2253 | font-family: var(--font-mono); |
| 2254 | font-size: 11px; |
| 2255 | font-variant-numeric: tabular-nums; |
| 2256 | color: var(--muted-soft); |
| 2257 | } |
| 2258 | |
| 2259 | // Every value in the field row wears the same box, so a ``, a label |
| 2260 | // and a plain span all line up at 36px. |
| 2261 | .field-box, |
| 2262 | .status-form { |
| 2263 | display: flex; |
| 2264 | align-items: center; |
| 2265 | gap: 8px; |
| 2266 | height: var(--control-h); |
| 2267 | padding: 0 10px; |
| 2268 | background: var(--field-bg); |
| 2269 | border: 1px solid var(--border-strong); |
| 2270 | border-radius: var(--radius); |
| 2271 | font-size: 13px; |
| 2272 | color: var(--ink); |
| 2273 | cursor: pointer; |
| 2274 | } |
| 2275 | |
| 2276 | .field-box { |
| 2277 | font-size: 13px; |
| 2278 | color: var(--ink); |
| 2279 | cursor: pointer; |
| 2280 | } |
| 2281 | |
| 2282 | .field-text { |
| 2283 | flex: 1; |
| 2284 | min-width: 0; |
| 2285 | overflow: hidden; |
| 2286 | text-overflow: ellipsis; |
| 2287 | white-space: nowrap; |
| 2288 | } |
| 2289 | |
| 2290 | // The board's Sort and Project selects keep their natural width, but a |
| 2291 | // selected project can carry any name a workspace typed. Box and select |
| 2292 | // shrink under pressure and the label ellipsizes, instead of pushing the |
| 2293 | // bar past the viewport; the bar itself wraps when the row still outruns |
| 2294 | // the width. |
| 2295 | .field-box-sort { |
| 2296 | flex: 0 1 auto; |
| 2297 | min-width: 0; |
| 2298 | |
| 2299 | .status-select { |
| 2300 | flex: 0 1 auto; |
| 2301 | width: auto; |
| 2302 | min-width: 0; |
| 2303 | max-width: 220px; |
| 2304 | overflow: hidden; |
| 2305 | text-overflow: ellipsis; |
| 2306 | white-space: nowrap; |
| 2307 | } |
| 2308 | } |
| 2309 | |
| 2310 | // The board's search field is the bar's third field-box, and its typing |
| 2311 | // area speaks the panel type-to-filter's voice — borderless type on the |
| 2312 | // box — under its own class, so the panel's `.dd-search` block geometry |
| 2313 | // and its :focus-visible underline swap stay inside dropdown panels and |
| 2314 | // the shared focus ring reaches the typing area. |
| 2315 | .field-box-search { |
| 2316 | flex: 0 1 240px; |
| 2317 | min-width: 0; |
| 2318 | |
| 2319 | .field-text { flex: none; } |
| 2320 | |
| 2321 | .filter-search { |
| 2322 | flex: 1; |
| 2323 | min-width: 0; |
| 2324 | border: none; |
| 2325 | background: none; |
| 2326 | font: inherit; |
| 2327 | font-size: 13px; |
| 2328 | color: var(--ink); |
| 2329 | } |
| 2330 | } |
| 2331 | |
| 2332 | .glyph { |
| 2333 | flex: none; |
| 2334 | color: var(--muted-soft); |
| 2335 | } |
| 2336 | |
| 2337 | .status-dot { |
| 2338 | flex: none; |
| 2339 | width: 8px; |
| 2340 | height: 8px; |
| 2341 | border-radius: 50%; |
| 2342 | background: var(--muted-soft); |
| 2343 | } |
| 2344 | |
| 2345 | .status-dot-done { background: var(--positive); } |
| 2346 | .status-dot-warn { background: var(--warn-ink); } |
| 2347 | |
| 2348 | // The select carries no chrome of its own: the box around it is the control. |
| 2349 | .status-select { |
| 2350 | flex: 1; |
| 2351 | min-width: 0; |
| 2352 | border: none; |
| 2353 | background: transparent; |
| 2354 | appearance: none; |
| 2355 | font-family: inherit; |
| 2356 | font-size: 13px; |
| 2357 | color: var(--ink); |
| 2358 | cursor: pointer; |
| 2359 | } |
| 2360 | |
| 2361 | .detail-overdue { |
| 2362 | border-color: var(--danger-border); |
| 2363 | color: var(--danger); |
| 2364 | |
| 2365 | .glyph { color: var(--danger); } |
| 2366 | } |
| 2367 | |
| 2368 | // -- deadline calendar ------------------------------------------------------- |
| 2369 | |
| 2370 | .datepick-panel { width: 190px; } |
| 2371 | |
| 2372 | // The time row rides the same panel as the day grid: two two-digit boxes |
| 2373 | // and a colon between them, one line. An input's intrinsic width is wider |
| 2374 | // than its half, so each box fills its half and centers what is typed. |
| 2375 | .datepick-time { |
| 2376 | display: flex; |
| 2377 | gap: 4px; |
| 2378 | align-items: center; |
| 2379 | margin-top: 6px; |
| 2380 | } |
| 2381 | |
| 2382 | .datepick-time .field-input { |
| 2383 | width: 100%; |
| 2384 | min-width: 0; |
| 2385 | text-align: center; |
| 2386 | } |
| 2387 | |
| 2388 | .datepick-colon { |
| 2389 | font-family: var(--font-mono); |
| 2390 | color: var(--ink-soft); |
| 2391 | } |
| 2392 | |
| 2393 | .datepick-head { |
| 2394 | display: flex; |
| 2395 | align-items: center; |
| 2396 | justify-content: space-between; |
| 2397 | margin-bottom: 6px; |
| 2398 | } |
| 2399 | |
| 2400 | .datepick-title { |
| 2401 | font-family: var(--font-mono); |
| 2402 | font-size: 11px; |
| 2403 | color: var(--ink); |
| 2404 | } |
| 2405 | |
| 2406 | .datepick-nav { |
| 2407 | display: inline-flex; |
| 2408 | align-items: center; |
| 2409 | justify-content: center; |
| 2410 | width: 20px; |
| 2411 | height: 20px; |
| 2412 | border: none; |
| 2413 | border-radius: var(--radius-sm); |
| 2414 | background: transparent; |
| 2415 | color: var(--muted); |
| 2416 | cursor: pointer; |
| 2417 | transition: background-color var(--dur-fast) var(--ease); |
| 2418 | |
| 2419 | &:hover { background: var(--row-hover); } |
| 2420 | } |
| 2421 | |
| 2422 | .datepick-prev .glyph { transform: rotate(90deg); } |
| 2423 | .datepick-next .glyph { transform: rotate(-90deg); } |
| 2424 | |
| 2425 | .datepick-weekdays, |
| 2426 | .datepick-grid { |
| 2427 | display: grid; |
| 2428 | grid-template-columns: repeat(7, 1fr); |
| 2429 | } |
| 2430 | |
| 2431 | .datepick-weekdays { |
| 2432 | margin-bottom: 2px; |
| 2433 | font-family: var(--font-mono); |
| 2434 | font-size: 10px; |
| 2435 | color: var(--muted-soft); |
| 2436 | text-align: center; |
| 2437 | } |
| 2438 | |
| 2439 | .datepick-cell { |
| 2440 | height: 24px; |
| 2441 | border: none; |
| 2442 | background: transparent; |
| 2443 | font-family: inherit; |
| 2444 | font-size: 11px; |
| 2445 | } |
| 2446 | |
| 2447 | .datepick-day { |
| 2448 | border-radius: var(--radius-sm); |
| 2449 | color: var(--ink); |
| 2450 | cursor: pointer; |
| 2451 | font-variant-numeric: tabular-nums; |
| 2452 | transition: background-color var(--dur-fast) var(--ease); |
| 2453 | |
| 2454 | &:hover { background: var(--row-hover); } |
| 2455 | } |
| 2456 | |
| 2457 | .datepick-today { box-shadow: inset 0 0 0 1px var(--accent); } |
| 2458 | |
| 2459 | .datepick-selected { |
| 2460 | background: var(--accent); |
| 2461 | color: var(--surface); |
| 2462 | |
| 2463 | &:hover { background: var(--accent); } |
| 2464 | } |
| 2465 | |
| 2466 | .datepick-foot { |
| 2467 | display: flex; |
| 2468 | align-items: center; |
| 2469 | justify-content: space-between; |
| 2470 | margin-top: 6px; |
| 2471 | padding-top: 6px; |
| 2472 | border-top: 1px solid var(--border); |
| 2473 | } |
| 2474 | |
| 2475 | .datepick-action { |
| 2476 | border: none; |
| 2477 | background: transparent; |
| 2478 | font-family: inherit; |
| 2479 | font-size: 12px; |
| 2480 | color: var(--muted); |
| 2481 | cursor: pointer; |
| 2482 | transition: color var(--dur-fast) var(--ease); |
| 2483 | |
| 2484 | &:hover { color: var(--ink); } |
| 2485 | } |
| 2486 | |
| 2487 | // -- assignees -------------------------------------------------------------- |
| 2488 | |
| 2489 | .detail-assignees { |
| 2490 | display: flex; |
| 2491 | align-items: center; |
| 2492 | gap: 6px; |
| 2493 | min-width: 0; |
| 2494 | height: 36px; |
| 2495 | padding: 0 6px; |
| 2496 | background: var(--field-bg); |
| 2497 | border: 1px solid var(--border-strong); |
| 2498 | border-radius: var(--radius); |
| 2499 | } |
| 2500 | |
| 2501 | // A chip shrinks before it overflows: the field box is one cell of a three |
| 2502 | // column grid, so a long name has to fold into an ellipsis rather than push |
| 2503 | // its own remove cross — and the round "+" — out past the box edge. |
| 2504 | .assignee-chip { |
| 2505 | display: inline-flex; |
| 2506 | flex: 0 1 auto; |
| 2507 | min-width: 0; |
| 2508 | align-items: center; |
| 2509 | gap: 4px; |
| 2510 | white-space: nowrap; |
| 2511 | padding: 3px 6px 3px 3px; |
| 2512 | border-radius: var(--radius-sm); |
| 2513 | background: var(--surface); |
| 2514 | border: 1px solid var(--border); |
| 2515 | } |
| 2516 | |
| 2517 | .assignee-name { |
| 2518 | flex: 0 1 auto; |
| 2519 | min-width: 0; |
| 2520 | overflow: hidden; |
| 2521 | text-overflow: ellipsis; |
| 2522 | white-space: nowrap; |
| 2523 | font-size: 12px; |
| 2524 | color: var(--ink); |
| 2525 | } |
| 2526 | |
| 2527 | // Two people share one cell, so each name gives up half its room before the |
| 2528 | // policy below drops names altogether. |
| 2529 | // Four names fit the full-width row, sharing the slack evenly. Past that the |
| 2530 | // labels go together — never half of them, which reads as a rendering fault — |
| 2531 | // and the chips stand as avatars, legible where a clipped name is not. The |
| 2532 | // round "+" keeps its size either way. |
| 2533 | .detail-assignees:has(.assignee-chip:nth-child(5)) { |
| 2534 | .assignee-name { display: none; } |
| 2535 | } |
| 2536 | |
| 2537 | .assignee-drop { display: inline-flex; } |
| 2538 | |
| 2539 | .assignee-remove { |
| 2540 | display: inline-flex; |
| 2541 | flex: none; |
| 2542 | align-items: center; |
| 2543 | justify-content: center; |
| 2544 | width: 14px; |
| 2545 | height: 14px; |
| 2546 | border: none; |
| 2547 | background: transparent; |
| 2548 | color: var(--muted-soft); |
| 2549 | cursor: pointer; |
| 2550 | transition: color var(--dur-fast) var(--ease); |
| 2551 | |
| 2552 | &:hover { color: var(--danger); } |
| 2553 | } |
| 2554 | |
| 2555 | // The artboard's round dashed "+". It is a label, and the popover it opens |
| 2556 | // holds one tiny form per person — a submit button's own name/value does not |
| 2557 | // survive `ActionForm`, so each row carries its own hidden field instead. |
| 2558 | .assignee-add { |
| 2559 | display: inline-flex; |
| 2560 | flex: none; |
| 2561 | align-items: center; |
| 2562 | justify-content: center; |
| 2563 | width: var(--control-h); |
| 2564 | height: var(--control-h); |
| 2565 | border: 1px dashed var(--border-strong); |
| 2566 | border-radius: 50%; |
| 2567 | color: var(--muted-soft); |
| 2568 | cursor: pointer; |
| 2569 | transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); |
| 2570 | |
| 2571 | &:hover { color: var(--ink); border-color: var(--muted-soft); } |
| 2572 | } |
| 2573 | |
| 2574 | // The round "+" is the only way to assign anyone, so it never gets crowded off |
| 2575 | // the row: the chips give up width first. |
| 2576 | .detail-assignees > .edit { flex: none; } |
| 2577 | |
| 2578 | .assignee-pop .edit-form { left: auto; right: 0; } |
| 2579 | |
| 2580 | // -- blocks ----------------------------------------------------------------- |
| 2581 | |
| 2582 | .detail-block { |
| 2583 | display: flex; |
| 2584 | flex-direction: column; |
| 2585 | gap: 10px; |
| 2586 | padding: 22px 24px 0; |
| 2587 | } |
| 2588 | |
| 2589 | .detail-block-head { |
| 2590 | display: flex; |
| 2591 | align-items: center; |
| 2592 | gap: 8px; |
| 2593 | margin-bottom: -2px; |
| 2594 | } |
| 2595 | |
| 2596 | .detail-prose { |
| 2597 | display: block; |
| 2598 | margin: 0; |
| 2599 | min-width: 0; |
| 2600 | font-size: 13px; |
| 2601 | line-height: 1.6; |
| 2602 | color: var(--ink-soft); |
| 2603 | white-space: pre-wrap; |
| 2604 | // A pasted URL or an unbroken run of characters has no space to wrap at; |
| 2605 | // without this it runs off the panel instead of folding. |
| 2606 | overflow-wrap: anywhere; |
| 2607 | } |
| 2608 | |
| 2609 | .detail-prose-empty { color: var(--muted-soft); } |
| 2610 | |
| 2611 | // One tab's region owns the whole body: the block stretches, and the list |
| 2612 | // inside it pans rather than stopping short and leaving the panel empty |
| 2613 | // below (the old 320px cap made sense only when every region shared one |
| 2614 | // scrolling column). |
| 2615 | .detail-body { display: flex; flex-direction: column; } |
| 2616 | |
| 2617 | .detail-block-fill { |
| 2618 | flex: 1; |
| 2619 | min-height: 0; |
| 2620 | display: flex; |
| 2621 | flex-direction: column; |
| 2622 | |
| 2623 | > .comment-list, |
| 2624 | > .activity-list { |
| 2625 | flex: 1; |
| 2626 | min-height: 0; |
| 2627 | max-height: none; |
| 2628 | } |
| 2629 | } |
| 2630 | |
| 2631 | .detail-quiet { |
| 2632 | margin: 0; |
| 2633 | font-size: 13px; |
| 2634 | color: var(--muted-soft); |
| 2635 | } |
| 2636 | |
| 2637 | .detail-textarea, |
| 2638 | .comment-input { |
| 2639 | width: 100%; |
| 2640 | padding: 8px 10px; |
| 2641 | border: 1px solid var(--border-strong); |
| 2642 | border-radius: var(--radius); |
| 2643 | background: var(--surface); |
| 2644 | font-family: inherit; |
| 2645 | font-size: 13px; |
| 2646 | line-height: 1.6; |
| 2647 | color: var(--ink); |
| 2648 | resize: vertical; |
| 2649 | } |
| 2650 | |
| 2651 | |
| 2652 | // -- dependencies ----------------------------------------------------------- |
| 2653 | |
| 2654 | .dep-chip, |
| 2655 | .file-chip { |
| 2656 | display: inline-flex; |
| 2657 | align-items: center; |
| 2658 | gap: 4px; |
| 2659 | height: 24px; |
| 2660 | padding: 0 8px; |
| 2661 | border: 1px solid var(--border-strong); |
| 2662 | border-radius: var(--radius-sm); |
| 2663 | background: var(--surface); |
| 2664 | font-size: 12px; |
| 2665 | color: var(--muted); |
| 2666 | } |
| 2667 | |
| 2668 | .dep-chip { |
| 2669 | cursor: pointer; |
| 2670 | transition: color var(--dur-fast) var(--ease); |
| 2671 | |
| 2672 | &:hover { color: var(--ink); } |
| 2673 | } |
| 2674 | |
| 2675 | .dep-chip-text { font-size: 12px; } |
| 2676 | |
| 2677 | .link-pop .edit-form { left: auto; right: 0; } |
| 2678 | |
| 2679 | .dep-list { |
| 2680 | display: flex; |
| 2681 | flex-direction: column; |
| 2682 | gap: 6px; |
| 2683 | } |
| 2684 | |
| 2685 | .dep-row { |
| 2686 | display: flex; |
| 2687 | align-items: center; |
| 2688 | gap: 10px; |
| 2689 | padding: 10px 12px; |
| 2690 | border: 1px solid var(--border); |
| 2691 | border-radius: var(--radius-md); |
| 2692 | background: var(--field-bg); |
| 2693 | font-size: 13px; |
| 2694 | } |
| 2695 | |
| 2696 | // The parts fill their tab and pan inside it, the house way: a task with |
| 2697 | // forty of them does not scroll the document. |
| 2698 | .subtask-list { |
| 2699 | display: flex; |
| 2700 | flex-direction: column; |
| 2701 | min-height: 0; |
| 2702 | overflow-y: auto; |
| 2703 | scrollbar-width: none; |
| 2704 | |
| 2705 | &::-webkit-scrollbar { display: none; } |
| 2706 | } |
| 2707 | |
| 2708 | // A part is a lighter thing than a dependency: no box of its own, a rule |
| 2709 | // between rows instead, so a list of eight does not read as eight cards. |
| 2710 | .subtask-row { |
| 2711 | display: flex; |
| 2712 | align-items: center; |
| 2713 | gap: 10px; |
| 2714 | padding: 8px 4px; |
| 2715 | border-bottom: 1px solid var(--border); |
| 2716 | font-size: 13px; |
| 2717 | |
| 2718 | &:last-child { border-bottom: none; } |
| 2719 | } |
| 2720 | |
| 2721 | // The key and the title are one target, so the row has one way in rather |
| 2722 | // than two adjacent links a pointer can fall between. |
| 2723 | .subtask-open { |
| 2724 | display: flex; |
| 2725 | align-items: center; |
| 2726 | gap: 10px; |
| 2727 | min-width: 0; |
| 2728 | color: inherit; |
| 2729 | text-decoration: none; |
| 2730 | |
| 2731 | &:hover .subtask-title { text-decoration: underline; } |
| 2732 | } |
| 2733 | |
| 2734 | .subtask-mark { |
| 2735 | display: flex; |
| 2736 | color: var(--muted-soft); |
| 2737 | } |
| 2738 | |
| 2739 | .subtask-key { |
| 2740 | font-family: var(--font-mono); |
| 2741 | font-size: 11px; |
| 2742 | color: var(--muted); |
| 2743 | } |
| 2744 | |
| 2745 | .subtask-title { |
| 2746 | overflow: hidden; |
| 2747 | text-overflow: ellipsis; |
| 2748 | white-space: nowrap; |
| 2749 | } |
| 2750 | |
| 2751 | .subtask-status { |
| 2752 | font-family: var(--font-mono); |
| 2753 | font-size: 11px; |
| 2754 | color: var(--muted-soft); |
| 2755 | } |
| 2756 | |
| 2757 | // A finished part stays legible and plainly out of the way. The tick and |
| 2758 | // the muted title each say it once; there is no strikethrough on top, which |
| 2759 | // only made the title harder to read and fought the hover underline. |
| 2760 | .subtask-row-done { |
| 2761 | .subtask-title { color: var(--muted); } |
| 2762 | } |
| 2763 | |
| 2764 | .subtask-new { |
| 2765 | display: flex; |
| 2766 | align-items: center; |
| 2767 | gap: 8px; |
| 2768 | margin-bottom: 8px; |
| 2769 | } |
| 2770 | |
| 2771 | .subtask-new-input { |
| 2772 | flex: 1; |
| 2773 | min-width: 0; |
| 2774 | } |
| 2775 | |
| 2776 | .dep-row-waiting { |
| 2777 | background: var(--warn-tint-soft); |
| 2778 | border-color: var(--warn-border); |
| 2779 | |
| 2780 | .dep-tag, |
| 2781 | .dep-note, |
| 2782 | .glyph { color: var(--warn-ink); } |
| 2783 | } |
| 2784 | |
| 2785 | .dep-tag { |
| 2786 | flex: none; |
| 2787 | width: 78px; |
| 2788 | font-family: var(--font-mono); |
| 2789 | font-size: 10px; |
| 2790 | letter-spacing: 0.06em; |
| 2791 | color: var(--muted-soft); |
| 2792 | } |
| 2793 | |
| 2794 | .dep-tick { color: var(--positive); } |
| 2795 | |
| 2796 | .dep-key { |
| 2797 | flex: none; |
| 2798 | font-family: var(--font-mono); |
| 2799 | font-size: 11px; |
| 2800 | color: var(--muted-soft); |
| 2801 | } |
| 2802 | |
| 2803 | .dep-title { |
| 2804 | min-width: 0; |
| 2805 | overflow: hidden; |
| 2806 | text-overflow: ellipsis; |
| 2807 | white-space: nowrap; |
| 2808 | } |
| 2809 | |
| 2810 | // The dependency row's way in, the subtask row's own shape (`subtask-open`): |
| 2811 | // tag, key, title and note are one target, so the whole stretch between the |
| 2812 | // row's edges and the X is one anchor — `flex: 1` keeps the note at the row's |
| 2813 | // right edge where it stood before the row learned to open its task. |
| 2814 | .dep-link { |
| 2815 | display: flex; |
| 2816 | flex: 1; |
| 2817 | align-items: center; |
| 2818 | gap: 10px; |
| 2819 | min-width: 0; |
| 2820 | color: inherit; |
| 2821 | text-decoration: none; |
| 2822 | |
| 2823 | &:hover .dep-title { text-decoration: underline; } |
| 2824 | } |
| 2825 | |
| 2826 | .dep-unlink-form { display: inline-flex; } |
| 2827 | |
| 2828 | .dep-unlink { |
| 2829 | display: inline-flex; |
| 2830 | align-items: center; |
| 2831 | justify-content: center; |
| 2832 | width: 24px; |
| 2833 | height: 24px; |
| 2834 | border: none; |
| 2835 | border-radius: var(--radius-sm); |
| 2836 | background: transparent; |
| 2837 | color: var(--muted-soft); |
| 2838 | cursor: pointer; |
| 2839 | transition: color var(--dur-fast) var(--ease); |
| 2840 | |
| 2841 | &:hover { color: var(--danger); } |
| 2842 | } |
| 2843 | |
| 2844 | // -- files -------------------------------------------------------------- |
| 2845 | |
| 2846 | .file-list { |
| 2847 | display: flex; |
| 2848 | flex-direction: column; |
| 2849 | align-items: stretch; |
| 2850 | gap: 6px; |
| 2851 | } |
| 2852 | |
| 2853 | // Rows, not chips: every attachment takes the full width, the name takes |
| 2854 | // what is left, and size/note/remove hold their columns — a long name |
| 2855 | // ellipsizes instead of wrapping the row's tail onto a second line. |
| 2856 | .file-list .file-chip { |
| 2857 | display: flex; |
| 2858 | width: 100%; |
| 2859 | gap: 8px; |
| 2860 | } |
| 2861 | |
| 2862 | .file-chip-name { |
| 2863 | flex: 1; |
| 2864 | min-width: 0; |
| 2865 | overflow: hidden; |
| 2866 | text-overflow: ellipsis; |
| 2867 | white-space: nowrap; |
| 2868 | color: inherit; |
| 2869 | text-decoration: none; |
| 2870 | transition: color var(--dur-fast) var(--ease); |
| 2871 | |
| 2872 | &:hover { color: var(--ink); } |
| 2873 | } |
| 2874 | |
| 2875 | .file-chip-size { |
| 2876 | flex: none; |
| 2877 | white-space: nowrap; |
| 2878 | font-family: var(--font-mono); |
| 2879 | font-size: 11px; |
| 2880 | color: var(--muted-soft); |
| 2881 | } |
| 2882 | |
| 2883 | .file-chip-note { |
| 2884 | flex: none; |
| 2885 | white-space: nowrap; |
| 2886 | font-size: 11px; |
| 2887 | color: var(--muted-soft); |
| 2888 | } |
| 2889 | |
| 2890 | .file-chip-drop-form { display: inline-flex; flex: none; } |
| 2891 | |
| 2892 | .file-chip-drop { |
| 2893 | display: inline-flex; |
| 2894 | align-items: center; |
| 2895 | justify-content: center; |
| 2896 | width: 20px; |
| 2897 | height: 20px; |
| 2898 | border: none; |
| 2899 | border-radius: var(--radius-sm); |
| 2900 | background: transparent; |
| 2901 | color: var(--muted-soft); |
| 2902 | cursor: pointer; |
| 2903 | transition: color var(--dur-fast) var(--ease); |
| 2904 | |
| 2905 | &:hover { color: var(--danger); } |
| 2906 | } |
| 2907 | |
| 2908 | .file-upload { |
| 2909 | display: flex; |
| 2910 | align-items: center; |
| 2911 | gap: 8px; |
| 2912 | margin-top: 10px; |
| 2913 | } |
| 2914 | |
| 2915 | // A button, not a text field: `.field-box`'s recessed `--field-bg` reads as |
| 2916 | // pressed here, so it sits back on `--surface` like `.quiet`/`.detail-delete`. |
| 2917 | .file-upload-box { |
| 2918 | position: relative; |
| 2919 | flex: none; |
| 2920 | max-width: 220px; |
| 2921 | background: var(--surface); |
| 2922 | transition: border-color var(--dur-fast) var(--ease); |
| 2923 | cursor: pointer; |
| 2924 | |
| 2925 | &:hover { border-color: var(--accent); } |
| 2926 | |
| 2927 | &:has(.file-upload-input:focus-visible) { |
| 2928 | outline: 2px solid var(--accent); |
| 2929 | outline-offset: 1px; |
| 2930 | } |
| 2931 | } |
| 2932 | |
| 2933 | .file-upload-name { max-width: 160px; } |
| 2934 | |
| 2935 | .file-upload-input { |
| 2936 | position: absolute; |
| 2937 | width: 1px; |
| 2938 | height: 1px; |
| 2939 | clip-path: inset(50%); |
| 2940 | opacity: 0; |
| 2941 | } |
| 2942 | |
| 2943 | // Upload progress: a client-made hairline along the upload box's inside |
| 2944 | // bottom edge; the accent fill tracks the request as it climbs. No text and |
| 2945 | // no native `` chrome — the box is the control, the rule is the |
| 2946 | // meter, in the same border/accent pair the box itself wears. |
| 2947 | .upload-progress { |
| 2948 | position: absolute; |
| 2949 | left: 1px; |
| 2950 | right: 22px; |
| 2951 | bottom: 1px; |
| 2952 | height: 2px; |
| 2953 | background: var(--border); |
| 2954 | border-radius: var(--radius-sm); |
| 2955 | pointer-events: none; |
| 2956 | overflow: hidden; |
| 2957 | } |
| 2958 | |
| 2959 | .upload-progress-fill { |
| 2960 | width: 0; |
| 2961 | height: 100%; |
| 2962 | background: var(--accent); |
| 2963 | transition: width var(--dur-fast) var(--ease); |
| 2964 | } |
| 2965 | |
| 2966 | // The cancel cross is the chip remove control seconded to the bar: same |
| 2967 | // `.file-chip-drop` 20px hit box, glyph and hover-to-danger, only moved to |
| 2968 | // the track's right end. It cancels the request and nothing else — never |
| 2969 | // the picker the box itself is. |
| 2970 | .upload-progress-drop { |
| 2971 | position: absolute; |
| 2972 | right: 1px; |
| 2973 | bottom: 1px; |
| 2974 | } |
| 2975 | |
| 2976 | // -- comments --------------------------------------------------------------- |
| 2977 | |
| 2978 | .comment-list { |
| 2979 | display: flex; |
| 2980 | flex-direction: column; |
| 2981 | gap: 14px; |
| 2982 | max-height: 320px; |
| 2983 | overflow-y: auto; |
| 2984 | scrollbar-width: none; |
| 2985 | |
| 2986 | &::-webkit-scrollbar { display: none; } |
| 2987 | } |
| 2988 | |
| 2989 | .comment { |
| 2990 | display: flex; |
| 2991 | align-items: flex-start; |
| 2992 | gap: 10px; |
| 2993 | } |
| 2994 | |
| 2995 | .comment-said { |
| 2996 | min-width: 0; |
| 2997 | flex: 1; |
| 2998 | } |
| 2999 | |
| 3000 | .comment-head { |
| 3001 | display: flex; |
| 3002 | align-items: baseline; |
| 3003 | gap: 8px; |
| 3004 | } |
| 3005 | |
| 3006 | .comment-who { |
| 3007 | font-size: 13px; |
| 3008 | font-weight: 600; |
| 3009 | color: var(--ink); |
| 3010 | } |
| 3011 | |
| 3012 | .comment-when { |
| 3013 | font-family: var(--font-mono); |
| 3014 | font-size: 11px; |
| 3015 | color: var(--muted-soft); |
| 3016 | } |
| 3017 | |
| 3018 | .comment-body { |
| 3019 | margin-top: 3px; |
| 3020 | font-size: 13px; |
| 3021 | line-height: 1.55; |
| 3022 | color: var(--ink-soft); |
| 3023 | white-space: pre-wrap; |
| 3024 | } |
| 3025 | |
| 3026 | .comment-composer { |
| 3027 | display: flex; |
| 3028 | flex-direction: column; |
| 3029 | gap: 8px; |
| 3030 | margin-top: 14px; |
| 3031 | } |
| 3032 | |
| 3033 | .comment-input { font-size: 13px; } |
| 3034 | |
| 3035 | .comment-row { |
| 3036 | display: flex; |
| 3037 | align-items: center; |
| 3038 | gap: 8px; |
| 3039 | } |
| 3040 | |
| 3041 | // -- activity --------------------------------------------------------------- |
| 3042 | |
| 3043 | .activity-list { |
| 3044 | display: flex; |
| 3045 | flex-direction: column; |
| 3046 | gap: 10px; |
| 3047 | max-height: 320px; |
| 3048 | overflow-y: auto; |
| 3049 | scrollbar-width: none; |
| 3050 | |
| 3051 | &::-webkit-scrollbar { display: none; } |
| 3052 | } |
| 3053 | |
| 3054 | .activity-line { |
| 3055 | display: flex; |
| 3056 | flex-wrap: wrap; |
| 3057 | align-items: baseline; |
| 3058 | gap: 6px 10px; |
| 3059 | font-size: 12px; |
| 3060 | color: var(--muted); |
| 3061 | } |
| 3062 | |
| 3063 | .activity-stamp { |
| 3064 | flex: none; |
| 3065 | font-family: var(--font-mono); |
| 3066 | font-size: 11px; |
| 3067 | color: var(--muted-soft); |
| 3068 | } |
| 3069 | |
| 3070 | .activity-who { |
| 3071 | flex: none; |
| 3072 | color: var(--ink); |
| 3073 | } |
| 3074 | |
| 3075 | // -- footer ----------------------------------------------------------------- |
| 3076 | |
| 3077 | // The foot sits outside `.detail-body`, so a description that runs on |
| 3078 | // forever scrolls under it rather than pushing Close off the panel. |
| 3079 | .detail-foot { |
| 3080 | display: flex; |
| 3081 | align-items: center; |
| 3082 | gap: 8px; |
| 3083 | flex: none; |
| 3084 | padding: 22px 24px 24px; |
| 3085 | margin-top: 4px; |
| 3086 | } |
| 3087 | |
| 3088 | .detail-delete-form { display: inline-flex; } |
| 3089 | |
| 3090 | .detail-delete { |
| 3091 | display: inline-flex; |
| 3092 | align-items: center; |
| 3093 | gap: 6px; |
| 3094 | height: var(--control-h); |
| 3095 | padding: 0 14px; |
| 3096 | border: 1px solid var(--danger-border); |
| 3097 | border-radius: var(--radius); |
| 3098 | background: var(--surface); |
| 3099 | font-family: inherit; |
| 3100 | font-size: 13px; |
| 3101 | color: var(--danger); |
| 3102 | cursor: pointer; |
| 3103 | |
| 3104 | &:disabled { opacity: 0.5; cursor: default; } |
| 3105 | } |
| 3106 | |
| 3107 | // -- the delete confirmation ------------------------------------------------ |
| 3108 | // |
| 3109 | // The open `` becomes a scrim + centered panel, the same shape as |
| 3110 | // the task modal's `.modal-scrim`/`.modal` (main.scss above), with no script: |
| 3111 | // the backdrop is the open details' own `::before`. Closing is handled by |
| 3112 | // `escape_closes`/`card_menu_script` (outside click, Esc) — the trigger |
| 3113 | // summary is hidden while open (below) so it is not a second, floating |
| 3114 | // "Delete task" button on screen. |
| 3115 | |
| 3116 | .confirm-details[open] { |
| 3117 | position: relative; |
| 3118 | z-index: 21; |
| 3119 | } |
| 3120 | |
| 3121 | // While the confirm is open, the modal panel behind it is not visible: one |
| 3122 | // popup on screen at a time. `visibility` (not `display`) so the scrim |
| 3123 | // keeps showing and the confirm — a fixed-position descendant that would |
| 3124 | // otherwise inherit the hidden visibility — is pulled back to visible. The |
| 3125 | // summary trigger stays out of that "pulled back" set: it sits in normal |
| 3126 | // flow at its footer position, so leaving it visible reads as a second, |
| 3127 | // floating delete button. |
| 3128 | .modal:has(details.confirm-details[open]) { |
| 3129 | visibility: hidden; |
| 3130 | |
| 3131 | details.confirm-details[open], |
| 3132 | details.confirm-details[open]::before, |
| 3133 | details.confirm-details[open] .confirm { |
| 3134 | visibility: visible; |
| 3135 | } |
| 3136 | |
| 3137 | details.confirm-details[open] > summary { |
| 3138 | display: none; |
| 3139 | } |
| 3140 | } |
| 3141 | |
| 3142 | .confirm-details[open]::before { |
| 3143 | content: ""; |
| 3144 | position: fixed; |
| 3145 | inset: 0; |
| 3146 | background: var(--scrim); |
| 3147 | z-index: 20; |
| 3148 | } |
| 3149 | |
| 3150 | .confirm { |
| 3151 | position: fixed; |
| 3152 | top: 50%; |
| 3153 | left: 50%; |
| 3154 | transform: translate(-50%, -50%); |
| 3155 | z-index: 21; |
| 3156 | width: 420px; |
| 3157 | max-width: calc(100% - 48px); |
| 3158 | margin: 0; |
| 3159 | padding: 18px 20px; |
| 3160 | border: 1px solid var(--border); |
| 3161 | border-radius: var(--radius-lg); |
| 3162 | background: var(--surface); |
| 3163 | box-shadow: var(--shadow-3); |
| 3164 | } |
| 3165 | |
| 3166 | .confirm-title { |
| 3167 | font-size: 13px; |
| 3168 | font-weight: 600; |
| 3169 | color: var(--ink); |
| 3170 | } |
| 3171 | |
| 3172 | .confirm-list { |
| 3173 | margin: 8px 0 0; |
| 3174 | padding-left: 18px; |
| 3175 | font-size: 13px; |
| 3176 | color: var(--ink-soft); |
| 3177 | } |
| 3178 | |
| 3179 | .confirm-row { |
| 3180 | display: flex; |
| 3181 | align-items: center; |
| 3182 | gap: 8px; |
| 3183 | margin-top: 12px; |
| 3184 | } |
| 3185 | |
| 3186 | |
| 3187 | // --- Settings (Settings and MemberSettings artboards) ---------------------- |
| 3188 | |
| 3189 | .settings-shell { |
| 3190 | display: flex; |
| 3191 | } |
| 3192 | |
| 3193 | .settings-stage { |
| 3194 | flex: 1; |
| 3195 | min-width: 0; |
| 3196 | padding: 24px 32px 40px; |
| 3197 | display: flex; |
| 3198 | flex-direction: column; |
| 3199 | gap: 20px; |
| 3200 | max-width: 860px; |
| 3201 | overflow-y: auto; |
| 3202 | scrollbar-width: none; |
| 3203 | &::-webkit-scrollbar { display: none; } |
| 3204 | |
| 3205 | &.stage-wide { max-width: 1200px; } |
| 3206 | |
| 3207 | // A panel's own `overflow: hidden` (the corner clip) zeroes its flex |
| 3208 | // min-height, so the column would compress it to the viewport and clip the |
| 3209 | // rows invisibly. Panels keep natural height; the stage is what pans. |
| 3210 | > * { flex: none; } |
| 3211 | } |
| 3212 | |
| 3213 | // The quota meter on the settings profile panel: a sunken track with an |
| 3214 | // accent fill. Read-only — the level rides the fill's inline width — the |
| 3215 | // one meter here that is a level rather than an activity. |
| 3216 | .quota-bar { |
| 3217 | height: 8px; |
| 3218 | background: var(--panel-sunken); |
| 3219 | border: 1px solid var(--border-soft); |
| 3220 | border-radius: var(--radius); |
| 3221 | overflow: hidden; |
| 3222 | } |
| 3223 | |
| 3224 | .quota-fill { |
| 3225 | height: 100%; |
| 3226 | background: var(--accent); |
| 3227 | } |
| 3228 | |
| 3229 | .settings-head { |
| 3230 | display: flex; |
| 3231 | align-items: center; |
| 3232 | flex-wrap: wrap; |
| 3233 | gap: 10px; |
| 3234 | } |
| 3235 | |
| 3236 | .settings-sections { |
| 3237 | flex: none; |
| 3238 | width: 200px; |
| 3239 | display: flex; |
| 3240 | flex-direction: column; |
| 3241 | gap: 2px; |
| 3242 | padding: 16px 0; |
| 3243 | border-right: 1px solid var(--border); |
| 3244 | } |
| 3245 | |
| 3246 | .settings-section-link { |
| 3247 | display: block; |
| 3248 | padding: 8px 16px; |
| 3249 | font-family: var(--font-mono); |
| 3250 | font-size: 10px; |
| 3251 | letter-spacing: 0.08em; |
| 3252 | text-transform: uppercase; |
| 3253 | color: var(--muted-soft); |
| 3254 | text-decoration: none; |
| 3255 | |
| 3256 | &:hover { color: var(--ink); } |
| 3257 | } |
| 3258 | .settings-title { |
| 3259 | margin: 0; |
| 3260 | font-size: 18px; |
| 3261 | font-weight: 700; |
| 3262 | letter-spacing: -0.01em; |
| 3263 | // Page titles on the drive surfaces are often file or folder names — an |
| 3264 | // unbroken run of characters has no space to wrap at, and without this it |
| 3265 | // runs off the card and the page with it. |
| 3266 | overflow-wrap: anywhere; |
| 3267 | } |
| 3268 | |
| 3269 | .panel { |
| 3270 | background: var(--surface); |
| 3271 | border: 1px solid var(--border); |
| 3272 | border-radius: var(--radius-lg); |
| 3273 | overflow: hidden; |
| 3274 | } |
| 3275 | |
| 3276 | .panel-head { |
| 3277 | display: flex; |
| 3278 | align-items: center; |
| 3279 | gap: 10px; |
| 3280 | padding: 14px 18px; |
| 3281 | border-bottom: 1px solid var(--border); |
| 3282 | } |
| 3283 | |
| 3284 | .panel-title { |
| 3285 | margin: 0; |
| 3286 | font-size: 13px; |
| 3287 | font-weight: 600; |
| 3288 | } |
| 3289 | |
| 3290 | .panel-body { |
| 3291 | padding: 18px; |
| 3292 | display: flex; |
| 3293 | flex-direction: column; |
| 3294 | gap: 20px; |
| 3295 | } |
| 3296 | |
| 3297 | .panel-lede { |
| 3298 | margin: 0; |
| 3299 | font-size: 13px; |
| 3300 | line-height: 1.5; |
| 3301 | color: var(--muted); |
| 3302 | } |
| 3303 | |
| 3304 | .panel-foot { |
| 3305 | display: flex; |
| 3306 | // A foot inside a `.panel-body` would inherit that column, and a foot is a row. |
| 3307 | flex-direction: row; |
| 3308 | align-items: center; |
| 3309 | gap: 12px; |
| 3310 | justify-content: flex-end; |
| 3311 | |
| 3312 | // A foot with something to say on the left and the button on the right. |
| 3313 | &-split { justify-content: space-between; } |
| 3314 | |
| 3315 | } |
| 3316 | |
| 3317 | // One end of a split foot: its own controls, kept together. |
| 3318 | .foot-side { |
| 3319 | display: flex; |
| 3320 | align-items: center; |
| 3321 | gap: 12px; |
| 3322 | min-width: 0; |
| 3323 | } |
| 3324 | |
| 3325 | .field { |
| 3326 | display: flex; |
| 3327 | flex-direction: column; |
| 3328 | gap: 6px; |
| 3329 | flex-grow: 1; |
| 3330 | min-width: 0; |
| 3331 | } |
| 3332 | |
| 3333 | .field-row { |
| 3334 | display: flex; |
| 3335 | gap: 16px; |
| 3336 | } |
| 3337 | |
| 3338 | // Fields carry no top margin of their own: each wrapping container is a |
| 3339 | // flex column whose gap is the spacing. The one unclassed form — its id is |
| 3340 | // load-bearing for the foot's `form=` submit — is named directly here. |
| 3341 | #sender-settings { |
| 3342 | display: flex; |
| 3343 | flex-direction: column; |
| 3344 | gap: 20px; |
| 3345 | } |
| 3346 | |
| 3347 | .field-narrow { flex-grow: 0; width: 120px; } |
| 3348 | |
| 3349 | .field-label { |
| 3350 | font-family: var(--font-mono); |
| 3351 | font-size: 10px; |
| 3352 | letter-spacing: 0.08em; |
| 3353 | color: var(--muted-soft); |
| 3354 | text-transform: uppercase; |
| 3355 | } |
| 3356 | |
| 3357 | // A read-only value under a field label — the profile's name, address and |
| 3358 | // quota line. Same type size as a field input, without the box: the label |
| 3359 | // above it is the structure, not a border. |
| 3360 | .field-static { |
| 3361 | font-size: 13px; |
| 3362 | color: var(--ink); |
| 3363 | } |
| 3364 | |
| 3365 | .auth-input, |
| 3366 | .field-input { |
| 3367 | height: 40px; |
| 3368 | padding: 0 12px; |
| 3369 | background: var(--field-bg); |
| 3370 | border: 1px solid var(--border-strong); |
| 3371 | border-radius: var(--radius); |
| 3372 | font-family: var(--font-sans); |
| 3373 | font-size: 13px; |
| 3374 | color: var(--ink); |
| 3375 | |
| 3376 | &:focus-visible { |
| 3377 | background: var(--surface); |
| 3378 | border-color: var(--accent); |
| 3379 | } |
| 3380 | |
| 3381 | &:disabled { |
| 3382 | background: var(--panel-sunken); |
| 3383 | color: var(--muted); |
| 3384 | } |
| 3385 | } |
| 3386 | |
| 3387 | .auth-input-mono { |
| 3388 | font-family: var(--font-mono); |
| 3389 | } |
| 3390 | |
| 3391 | // The house dropdown trigger — `dropdown.rs`'s clone of a select — |
| 3392 | // draws the same chevron the rest of the app uses, so the closed look stands |
| 3393 | // in for the field it replaced. Scoped to the field-input trigger, as the |
| 3394 | // reference app has it: a status-select trigger stays bare — its box is the |
| 3395 | // chrome, and no chevron rides it. |
| 3396 | .field-input.dd-trigger { |
| 3397 | appearance: none; |
| 3398 | -webkit-appearance: none; |
| 3399 | cursor: pointer; |
| 3400 | padding-right: 32px; |
| 3401 | 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"); |
| 3402 | background-repeat: no-repeat; |
| 3403 | background-position: right 12px center; |
| 3404 | } |
| 3405 | |
| 3406 | // Dark theme's lighter muted ink, baked into a second copy of the chevron: |
| 3407 | // a data-URI can't read custom properties. |
| 3408 | [data-theme="dark"] { |
| 3409 | .field-input.dd-trigger { |
| 3410 | 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"); |
| 3411 | } |
| 3412 | } |
| 3413 | |
| 3414 | // The browser's native option list ignores theme tokens by default — dark |
| 3415 | // mode showed the OS's white/blue list until these are set explicitly. |
| 3416 | // Belt-and-braces for any select `dropdown.rs` hasn't converted. |
| 3417 | option { |
| 3418 | background: var(--surface); |
| 3419 | color: var(--ink); |
| 3420 | } |
| 3421 | |
| 3422 | option:checked { |
| 3423 | background: var(--accent-tint); |
| 3424 | color: var(--accent-ink); |
| 3425 | } |
| 3426 | |
| 3427 | option:hover { |
| 3428 | background: var(--panel-sunken); |
| 3429 | } |
| 3430 | |
| 3431 | input[type="checkbox"], |
| 3432 | input[type="radio"] { |
| 3433 | accent-color: var(--accent); |
| 3434 | } |
| 3435 | |
| 3436 | // -- house dropdown (dropdown.rs) -------------------------------------------- |
| 3437 | // |
| 3438 | // `dropdown.rs` hides the native `` and portals a trigger + panel |
| 3439 | // in its place, so no browser engine's own popup chrome ever shows — every |
| 3440 | // engine themes identically because none of them draw this one. |
| 3441 | |
| 3442 | .dd-native { display: none; } |
| 3443 | |
| 3444 | // The trigger carries the select's own classes (`.status-select` or |
| 3445 | // `.field-input`), so its closed look is already right; this only resets |
| 3446 | // what a bare `` adds on top of that. |
| 3447 | .status-select.dd-trigger { padding: 0; } |
| 3448 | .dd-trigger { |
| 3449 | display: flex; |
| 3450 | align-items: center; |
| 3451 | font: inherit; |
| 3452 | text-align: left; |
| 3453 | cursor: pointer; |
| 3454 | } |
| 3455 | |
| 3456 | |
| 3457 | .dd-panel { |
| 3458 | position: fixed; |
| 3459 | z-index: 60; |
| 3460 | max-height: 260px; |
| 3461 | overflow-y: auto; |
| 3462 | background: var(--surface); |
| 3463 | border: 1px solid var(--border-strong); |
| 3464 | border-radius: var(--radius-md); |
| 3465 | box-shadow: var(--shadow-2); |
| 3466 | padding: 8px; |
| 3467 | display: none; |
| 3468 | } |
| 3469 | |
| 3470 | .dd-panel.dd-open { display: block; } |
| 3471 | |
| 3472 | .dd-option { |
| 3473 | display: block; |
| 3474 | width: 100%; |
| 3475 | padding: 6px 10px; |
| 3476 | border: none; |
| 3477 | border-radius: var(--radius-sm); |
| 3478 | background: none; |
| 3479 | font: inherit; |
| 3480 | font-size: 13px; |
| 3481 | text-align: left; |
| 3482 | color: var(--ink); |
| 3483 | white-space: nowrap; |
| 3484 | cursor: pointer; |
| 3485 | transition: background-color var(--dur-fast) var(--ease); |
| 3486 | |
| 3487 | &:hover, |
| 3488 | &:focus, |
| 3489 | &.dd-option-active { background: var(--row-hover); outline: none; } |
| 3490 | } |
| 3491 | |
| 3492 | .dd-option-selected { background: var(--accent-tint); color: var(--accent-ink); } |
| 3493 | |
| 3494 | .dd-option-hidden { display: none; } |
| 3495 | |
| 3496 | // Type-to-filter, injected as the panel's first child on any select with |
| 3497 | // more than 7 options (dropdown.rs `enhance`) — small selects (Newest/ |
| 3498 | // Oldest, yes/no) stay clean. Its own focus-visible override sits after |
| 3499 | // the shared ring rule below (same (0,2,0) trick as `.modal:focus-visible`). |
| 3500 | .dd-search { |
| 3501 | display: block; |
| 3502 | width: 100%; |
| 3503 | margin-bottom: 6px; |
| 3504 | padding: 8px 10px; |
| 3505 | border: none; |
| 3506 | border-bottom: 1px solid var(--border); |
| 3507 | background: none; |
| 3508 | font: inherit; |
| 3509 | font-size: 13px; |
| 3510 | color: var(--ink); |
| 3511 | } |
| 3512 | |
| 3513 | // A row that states a fact instead of pretending to be an editable field. An |
| 3514 | // empty box that silently does nothing is worse than a sentence. |
| 3515 | .field-stated { |
| 3516 | display: flex; |
| 3517 | align-items: center; |
| 3518 | height: 40px; |
| 3519 | padding: 0 12px; |
| 3520 | background: var(--panel-sunken); |
| 3521 | border: 1px dashed var(--border-strong); |
| 3522 | border-radius: var(--radius); |
| 3523 | font-size: 13px; |
| 3524 | color: var(--muted); |
| 3525 | } |
| 3526 | |
| 3527 | .field-note { |
| 3528 | font-size: 12px; |
| 3529 | line-height: 1.5; |
| 3530 | color: var(--muted); |
| 3531 | } |
| 3532 | |
| 3533 | .field-error { |
| 3534 | font-size: 12px; |
| 3535 | color: var(--danger); |
| 3536 | } |
| 3537 | |
| 3538 | .primary { |
| 3539 | display: inline-flex; |
| 3540 | align-items: center; |
| 3541 | justify-content: center; |
| 3542 | height: var(--control-h); |
| 3543 | padding: 0 16px; |
| 3544 | background: var(--accent); |
| 3545 | border: 1px solid var(--accent); |
| 3546 | border-radius: var(--radius); |
| 3547 | color: var(--surface); |
| 3548 | font-family: var(--font-sans); |
| 3549 | font-size: 13px; |
| 3550 | font-weight: 600; |
| 3551 | text-decoration: none; |
| 3552 | cursor: pointer; |
| 3553 | transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); |
| 3554 | |
| 3555 | &:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--surface); } |
| 3556 | } |
| 3557 | |
| 3558 | // One keyboard-focus ring for everything interactive — buttons, links, |
| 3559 | // fields, the house dropdown trigger, tabindex'd widgets. Outline only: |
| 3560 | // the field recipe's background/border-color swap would invert the solid |
| 3561 | // buttons — their own label is var(--surface) — into invisibility. |
| 3562 | // Placed after .dd-option's own `&:focus { outline: none }`: the (0,2,0) |
| 3563 | // tie falls to this rule, so keyboard focus still rings an option. |
| 3564 | :is(button, a, input, select, textarea, summary, .dd-trigger, [tabindex]):focus-visible { |
| 3565 | outline: 2px solid var(--accent); |
| 3566 | outline-offset: 1px; |
| 3567 | } |
| 3568 | |
| 3569 | // Modals take programmatic focus on open (tabindex="-1") and are not |
| 3570 | // controls — no ring. Re-stated here because a plain `.modal` rule loses |
| 3571 | // the specificity tie against the shared rule above. |
| 3572 | .modal:focus-visible { outline: none; } |
| 3573 | |
| 3574 | // A boxed outline inside a panel that's already bordered reads as a double |
| 3575 | // frame; the hairline brightening to the accent color is enough. |
| 3576 | .dd-search:focus-visible { |
| 3577 | outline: none; |
| 3578 | border-bottom-color: var(--accent); |
| 3579 | } |
| 3580 | |
| 3581 | // -- the member list -------------------------------------------------------- |
| 3582 | |
| 3583 | // The columns are named, not counted, and only one of them is elastic. |
| 3584 | // |
| 3585 | // This was `table-layout: fixed` with a single hardcoded `width: 30%` on the |
| 3586 | // last column, which made the other three exactly a third of the rest each — |
| 3587 | // a geometry decided without reference to anything that would be in it. A |
| 3588 | // mono-spaced address longer than a third of the table simply ran out from |
| 3589 | // under its own cell and printed across the role select next to it. Auto |
| 3590 | // layout asks the content instead: every column takes the width it needs, |
| 3591 | // and the address — the one column whose length is somebody else's decision |
| 3592 | // — absorbs what is left and ends in an ellipsis rather than in the |
| 3593 | // neighbouring column. |
| 3594 | .member-table { |
| 3595 | width: 100%; |
| 3596 | border-collapse: collapse; |
| 3597 | table-layout: auto; |
| 3598 | font-size: 13px; |
| 3599 | |
| 3600 | th { |
| 3601 | text-align: left; |
| 3602 | padding: 0 12px 8px 0; |
| 3603 | font-family: var(--font-mono); |
| 3604 | font-size: 10px; |
| 3605 | letter-spacing: 0.08em; |
| 3606 | font-weight: 400; |
| 3607 | color: var(--muted-soft); |
| 3608 | border-bottom: 1px solid var(--border); |
| 3609 | } |
| 3610 | |
| 3611 | // Row height comes from the tallest thing in the row. A fixed 48px was a |
| 3612 | // guess that held until a cell had two things in it, and then the second |
| 3613 | // one hung out over the row's own border. |
| 3614 | td { |
| 3615 | padding: 10px 12px 10px 0; |
| 3616 | vertical-align: middle; |
| 3617 | } |
| 3618 | |
| 3619 | // Everything but the address is as wide as its content and no wider: |
| 3620 | // `width: 1%` is how a table cell asks for its intrinsic width. |
| 3621 | .member-col-name, |
| 3622 | .member-col-role, |
| 3623 | .member-col-quota, |
| 3624 | .member-col-account { |
| 3625 | width: 1%; |
| 3626 | white-space: nowrap; |
| 3627 | } |
| 3628 | |
| 3629 | // The elastic one. `max-width: 0` with `width: 100%` is what lets a table |
| 3630 | // cell be told "take the slack". Unlike iz, in never clips an address — |
| 3631 | // the Everyone table administers real accounts, and an address that reads |
| 3632 | // "ahmetkaangum…" cannot be told apart from the next one. Wrap instead. |
| 3633 | .member-col-address { |
| 3634 | width: 100%; |
| 3635 | max-width: 0; |
| 3636 | white-space: normal; |
| 3637 | overflow-wrap: anywhere; |
| 3638 | } |
| 3639 | |
| 3640 | .member-row { |
| 3641 | border-bottom: 1px solid var(--border); |
| 3642 | } |
| 3643 | } |
| 3644 | |
| 3645 | // Every data cell's content sits in a row wrapper, not the `` itself: |
| 3646 | // `display: flex` directly on a `` drops it out of the table's row/column |
| 3647 | // model, which is what left this list's columns loose and its rows |
| 3648 | // unevenly centered. |
| 3649 | .member-name-row, |
| 3650 | .member-account-row { |
| 3651 | display: flex; |
| 3652 | align-items: center; |
| 3653 | } |
| 3654 | |
| 3655 | .member-name { font-weight: 600; } |
| 3656 | .member-name-row { gap: 8px; } |
| 3657 | |
| 3658 | .member-you { |
| 3659 | flex: none; |
| 3660 | padding: 1px 8px; |
| 3661 | border-radius: 999px; |
| 3662 | background: var(--field-bg); |
| 3663 | border: 1px solid var(--border-strong); |
| 3664 | font-size: 11px; |
| 3665 | font-weight: 500; |
| 3666 | color: var(--muted); |
| 3667 | } |
| 3668 | |
| 3669 | .member-address { |
| 3670 | font-family: var(--font-mono); |
| 3671 | font-size: 12px; |
| 3672 | color: var(--muted); |
| 3673 | } |
| 3674 | |
| 3675 | .member-account { color: var(--muted); } |
| 3676 | .member-account-row { gap: 10px; } |
| 3677 | .member-status { flex: none; white-space: nowrap; } |
| 3678 | |
| 3679 | .member-resend { display: inline-flex; flex: none; } |
| 3680 | |
| 3681 | .quiet { |
| 3682 | display: inline-flex; |
| 3683 | align-items: center; |
| 3684 | height: var(--control-h); |
| 3685 | padding: 0 10px; |
| 3686 | background: var(--surface); |
| 3687 | border: 1px solid var(--border-strong); |
| 3688 | border-radius: var(--radius); |
| 3689 | font-family: var(--font-sans); |
| 3690 | font-size: 12px; |
| 3691 | color: var(--ink-soft); |
| 3692 | text-decoration: none; |
| 3693 | cursor: pointer; |
| 3694 | transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); |
| 3695 | |
| 3696 | &:hover { border-color: var(--accent); color: var(--accent); } |
| 3697 | } |
| 3698 | |
| 3699 | // Danger modifier for a `.quiet` button — the "Delete" action in a rule row. |
| 3700 | // Written `.quiet.quiet-danger` for the same reason the avatar sizes are: |
| 3701 | // the skins style `.quiet` from a `[data-ui]` scope, which outweighs a lone |
| 3702 | // modifier class — on the Ledger skin a delete button lost its red border, |
| 3703 | // and its red text on hover, to a rule about ordinary quiet buttons. |
| 3704 | .quiet.quiet-danger { |
| 3705 | border-color: var(--danger-border); |
| 3706 | color: var(--danger); |
| 3707 | |
| 3708 | &:hover { border-color: var(--danger); color: var(--danger); background: var(--surface-sunken); } |
| 3709 | } |
| 3710 | |
| 3711 | // The chevron floats over the trigger's right end rather than sitting next |
| 3712 | // to it in the flex row: the trigger then spans the whole box, so the box |
| 3713 | // is clickable edge to edge. |
| 3714 | .member-role { |
| 3715 | position: relative; |
| 3716 | padding: 0; |
| 3717 | |
| 3718 | > .glyph { position: absolute; right: 10px; pointer-events: none; color: var(--muted); } |
| 3719 | .status-select { align-self: stretch; padding: 0 28px 0 10px; } |
| 3720 | } |
| 3721 | |
| 3722 | .member-invite { |
| 3723 | display: flex; |
| 3724 | align-items: flex-end; |
| 3725 | gap: 12px; |
| 3726 | flex-wrap: wrap; |
| 3727 | } |
| 3728 | |
| 3729 | .field-role { flex-grow: 0; width: 140px; } |
| 3730 | |
| 3731 | // One control height, matching `.primary`, for this row's fields, so the |
| 3732 | // role select and the "Add member" button share one height and baseline. |
| 3733 | .member-invite .field-input { height: var(--control-h); } |
| 3734 | |
| 3735 | // The admin quota cell: one compact row — a control-height byte field beside |
| 3736 | // its quiet Set button — so the input and the button share a baseline and |
| 3737 | // the column stays narrow enough for the address column to keep its slack. |
| 3738 | // (iz's member-table rules above are untouched; this only sizes this table's |
| 3739 | // quota row.) |
| 3740 | .member-quota { |
| 3741 | display: flex; |
| 3742 | align-items: center; |
| 3743 | gap: 8px; |
| 3744 | |
| 3745 | .field-input { height: var(--control-h); width: 140px; flex: none; } |
| 3746 | } |
| 3747 | |
| 3748 | .member-col-role .pop-row-form + .pop-row-form { margin-top: 8px; } |
| 3749 | |
| 3750 | // The link exists once. It is shown once, and said to be shown once. |
| 3751 | .member-link { |
| 3752 | display: flex; |
| 3753 | flex-direction: column; |
| 3754 | gap: 6px; |
| 3755 | padding: 12px; |
| 3756 | background: var(--accent-tint); |
| 3757 | border: 1px solid var(--accent-border); |
| 3758 | border-radius: var(--radius); |
| 3759 | } |
| 3760 | |
| 3761 | .member-link-value { |
| 3762 | font-family: var(--font-mono); |
| 3763 | font-size: 12px; |
| 3764 | color: var(--accent-ink); |
| 3765 | word-break: break-all; |
| 3766 | } |
| 3767 | |
| 3768 | // --- Mail rules (MailRules artboard) --------------------------------------- |
| 3769 | |
| 3770 | // Text only a screen reader needs: the switch says what it does in a word the |
| 3771 | // eye reads from its position, and the ear cannot. |
| 3772 | .visually-hidden { |
| 3773 | position: absolute; |
| 3774 | width: 1px; |
| 3775 | height: 1px; |
| 3776 | margin: -1px; |
| 3777 | padding: 0; |
| 3778 | overflow: hidden; |
| 3779 | clip-path: inset(50%); |
| 3780 | white-space: nowrap; |
| 3781 | } |
| 3782 | |
| 3783 | .rules-quiet { |
| 3784 | margin: 0; |
| 3785 | font-size: 13px; |
| 3786 | color: var(--muted); |
| 3787 | } |
| 3788 | |
| 3789 | .rule-list { |
| 3790 | display: flex; |
| 3791 | flex-direction: column; |
| 3792 | gap: 10px; |
| 3793 | } |
| 3794 | |
| 3795 | .rule-row { |
| 3796 | display: flex; |
| 3797 | align-items: center; |
| 3798 | gap: 14px; |
| 3799 | padding: 16px; |
| 3800 | background: var(--surface); |
| 3801 | border: 1px solid var(--border); |
| 3802 | border-radius: var(--radius-md); |
| 3803 | |
| 3804 | // A rule that is switched off is still listed — the screen shows what |
| 3805 | // exists, not what is live — and reads as the quieter of the two. |
| 3806 | &-off { |
| 3807 | background: var(--surface-muted); |
| 3808 | opacity: 0.75; |
| 3809 | } |
| 3810 | } |
| 3811 | |
| 3812 | .rule-switch-form { display: flex; flex-shrink: 0; } |
| 3813 | |
| 3814 | .rule-switch { |
| 3815 | width: 36px; |
| 3816 | height: 20px; |
| 3817 | padding: 0; |
| 3818 | border: none; |
| 3819 | border-radius: var(--radius-lg); |
| 3820 | background: var(--border-soft); |
| 3821 | position: relative; |
| 3822 | cursor: pointer; |
| 3823 | |
| 3824 | &-knob { |
| 3825 | position: absolute; |
| 3826 | top: 2px; |
| 3827 | left: 2px; |
| 3828 | width: 16px; |
| 3829 | height: 16px; |
| 3830 | border-radius: 50%; |
| 3831 | background: var(--surface); |
| 3832 | } |
| 3833 | |
| 3834 | &-on { |
| 3835 | background: var(--accent); |
| 3836 | .rule-switch-knob { left: auto; right: 2px; } |
| 3837 | } |
| 3838 | } |
| 3839 | |
| 3840 | .rule-sentence { |
| 3841 | display: flex; |
| 3842 | align-items: center; |
| 3843 | flex-wrap: wrap; |
| 3844 | gap: 8px; |
| 3845 | flex-grow: 1; |
| 3846 | min-width: 0; |
| 3847 | font-size: 13px; |
| 3848 | color: var(--ink-soft); |
| 3849 | } |
| 3850 | |
| 3851 | // One chosen word inside the sentence: a column, a subject, an audience. |
| 3852 | // Identity, not state — a neutral outline so the toned verdict chips below |
| 3853 | // stand out next to it instead of blending in. |
| 3854 | .rule-term { |
| 3855 | display: inline-flex; |
| 3856 | align-items: center; |
| 3857 | padding: 3px 8px; |
| 3858 | background: transparent; |
| 3859 | border: 1px solid var(--border-strong); |
| 3860 | border-radius: var(--radius-sm); |
| 3861 | font-weight: 500; |
| 3862 | color: var(--ink); |
| 3863 | } |
| 3864 | |
| 3865 | .rule-row-off .rule-term { |
| 3866 | border-color: var(--border-soft); |
| 3867 | color: var(--muted-soft); |
| 3868 | } |
| 3869 | |
| 3870 | // A verdict or a queue state, toned so the eye can sort a page of them |
| 3871 | // without reading every word: sent/queued reads as the app's accent blue, |
| 3872 | // failed/abandoned as its danger orange, held/pending as its warning amber, |
| 3873 | // no recipients gets its own violet tone, and everything that is quietly |
| 3874 | // not-a-failure (not matched, rule off) stays muted rather than competing |
| 3875 | // for attention. |
| 3876 | .rule-term-owed, |
| 3877 | .rule-term-already_owed, |
| 3878 | .rule-term-sent { |
| 3879 | background: var(--accent-tint); |
| 3880 | border-color: var(--accent-border); |
| 3881 | color: var(--accent-ink); |
| 3882 | } |
| 3883 | |
| 3884 | .rule-term-failed, |
| 3885 | .rule-term-abandoned { |
| 3886 | background: var(--danger-tint); |
| 3887 | border-color: var(--danger-border-alt); |
| 3888 | color: var(--danger); |
| 3889 | } |
| 3890 | |
| 3891 | .rule-term-held, |
| 3892 | .rule-term-pending { |
| 3893 | background: var(--warn-tint); |
| 3894 | border-color: var(--warn-border); |
| 3895 | color: var(--warn-ink); |
| 3896 | } |
| 3897 | |
| 3898 | .rule-term-not_matched, |
| 3899 | .rule-term-disabled { |
| 3900 | background: var(--surface-sunken); |
| 3901 | border-color: var(--border-strong); |
| 3902 | color: var(--muted); |
| 3903 | } |
| 3904 | |
| 3905 | .rule-term-no_recipients { |
| 3906 | background: var(--violet-tint); |
| 3907 | border-color: var(--violet-border); |
| 3908 | color: var(--violet-ink); |
| 3909 | } |
| 3910 | |
| 3911 | .rule-term-task_gone { |
| 3912 | background: var(--danger-tint-soft); |
| 3913 | border-color: var(--danger-border-soft); |
| 3914 | color: var(--danger); |
| 3915 | } |
| 3916 | |
| 3917 | // One event and every rule's verdict on it, so the task and moment are said |
| 3918 | // once instead of once per rule. |
| 3919 | .decision-block { |
| 3920 | display: flex; |
| 3921 | flex-direction: column; |
| 3922 | gap: 8px; |
| 3923 | padding: 16px; |
| 3924 | background: var(--surface); |
| 3925 | border: 1px solid var(--border); |
| 3926 | border-radius: var(--radius-md); |
| 3927 | } |
| 3928 | |
| 3929 | .decision-head { |
| 3930 | display: flex; |
| 3931 | align-items: center; |
| 3932 | justify-content: space-between; |
| 3933 | gap: 8px; |
| 3934 | } |
| 3935 | |
| 3936 | .decision-title { |
| 3937 | font-size: 13px; |
| 3938 | font-weight: 600; |
| 3939 | color: var(--ink-soft); |
| 3940 | } |
| 3941 | |
| 3942 | .decision-verdicts { |
| 3943 | display: flex; |
| 3944 | flex-direction: column; |
| 3945 | gap: 6px; |
| 3946 | } |
| 3947 | |
| 3948 | .decision-verdict { |
| 3949 | display: flex; |
| 3950 | align-items: center; |
| 3951 | flex-wrap: wrap; |
| 3952 | gap: 8px; |
| 3953 | font-size: 13px; |
| 3954 | color: var(--ink-soft); |
| 3955 | } |
| 3956 | |
| 3957 | .rule-stamp { |
| 3958 | flex-shrink: 0; |
| 3959 | font-family: var(--font-mono); |
| 3960 | font-size: 11px; |
| 3961 | color: var(--muted-soft); |
| 3962 | } |
| 3963 | |
| 3964 | // Activity log: a columnar register, not a card list — one line per event, |
| 3965 | // time-first, ruled by hairlines instead of boxed rows. |
| 3966 | .log-list { |
| 3967 | display: flex; |
| 3968 | flex-direction: column; |
| 3969 | } |
| 3970 | |
| 3971 | .log-row { |
| 3972 | display: flex; |
| 3973 | align-items: baseline; |
| 3974 | gap: 12px; |
| 3975 | padding: 8px 2px; |
| 3976 | border-bottom: 1px solid var(--border); |
| 3977 | } |
| 3978 | |
| 3979 | .log-stamp { |
| 3980 | flex-shrink: 0; |
| 3981 | min-width: 110px; |
| 3982 | font-family: var(--font-mono); |
| 3983 | font-size: 10px; |
| 3984 | letter-spacing: 0.08em; |
| 3985 | text-transform: uppercase; |
| 3986 | color: var(--muted); |
| 3987 | } |
| 3988 | |
| 3989 | .log-actor { |
| 3990 | flex-shrink: 0; |
| 3991 | font-size: 13px; |
| 3992 | font-weight: 500; |
| 3993 | color: var(--ink); |
| 3994 | } |
| 3995 | |
| 3996 | .log-line { |
| 3997 | flex: 1; |
| 3998 | min-width: 0; |
| 3999 | font-size: 13px; |
| 4000 | color: var(--ink-soft); |
| 4001 | overflow: hidden; |
| 4002 | text-overflow: ellipsis; |
| 4003 | white-space: nowrap; |
| 4004 | } |
| 4005 | |
| 4006 | // The activity panel's filter row is the board's control row living inside a |
| 4007 | // panel body: the page-bar chrome (min strip, own bottom rule, bar padding) |
| 4008 | // is opted out of — the panel head rules the row, the body pads it. The |
| 4009 | // two-class selector out-ranks both `.filterbar` bases, the |
| 4010 | // narrow-viewport one included. |
| 4011 | .filterbar.log-filterbar { |
| 4012 | min-height: 0; |
| 4013 | padding: 0; |
| 4014 | background: none; |
| 4015 | border-bottom: none; |
| 4016 | flex-wrap: wrap; |
| 4017 | gap: 10px; |
| 4018 | } |
| 4019 | |
| 4020 | .log-range-dash { |
| 4021 | align-self: center; |
| 4022 | margin: 0 2px; |
| 4023 | color: var(--muted); |
| 4024 | } |
| 4025 | |
| 4026 | // The pager foot's read of where the rendered rows sit in the whole feed. |
| 4027 | .log-count { |
| 4028 | font-family: var(--font-mono); |
| 4029 | font-size: 10px; |
| 4030 | color: var(--muted); |
| 4031 | } |
| 4032 | |
| 4033 | .log-title { |
| 4034 | flex-shrink: 1; |
| 4035 | min-width: 0; |
| 4036 | font-size: 13px; |
| 4037 | color: var(--muted); |
| 4038 | overflow: hidden; |
| 4039 | text-overflow: ellipsis; |
| 4040 | white-space: nowrap; |
| 4041 | } |
| 4042 | |
| 4043 | .log-key { |
| 4044 | flex: none; |
| 4045 | font-family: var(--font-mono); |
| 4046 | font-size: 10px; |
| 4047 | letter-spacing: 0.08em; |
| 4048 | text-transform: uppercase; |
| 4049 | color: var(--muted); |
| 4050 | } |
| 4051 | |
| 4052 | |
| 4053 | .rule-new { |
| 4054 | background: var(--surface); |
| 4055 | border: 1px solid var(--border); |
| 4056 | border-radius: var(--radius-lg); |
| 4057 | } |
| 4058 | |
| 4059 | .rule-new-open { |
| 4060 | display: flex; |
| 4061 | align-items: center; |
| 4062 | height: var(--control-h); |
| 4063 | padding: 0 16px; |
| 4064 | font-size: 13px; |
| 4065 | font-weight: 600; |
| 4066 | color: var(--accent-ink); |
| 4067 | cursor: pointer; |
| 4068 | list-style: none; |
| 4069 | |
| 4070 | &::marker, &::-webkit-details-marker { display: none; } |
| 4071 | &::before { content: '+'; margin-right: 8px; font-size: 13px; } |
| 4072 | } |
| 4073 | |
| 4074 | .rule-new-body { |
| 4075 | display: flex; |
| 4076 | flex-direction: column; |
| 4077 | gap: 20px; |
| 4078 | padding: 0 16px 16px; |
| 4079 | border-top: 1px solid var(--border); |
| 4080 | padding-top: 16px; |
| 4081 | } |
| 4082 | |
| 4083 | .rule-field { |
| 4084 | display: flex; |
| 4085 | flex-direction: column; |
| 4086 | gap: 6px; |
| 4087 | } |
| 4088 | |
| 4089 | .tag-list { |
| 4090 | display: flex; |
| 4091 | flex-direction: column; |
| 4092 | gap: 10px; |
| 4093 | } |
| 4094 | |
| 4095 | .tag-row { |
| 4096 | display: flex; |
| 4097 | align-items: center; |
| 4098 | gap: 14px; |
| 4099 | padding: 16px; |
| 4100 | background: var(--surface); |
| 4101 | border: 1px solid var(--border); |
| 4102 | border-radius: var(--radius-md); |
| 4103 | } |
| 4104 | |
| 4105 | .tag-name { |
| 4106 | flex-grow: 1; |
| 4107 | min-width: 0; |
| 4108 | font-size: 13px; |
| 4109 | overflow: hidden; |
| 4110 | text-overflow: ellipsis; |
| 4111 | white-space: nowrap; |
| 4112 | } |
| 4113 | |
| 4114 | // How many cards are on the project, in the same chip the board counts its |
| 4115 | // columns with. It is also the reason the delete control beside it is or is |
| 4116 | // not there. |
| 4117 | .tag-count { |
| 4118 | flex: none; |
| 4119 | font-family: var(--font-mono); |
| 4120 | font-size: 11px; |
| 4121 | font-variant-numeric: tabular-nums; |
| 4122 | color: var(--muted-soft); |
| 4123 | background: var(--panel-sunken); |
| 4124 | border-radius: var(--radius); |
| 4125 | padding: 1px 6px; |
| 4126 | } |
| 4127 | |
| 4128 | .tag-new { |
| 4129 | background: var(--surface); |
| 4130 | border: 1px solid var(--border); |
| 4131 | border-radius: var(--radius-lg); |
| 4132 | } |
| 4133 | |
| 4134 | .tag-new-open { |
| 4135 | display: flex; |
| 4136 | align-items: center; |
| 4137 | height: var(--control-h); |
| 4138 | padding: 0 16px; |
| 4139 | font-size: 13px; |
| 4140 | font-weight: 600; |
| 4141 | color: var(--accent-ink); |
| 4142 | cursor: pointer; |
| 4143 | list-style: none; |
| 4144 | |
| 4145 | &::marker, &::-webkit-details-marker { display: none; } |
| 4146 | &::before { content: '+'; margin-right: 8px; font-size: 13px; } |
| 4147 | } |
| 4148 | |
| 4149 | .tag-form { |
| 4150 | display: flex; |
| 4151 | flex-direction: column; |
| 4152 | gap: 20px; |
| 4153 | padding: 0 16px 16px; |
| 4154 | border-top: 1px solid var(--border); |
| 4155 | padding-top: 16px; |
| 4156 | } |
| 4157 | |
| 4158 | .tag-field { |
| 4159 | display: flex; |
| 4160 | flex-direction: column; |
| 4161 | gap: 6px; |
| 4162 | } |
| 4163 | |
| 4164 | // --- Profile (a member's page) ---------------------------------------------- |
| 4165 | |
| 4166 | .people-shell { |
| 4167 | width: 100%; |
| 4168 | max-width: 860px; |
| 4169 | margin: 0 auto; |
| 4170 | padding: 24px 32px 40px; |
| 4171 | display: flex; |
| 4172 | flex-direction: column; |
| 4173 | gap: 20px; |
| 4174 | overflow-y: auto; |
| 4175 | scrollbar-width: none; |
| 4176 | |
| 4177 | &::-webkit-scrollbar { display: none; } |
| 4178 | > * { flex: none; } |
| 4179 | } |
| 4180 | |
| 4181 | // A face or a name that leads to the person it names. The chrome stays the |
| 4182 | // chrome — the link exists to be clicked, not to look like one. |
| 4183 | .person-link { |
| 4184 | display: inline-flex; |
| 4185 | align-items: center; |
| 4186 | gap: inherit; |
| 4187 | color: inherit; |
| 4188 | text-decoration: none; |
| 4189 | min-width: 0; |
| 4190 | |
| 4191 | &:hover { text-decoration: underline; } |
| 4192 | } |
| 4193 | |
| 4194 | .person-card { |
| 4195 | overflow: hidden; |
| 4196 | } |
| 4197 | |
| 4198 | // The head is the identity: a picture big enough to be a picture, the name, |
| 4199 | // what the workspace calls this person, and — on your own page only — the way |
| 4200 | // to the one screen that can change any of it. |
| 4201 | .person-head { |
| 4202 | display: flex; |
| 4203 | align-items: center; |
| 4204 | gap: 18px; |
| 4205 | padding: 22px 22px 20px; |
| 4206 | } |
| 4207 | |
| 4208 | .person-heading { |
| 4209 | display: flex; |
| 4210 | flex-direction: column; |
| 4211 | gap: 8px; |
| 4212 | min-width: 0; |
| 4213 | } |
| 4214 | |
| 4215 | .person-name { |
| 4216 | margin: 0; |
| 4217 | font-family: var(--font-display); |
| 4218 | font-size: 22px; |
| 4219 | font-weight: 600; |
| 4220 | line-height: 1.1; |
| 4221 | overflow: hidden; |
| 4222 | text-overflow: ellipsis; |
| 4223 | white-space: nowrap; |
| 4224 | } |
| 4225 | |
| 4226 | .person-marks { |
| 4227 | display: flex; |
| 4228 | align-items: center; |
| 4229 | gap: 6px; |
| 4230 | } |
| 4231 | |
| 4232 | .person-edit { |
| 4233 | margin-left: auto; |
| 4234 | flex: none; |
| 4235 | } |
| 4236 | |
| 4237 | // Every fact sits in a named cell instead of floating as a line of text. The |
| 4238 | // cells share the panel's own hairlines, so the block reads as one table |
| 4239 | // rather than as paragraphs that happen to be near each other. |
| 4240 | .person-fields { |
| 4241 | display: grid; |
| 4242 | grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); |
| 4243 | margin: 0; |
| 4244 | border-top: 1px solid var(--border); |
| 4245 | } |
| 4246 | |
| 4247 | .person-field { |
| 4248 | padding: 12px 22px 14px; |
| 4249 | min-width: 0; |
| 4250 | border-right: 1px solid var(--border); |
| 4251 | |
| 4252 | &:last-child { border-right: none; } |
| 4253 | |
| 4254 | dt { |
| 4255 | font-size: 10px; |
| 4256 | letter-spacing: 0.09em; |
| 4257 | color: var(--muted); |
| 4258 | } |
| 4259 | |
| 4260 | dd { |
| 4261 | margin: 4px 0 0; |
| 4262 | font-size: 13px; |
| 4263 | color: var(--ink); |
| 4264 | overflow: hidden; |
| 4265 | text-overflow: ellipsis; |
| 4266 | white-space: nowrap; |
| 4267 | } |
| 4268 | } |
| 4269 | |
| 4270 | .person-field dd.person-address { |
| 4271 | font-family: var(--font-mono); |
| 4272 | font-size: 12px; |
| 4273 | } |
| 4274 | |
| 4275 | // The hover tooltip names a face that is standing beside its own name. |
| 4276 | .person-head .avatar[data-name]:hover::after { content: none; } |
| 4277 | |
| 4278 | // Four counts, four boxes. The number leads and the label sits under it, so a |
| 4279 | // column reads as one thing rather than as a word with a digit beside it. |
| 4280 | .person-stats { |
| 4281 | display: grid; |
| 4282 | grid-template-columns: repeat(4, 1fr); |
| 4283 | margin: 0; |
| 4284 | |
| 4285 | @media (max-width: 620px) { |
| 4286 | grid-template-columns: repeat(2, 1fr); |
| 4287 | |
| 4288 | // Two by two: the rule runs between the columns and under the first |
| 4289 | // row, not off the right edge of every cell. |
| 4290 | .person-stat { |
| 4291 | border-right: none; |
| 4292 | border-bottom: 1px solid var(--border); |
| 4293 | |
| 4294 | &:nth-child(odd) { border-right: 1px solid var(--border); } |
| 4295 | &:nth-child(n + 3) { border-bottom: none; } |
| 4296 | } |
| 4297 | } |
| 4298 | } |
| 4299 | |
| 4300 | .person-stat { |
| 4301 | padding: 16px 22px 18px; |
| 4302 | border-right: 1px solid var(--border); |
| 4303 | |
| 4304 | &:last-child { border-right: none; } |
| 4305 | |
| 4306 | dd { |
| 4307 | margin: 0; |
| 4308 | font-family: var(--font-mono); |
| 4309 | font-size: 26px; |
| 4310 | font-weight: 500; |
| 4311 | line-height: 1.1; |
| 4312 | font-variant-numeric: tabular-nums; |
| 4313 | } |
| 4314 | |
| 4315 | dt { |
| 4316 | margin-top: 6px; |
| 4317 | font-size: 10px; |
| 4318 | letter-spacing: 0.09em; |
| 4319 | text-transform: uppercase; |
| 4320 | color: var(--muted); |
| 4321 | } |
| 4322 | } |
| 4323 | |
| 4324 | .person-feed { |
| 4325 | list-style: none; |
| 4326 | margin: 0; |
| 4327 | padding: 0; |
| 4328 | } |
| 4329 | |
| 4330 | .person-line { |
| 4331 | display: flex; |
| 4332 | align-items: baseline; |
| 4333 | gap: 12px; |
| 4334 | padding: 9px 18px; |
| 4335 | border-top: 1px solid var(--border); |
| 4336 | min-width: 0; |
| 4337 | |
| 4338 | &:first-child { border-top: none; } |
| 4339 | &:hover { background: var(--surface-muted); } |
| 4340 | } |
| 4341 | |
| 4342 | .person-verb { |
| 4343 | flex: none; |
| 4344 | width: 88px; |
| 4345 | font-size: 11px; |
| 4346 | letter-spacing: 0.06em; |
| 4347 | text-transform: uppercase; |
| 4348 | color: var(--muted); |
| 4349 | } |
| 4350 | |
| 4351 | .person-task { |
| 4352 | display: flex; |
| 4353 | align-items: baseline; |
| 4354 | gap: 8px; |
| 4355 | min-width: 0; |
| 4356 | color: inherit; |
| 4357 | text-decoration: none; |
| 4358 | |
| 4359 | &:hover .person-title { text-decoration: underline; } |
| 4360 | } |
| 4361 | |
| 4362 | .person-key { |
| 4363 | flex: none; |
| 4364 | font-family: var(--font-mono); |
| 4365 | font-size: 11px; |
| 4366 | color: var(--muted); |
| 4367 | } |
| 4368 | |
| 4369 | .person-title { |
| 4370 | overflow: hidden; |
| 4371 | text-overflow: ellipsis; |
| 4372 | white-space: nowrap; |
| 4373 | font-size: 13px; |
| 4374 | } |
| 4375 | |
| 4376 | .person-day { |
| 4377 | margin-left: auto; |
| 4378 | flex: none; |
| 4379 | white-space: nowrap; |
| 4380 | color: var(--muted); |
| 4381 | font-size: 12px; |
| 4382 | } |
| 4383 | // --- Mobile (narrow viewports) ---------------------------------------------- |
| 4384 | // |
| 4385 | // One breakpoint, at the same 620px the person stats already fold at. The |
| 4386 | // document stays viewport-locked on every page (the body:has(...) rules |
| 4387 | // above); what a narrow screen changes is geometry: chrome tightens, the |
| 4388 | // settings rail becomes a strip, the board's columns pan sideways, and the |
| 4389 | // regions that already pan keep panning. Nothing here may open a document |
| 4390 | // scrollbar, and nothing here may grow explainer text. |
| 4391 | @media (max-width: 620px) { |
| 4392 | // -- chrome ---------------------------------------------------------------- |
| 4393 | |
| 4394 | .topbar { |
| 4395 | gap: 10px; |
| 4396 | padding: 0 12px; |
| 4397 | } |
| 4398 | |
| 4399 | .topbar-nav-links { |
| 4400 | gap: 12px; |
| 4401 | // Five admin links outrun the narrowest phones; the strip pans under the |
| 4402 | // finger the way every other overflow region here does, and the wordmark |
| 4403 | // and avatar stay pinned at the edges. |
| 4404 | min-width: 0; |
| 4405 | overflow-x: auto; |
| 4406 | scrollbar-width: none; |
| 4407 | |
| 4408 | &::-webkit-scrollbar { display: none; } |
| 4409 | } |
| 4410 | |
| 4411 | // The avatar says who is signed in at this width; the name is the menu's. |
| 4412 | .user-menu-trigger-name { display: none; } |
| 4413 | |
| 4414 | // The last squeeze, below the smallest common phone: the chrome gives up |
| 4415 | // its air before the nav gives up legibility. |
| 4416 | @media (max-width: 360px) { |
| 4417 | .topbar { |
| 4418 | gap: 8px; |
| 4419 | padding: 0 8px; |
| 4420 | } |
| 4421 | |
| 4422 | .topbar-nav-links { gap: 10px; } |
| 4423 | } |
| 4424 | |
| 4425 | // -- board ----------------------------------------------------------------- |
| 4426 | |
| 4427 | .filterbar { |
| 4428 | height: auto; |
| 4429 | min-height: 44px; |
| 4430 | flex-wrap: wrap; |
| 4431 | row-gap: 8px; |
| 4432 | padding: 8px 12px; |
| 4433 | } |
| 4434 | |
| 4435 | // A rule floating alone at the head of a wrapped row says nothing. |
| 4436 | |
| 4437 | .filterbar .primary, |
| 4438 | .filterbar .chip { flex: none; } |
| 4439 | |
| 4440 | .board-stage { padding: 12px; } |
| 4441 | |
| 4442 | // The columns stop sharing one row and become a rail: each as wide as a |
| 4443 | // card needs, the row panning sideways under the finger, silently. |
| 4444 | .board-columns { |
| 4445 | grid-template-columns: none; |
| 4446 | grid-auto-flow: column; |
| 4447 | grid-auto-columns: min(72vw, 280px); |
| 4448 | overflow-x: auto; |
| 4449 | scroll-snap-type: x proximity; |
| 4450 | scrollbar-width: none; |
| 4451 | |
| 4452 | &::-webkit-scrollbar { display: none; } |
| 4453 | } |
| 4454 | |
| 4455 | .column { scroll-snap-align: start; } |
| 4456 | |
| 4457 | // -- modals ---------------------------------------------------------------- |
| 4458 | |
| 4459 | .modal-scrim { padding: 16px; } |
| 4460 | |
| 4461 | .modal { max-height: calc(100dvh - 32px); } |
| 4462 | |
| 4463 | .new-task-row { flex-wrap: wrap; } |
| 4464 | |
| 4465 | .detail-head { padding: 16px 16px 0; } |
| 4466 | |
| 4467 | // Six tabs outrun a phone; the strip pans, the way a column of cards does. |
| 4468 | .detail-tabs { |
| 4469 | overflow-x: auto; |
| 4470 | scrollbar-width: none; |
| 4471 | |
| 4472 | &::-webkit-scrollbar { display: none; } |
| 4473 | } |
| 4474 | |
| 4475 | .detail-tab { white-space: nowrap; } |
| 4476 | |
| 4477 | .detail-crumb-title { max-width: 16ch; } |
| 4478 | |
| 4479 | .detail-fields { |
| 4480 | grid-template-columns: minmax(0, 1fr); |
| 4481 | padding: 14px 16px 0; |
| 4482 | } |
| 4483 | |
| 4484 | .detail-block { padding: 16px 16px 0; } |
| 4485 | |
| 4486 | .detail-foot { padding: 14px 16px 16px; } |
| 4487 | |
| 4488 | // -- the settings shell: rail becomes a strip ------------------------------- |
| 4489 | |
| 4490 | .settings-shell { flex-direction: column; } |
| 4491 | |
| 4492 | .settings-sections { |
| 4493 | width: auto; |
| 4494 | flex-direction: row; |
| 4495 | padding: 0 8px; |
| 4496 | border-right: none; |
| 4497 | border-bottom: 1px solid var(--border); |
| 4498 | overflow-x: auto; |
| 4499 | scrollbar-width: none; |
| 4500 | |
| 4501 | &::-webkit-scrollbar { display: none; } |
| 4502 | } |
| 4503 | |
| 4504 | .settings-section-link { |
| 4505 | flex: none; |
| 4506 | padding: 12px 10px; |
| 4507 | white-space: nowrap; |
| 4508 | } |
| 4509 | |
| 4510 | .settings-stage { padding: 16px 16px 32px; } |
| 4511 | |
| 4512 | // The members register keeps its named columns and pans inside the panel |
| 4513 | // rather than squeezing the role select out of the screen. |
| 4514 | .table-pan { |
| 4515 | overflow-x: auto; |
| 4516 | scrollbar-width: none; |
| 4517 | |
| 4518 | &::-webkit-scrollbar { display: none; } |
| 4519 | |
| 4520 | .member-table { min-width: 560px; } |
| 4521 | } |
| 4522 | |
| 4523 | .field-row { flex-wrap: wrap; } |
| 4524 | |
| 4525 | // -- people ----------------------------------------------------------------- |
| 4526 | |
| 4527 | .people-shell { padding: 16px 16px 32px; } |
| 4528 | |
| 4529 | .person-head { flex-wrap: wrap; } |
| 4530 | |
| 4531 | .person-fields { grid-template-columns: minmax(0, 1fr); } |
| 4532 | |
| 4533 | // Stacked cells rule underneath each other, not off their right edge. |
| 4534 | .person-field { |
| 4535 | border-right: none; |
| 4536 | border-bottom: 1px solid var(--border); |
| 4537 | |
| 4538 | &:last-child { |
| 4539 | border-right: none; |
| 4540 | border-bottom: none; |
| 4541 | } |
| 4542 | } |
| 4543 | |
| 4544 | // -- account screens --------------------------------------------------------- |
| 4545 | |
| 4546 | .auth-stage { padding: 0 16px 24px; } |
| 4547 | |
| 4548 | // -- the viewer page and the house media player ----------------------------- |
| 4549 | // The bar's fixed controls (play, the two clocks, mute, speed, fullscreen) |
| 4550 | // plus the seek input's intrinsic width outrun a phone, so the seek input |
| 4551 | // takes a full-width row of its own and the volume slider folds away — a |
| 4552 | // phone carries hardware volume keys, and the mute button stays. The bar |
| 4553 | // fills its card instead of holding a desktop's 560px. |
| 4554 | // The audio bar's controls are the player's own children (only the video |
| 4555 | // stacks a separate .media-controls under the picture), so both containers |
| 4556 | // take the wrap. |
| 4557 | .media-player:not(.media-player-video), |
| 4558 | .media-controls { flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; } |
| 4559 | .media-seek { flex: 1 1 140px; min-width: 0; } |
| 4560 | .media-vol-slider { display: none; } |
| 4561 | .media-player { width: 100%; } |
| 4562 | |
| 4563 | // A phone's chrome is narrower than the desktop budget the video's |
| 4564 | // `calc(100vh - 380px)` assumes — and on a short landscape screen the |
| 4565 | // subtraction would go negative (an invalid height the browser drops). |
| 4566 | // A plain proportion cannot. |
| 4567 | .media-player-video .media-el { max-height: 60vh; } |
| 4568 | |
| 4569 | .viewer-stage { padding: 16px; } |
| 4570 | |
| 4571 | // The modal viewer's media row: the desktop 24px insets leave a 320px |
| 4572 | // screen less room than the audio bar needs. |
| 4573 | .viewer-body { padding: 16px; } |
| 4574 | |
| 4575 | // -- the public /s cards and the refusal notes ------------------------------- |
| 4576 | // The desktop card spends 24px of margin and 24px of padding on each side — |
| 4577 | // half of a narrow screen's air, for a surface that is one column of text. |
| 4578 | .scaffold-note { margin: 16px; padding: 16px 16px 20px; } |
| 4579 | |
| 4580 | // -- the share modal --------------------------------------------------------- |
| 4581 | // The add-people row and the public-link create row hold four or five |
| 4582 | // controls on one desktop line — on a phone they fold instead of pushing |
| 4583 | // the modal past the viewport. The access list's rows already wrap through |
| 4584 | // the shared `div.member-row` rule. |
| 4585 | .share-modal .pop-row-form { flex-wrap: wrap; } |
| 4586 | } |
| 4587 | |
| 4588 | // -- file viewer page ------------------------------------------------------------ |
| 4589 | // GET /view/{id}: the preview on its own page. The media elements reuse the |
| 4590 | // in-app viewer classes (.viewer-media, .viewer-pdf); the text frame wears |
| 4591 | // the pdf box's shape. The stage card itself is defined with viewer-details |
| 4592 | // below — one rule, not two that must agree. |
| 4593 | .viewer-text { |
| 4594 | width: 100%; |
| 4595 | height: 70vh; |
| 4596 | border: 1px solid var(--border); |
| 4597 | border-radius: var(--radius-md); |
| 4598 | background: var(--surface); |
| 4599 | } |
| 4600 | |
| 4601 | .viewer-fallback { |
| 4602 | display: flex; |
| 4603 | flex-direction: column; |
| 4604 | align-items: center; |
| 4605 | gap: 8px; |
| 4606 | padding: 24px 0; |
| 4607 | } |
| 4608 | |
| 4609 | // -- file chips ------------------------------------------------------------------ |
| 4610 | // entry_chip's mime-class marks: one glyph each, decorative beside the name. |
| 4611 | // The shared rule keeps every glyph chip the same footprint next to a |
| 4612 | // thumbnail; the tints reuse the semantic tokens, quiet enough to sit in a |
| 4613 | // row. |
| 4614 | .file-chip-image, |
| 4615 | .file-chip-video, |
| 4616 | .file-chip-audio, |
| 4617 | .file-chip-pdf, |
| 4618 | .file-chip-text, |
| 4619 | .file-chip-archive, |
| 4620 | .file-chip-generic { |
| 4621 | justify-content: center; |
| 4622 | min-width: 40px; |
| 4623 | font-size: 13px; |
| 4624 | } |
| 4625 | |
| 4626 | .file-chip-video { color: var(--accent-ink); } |
| 4627 | .file-chip-audio { color: var(--violet-ink); } |
| 4628 | .file-chip-pdf { color: var(--danger); } |
| 4629 | .file-chip-text { color: var(--positive-ink); } |
| 4630 | .file-chip-archive { color: var(--warn-ink); } |
| 4631 | |
| 4632 | // -- trash/share unified rows (TrashShareBuild) -------------------------------------- |
| 4633 | // The folder chip beside trashed, shared and publicly-shared names: the same |
| 4634 | // footprint as entry_chip's mime glyphs, the accent tint because folders are |
| 4635 | // the rows' way in. |
| 4636 | .file-chip-folder { |
| 4637 | justify-content: center; |
| 4638 | min-width: 40px; |
| 4639 | font-size: 13px; |
| 4640 | color: var(--accent-ink); |
| 4641 | } |
| 4642 | |
| 4643 | // -- drive wave-2 (DriveBuild) ------------------------------------------------------- |
| 4644 | // Options menus, rename rows, progress rows, the drop overlay and the |
| 4645 | // persistent notice stack. One contiguous section; the house panel, chip and |
| 4646 | // quiet rules above do the rest. |
| 4647 | |
| 4648 | // The row's Options menu wears the house user-menu panel; the summary hides |
| 4649 | // its disclosure marker the way the drive-add trigger does. |
| 4650 | .entry-options-trigger { |
| 4651 | list-style: none; |
| 4652 | white-space: nowrap; |
| 4653 | |
| 4654 | &::marker, &::-webkit-details-marker { display: none; } |
| 4655 | } |
| 4656 | |
| 4657 | |
| 4658 | // The rename row: the form itself fills the row so the input takes the |
| 4659 | // middle and Rename/Cancel sit at the right edge, exactly where the Options |
| 4660 | // trigger sits in the plain row. |
| 4661 | .dep-edit-form { |
| 4662 | display: flex; |
| 4663 | flex: 1; |
| 4664 | align-items: center; |
| 4665 | gap: 10px; |
| 4666 | min-width: 0; |
| 4667 | |
| 4668 | .field-input { |
| 4669 | flex: 1; |
| 4670 | min-width: 0; |
| 4671 | } |
| 4672 | } |
| 4673 | |
| 4674 | // Upload progress rows in the corner stack: name, bar, percent. The track is |
| 4675 | // the house upload-progress rule freed of its upload-box geometry (it was |
| 4676 | // absolutely positioned into a box the drive form never renders) — here it |
| 4677 | // flexes beside the name it belongs to. The stack itself is the container, |
| 4678 | // so there is no list wrapper to style or hide. |
| 4679 | |
| 4680 | .upload-progress-row { |
| 4681 | display: flex; |
| 4682 | align-items: center; |
| 4683 | gap: 10px; |
| 4684 | } |
| 4685 | |
| 4686 | .upload-progress-name { |
| 4687 | flex: 1; |
| 4688 | min-width: 0; |
| 4689 | overflow: hidden; |
| 4690 | text-overflow: ellipsis; |
| 4691 | white-space: nowrap; |
| 4692 | font-size: 12px; |
| 4693 | color: var(--muted); |
| 4694 | } |
| 4695 | |
| 4696 | .in-status-stack .upload-progress { |
| 4697 | position: relative; |
| 4698 | flex: 1; |
| 4699 | left: auto; |
| 4700 | right: auto; |
| 4701 | bottom: auto; |
| 4702 | min-width: 80px; |
| 4703 | height: 4px; |
| 4704 | } |
| 4705 | |
| 4706 | .upload-progress-pct { |
| 4707 | flex: none; |
| 4708 | font-family: var(--font-mono); |
| 4709 | font-size: 11px; |
| 4710 | color: var(--muted-soft); |
| 4711 | } |
| 4712 | |
| 4713 | // A finished row is its own dismissal: no cancel control is drawn (nothing |
| 4714 | // is left to cancel), so the press of the row has to read as the way out — |
| 4715 | // a pointer, and a hover that lifts the muted name to ink. The shared |
| 4716 | // `[tabindex]` ring rule covers keyboard focus. |
| 4717 | .upload-progress-done { |
| 4718 | cursor: pointer; |
| 4719 | |
| 4720 | &:hover .upload-progress-name { color: var(--ink); } |
| 4721 | } |
| 4722 | |
| 4723 | // The full-page drop affordance: a fixed veil with the invitation centred, |
| 4724 | // pointer-transparent so it never blocks the drop it announces. |
| 4725 | .drop-overlay { |
| 4726 | position: fixed; |
| 4727 | inset: 0; |
| 4728 | z-index: 90; |
| 4729 | display: flex; |
| 4730 | align-items: center; |
| 4731 | justify-content: center; |
| 4732 | background: var(--accent-tint, rgba(70, 85, 123, 0.12)); |
| 4733 | border: 2px dashed var(--accent); |
| 4734 | opacity: 0; |
| 4735 | visibility: hidden; |
| 4736 | pointer-events: none; |
| 4737 | transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease); |
| 4738 | } |
| 4739 | |
| 4740 | .drop-overlay-show { |
| 4741 | opacity: 1; |
| 4742 | visibility: visible; |
| 4743 | } |
| 4744 | |
| 4745 | .drop-overlay-text { |
| 4746 | padding: 12px 20px; |
| 4747 | background: var(--surface); |
| 4748 | border: 1px solid var(--border-strong); |
| 4749 | border-radius: var(--radius-lg); |
| 4750 | box-shadow: var(--shadow-2); |
| 4751 | font-size: 14px; |
| 4752 | color: var(--ink); |
| 4753 | } |
| 4754 | |
| 4755 | // The persistent notice stack: fixed corner cards for upload errors and |
| 4756 | // completions, dismissed only by their ✕ — never by a swap, never by time. |
| 4757 | .in-status-stack { |
| 4758 | position: fixed; |
| 4759 | right: 16px; |
| 4760 | bottom: 16px; |
| 4761 | z-index: 100; |
| 4762 | display: flex; |
| 4763 | flex-direction: column; |
| 4764 | gap: 8px; |
| 4765 | max-width: min(360px, 90vw); |
| 4766 | |
| 4767 | &:empty { display: none; } |
| 4768 | } |
| 4769 | |
| 4770 | .in-status-card { |
| 4771 | display: flex; |
| 4772 | align-items: center; |
| 4773 | gap: 10px; |
| 4774 | padding: 10px 12px; |
| 4775 | background: var(--surface); |
| 4776 | border: 1px solid var(--border-strong); |
| 4777 | border-radius: var(--radius-md); |
| 4778 | box-shadow: var(--shadow-2); |
| 4779 | font-size: 13px; |
| 4780 | color: var(--ink); |
| 4781 | } |
| 4782 | |
| 4783 | .in-status-error { |
| 4784 | border-color: var(--danger-border); |
| 4785 | } |
| 4786 | |
| 4787 | .in-status-text { |
| 4788 | flex: 1; |
| 4789 | min-width: 0; |
| 4790 | } |
| 4791 | |
| 4792 | .in-status-dismiss { |
| 4793 | flex: none; |
| 4794 | display: inline-flex; |
| 4795 | align-items: center; |
| 4796 | justify-content: center; |
| 4797 | width: 24px; |
| 4798 | height: 24px; |
| 4799 | padding: 0; |
| 4800 | border: none; |
| 4801 | border-radius: var(--radius-sm); |
| 4802 | background: transparent; |
| 4803 | color: var(--muted-soft); |
| 4804 | cursor: pointer; |
| 4805 | |
| 4806 | &:hover { color: var(--danger); } |
| 4807 | } |
| 4808 | |
| 4809 | // -- viewer page polish (ViewerBuild) ------------------------------------------------ |
| 4810 | // GET /view/{id} aligned with the house: a head row carries Back left and the |
| 4811 | // .primary Download right (the iz detail-head arrangement), the title keeps |
| 4812 | // the house .settings-title size, and the stage is a centered panel card — |
| 4813 | // capped at the modal viewer's width so media never sprawls into a full-width |
| 4814 | // slab at desktop sizes. Video/images shrink to fit the viewport (70vh, the |
| 4815 | // same proportion as the modal's 78vh minus the page chrome); text and pdf |
| 4816 | // fill the card in the same chrome. Media plays through the house |
| 4817 | // `.media-player` — the native pill is gone from the page entirely. |
| 4818 | .viewer-head { |
| 4819 | display: flex; |
| 4820 | align-items: center; |
| 4821 | gap: 10px; |
| 4822 | margin-bottom: 12px; |
| 4823 | } |
| 4824 | |
| 4825 | // The title's chip (a thumb or the mime glyph) centers against the name — |
| 4826 | // as a plain block the 24px box hangs off the text's baseline. |
| 4827 | .viewer-title { overflow-wrap: anywhere; display: flex; align-items: center; gap: 10px; } |
| 4828 | |
| 4829 | .viewer-stage { |
| 4830 | display: flex; |
| 4831 | flex-direction: column; |
| 4832 | justify-content: center; |
| 4833 | max-width: min(100%, 960px); |
| 4834 | margin: 16px auto; |
| 4835 | padding: 20px 24px 24px; |
| 4836 | background: var(--surface); |
| 4837 | border: 1px solid var(--border); |
| 4838 | border-radius: var(--radius-lg); |
| 4839 | align-items: center; |
| 4840 | } |
| 4841 | |
| 4842 | .viewer-details { |
| 4843 | width: 100%; |
| 4844 | max-width: min(100%, 960px); |
| 4845 | margin: 0 auto; |
| 4846 | } |
| 4847 | |
| 4848 | .viewer-stage .viewer-media { |
| 4849 | width: 100%; |
| 4850 | height: auto; |
| 4851 | max-width: 100%; |
| 4852 | max-height: 70vh; |
| 4853 | display: block; |
| 4854 | } |
| 4855 | |
| 4856 | .viewer-stage .viewer-pdf, |
| 4857 | .viewer-stage .viewer-text { |
| 4858 | width: 100%; |
| 4859 | height: 70vh; |
| 4860 | max-height: 70vh; |
| 4861 | } |
| 4862 | |
| 4863 | // -- row polish (RowBuild) ------------------------------------------------------------ |
| 4864 | // Single-line discipline for the drive/trash/shared rows, the anchored options |
| 4865 | // menu, and progress rows inside the corner stack. One contiguous section; |
| 4866 | // the house panel, chip, quiet and user-menu rules above do the rest. |
| 4867 | |
| 4868 | // A row never wraps: the name takes the slack as an ellipsis, every detail |
| 4869 | // token and action holds its column. Trash and public names wear |
| 4870 | // `.member-name dep-title`; shared and drive names nest `.dep-title` inside |
| 4871 | // the link — the descendant selector covers both shapes, and the old-house |
| 4872 | // `.dep-title` geometry in markup holds the ellipsis even on its own. |
| 4873 | .dep-row > .member-name, |
| 4874 | .dep-row .dep-title { |
| 4875 | flex: 1; |
| 4876 | min-width: 0; |
| 4877 | overflow: hidden; |
| 4878 | text-overflow: ellipsis; |
| 4879 | white-space: nowrap; |
| 4880 | } |
| 4881 | .dep-row { flex-wrap: nowrap; } |
| 4882 | |
| 4883 | // Detail tokens never break mid-value ('6.1 KiB' stays whole): the name's |
| 4884 | // ellipsis absorbs the pressure instead. |
| 4885 | .dep-row > .field-note { |
| 4886 | flex: none; |
| 4887 | white-space: nowrap; |
| 4888 | } |
| 4889 | |
| 4890 | // Chips, action forms and the options menu hold their width; only the name |
| 4891 | // (or the spacer) yields. Action buttons and links never wrap their own |
| 4892 | // label under pressure either ('Delete forever' stays one line). |
| 4893 | .dep-row > .file-chip, |
| 4894 | .dep-row > .pop-row-form, |
| 4895 | .dep-row > .entry-options { flex: none; } |
| 4896 | |
| 4897 | .dep-row .quiet { flex: none; white-space: nowrap; } |
| 4898 | |
| 4899 | // The row's Options menu wears the house user-menu panel. The positioning |
| 4900 | // context is pinned here rather than inherited, so the panel stays anchored |
| 4901 | // to its trigger whatever the generic rule does. |
| 4902 | .entry-options { position: relative; } |
| 4903 | |
| 4904 | // A menu is a toggle, not a hover: while open, the panel stays — |
| 4905 | // even where the pointer rests outside hover and focus. The Escape pin |
| 4906 | // (`.user-menu-esc`) still wins on specificity, so Escape keeps closing it. |
| 4907 | .entry-options[open] > .user-menu-panel { |
| 4908 | visibility: visible; |
| 4909 | opacity: 1; |
| 4910 | pointer-events: auto; |
| 4911 | } |
| 4912 | |
| 4913 | // Panels clip their corners with `overflow: hidden`, which would cut an open |
| 4914 | // menu off at the panel's edge — most visibly on the bottom rows, whose menu |
| 4915 | // opens past it. While a menu is open the clip lifts; closed panels keep |
| 4916 | // their corners. Near the viewport bottom the menu still opens downward and |
| 4917 | // the page (the scrolling stage) grows to take it, the house drive-add |
| 4918 | // behaviour — no upward variant to learn. |
| 4919 | .panel:has(.entry-options[open]) { overflow: visible; } |
| 4920 | |
| 4921 | // The same clip lives one level up: `.settings-stage` is `overflow-y: auto`, |
| 4922 | // and on the drive it is content-height (the window scrolls, the stage never |
| 4923 | // pans), so an open menu past the last row's edge became scrollable overflow |
| 4924 | // — unreadable without scrolling a box that has nothing to scroll. While a |
| 4925 | // menu is open the stage's clip lifts too; closed, it keeps its behavior. |
| 4926 | .settings-stage:has(.entry-options[open]) { overflow: visible; } |
| 4927 | |
| 4928 | // Progress rows stretch the stack's width so the bar has room to flex; the |
| 4929 | // stack's own max-width still caps them. |
| 4930 | .in-status-stack .upload-progress-row { width: 100%; } |
| 4931 | |
| 4932 | // -- settings quota table (SettingsBuild) --------------------------------------- |
| 4933 | // |
| 4934 | // The human-unit quota row added a unit beside the amount input, and |
| 4935 | // the old `.member-quota .field-input { width: 140px }` sized BOTH of them — |
| 4936 | // the role cell's intrinsic width grew ~140px and auto layout billed the |
| 4937 | // elastic address column, which `overflow-wrap: anywhere` then stacked one |
| 4938 | // character per line. Size each control for what it holds instead, and put a |
| 4939 | // floor under the address so no future control can squeeze it vertical again. |
| 4940 | // The auto-layout geometry above is untouched: the address still absorbs the |
| 4941 | // slack and wraps (never clips) under real pressure. |
| 4942 | .member-quota input.field-input { |
| 4943 | width: 96px; |
| 4944 | flex: none; |
| 4945 | } |
| 4946 | .member-quota select.field-input { |
| 4947 | width: auto; |
| 4948 | flex: none; |
| 4949 | } |
| 4950 | .member-quota button.field-input { |
| 4951 | width: auto; |
| 4952 | flex: none; |
| 4953 | } |
| 4954 | |
| 4955 | .member-table .member-col-address { |
| 4956 | min-width: 26ch; |
| 4957 | } |
| 4958 | // Outside the narrow-viewport query the register has no pan: if minimums ever |
| 4959 | // exceed the panel again, scroll the register rather than stacking a column. |
| 4960 | .table-pan { |
| 4961 | overflow-x: auto; |
| 4962 | } |
| 4963 | |
| 4964 | // -- drive round-3: single-border toolbar, menu drop-up, upload cancel ----- |
| 4965 | // |
| 4966 | // The Sort/Kind/dir filterbar forms nest their controls inside the bordered |
| 4967 | // `.field-box`: the dd-enhanced trigger, the native select beside it, and |
| 4968 | // the →/↑ submit buttons. Each nested box of its own reads as a doubled or |
| 4969 | // overlapping control, so nested chrome is stripped and the box stays the |
| 4970 | // one border. Shared rules, so /trash and /shared (the identical |
| 4971 | // `.field-box-sort` pattern) inherit the fix with no per-page markup. |
| 4972 | // |
| 4973 | // A nested submit never draws its own box: borderless, transparent, and |
| 4974 | // stretched to the box height so its label sits where the box's text sits. |
| 4975 | .field-box .quiet { |
| 4976 | border: none; |
| 4977 | background: transparent; |
| 4978 | height: auto; |
| 4979 | align-self: stretch; |
| 4980 | padding: 0 2px; |
| 4981 | } |
| 4982 | // A search submit keeps its label whole: exempt from the collapsed nested |
| 4983 | // padding above, never shrunk, never wrapped — the box stays its only |
| 4984 | // border, the button only its text width back. |
| 4985 | .field-box-search .quiet { |
| 4986 | flex: none; |
| 4987 | padding: 0 10px; |
| 4988 | white-space: nowrap; |
| 4989 | } |
| 4990 | |
| 4991 | // The enhanced trigger is already chromeless through the class it clones |
| 4992 | // off its select (`.status-select` carries no border or background); this |
| 4993 | // pins that for any skin that buttons up a bare trigger, so the trigger |
| 4994 | // sits flush inside the field box instead of framing itself twice. |
| 4995 | .field-box .dd-trigger { |
| 4996 | border: none; |
| 4997 | background-color: transparent; |
| 4998 | } |
| 4999 | |
| 5000 | // The → submit is the no-script path: once `dropdown.rs` has enhanced the |
| 5001 | // select it only repeats the autosubmit, so it bows out. |
| 5002 | .field-box:has([data-dd-done]) > button[type="submit"] { |
| 5003 | display: none; |
| 5004 | } |
| 5005 | |
| 5006 | // The native select behind an enhanced trigger never takes space: the |
| 5007 | // element-qualified selector outranks any skin's bare `select` chrome |
| 5008 | // without resorting to `!important`. |
| 5009 | select.dd-native { display: none; } |
| 5010 | |
| 5011 | // A row Options menu near the viewport bottom opens upward instead of |
| 5012 | // spilling past it: the toggle-time script in `drive.rs` adds `menu-up` |
| 5013 | // when the downward panel would overflow, and this bottom-anchors the |
| 5014 | // house panel to its trigger. The qualified open selector outranks the |
| 5015 | // downward `[open]` rule above by specificity, not source order. |
| 5016 | .entry-options.menu-up[open] > .user-menu-panel { |
| 5017 | top: auto; |
| 5018 | bottom: 100%; |
| 5019 | margin-bottom: 4px; |
| 5020 | } |
| 5021 | |
| 5022 | // The in-flight upload row's cancel control: the corner stack's dismiss |
| 5023 | // voice (24px ✕, danger on hover) as a row-local class, so progress rows |
| 5024 | // need no notice-card markup to borrow it. |
| 5025 | .upload-progress-cancel { |
| 5026 | flex: none; |
| 5027 | display: inline-flex; |
| 5028 | align-items: center; |
| 5029 | justify-content: center; |
| 5030 | width: 24px; |
| 5031 | height: 24px; |
| 5032 | padding: 0; |
| 5033 | border: none; |
| 5034 | border-radius: var(--radius-sm); |
| 5035 | background: transparent; |
| 5036 | color: var(--muted-soft); |
| 5037 | cursor: pointer; |
| 5038 | |
| 5039 | &:hover { color: var(--danger); } |
| 5040 | } |
| 5041 | |
| 5042 | // -- share rows (ShareBuild) ------------------------------------------------------------ |
| 5043 | // The share/people rows are `div.member-row` outside any table — the only |
| 5044 | // `.member-row` rule in the house lives under `.member-table` (the Everyone |
| 5045 | // register's own row borders), so these rows rendered as bare inline spans |
| 5046 | // and the name, address, expiry and access chip ran together ('NeverMay |
| 5047 | // download'). They get the row treatment without the card chrome: flex with |
| 5048 | // the house gap, wrapping under narrow pressure. `div` qualified so the |
| 5049 | // table's `tr.member-row` rows never match. |
| 5050 | div.member-row { |
| 5051 | display: flex; |
| 5052 | align-items: center; |
| 5053 | gap: 4px 10px; |
| 5054 | flex-wrap: wrap; |
| 5055 | padding: 8px 0; |
| 5056 | } |
| 5057 | div.member-row + div.member-row { |
| 5058 | border-top: 1px solid var(--border); |
| 5059 | } |
| 5060 | |
| 5061 | // -- entry Options menu: flat rows, no boxed buttons ------------------------- |
| 5062 | // |
| 5063 | // Inside the menu, `.quiet`'s border box reads as a second frame (his round-4 |
| 5064 | // screenshot): the Delete submit becomes a flat menu row like the |
| 5065 | // Rename/Share/Move links around it, keeping only its danger ink. |
| 5066 | .entry-options .user-menu-panel .quiet { |
| 5067 | border: none; |
| 5068 | background: none; |
| 5069 | border-radius: var(--radius-sm); |
| 5070 | width: 100%; |
| 5071 | height: 32px; |
| 5072 | justify-content: flex-start; |
| 5073 | padding: 0 10px; |
| 5074 | font-size: 13px; |
| 5075 | color: var(--ink-soft); |
| 5076 | |
| 5077 | &:hover { background: var(--row-hover); color: var(--ink); border: none; } |
| 5078 | } |
| 5079 | .entry-options .user-menu-panel .quiet.quiet-danger { |
| 5080 | color: var(--danger); |
| 5081 | |
| 5082 | &:hover { background: var(--row-hover); color: var(--danger); border: none; } |
| 5083 | } |
| 5084 | // -- the move destination picker --------------------------------------------- |
| 5085 | // |
| 5086 | // The explorer-style list the Options menu's Move item opens: one full-width |
| 5087 | // row per destination, padded and hovered like the menu items it replaced. |
| 5088 | .move-modal { |
| 5089 | width: 480px; |
| 5090 | padding: 18px 20px 20px; |
| 5091 | } |
| 5092 | .move-modal .viewer-head { |
| 5093 | margin: 0 0 12px; |
| 5094 | } |
| 5095 | .move-list { |
| 5096 | max-height: calc(100vh - 280px); |
| 5097 | overflow-y: auto; |
| 5098 | } |
| 5099 | .move-dest { display: block; } |
| 5100 | .move-dest + .move-dest { margin-top: 2px; } |
| 5101 | .move-pick { |
| 5102 | display: flex; |
| 5103 | align-items: center; |
| 5104 | gap: 8px; |
| 5105 | width: 100%; |
| 5106 | height: 34px; |
| 5107 | padding: 0 10px; |
| 5108 | border: none; |
| 5109 | border-radius: var(--radius); |
| 5110 | background: none; |
| 5111 | font-family: inherit; |
| 5112 | font-size: 13px; |
| 5113 | color: var(--ink-soft); |
| 5114 | text-align: left; |
| 5115 | cursor: pointer; |
| 5116 | |
| 5117 | &:hover { background: var(--row-hover); color: var(--ink); } |
| 5118 | } |
| 5119 | |
| 5120 | // -- the share modal --------------------------------------------------------- |
| 5121 | // |
| 5122 | // The Proton-shaped dialog: narrower than the default 780px modal, one calm |
| 5123 | // column — title row, add-people row, access list, public-link section. |
| 5124 | .share-modal { |
| 5125 | width: 560px; |
| 5126 | padding: 18px 20px 20px; |
| 5127 | } |
| 5128 | .share-modal .viewer-head { |
| 5129 | margin: 0 0 12px; |
| 5130 | } |
| 5131 | .share-modal-title { |
| 5132 | font-size: 16px; |
| 5133 | display: flex; |
| 5134 | align-items: center; |
| 5135 | gap: 10px; |
| 5136 | min-width: 0; |
| 5137 | } |
| 5138 | .share-modal-note { |
| 5139 | margin: 0 0 10px; |
| 5140 | } |
| 5141 | // The add-people row and the link row: the address takes the room, controls |
| 5142 | // pin right. In the add form the picker panel owns a full row of its own — |
| 5143 | // wrap plus its 100% basis — and the access select and Share button drop to |
| 5144 | // a right-aligned row beneath it. |
| 5145 | .share-add { |
| 5146 | display: flex; |
| 5147 | flex-wrap: wrap; |
| 5148 | gap: 8px; |
| 5149 | margin: 0 0 16px; |
| 5150 | |
| 5151 | .share-add-email { flex: 1; min-width: 0; } |
| 5152 | .share-picker { flex: 1 1 100%; } |
| 5153 | .share-add-access { margin-left: auto; } |
| 5154 | } |
| 5155 | // The multi-select people list: a filter field, an All row, then one row per |
| 5156 | // candidate — the iz pop-panel family, token-painted so every skin carries |
| 5157 | // it without its own rules. The row IS the control: the real checkbox stays |
| 5158 | // in the markup so a no-script submit still posts one `email` per checked |
| 5159 | // row, but it hides behind the label, which takes the whole hit area. |
| 5160 | .pop-panel { |
| 5161 | padding: 8px; |
| 5162 | background: var(--surface); |
| 5163 | border: 1px solid var(--border-strong); |
| 5164 | border-radius: var(--radius-md); |
| 5165 | box-shadow: var(--shadow-2); |
| 5166 | } |
| 5167 | .pop-list { |
| 5168 | display: flex; |
| 5169 | flex-direction: column; |
| 5170 | gap: 2px; |
| 5171 | } |
| 5172 | .pop-list-scroll { max-height: 220px; overflow-y: auto; } |
| 5173 | .pop-row { |
| 5174 | display: flex; |
| 5175 | align-items: center; |
| 5176 | gap: 8px; |
| 5177 | width: 100%; |
| 5178 | padding: 4px 6px; |
| 5179 | border: none; |
| 5180 | border-radius: var(--radius-sm); |
| 5181 | background: transparent; |
| 5182 | font: inherit; |
| 5183 | font-size: 13px; |
| 5184 | color: var(--ink); |
| 5185 | text-align: left; |
| 5186 | cursor: pointer; |
| 5187 | transition: background-color var(--dur-fast) var(--ease); |
| 5188 | |
| 5189 | &:hover { background: var(--row-hover); } |
| 5190 | |
| 5191 | input[type="checkbox"] { margin: 0; accent-color: var(--accent); } |
| 5192 | } |
| 5193 | .pop-row-name { font-size: 12px; } |
| 5194 | // A picker row drawn as the control itself. The checkbox is absolutely |
| 5195 | // positioned and see-through — it keeps focus and the no-script post, never |
| 5196 | // a square. A checked row tints like a dd-option-selected entry and turns |
| 5197 | // up its check glyph; a keyboard-focused one rings the row. |
| 5198 | .share-pick-row { |
| 5199 | position: relative; |
| 5200 | |
| 5201 | input[type="checkbox"] { |
| 5202 | position: absolute; |
| 5203 | width: 1px; |
| 5204 | height: 1px; |
| 5205 | margin: 0; |
| 5206 | opacity: 0; |
| 5207 | pointer-events: none; |
| 5208 | } |
| 5209 | |
| 5210 | &:has(input:checked) { |
| 5211 | background: var(--accent-tint); |
| 5212 | |
| 5213 | .share-pick-glyph { visibility: visible; } |
| 5214 | } |
| 5215 | |
| 5216 | &:has(input:focus-visible) { |
| 5217 | outline: 2px solid var(--accent); |
| 5218 | outline-offset: 1px; |
| 5219 | } |
| 5220 | } |
| 5221 | // The check glyph rides the row's leading edge; invisible until checked. |
| 5222 | .share-pick-glyph { |
| 5223 | visibility: hidden; |
| 5224 | color: var(--accent-ink); |
| 5225 | } |
| 5226 | // The picker's filter, and the typed-address fallback in one field: full |
| 5227 | // width over the rows, one breath of air before the All row. |
| 5228 | .share-pick-filter { |
| 5229 | display: block; |
| 5230 | width: 100%; |
| 5231 | margin-bottom: 8px; |
| 5232 | } |
| 5233 | // A filter with no hits: a quiet line where a row would sit, shown by the |
| 5234 | // script and never by the no-script page. |
| 5235 | .share-pick-none { |
| 5236 | margin: 0; |
| 5237 | padding: 4px 6px; |
| 5238 | } |
| 5239 | // Rows the filter benches, and the no-match line while it has nothing to |
| 5240 | // say. Toggled by the script only. |
| 5241 | .share-pick-off { display: none; } |
| 5242 | // The All master row: kept apart from the scrolling candidates by a |
| 5243 | // hairline, so it stays visible however long the list grows. |
| 5244 | .share-pick-all { |
| 5245 | border-bottom: 1px solid var(--border); |
| 5246 | padding-bottom: 6px; |
| 5247 | margin-bottom: 2px; |
| 5248 | } |
| 5249 | // The candidate's address: pinned right, muted, ellipsized like the iz |
| 5250 | // chip names. |
| 5251 | .share-pick-mail { |
| 5252 | min-width: 0; |
| 5253 | margin-left: auto; |
| 5254 | overflow: hidden; |
| 5255 | white-space: nowrap; |
| 5256 | text-overflow: ellipsis; |
| 5257 | font-size: 12px; |
| 5258 | color: var(--muted); |
| 5259 | } |
| 5260 | .share-link-row { |
| 5261 | display: flex; |
| 5262 | gap: 8px; |
| 5263 | align-items: center; |
| 5264 | margin: 6px 0 4px; |
| 5265 | |
| 5266 | .share-link-url { flex: 1; min-width: 0; margin: 0; color: var(--muted); } |
| 5267 | // The wrapping value text doubles as the copy field. |
| 5268 | .member-link-value { cursor: pointer; } |
| 5269 | .pop-row-form { flex: none; } |
| 5270 | } |
| 5271 | |
| 5272 | // The legacy-link carry-forward note: its own full-width row under the link |
| 5273 | // row — never a squeezed flex child between the address and the revoke |
| 5274 | // button. Family note voice: plain muted text, no fill, both render sites. |
| 5275 | .share-link-note { |
| 5276 | margin: 0; |
| 5277 | font-size: 13px; |
| 5278 | line-height: 1.5; |
| 5279 | color: var(--muted); |
| 5280 | } |
| 5281 | // A section label inside the modal: muted, small, with air above. |
| 5282 | .share-section { |
| 5283 | margin: 14px 0 6px; |
| 5284 | font-size: 12px; |
| 5285 | font-weight: 500; |
| 5286 | color: var(--muted); |
| 5287 | } |
| 5288 | // The owner row never carries a form; the grants' remove buttons stay quiet. |
| 5289 | .share-modal .member-row { |
| 5290 | padding: 6px 0; |
| 5291 | display: flex; |
| 5292 | align-items: center; |
| 5293 | gap: 8px; |
| 5294 | } |
| 5295 | .share-modal .member-row .member-name { |
| 5296 | flex: none; |
| 5297 | font-weight: 500; |
| 5298 | } |
| 5299 | .share-expiry { width: 90px; flex: none; } |
| 5300 | |
| 5301 | // -- drive listing redesign ---------------------------------------------------- |
| 5302 | // The drive reads as one calm list now, not a stack of cards: a column head, |
| 5303 | // hairline rules between rows, the whole row as the way in, and a quiet ⋯ |
| 5304 | // holding the entry's menu. Everything here is token-painted, so the skins |
| 5305 | // carry it without their own rules. |
| 5306 | |
| 5307 | // The bar's halves: the search field leads from the left and the listing |
| 5308 | // controls hold the right edge — the search carries the spring. Shared by |
| 5309 | // the drive, trash and shared bars, which all lead with the search form. |
| 5310 | .filterbar .field-box-search { margin-right: auto; } |
| 5311 | |
| 5312 | // The bar: the search field stretches, the sort/kind boxes hug their content, |
| 5313 | // and the + (now `.primary`) is the bar's one loud act. |
| 5314 | .drive-bar { |
| 5315 | gap: 10px; |
| 5316 | |
| 5317 | .field-box-search { |
| 5318 | flex: 1 1 240px; |
| 5319 | max-width: 460px; |
| 5320 | } |
| 5321 | |
| 5322 | .field-box-sort { flex: none; } |
| 5323 | } |
| 5324 | |
| 5325 | // The column head: same grid as the rows beneath it, so the labels sit over |
| 5326 | // their numbers exactly. The trailing spacer mirrors the ⋯ trigger's box. |
| 5327 | .drive-head { |
| 5328 | display: flex; |
| 5329 | align-items: center; |
| 5330 | gap: 10px; |
| 5331 | padding: 8px 16px; |
| 5332 | border-bottom: 1px solid var(--border); |
| 5333 | font-family: var(--font-mono); |
| 5334 | font-size: 10px; |
| 5335 | letter-spacing: 0.08em; |
| 5336 | text-transform: uppercase; |
| 5337 | color: var(--muted-soft); |
| 5338 | } |
| 5339 | |
| 5340 | .drive-cols, |
| 5341 | .drive-open { |
| 5342 | display: grid; |
| 5343 | grid-template-columns: 40px minmax(0, 1fr) 76px 110px 88px; |
| 5344 | gap: 12px; |
| 5345 | align-items: center; |
| 5346 | } |
| 5347 | |
| 5348 | // The shared page's last column carries the grant's owner and access chip — |
| 5349 | // words, not the download count the drive counts in the same track. The |
| 5350 | // modifier is /shared-only: the track grows with the viewport so a real |
| 5351 | // name ellipsizes only under real pressure, and the drive page keeps its |
| 5352 | // fixed 88px. |
| 5353 | .drive-owner .drive-cols, |
| 5354 | .drive-owner .drive-open { |
| 5355 | grid-template-columns: 40px minmax(0, 1fr) 76px 110px minmax(150px, 1fr); |
| 5356 | } |
| 5357 | |
| 5358 | .drive-head .drive-cols > span { |
| 5359 | min-width: 0; |
| 5360 | overflow: hidden; |
| 5361 | text-overflow: ellipsis; |
| 5362 | white-space: nowrap; |
| 5363 | } |
| 5364 | |
| 5365 | // The search mode tell, inside the panel rather than the bar: a quiet line |
| 5366 | // over the column head, out of the way of the controls. |
| 5367 | .drive-results-note { |
| 5368 | margin: 0; |
| 5369 | padding: 10px 16px; |
| 5370 | border-bottom: 1px solid var(--border); |
| 5371 | font-size: 12px; |
| 5372 | color: var(--muted); |
| 5373 | } |
| 5374 | |
| 5375 | .drive-cols { |
| 5376 | flex: 1; |
| 5377 | min-width: 0; |
| 5378 | } |
| 5379 | |
| 5380 | // Right-aligned like the values beneath: a label hugging the left of its |
| 5381 | // column while its dates hold the right reads as two columns, not one. |
| 5382 | .drive-col-num, .drive-col-date { text-align: right; } |
| 5383 | |
| 5384 | .drive-head-options { |
| 5385 | flex: none; |
| 5386 | width: 28px; |
| 5387 | } |
| 5388 | |
| 5389 | .drive-list { |
| 5390 | display: flex; |
| 5391 | flex-direction: column; |
| 5392 | } |
| 5393 | |
| 5394 | // One row: hairline underneath, a hover tint, and nothing boxed of its own. |
| 5395 | .drive-row { |
| 5396 | display: flex; |
| 5397 | align-items: center; |
| 5398 | gap: 10px; |
| 5399 | padding: 5px 16px; |
| 5400 | border-bottom: 1px solid var(--border-soft); |
| 5401 | font-size: 13px; |
| 5402 | transition: background-color var(--dur-fast) var(--ease); |
| 5403 | |
| 5404 | &:last-child { border-bottom: none; } |
| 5405 | &:hover { background: var(--row-hover); } |
| 5406 | } |
| 5407 | |
| 5408 | // The row's way in: icon, name and every meta cell inside the anchor, so the |
| 5409 | // full stretch of the row opens the entry instead of just the word. |
| 5410 | .drive-open { |
| 5411 | flex: 1; |
| 5412 | min-width: 0; |
| 5413 | padding: 5px 0; |
| 5414 | color: inherit; |
| 5415 | text-decoration: none; |
| 5416 | |
| 5417 | &:hover .dep-title { text-decoration: underline; } |
| 5418 | } |
| 5419 | |
| 5420 | // The name column of a drive row: the title keeps its ellipsis and the |
| 5421 | // Shared mark rides beside it inside the one grid cell, so the mark never |
| 5422 | // becomes a column of its own on the row's grid. |
| 5423 | .dep-name-cell { |
| 5424 | display: flex; |
| 5425 | align-items: center; |
| 5426 | gap: 8px; |
| 5427 | min-width: 0; |
| 5428 | } |
| 5429 | |
| 5430 | .dep-name-cell .dep-title { min-width: 0; } |
| 5431 | |
| 5432 | .drive-meta { |
| 5433 | min-width: 0; |
| 5434 | overflow: hidden; |
| 5435 | text-overflow: ellipsis; |
| 5436 | white-space: nowrap; |
| 5437 | font-family: var(--font-mono); |
| 5438 | font-size: 11px; |
| 5439 | color: var(--muted-soft); |
| 5440 | text-align: right; |
| 5441 | } |
| 5442 | |
| 5443 | // The ⋯ trigger: a small unboxed button that keeps its hover ring. Border and |
| 5444 | // ground come off so a long list is not a column of little rectangles. |
| 5445 | .drive-row .entry-options-trigger { |
| 5446 | width: 28px; |
| 5447 | height: 28px; |
| 5448 | padding: 0; |
| 5449 | justify-content: center; |
| 5450 | background: transparent; |
| 5451 | border-color: transparent; |
| 5452 | font-size: 15px; |
| 5453 | line-height: 1; |
| 5454 | color: var(--muted); |
| 5455 | |
| 5456 | &:hover { |
| 5457 | background: var(--surface); |
| 5458 | border-color: var(--border-strong); |
| 5459 | color: var(--ink); |
| 5460 | } |
| 5461 | } |
| 5462 | |
| 5463 | // An open menu keeps its trigger visible against the tinted row. |
| 5464 | .drive-row .entry-options[open] > .entry-options-trigger { |
| 5465 | background: var(--surface); |
| 5466 | border-color: var(--border-strong); |
| 5467 | color: var(--ink); |
| 5468 | } |
| 5469 | |
| 5470 | // The empty states (empty folder, no search hits): centred, quiet, one glyph. |
| 5471 | .drive-empty { |
| 5472 | display: flex; |
| 5473 | flex-direction: column; |
| 5474 | align-items: center; |
| 5475 | gap: 10px; |
| 5476 | padding: 56px 24px; |
| 5477 | text-align: center; |
| 5478 | } |
| 5479 | |
| 5480 | .drive-empty-glyph { |
| 5481 | font-size: 26px; |
| 5482 | color: var(--muted-soft); |
| 5483 | } |
| 5484 | |
| 5485 | .drive-empty-text { |
| 5486 | margin: 0; |
| 5487 | font-size: 13px; |
| 5488 | color: var(--muted); |
| 5489 | } |
| 5490 | |
| 5491 | // Narrow viewports keep icon, name and size; the date and downloads columns |
| 5492 | // fold away instead of crushing the name. |
| 5493 | @media (max-width: 620px) { |
| 5494 | .drive-cols, |
| 5495 | .drive-open, |
| 5496 | .drive-owner .drive-cols, |
| 5497 | .drive-owner .drive-open { |
| 5498 | grid-template-columns: 40px minmax(0, 1fr) 72px; |
| 5499 | } |
| 5500 | |
| 5501 | .drive-col-date, |
| 5502 | .drive-col-dl, |
| 5503 | .drive-date, |
| 5504 | .drive-dl { |
| 5505 | display: none; |
| 5506 | } |
| 5507 | } |
| 5508 | |
| 5509 | // The Connection card's label/value rows: two columns, labels bold and |
| 5510 | // unbreaking, values free to wrap — the shape the identity card wears. |
| 5511 | .connection-facts { |
| 5512 | display: grid; |
| 5513 | grid-template-columns: max-content 1fr; |
| 5514 | gap: 0.4rem 1.5rem; |
| 5515 | margin: 0; |
| 5516 | |
| 5517 | dt { |
| 5518 | font-weight: 600; |
| 5519 | white-space: nowrap; |
| 5520 | } |
| 5521 | } |
| 5522 | |
| 5523 | .connection-dot { |
| 5524 | display: inline-block; |
| 5525 | width: 0.55rem; |
| 5526 | height: 0.55rem; |
| 5527 | border-radius: 50%; |
| 5528 | margin-right: 0.4rem; |
| 5529 | vertical-align: baseline; |
| 5530 | |
| 5531 | &.connection-on { |
| 5532 | background: #2e9e5b; |
| 5533 | } |
| 5534 | |
| 5535 | &.connection-wait { |
| 5536 | background: #d99a26; |
| 5537 | } |
| 5538 | } |