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