| 1 | :root { |
| 2 | color-scheme: dark; |
| 3 | font-family: "Segoe UI", sans-serif; |
| 4 | background: #12151b; |
| 5 | color: #e8e4d9; |
| 6 | } |
| 7 | |
| 8 | html, body { |
| 9 | margin: 0; |
| 10 | min-height: 100%; |
| 11 | } |
| 12 | |
| 13 | body > header { |
| 14 | padding: 0.6rem 1rem; |
| 15 | border-bottom: 1px solid #2c3340; |
| 16 | } |
| 17 | |
| 18 | body > aside { |
| 19 | position: absolute; |
| 20 | left: 0; |
| 21 | top: 56px; |
| 22 | width: 250px; |
| 23 | bottom: 0; |
| 24 | overflow: auto; |
| 25 | padding: 0.75rem; |
| 26 | box-sizing: border-box; |
| 27 | background: #1a1e26; |
| 28 | border-right: 1px solid #2c3340; |
| 29 | } |
| 30 | |
| 31 | #changelog-wrap { |
| 32 | position: absolute; |
| 33 | right: 0; |
| 34 | top: 56px; |
| 35 | width: 280px; |
| 36 | bottom: 0; |
| 37 | overflow: auto; |
| 38 | padding: 0.75rem; |
| 39 | box-sizing: border-box; |
| 40 | background: #1a1e26; |
| 41 | border-left: 1px solid #2c3340; |
| 42 | } |
| 43 | |
| 44 | .nav, .palette { |
| 45 | display: flex; |
| 46 | flex-direction: column; |
| 47 | gap: 0.35rem; |
| 48 | margin: 0.75rem 0; |
| 49 | } |
| 50 | |
| 51 | button, input { |
| 52 | font: inherit; |
| 53 | background: #101216; |
| 54 | color: inherit; |
| 55 | border: 1px solid #3a4250; |
| 56 | padding: 0.3rem 0.5rem; |
| 57 | } |
| 58 | |
| 59 | button { cursor: pointer; } |
| 60 | button:disabled { |
| 61 | opacity: 0.45; |
| 62 | cursor: not-allowed; |
| 63 | } |
| 64 | #apply-status.ok { color: #b8d4a0; } |
| 65 | .error { color: #f0a0a0; } |
| 66 | .hint { color: #9aa3b2; font-size: 0.85rem; } |
| 67 | .open-toggle { display: flex; gap: 0.4rem; align-items: center; } |
| 68 | article { margin-bottom: 0.75rem; } |
| 69 | fieldset { border-color: #3a4250; margin-top: 1rem; } |
| 70 | #selection-border { |
| 71 | position: fixed; |
| 72 | pointer-events: none; |
| 73 | box-sizing: border-box; |
| 74 | border: 2px solid #e23d3d; |
| 75 | box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55); |
| 76 | z-index: 4; |
| 77 | } |
| 78 | |
| 79 | label { display: block; margin: 0.4rem 0; } |
| 80 | |
| 81 | #settings-backdrop { |
| 82 | position: fixed; |
| 83 | inset: 0; |
| 84 | background: rgba(0, 0, 0, 0.62); |
| 85 | z-index: 19; |
| 86 | } |
| 87 | |
| 88 | #settings-modal { |
| 89 | position: fixed; |
| 90 | inset: 4vh 4vw; |
| 91 | z-index: 20; |
| 92 | display: flex; |
| 93 | background: #161a22; |
| 94 | border: 1px solid #3a4250; |
| 95 | box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); |
| 96 | } |
| 97 | |
| 98 | #settings-modal[hidden], |
| 99 | #settings-backdrop[hidden] { |
| 100 | display: none !important; |
| 101 | } |
| 102 | |
| 103 | #settings-main { |
| 104 | flex: 1; |
| 105 | min-width: 0; |
| 106 | display: flex; |
| 107 | flex-direction: column; |
| 108 | } |
| 109 | |
| 110 | #settings-main header, |
| 111 | #settings-main footer { |
| 112 | display: flex; |
| 113 | align-items: center; |
| 114 | justify-content: space-between; |
| 115 | gap: 0.75rem; |
| 116 | padding: 0.75rem 1rem; |
| 117 | border-bottom: 1px solid #2c3340; |
| 118 | } |
| 119 | |
| 120 | #settings-main footer { |
| 121 | border-bottom: 0; |
| 122 | border-top: 1px solid #2c3340; |
| 123 | } |
| 124 | |
| 125 | #settings-form { |
| 126 | flex: 1; |
| 127 | overflow: auto; |
| 128 | padding: 0; |
| 129 | display: flex; |
| 130 | flex-direction: column; |
| 131 | min-height: 0; |
| 132 | } |
| 133 | |
| 134 | .settings-tabs { |
| 135 | display: flex; |
| 136 | flex-wrap: wrap; |
| 137 | gap: 0.25rem; |
| 138 | padding: 0.65rem 1rem 0.5rem; |
| 139 | border-bottom: 1px solid #2c3340; |
| 140 | background: #12151c; |
| 141 | } |
| 142 | |
| 143 | .settings-tab { |
| 144 | appearance: none; |
| 145 | border: 1px solid transparent; |
| 146 | background: transparent; |
| 147 | color: #a8a295; |
| 148 | padding: 0.35rem 0.7rem; |
| 149 | border-radius: 4px; |
| 150 | cursor: pointer; |
| 151 | font: inherit; |
| 152 | } |
| 153 | |
| 154 | .settings-tab:hover { |
| 155 | color: #e8e2d4; |
| 156 | background: #1c222c; |
| 157 | } |
| 158 | |
| 159 | .settings-tab.active { |
| 160 | color: #1a1510; |
| 161 | background: #d4c48a; |
| 162 | border-color: #d4c48a; |
| 163 | } |
| 164 | |
| 165 | .settings-panels { |
| 166 | flex: 1; |
| 167 | overflow: auto; |
| 168 | padding: 0.75rem 1rem 1.25rem; |
| 169 | } |
| 170 | |
| 171 | .settings-category { |
| 172 | margin-bottom: 0; |
| 173 | } |
| 174 | |
| 175 | .settings-category h3 { |
| 176 | margin: 0 0 0.5rem; |
| 177 | font-size: 0.95rem; |
| 178 | color: #d4c48a; |
| 179 | border-bottom: 1px solid #2c3340; |
| 180 | padding-bottom: 0.25rem; |
| 181 | } |
| 182 | |
| 183 | .setting-row { |
| 184 | display: grid; |
| 185 | grid-template-columns: minmax(12rem, 1fr) minmax(8rem, 14rem) 4rem; |
| 186 | gap: 0.4rem 0.75rem; |
| 187 | align-items: center; |
| 188 | padding: 0.45rem 0.5rem; |
| 189 | margin: 0.2rem 0; |
| 190 | border-radius: 4px; |
| 191 | } |
| 192 | |
| 193 | .setting-row .hint { |
| 194 | grid-column: 1 / -1; |
| 195 | margin: 0; |
| 196 | } |
| 197 | |
| 198 | .setting-row.dirty { |
| 199 | background: #4a3d18; |
| 200 | box-shadow: inset 0 0 0 1px #c4a35a; |
| 201 | } |
| 202 | |
| 203 | .setting-value { |
| 204 | font-variant-numeric: tabular-nums; |
| 205 | color: #c5c0b4; |
| 206 | } |
| 207 | |
| 208 | #settings-log-wrap { |
| 209 | width: min(340px, 32vw); |
| 210 | flex-shrink: 0; |
| 211 | border-left: 1px solid #2c3340; |
| 212 | display: flex; |
| 213 | flex-direction: column; |
| 214 | background: #1a1e26; |
| 215 | } |
| 216 | |
| 217 | #settings-log-wrap h2 { |
| 218 | margin: 0; |
| 219 | padding: 0.75rem 1rem; |
| 220 | border-bottom: 1px solid #2c3340; |
| 221 | font-size: 1rem; |
| 222 | } |
| 223 | |
| 224 | #settings-log { |
| 225 | flex: 1; |
| 226 | overflow: auto; |
| 227 | padding: 0.75rem 1rem; |
| 228 | } |
| 229 | |
| 230 | #palette-backdrop, |
| 231 | #tile-config-backdrop { |
| 232 | position: fixed; |
| 233 | inset: 0; |
| 234 | background: rgba(0, 0, 0, 0.62); |
| 235 | z-index: 19; |
| 236 | } |
| 237 | |
| 238 | #palette-modal, |
| 239 | #tile-config-modal { |
| 240 | position: fixed; |
| 241 | z-index: 20; |
| 242 | display: flex; |
| 243 | flex-direction: column; |
| 244 | background: #161a22; |
| 245 | border: 1px solid #3a4250; |
| 246 | box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); |
| 247 | } |
| 248 | |
| 249 | #palette-modal { |
| 250 | inset: 8vh 12vw; |
| 251 | } |
| 252 | |
| 253 | #tile-config-modal { |
| 254 | top: 20vh; |
| 255 | left: 50%; |
| 256 | transform: translateX(-50%); |
| 257 | width: min(420px, 90vw); |
| 258 | } |
| 259 | |
| 260 | #palette-modal[hidden], |
| 261 | #palette-backdrop[hidden], |
| 262 | #tile-config-modal[hidden], |
| 263 | #tile-config-backdrop[hidden], |
| 264 | #tile-tooltip[hidden] { |
| 265 | display: none !important; |
| 266 | } |
| 267 | |
| 268 | #palette-modal > header, |
| 269 | #tile-config-modal > header, |
| 270 | #tile-config-modal > footer { |
| 271 | display: flex; |
| 272 | align-items: center; |
| 273 | justify-content: space-between; |
| 274 | gap: 0.75rem; |
| 275 | padding: 0.75rem 1rem; |
| 276 | border-bottom: 1px solid #2c3340; |
| 277 | } |
| 278 | |
| 279 | #tile-config-modal > footer { |
| 280 | border-bottom: 0; |
| 281 | border-top: 1px solid #2c3340; |
| 282 | } |
| 283 | |
| 284 | #palette-panels { |
| 285 | flex: 1; |
| 286 | overflow: auto; |
| 287 | padding: 0.75rem 1rem 1.25rem; |
| 288 | } |
| 289 | |
| 290 | .palette-grid { |
| 291 | display: grid; |
| 292 | grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); |
| 293 | gap: 0.6rem; |
| 294 | } |
| 295 | |
| 296 | .palette-card { |
| 297 | display: flex; |
| 298 | flex-direction: column; |
| 299 | align-items: center; |
| 300 | gap: 0.35rem; |
| 301 | padding: 0.55rem 0.4rem; |
| 302 | min-height: 6.5rem; |
| 303 | } |
| 304 | |
| 305 | .palette-thumb { |
| 306 | width: 48px; |
| 307 | height: 48px; |
| 308 | display: grid; |
| 309 | place-items: center; |
| 310 | background: #0d1016; |
| 311 | border: 1px solid #2c3340; |
| 312 | image-rendering: pixelated; |
| 313 | font-weight: 600; |
| 314 | color: #9aa3b2; |
| 315 | } |
| 316 | |
| 317 | .palette-thumb img { |
| 318 | width: 100%; |
| 319 | height: 100%; |
| 320 | object-fit: contain; |
| 321 | image-rendering: pixelated; |
| 322 | } |
| 323 | |
| 324 | #tile-config-form { |
| 325 | padding: 0.75rem 1rem 1rem; |
| 326 | display: flex; |
| 327 | flex-direction: column; |
| 328 | gap: 0.35rem; |
| 329 | } |
| 330 | |
| 331 | #tile-tooltip { |
| 332 | position: fixed; |
| 333 | z-index: 15; |
| 334 | pointer-events: none; |
| 335 | max-width: 16rem; |
| 336 | padding: 0.4rem 0.55rem; |
| 337 | background: rgba(12, 14, 18, 0.92); |
| 338 | border: 1px solid #3a4250; |
| 339 | color: #e8e4d9; |
| 340 | font-size: 0.8rem; |
| 341 | white-space: pre-wrap; |
| 342 | box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); |
| 343 | } |
| 344 | |