| 1 | /* The title bar, in the colours of the page under it (titlebar.js sets |
| 2 | them): g1t's rail on g1t's pages, light or dark. 36px tall. */ |
| 3 | :root { |
| 4 | --bg: #050507; |
| 5 | --fg: #ededef; |
| 6 | --muted: #a0a0a8; |
| 7 | --accent: #b6a8ff; |
| 8 | --hover: rgba(237, 237, 239, 0.1); |
| 9 | --pill: rgba(237, 237, 239, 0.09); |
| 10 | --pill-hover: rgba(237, 237, 239, 0.14); |
| 11 | --pill-edge: rgba(237, 237, 239, 0.08); |
| 12 | } |
| 13 | * { |
| 14 | box-sizing: border-box; |
| 15 | } |
| 16 | html, |
| 17 | body { |
| 18 | height: 100%; |
| 19 | margin: 0; |
| 20 | overflow: hidden; |
| 21 | background: var(--bg); |
| 22 | } |
| 23 | .bar { |
| 24 | height: 100%; |
| 25 | display: flex; |
| 26 | align-items: center; |
| 27 | gap: 2px; |
| 28 | padding-left: 6px; |
| 29 | color: var(--muted); |
| 30 | font: |
| 31 | 500 12px/1 system-ui, |
| 32 | "Segoe UI", |
| 33 | -apple-system, |
| 34 | Roboto, |
| 35 | sans-serif; |
| 36 | user-select: none; |
| 37 | -webkit-user-select: none; |
| 38 | cursor: default; |
| 39 | } |
| 40 | .mac .bar { |
| 41 | padding-left: 78px; |
| 42 | } |
| 43 | .side { |
| 44 | display: flex; |
| 45 | align-items: center; |
| 46 | gap: 2px; |
| 47 | flex: 1 1 0; |
| 48 | /* Never narrower than its buttons: the search shrinks instead. */ |
| 49 | min-width: min-content; |
| 50 | } |
| 51 | .end { |
| 52 | justify-content: flex-end; |
| 53 | } |
| 54 | .middle { |
| 55 | flex: 0 1 560px; |
| 56 | min-width: 0; |
| 57 | display: flex; |
| 58 | justify-content: center; |
| 59 | } |
| 60 | button { |
| 61 | all: unset; |
| 62 | box-sizing: border-box; |
| 63 | display: inline-flex; |
| 64 | align-items: center; |
| 65 | justify-content: center; |
| 66 | color: inherit; |
| 67 | } |
| 68 | .icon { |
| 69 | width: 28px; |
| 70 | height: 26px; |
| 71 | border-radius: 6px; |
| 72 | } |
| 73 | .icon:hover { |
| 74 | background: var(--hover); |
| 75 | color: var(--fg); |
| 76 | } |
| 77 | .icon:disabled { |
| 78 | opacity: 0.35; |
| 79 | background: none; |
| 80 | color: inherit; |
| 81 | } |
| 82 | .search { |
| 83 | width: 100%; |
| 84 | height: 24px; |
| 85 | gap: 8px; |
| 86 | padding: 0 10px; |
| 87 | justify-content: flex-start; |
| 88 | border-radius: 6px; |
| 89 | background: var(--pill); |
| 90 | box-shadow: inset 0 0 0 1px var(--pill-edge); |
| 91 | } |
| 92 | .search:hover { |
| 93 | background: var(--pill-hover); |
| 94 | color: var(--fg); |
| 95 | } |
| 96 | .search span, |
| 97 | .title { |
| 98 | overflow: hidden; |
| 99 | text-overflow: ellipsis; |
| 100 | white-space: nowrap; |
| 101 | } |
| 102 | .title { |
| 103 | padding: 0 8px; |
| 104 | } |
| 105 | .caption { |
| 106 | width: 46px; |
| 107 | height: 36px; |
| 108 | } |
| 109 | .caption:hover { |
| 110 | background: var(--hover); |
| 111 | color: var(--fg); |
| 112 | } |
| 113 | .caption.close:hover { |
| 114 | background: #c42b1c; |
| 115 | color: #fff; |
| 116 | } |
| 117 | button:focus-visible { |
| 118 | outline: 2px solid var(--accent); |
| 119 | outline-offset: -2px; |
| 120 | } |
| 121 | /* The runner: a dot in its tone, right beside the settings, the size of |
| 122 | an icon button. A wide window has room for what it is doing too. Its |
| 123 | menu hangs under it, drawn by the page below (the site). */ |
| 124 | .chip { |
| 125 | gap: 7px; |
| 126 | min-width: 28px; |
| 127 | height: 26px; |
| 128 | padding: 0 10px; |
| 129 | border-radius: 6px; |
| 130 | white-space: nowrap; |
| 131 | } |
| 132 | .chip[hidden] { |
| 133 | display: none; |
| 134 | } |
| 135 | .chip:hover, |
| 136 | .chip[aria-expanded="true"] { |
| 137 | background: var(--hover); |
| 138 | color: var(--fg); |
| 139 | } |
| 140 | .chip-dot { |
| 141 | width: 8px; |
| 142 | height: 8px; |
| 143 | flex: none; |
| 144 | border-radius: 50%; |
| 145 | background: var(--muted); |
| 146 | } |
| 147 | .chip[data-tone="ok"] .chip-dot { |
| 148 | background: #4ade80; |
| 149 | } |
| 150 | .chip[data-tone="working"] .chip-dot { |
| 151 | background: #60a5fa; |
| 152 | animation: breathe 1.6s ease-in-out infinite; |
| 153 | } |
| 154 | .chip[data-tone="warning"] .chip-dot { |
| 155 | background: #fbbf24; |
| 156 | } |
| 157 | .chip[data-tone="problem"] .chip-dot { |
| 158 | background: #f87171; |
| 159 | } |
| 160 | .chip[data-tone="off"] .chip-dot { |
| 161 | background: var(--muted); |
| 162 | opacity: 0.6; |
| 163 | } |
| 164 | @keyframes breathe { |
| 165 | 50% { |
| 166 | opacity: 0.35; |
| 167 | } |
| 168 | } |
| 169 | @media (prefers-reduced-motion: reduce) { |
| 170 | .chip[data-tone="working"] .chip-dot { |
| 171 | animation: none; |
| 172 | } |
| 173 | } |
| 174 | /* The dot alone, until the window is wide enough that the words fit |
| 175 | beside it without crowding the search. */ |
| 176 | .chip-text { |
| 177 | display: none; |
| 178 | } |
| 179 | @media (min-width: 1360px) { |
| 180 | .chip-text { |
| 181 | display: inline; |
| 182 | } |
| 183 | } |