in
Clone
https://git.tahinli.com/Tahinli/in.git
0 watching0 forksRustAGPL-3.0528.7 KiB9215377Tahinli27 days ago37 commits
| 1 | //! Page frame: the sticky top bar (wordmark, service switcher, right-hand slot) and the main column. |
| 2 | //! Below 720 px the top bar wraps onto two rows and the card grid goes to one column. |
| 3 | |
| 4 | .topbar { |
| 5 | position: sticky; |
| 6 | top: 0; |
| 7 | z-index: 20; |
| 8 | display: flex; |
| 9 | align-items: center; |
| 10 | gap: var(--space-4); |
| 11 | min-height: 3.25rem; |
| 12 | padding: var(--space-2) var(--space-6); |
| 13 | background: var(--topbar); |
| 14 | backdrop-filter: saturate(1.4) blur(8px); |
| 15 | border-bottom: 1px solid var(--border); |
| 16 | } |
| 17 | |
| 18 | .topbar-brand { |
| 19 | display: inline-flex; |
| 20 | align-items: baseline; |
| 21 | gap: var(--space-2); |
| 22 | color: var(--text); |
| 23 | font-weight: 700; |
| 24 | font-size: var(--text-lg); |
| 25 | text-decoration: none; |
| 26 | letter-spacing: -0.02em; |
| 27 | } |
| 28 | |
| 29 | .topbar-brand:hover { |
| 30 | color: var(--accent); |
| 31 | } |
| 32 | |
| 33 | // The service switcher fills the middle of the bar. It is empty until there are services to list. |
| 34 | .switcher { |
| 35 | display: flex; |
| 36 | align-items: center; |
| 37 | flex: 1 1 auto; |
| 38 | gap: var(--space-1); |
| 39 | min-width: 0; |
| 40 | overflow-x: auto; |
| 41 | } |
| 42 | |
| 43 | .switcher:empty { |
| 44 | display: none; |
| 45 | } |
| 46 | |
| 47 | .switcher a { |
| 48 | padding: var(--space-1) var(--space-3); |
| 49 | border-radius: var(--radius-sm); |
| 50 | color: var(--muted); |
| 51 | text-decoration: none; |
| 52 | white-space: nowrap; |
| 53 | } |
| 54 | |
| 55 | .switcher a[aria-current="page"], |
| 56 | .switcher a:hover { |
| 57 | background: var(--surface-2); |
| 58 | color: var(--text); |
| 59 | } |
| 60 | |
| 61 | .topbar-end { |
| 62 | display: flex; |
| 63 | align-items: center; |
| 64 | gap: var(--space-3); |
| 65 | margin-left: auto; |
| 66 | color: var(--muted); |
| 67 | font-size: var(--text-sm); |
| 68 | } |
| 69 | |
| 70 | .page { |
| 71 | width: 100%; |
| 72 | max-width: var(--content-width); |
| 73 | margin: 0 auto; |
| 74 | padding: var(--space-8) var(--space-6) var(--space-8); |
| 75 | } |
| 76 | |
| 77 | .page > * + * { |
| 78 | margin-top: var(--space-6); |
| 79 | } |
| 80 | |
| 81 | .grid-cards { |
| 82 | display: grid; |
| 83 | grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); |
| 84 | gap: var(--space-4); |
| 85 | } |
| 86 | |
| 87 | @media (max-width: 720px) { |
| 88 | .topbar { |
| 89 | flex-wrap: wrap; |
| 90 | gap: var(--space-2) var(--space-3); |
| 91 | padding: var(--space-2) var(--space-4); |
| 92 | } |
| 93 | |
| 94 | .switcher { |
| 95 | order: 3; |
| 96 | flex-basis: 100%; |
| 97 | } |
| 98 | |
| 99 | .topbar-end { |
| 100 | margin-left: 0; |
| 101 | } |
| 102 | |
| 103 | .page { |
| 104 | padding: var(--space-6) var(--space-4); |
| 105 | } |
| 106 | |
| 107 | .grid-cards { |
| 108 | grid-template-columns: 1fr; |
| 109 | } |
| 110 | } |