forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.010.7 MiBe587be7Tahinli13 hours ago323 commits
| 1 | // Shell: the sticky top bar, the signed-in sidebar, the page column and the footer. From 900px |
| 2 | // the sidebar is always there, and a repo's tabs take it over. Below 900px the sidebar moves |
| 3 | // into a menu in the top bar, and the repo tabs become a horizontal strip. |
| 4 | |
| 5 | // Icons: strokes use currentColor, so they follow the text colour in both themes. |
| 6 | .ico { |
| 7 | flex: none; |
| 8 | width: 18px; |
| 9 | height: 18px; |
| 10 | fill: none; |
| 11 | stroke: currentColor; |
| 12 | stroke-width: 1.8; |
| 13 | stroke-linecap: round; |
| 14 | stroke-linejoin: round; |
| 15 | } |
| 16 | |
| 17 | // Top bar |
| 18 | |
| 19 | .topbar { |
| 20 | position: sticky; |
| 21 | top: 0; |
| 22 | z-index: 20; |
| 23 | display: flex; |
| 24 | align-items: center; |
| 25 | gap: 12px; |
| 26 | box-sizing: border-box; |
| 27 | height: var(--topbar-h); |
| 28 | min-width: 0; |
| 29 | padding: 0 16px; |
| 30 | background: var(--bg); |
| 31 | border-bottom: 1px solid var(--border); |
| 32 | } |
| 33 | |
| 34 | .wordmark { |
| 35 | display: inline-flex; |
| 36 | align-items: center; |
| 37 | gap: 8px; |
| 38 | flex: none; |
| 39 | font-size: 17px; |
| 40 | font-weight: 700; |
| 41 | letter-spacing: -0.02em; |
| 42 | color: var(--text); |
| 43 | text-decoration: none; |
| 44 | |
| 45 | &:hover { |
| 46 | text-decoration: none; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | .wordmark-mark { |
| 51 | width: 20px; |
| 52 | height: 20px; |
| 53 | color: var(--text); |
| 54 | } |
| 55 | |
| 56 | .topbar .crumbs { |
| 57 | display: flex; |
| 58 | align-items: center; |
| 59 | flex: 0 1 auto; |
| 60 | min-width: 0; |
| 61 | overflow: hidden; |
| 62 | font-size: 14px; |
| 63 | color: var(--muted); |
| 64 | white-space: nowrap; |
| 65 | |
| 66 | &::before { |
| 67 | content: "/"; |
| 68 | margin-right: 10px; |
| 69 | color: var(--border-strong); |
| 70 | } |
| 71 | |
| 72 | ol { |
| 73 | flex-wrap: nowrap; |
| 74 | } |
| 75 | |
| 76 | a { |
| 77 | color: inherit; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | .top-search { |
| 82 | position: relative; |
| 83 | flex: 0 1 340px; |
| 84 | min-width: 0; |
| 85 | margin: 0 0 0 auto; |
| 86 | |
| 87 | input { |
| 88 | box-sizing: border-box; |
| 89 | width: 100%; |
| 90 | height: 36px; |
| 91 | min-width: 0; |
| 92 | margin: 0; |
| 93 | padding: 0 12px 0 36px; |
| 94 | border: 1px solid var(--border); |
| 95 | border-radius: var(--radius-md); |
| 96 | background: var(--surface); |
| 97 | color: var(--text); |
| 98 | font: inherit; |
| 99 | font-size: 14px; |
| 100 | |
| 101 | &::placeholder { |
| 102 | color: var(--muted); |
| 103 | } |
| 104 | |
| 105 | &:focus { |
| 106 | outline: none; |
| 107 | border-color: var(--accent); |
| 108 | box-shadow: 0 0 0 3px var(--accent-soft); |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | .top-search-icon { |
| 114 | position: absolute; |
| 115 | top: 10px; |
| 116 | left: 11px; |
| 117 | width: 16px; |
| 118 | height: 16px; |
| 119 | color: var(--muted); |
| 120 | pointer-events: none; |
| 121 | } |
| 122 | |
| 123 | .topbar .icon-btn { |
| 124 | position: relative; |
| 125 | display: grid; |
| 126 | place-items: center; |
| 127 | flex: none; |
| 128 | box-sizing: border-box; |
| 129 | width: 36px; |
| 130 | height: 36px; |
| 131 | margin: 0; |
| 132 | padding: 0; |
| 133 | border: 1px solid var(--border); |
| 134 | border-radius: var(--radius-md); |
| 135 | background: var(--surface); |
| 136 | color: var(--text-2); |
| 137 | font: inherit; |
| 138 | list-style: none; |
| 139 | cursor: pointer; |
| 140 | |
| 141 | &:hover { |
| 142 | background: var(--surface-2); |
| 143 | text-decoration: none; |
| 144 | } |
| 145 | |
| 146 | &::-webkit-details-marker { |
| 147 | display: none; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | .theme-form { |
| 152 | display: flex; |
| 153 | flex: none; |
| 154 | margin: 0; |
| 155 | } |
| 156 | |
| 157 | // Path bar: the breadcrumb of the page, and the click target that opens the Ctrl K palette. |
| 158 | // The bar fills the top bar's free space; its edit button covers the rest of it. Signed in, it reads |
| 159 | // as one field: a search icon, the path, then a "search or jump to" hint and Ctrl K. |
| 160 | |
| 161 | .pathbar { |
| 162 | display: flex; |
| 163 | align-items: center; |
| 164 | flex: 1 1 auto; |
| 165 | min-width: 0; |
| 166 | max-width: 640px; |
| 167 | height: 32px; |
| 168 | box-sizing: border-box; |
| 169 | padding: 0 0 0 4px; |
| 170 | overflow: hidden; |
| 171 | border: 1px solid transparent; |
| 172 | border-radius: var(--radius-sm); |
| 173 | font-family: var(--mono); |
| 174 | font-size: 12.5px; |
| 175 | color: var(--muted); |
| 176 | |
| 177 | &:hover { |
| 178 | border-color: var(--border); |
| 179 | } |
| 180 | |
| 181 | &:has(.pathbar-edit) { |
| 182 | padding-left: 10px; |
| 183 | border-color: var(--border); |
| 184 | border-radius: var(--radius-md); |
| 185 | background: var(--surface); |
| 186 | |
| 187 | &:hover { |
| 188 | border-color: var(--border-strong); |
| 189 | } |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | .pathbar-ico { |
| 194 | flex: none; |
| 195 | width: 15px; |
| 196 | height: 15px; |
| 197 | margin-right: 6px; |
| 198 | color: var(--muted); |
| 199 | } |
| 200 | |
| 201 | .pathbar-segs { |
| 202 | display: flex; |
| 203 | align-items: center; |
| 204 | flex: 0 1 auto; |
| 205 | min-width: 0; |
| 206 | margin: 0; |
| 207 | padding: 0; |
| 208 | overflow: hidden; |
| 209 | list-style: none; |
| 210 | white-space: nowrap; |
| 211 | |
| 212 | li { |
| 213 | display: flex; |
| 214 | align-items: center; |
| 215 | min-width: 0; |
| 216 | |
| 217 | & + li::before { |
| 218 | content: "/"; |
| 219 | flex: none; |
| 220 | padding: 0 6px; |
| 221 | color: var(--border-strong); |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | .pathbar-seg { |
| 227 | min-width: 0; |
| 228 | overflow: hidden; |
| 229 | padding: 2px 4px; |
| 230 | border-radius: var(--radius-sm); |
| 231 | color: var(--muted); |
| 232 | text-overflow: ellipsis; |
| 233 | text-decoration: none; |
| 234 | white-space: nowrap; |
| 235 | |
| 236 | &:hover { |
| 237 | color: var(--text); |
| 238 | background: var(--surface-2); |
| 239 | text-decoration: none; |
| 240 | } |
| 241 | |
| 242 | &.owner { |
| 243 | color: var(--text); |
| 244 | } |
| 245 | |
| 246 | &.last { |
| 247 | color: var(--text); |
| 248 | font-weight: 600; |
| 249 | |
| 250 | &:hover { |
| 251 | background: none; |
| 252 | } |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | // The shortcut sits right after the hint: at the far end of the bar it read as the key for the link |
| 257 | // beside it. |
| 258 | .pathbar-edit { |
| 259 | display: flex; |
| 260 | align-items: center; |
| 261 | justify-content: flex-start; |
| 262 | gap: 8px; |
| 263 | flex: 1 1 0; |
| 264 | height: 100%; |
| 265 | min-width: 0; |
| 266 | margin: 0; |
| 267 | padding: 0 6px 0 12px; |
| 268 | border: 0; |
| 269 | background: transparent; |
| 270 | color: var(--muted); |
| 271 | font: inherit; |
| 272 | cursor: text; |
| 273 | |
| 274 | kbd { |
| 275 | flex: none; |
| 276 | padding: 0 5px; |
| 277 | font-family: var(--mono); |
| 278 | font-size: 11px; |
| 279 | line-height: 18px; |
| 280 | color: var(--text-2); |
| 281 | background: var(--surface-2); |
| 282 | border: 1px solid var(--border-strong); |
| 283 | border-radius: var(--radius-sm); |
| 284 | } |
| 285 | |
| 286 | // The bar is the field, so the global button hover and focus ring stay off this part of it. |
| 287 | &:hover, |
| 288 | &:focus-visible { |
| 289 | border: 0; |
| 290 | background: transparent; |
| 291 | box-shadow: none; |
| 292 | } |
| 293 | |
| 294 | &:hover .pathbar-hint { |
| 295 | color: var(--text-2); |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | .pathbar:has(.pathbar-edit:focus-visible) { |
| 300 | border-color: var(--focus); |
| 301 | box-shadow: 0 0 0 3px var(--accent-soft); |
| 302 | } |
| 303 | |
| 304 | .pathbar-hint { |
| 305 | min-width: 0; |
| 306 | overflow: hidden; |
| 307 | font-family: var(--font); |
| 308 | font-size: 13px; |
| 309 | color: var(--muted); |
| 310 | text-overflow: ellipsis; |
| 311 | white-space: nowrap; |
| 312 | } |
| 313 | |
| 314 | // Live strip: what is running or just finished, at the end of the top bar. |
| 315 | |
| 316 | .live-strip { |
| 317 | display: flex; |
| 318 | align-items: center; |
| 319 | gap: 6px; |
| 320 | flex: none; |
| 321 | min-width: 0; |
| 322 | margin-left: auto; |
| 323 | } |
| 324 | |
| 325 | .pill { |
| 326 | display: inline-flex; |
| 327 | align-items: center; |
| 328 | gap: 6px; |
| 329 | flex: 0 1 auto; |
| 330 | min-width: 0; |
| 331 | height: 26px; |
| 332 | box-sizing: border-box; |
| 333 | padding: 0 10px; |
| 334 | overflow: hidden; |
| 335 | border: 1px solid var(--border); |
| 336 | border-radius: var(--radius-full); |
| 337 | background: var(--surface); |
| 338 | color: var(--text-2); |
| 339 | font-size: 12.5px; |
| 340 | white-space: nowrap; |
| 341 | text-decoration: none; |
| 342 | |
| 343 | b { |
| 344 | font-weight: 600; |
| 345 | color: var(--text); |
| 346 | } |
| 347 | |
| 348 | &:hover { |
| 349 | background: var(--surface-2); |
| 350 | text-decoration: none; |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | .pill-dot { |
| 355 | flex: none; |
| 356 | width: 7px; |
| 357 | height: 7px; |
| 358 | border-radius: 50%; |
| 359 | background: var(--muted); |
| 360 | } |
| 361 | |
| 362 | .pill.ok .pill-dot { |
| 363 | background: var(--ok); |
| 364 | } |
| 365 | |
| 366 | .pill.bad .pill-dot { |
| 367 | background: var(--danger); |
| 368 | } |
| 369 | |
| 370 | .pill.hot { |
| 371 | border-color: color-mix(in srgb, var(--heat-3) 45%, var(--border)); |
| 372 | background: linear-gradient( |
| 373 | 90deg, |
| 374 | color-mix(in srgb, var(--heat-3) 18%, var(--surface)), |
| 375 | color-mix(in srgb, var(--heat-3) 6%, var(--surface)) |
| 376 | ); |
| 377 | |
| 378 | .pill-dot { |
| 379 | background: var(--heat-4); |
| 380 | animation: pill-pulse 1.6s ease-out infinite; |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | // Two or more runs: the summary pill opens a list of all of them, right-aligned under it. |
| 385 | .strip-runs { |
| 386 | position: relative; |
| 387 | |
| 388 | > summary { |
| 389 | list-style: none; |
| 390 | cursor: pointer; |
| 391 | |
| 392 | &::-webkit-details-marker { |
| 393 | display: none; |
| 394 | } |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | .strip-list { |
| 399 | position: absolute; |
| 400 | top: calc(100% + 6px); |
| 401 | right: 0; |
| 402 | z-index: 60; |
| 403 | display: grid; |
| 404 | gap: 2px; |
| 405 | box-sizing: border-box; |
| 406 | width: max-content; |
| 407 | min-width: 240px; |
| 408 | max-width: min(420px, 92vw); |
| 409 | max-height: min(60vh, 420px); |
| 410 | overflow-y: auto; |
| 411 | margin: 0; |
| 412 | padding: 6px; |
| 413 | list-style: none; |
| 414 | background: var(--surface); |
| 415 | border: 1px solid var(--border); |
| 416 | border-radius: var(--radius-md); |
| 417 | box-shadow: var(--shadow); |
| 418 | |
| 419 | li { |
| 420 | min-width: 0; |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | .strip-row { |
| 425 | display: flex; |
| 426 | align-items: center; |
| 427 | gap: 8px; |
| 428 | min-width: 0; |
| 429 | padding: 6px 8px; |
| 430 | border-radius: var(--radius-md); |
| 431 | color: var(--text-2); |
| 432 | font-size: 12.5px; |
| 433 | white-space: nowrap; |
| 434 | text-decoration: none; |
| 435 | |
| 436 | b { |
| 437 | min-width: 0; |
| 438 | overflow: hidden; |
| 439 | font-weight: 600; |
| 440 | color: var(--text); |
| 441 | text-overflow: ellipsis; |
| 442 | } |
| 443 | |
| 444 | &:hover { |
| 445 | background: var(--surface-2); |
| 446 | text-decoration: none; |
| 447 | } |
| 448 | |
| 449 | &.ok .pill-dot { |
| 450 | background: var(--ok); |
| 451 | } |
| 452 | |
| 453 | &.bad .pill-dot { |
| 454 | background: var(--danger); |
| 455 | } |
| 456 | |
| 457 | &.hot .pill-dot { |
| 458 | background: var(--heat-4); |
| 459 | animation: pill-pulse 1.6s ease-out infinite; |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | @keyframes pill-pulse { |
| 464 | 0% { |
| 465 | box-shadow: 0 0 0 0 var(--heat-glow); |
| 466 | } |
| 467 | |
| 468 | 70%, |
| 469 | 100% { |
| 470 | box-shadow: 0 0 0 6px transparent; |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | // The shared button keeps its natural width in columns; in the top bar it sits on the centre line. |
| 475 | .topbar .button { |
| 476 | align-self: center; |
| 477 | flex: none; |
| 478 | } |
| 479 | |
| 480 | // The avatar menu: the avatar is the summary; the menu list keeps its links from main.scss. |
| 481 | .topbar .menu { |
| 482 | flex: none; |
| 483 | |
| 484 | summary { |
| 485 | display: grid; |
| 486 | place-items: center; |
| 487 | width: 36px; |
| 488 | height: 36px; |
| 489 | padding: 0; |
| 490 | border: 0; |
| 491 | border-radius: 50%; |
| 492 | } |
| 493 | |
| 494 | summary img { |
| 495 | display: block; |
| 496 | width: 28px; |
| 497 | height: 28px; |
| 498 | } |
| 499 | |
| 500 | &[open] summary { |
| 501 | box-shadow: 0 0 0 2px var(--surface-2); |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | .topbar .menu-list { |
| 506 | top: calc(100% + 8px); |
| 507 | } |
| 508 | |
| 509 | // Phone menu: the section sidebar in a panel under the top bar. Hidden from 900px. |
| 510 | |
| 511 | .nav-toggle { |
| 512 | flex: none; |
| 513 | } |
| 514 | |
| 515 | // Section sidebar (admin, settings and an org's pages). Other pages have none. |
| 516 | |
| 517 | .shell { |
| 518 | display: grid; |
| 519 | grid-template-columns: minmax(0, 1fr); |
| 520 | flex: 1 0 auto; |
| 521 | } |
| 522 | |
| 523 | .side-links { |
| 524 | display: flex; |
| 525 | flex-direction: column; |
| 526 | gap: 2px; |
| 527 | } |
| 528 | |
| 529 | .side-link { |
| 530 | display: flex; |
| 531 | align-items: center; |
| 532 | gap: 10px; |
| 533 | min-height: 36px; |
| 534 | padding: 0 12px; |
| 535 | border-radius: var(--radius-md); |
| 536 | color: var(--text-2); |
| 537 | font-size: 14.5px; |
| 538 | font-weight: 500; |
| 539 | white-space: nowrap; |
| 540 | text-decoration: none; |
| 541 | |
| 542 | &:hover { |
| 543 | background: var(--surface-2); |
| 544 | text-decoration: none; |
| 545 | } |
| 546 | |
| 547 | .ico { |
| 548 | color: var(--muted); |
| 549 | } |
| 550 | |
| 551 | &.on { |
| 552 | background: var(--accent-soft); |
| 553 | color: var(--accent-ink); |
| 554 | font-weight: 600; |
| 555 | |
| 556 | .ico { |
| 557 | color: var(--accent-ink); |
| 558 | } |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | .side-group { |
| 563 | margin-top: 24px; |
| 564 | } |
| 565 | |
| 566 | .side-h { |
| 567 | margin: 0 12px 8px; |
| 568 | font-size: 12.5px; |
| 569 | font-weight: 600; |
| 570 | line-height: 1.4; |
| 571 | color: var(--muted); |
| 572 | } |
| 573 | |
| 574 | // Profile corner: the signed-in user's floating panel at the bottom left of the window (see |
| 575 | // `.corner-float`). Its menu opens upward from the panel. |
| 576 | .corner-wrap { |
| 577 | position: relative; |
| 578 | display: flex; |
| 579 | align-items: center; |
| 580 | gap: 4px; |
| 581 | } |
| 582 | |
| 583 | .corner { |
| 584 | position: relative; |
| 585 | } |
| 586 | |
| 587 | // The panel's menu anchors to the panel's width, not to the summary, so it reads as a menu of its own. |
| 588 | .corner-float .corner { |
| 589 | position: static; |
| 590 | } |
| 591 | |
| 592 | .corner-btn { |
| 593 | display: flex; |
| 594 | align-items: center; |
| 595 | gap: 8px; |
| 596 | padding: 8px; |
| 597 | border-radius: var(--radius-md); |
| 598 | color: var(--text); |
| 599 | cursor: pointer; |
| 600 | list-style: none; |
| 601 | |
| 602 | &:hover { |
| 603 | background: var(--surface-2); |
| 604 | } |
| 605 | |
| 606 | &::-webkit-details-marker { |
| 607 | display: none; |
| 608 | } |
| 609 | } |
| 610 | |
| 611 | // The name wraps onto at most two lines, breaking at spaces. A single word too long for the line |
| 612 | // breaks inside it. |
| 613 | .corner-name { |
| 614 | min-width: 0; |
| 615 | overflow: hidden; |
| 616 | font-size: 13.5px; |
| 617 | font-weight: 600; |
| 618 | line-height: 1.2; |
| 619 | white-space: normal; |
| 620 | overflow-wrap: break-word; |
| 621 | display: -webkit-box; |
| 622 | -webkit-line-clamp: 2; |
| 623 | -webkit-box-orient: vertical; |
| 624 | } |
| 625 | |
| 626 | // The avatar beside the name. Running CI shows in the live strip, not around the avatar. |
| 627 | .corner-avatar { |
| 628 | display: grid; |
| 629 | flex: none; |
| 630 | place-items: center; |
| 631 | |
| 632 | .avatar { |
| 633 | width: 32px; |
| 634 | height: 32px; |
| 635 | border-radius: 50%; |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | // Chips count what waits on the user. They never take the accent. |
| 640 | .chip { |
| 641 | display: inline-flex; |
| 642 | align-items: center; |
| 643 | gap: 3px; |
| 644 | flex: none; |
| 645 | height: 20px; |
| 646 | box-sizing: border-box; |
| 647 | padding: 0 6px; |
| 648 | border: 1px solid var(--border); |
| 649 | border-radius: var(--radius-full); |
| 650 | background: var(--surface-2); |
| 651 | color: var(--text-2); |
| 652 | font-size: 11px; |
| 653 | font-weight: 700; |
| 654 | font-variant-numeric: tabular-nums; |
| 655 | |
| 656 | .ico { |
| 657 | width: 12px; |
| 658 | height: 12px; |
| 659 | } |
| 660 | } |
| 661 | |
| 662 | // A chip is a link to the newest thing it counts. |
| 663 | a.chip { |
| 664 | text-decoration: none; |
| 665 | |
| 666 | &:hover { |
| 667 | text-decoration: none; |
| 668 | filter: brightness(1.15); |
| 669 | } |
| 670 | } |
| 671 | |
| 672 | .corner-menu { |
| 673 | position: absolute; |
| 674 | bottom: calc(100% + 8px); |
| 675 | z-index: 40; |
| 676 | display: grid; |
| 677 | gap: 2px; |
| 678 | box-sizing: border-box; |
| 679 | padding: 6px; |
| 680 | background: var(--surface); |
| 681 | border: 1px solid var(--border); |
| 682 | border-radius: var(--radius-md); |
| 683 | box-shadow: var(--shadow); |
| 684 | } |
| 685 | |
| 686 | // The profile corner: a small panel fixed at the bottom left of the window, the avatar, the name and |
| 687 | // the notifications row. The name is always shown in full (see `.corner-name` below). |
| 688 | .corner-float { |
| 689 | position: fixed; |
| 690 | left: 16px; |
| 691 | bottom: 16px; |
| 692 | z-index: 40; |
| 693 | max-width: calc(100vw - 32px); |
| 694 | background: var(--surface); |
| 695 | border: 1px solid var(--border); |
| 696 | border-radius: 999px; |
| 697 | box-shadow: var(--shadow); |
| 698 | padding: 4px 8px; |
| 699 | // The panel can be dragged with a pointer (nav.js): touch must not scroll under it. |
| 700 | touch-action: none; |
| 701 | cursor: grab; |
| 702 | user-select: none; |
| 703 | } |
| 704 | |
| 705 | .corner-float.dragging { |
| 706 | cursor: grabbing; |
| 707 | } |
| 708 | |
| 709 | // Below 900px the panel steps aside while the reader scrolls down (nav.js sets corner-away): it fades |
| 710 | // out and takes no pointer, so the page under it can be read and tapped. Reduced motion skips the fade. |
| 711 | .corner-float { |
| 712 | } |
| 713 | |
| 714 | .corner-float.corner-away { |
| 715 | opacity: 0; |
| 716 | pointer-events: none; |
| 717 | } |
| 718 | |
| 719 | // Placed in the top half of the window: the menu opens below the panel. In the right half it anchors |
| 720 | // to the panel's right edge instead of the left one. The default corner keeps the upward menu. |
| 721 | .corner-float[data-open="down"] .corner-menu { |
| 722 | top: calc(100% + 8px); |
| 723 | bottom: auto; |
| 724 | } |
| 725 | |
| 726 | // The menu is as wide as its content, at least the panel's width, and never wider than the window. |
| 727 | .corner-float .corner-menu { |
| 728 | left: 8px; |
| 729 | right: auto; |
| 730 | width: max-content; |
| 731 | min-width: calc(100% - 16px); |
| 732 | max-width: calc(100vw - 32px); |
| 733 | } |
| 734 | |
| 735 | .corner-float[data-side="right"] .corner-menu { |
| 736 | left: auto; |
| 737 | right: 8px; |
| 738 | } |
| 739 | |
| 740 | // The viewer's full name, never truncated. On a phone it wraps instead of running off the screen. |
| 741 | .corner-float .corner-name { |
| 742 | display: block; |
| 743 | padding-right: 4px; |
| 744 | white-space: nowrap; |
| 745 | overflow: visible; |
| 746 | } |
| 747 | |
| 748 | @media (max-width: 479px) { |
| 749 | .corner-float .corner-name { |
| 750 | white-space: normal; |
| 751 | } |
| 752 | } |
| 753 | |
| 754 | .corner-float .corner-btn { |
| 755 | padding: 2px 4px; |
| 756 | } |
| 757 | |
| 758 | .corner-float .corner-avatar .avatar { |
| 759 | width: 28px; |
| 760 | height: 28px; |
| 761 | } |
| 762 | |
| 763 | // `button.corner-link` too (Log out): the extra element in the selector outweighs `button.link-button`. |
| 764 | .corner-link, |
| 765 | button.corner-link.link-button { |
| 766 | display: block; |
| 767 | width: 100%; |
| 768 | box-sizing: border-box; |
| 769 | margin: 0; |
| 770 | padding: 8px 10px; |
| 771 | border: 0; |
| 772 | border-radius: var(--radius-md); |
| 773 | background: none; |
| 774 | color: var(--text); |
| 775 | font: inherit; |
| 776 | font-size: 14px; |
| 777 | text-align: left; |
| 778 | text-decoration: none; |
| 779 | cursor: pointer; |
| 780 | |
| 781 | &:hover { |
| 782 | background: var(--surface-2); |
| 783 | text-decoration: none; |
| 784 | } |
| 785 | } |
| 786 | |
| 787 | // Page column and footer. The footer sits under the page in the same column, so a short page and |
| 788 | // its footer fit in the viewport the shell fills (no scroll for a footer's height). |
| 789 | |
| 790 | .shell-body { |
| 791 | display: flex; |
| 792 | flex-direction: column; |
| 793 | min-width: 0; |
| 794 | } |
| 795 | |
| 796 | .shell-body > main { |
| 797 | flex: 1 0 auto; |
| 798 | box-sizing: border-box; |
| 799 | width: 100%; |
| 800 | min-width: 0; |
| 801 | margin: 0; |
| 802 | padding: 20px 16px 24px; |
| 803 | } |
| 804 | |
| 805 | .site-footer { |
| 806 | display: flex; |
| 807 | flex-wrap: wrap; |
| 808 | align-items: center; |
| 809 | gap: 12px; |
| 810 | box-sizing: border-box; |
| 811 | padding: 14px 16px 20px; |
| 812 | font-size: 12.5px; |
| 813 | color: var(--muted); |
| 814 | border-top: 1px solid var(--border); |
| 815 | } |
| 816 | |
| 817 | // Signed-in pages without a sidebar: the floating profile panel sits over the footer's left edge. |
| 818 | body[data-signed-in] .shell:not(:has(> .shell-sidebar)) .site-footer { |
| 819 | padding-left: 132px; |
| 820 | } |
| 821 | |
| 822 | // The page is one full-width column. A section page (admin, settings, an org) adds its sidebar beside |
| 823 | // it from 900px, below. |
| 824 | |
| 825 | // The floating profile corner sits over the bottom left of the page below 900px: the page keeps |
| 826 | // clear of it at its end. |
| 827 | @media (max-width: 899px) { |
| 828 | .shell-body { |
| 829 | padding-bottom: 72px; |
| 830 | } |
| 831 | } |
| 832 | |
| 833 | @media (max-width: 699px) { |
| 834 | .topbar .crumbs { |
| 835 | display: none; |
| 836 | } |
| 837 | |
| 838 | .top-search { |
| 839 | flex: 1 1 0; |
| 840 | } |
| 841 | |
| 842 | // Phones: the path bar shows only the last segment, and the live strip goes (its counts are in the menu). |
| 843 | .pathbar-segs li:not(:last-child) { |
| 844 | display: none; |
| 845 | } |
| 846 | |
| 847 | .pathbar-segs li + li::before { |
| 848 | display: none; |
| 849 | } |
| 850 | |
| 851 | // Phones have no keyboard, so the shortcut hint goes, and the path keeps the room the search hint |
| 852 | // would take (the icon still marks the bar as search). |
| 853 | .pathbar-edit kbd, |
| 854 | .pathbar-hint { |
| 855 | display: none; |
| 856 | } |
| 857 | |
| 858 | .live-strip { |
| 859 | display: none; |
| 860 | } |
| 861 | } |
| 862 | |
| 863 | @media (max-width: 639px) { |
| 864 | .top-search { |
| 865 | display: none; |
| 866 | } |
| 867 | |
| 868 | } |
| 869 | |
| 870 | @media (min-width: 700px) { |
| 871 | .shell-body > main { |
| 872 | padding: 20px 28px 24px; |
| 873 | } |
| 874 | |
| 875 | .site-footer { |
| 876 | padding: 14px 28px 20px; |
| 877 | } |
| 878 | } |
| 879 | |
| 880 | @media (min-width: 900px) { |
| 881 | .nav-toggle { |
| 882 | display: none; |
| 883 | } |
| 884 | |
| 885 | .shell:has(> .shell-sidebar) { |
| 886 | grid-template-columns: var(--sidebar-w) minmax(0, 1fr); |
| 887 | } |
| 888 | |
| 889 | } |
| 890 | |
| 891 | // Sidebar on the right (the user's preference, set on <html> as data-sidebar). The section sidebar |
| 892 | // takes the second column and its border moves to its inner edge. Below |
| 893 | // 900px the sidebar is hidden either way, so the phone layout and the nav toggle are unchanged. |
| 894 | @media (min-width: 900px) { |
| 895 | html[data-sidebar="right"] .shell:has(> .shell-sidebar) { |
| 896 | grid-template-columns: minmax(0, 1fr) var(--sidebar-w); |
| 897 | } |
| 898 | |
| 899 | } |
| 900 | |
| 901 | // Soft navigation: a thin progress line along the top while a page is being fetched in place |
| 902 | // (nav.js sets aria-busy on <html>). Decorative; the page stays usable underneath. |
| 903 | html[aria-busy="true"] body::before { |
| 904 | content: ""; |
| 905 | position: fixed; |
| 906 | top: 0; |
| 907 | left: 0; |
| 908 | right: 0; |
| 909 | height: 2px; |
| 910 | z-index: 1000; |
| 911 | background: var(--accent); |
| 912 | transform-origin: left center; |
| 913 | pointer-events: none; |
| 914 | animation: soft-nav-progress 1.1s ease-in-out infinite; |
| 915 | } |
| 916 | |
| 917 | @keyframes soft-nav-progress { |
| 918 | 0% { transform: scaleX(0); } |
| 919 | 50% { transform: scaleX(0.7); } |
| 920 | 100% { transform: scaleX(1); opacity: 0; } |
| 921 | } |
| 922 | |
| 923 | @media (prefers-reduced-motion: reduce) { |
| 924 | html[aria-busy="true"] body::before { |
| 925 | animation: none; |
| 926 | transform: scaleX(1); |
| 927 | opacity: 0.45; |
| 928 | } |
| 929 | |
| 930 | .corner-float { |
| 931 | } |
| 932 | |
| 933 | .pill.hot .pill-dot, |
| 934 | .strip-row.hot .pill-dot { |
| 935 | animation: none; |
| 936 | } |
| 937 | } |