global.css (8518B)
1 :root { 2 font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; 3 --canvas: #f3f3f3; 4 --page: #fff; 5 --surface: #fff; 6 --sidebar: #000; 7 --sidebar-active: #333; 8 --topbar: #000; 9 --text: #1b1b1b; 10 --muted: #656a70; 11 --accent: #25a; 12 --accent-hover: #2a66cc; 13 --accent-active: #1b468c; 14 --accent-text: #25a; 15 --accent-text-hover: #2a66cc; 16 --accent-text-active: #1b468c; 17 --on-accent: #fff; 18 --menu-hover: #8884; 19 --row: #00000008; 20 --row-hover: #0000000d; 21 --skeleton: #00000012; 22 --danger: #c9190b; 23 --field-line: rgba(0, 0, 0, 0.42); 24 --shadow: 0 0.125em 0.25em #0008; 25 --hex: url('./hex-grid-light.svg'); 26 } 27 28 *, 29 *::before, 30 *::after { 31 box-sizing: border-box; 32 } 33 34 html, 35 body { 36 margin: 0; 37 padding: 0; 38 } 39 40 body { 41 background: var(--canvas); 42 color: var(--text); 43 -webkit-font-smoothing: antialiased; 44 } 45 46 [hidden] { 47 display: none !important; 48 } 49 50 .topbar { 51 position: sticky; 52 top: 0; 53 z-index: 20; 54 display: flex; 55 align-items: center; 56 justify-content: space-between; 57 gap: 1rem; 58 min-height: 3.5rem; 59 padding: 0 1.5rem; 60 background: var(--topbar); 61 color: rgba(255, 255, 255, 0.76); 62 font-size: 0.875rem; 63 } 64 65 .brand { 66 display: flex; 67 align-items: center; 68 gap: 0.75rem; 69 color: #fff; 70 text-decoration: none; 71 } 72 73 .brand-icon { 74 flex: none; 75 width: 1.125rem; 76 height: 1.125rem; 77 } 78 79 .brand-name { 80 font-size: 1.125rem; 81 font-weight: 500; 82 line-height: 1.3; 83 } 84 85 .app { 86 display: grid; 87 grid-template-columns: minmax(0, 1fr); 88 grid-template-rows: auto minmax(0, 1fr); 89 min-height: calc(100vh - 3.5rem); 90 } 91 92 .sidebar { 93 display: flex; 94 flex-direction: column; 95 min-height: auto; 96 background: var(--sidebar); 97 color: #fff; 98 } 99 100 .nav { 101 display: flex; 102 flex-direction: row; 103 flex-wrap: wrap; 104 padding: 0.75rem 0; 105 } 106 107 .nav-label { 108 display: none; 109 margin: 0; 110 padding: 0.5rem 1.5rem; 111 color: rgba(255, 255, 255, 0.46); 112 font-size: 0.6875rem; 113 font-weight: 600; 114 letter-spacing: 0.08em; 115 text-transform: uppercase; 116 } 117 118 .nav-item { 119 display: flex; 120 align-items: center; 121 justify-content: center; 122 gap: 0.75rem; 123 width: auto; 124 flex: 1; 125 padding: 0.6875rem 1.5rem; 126 color: rgba(255, 255, 255, 0.82); 127 font-size: 0.875rem; 128 line-height: 1.4; 129 text-decoration: none; 130 cursor: pointer; 131 user-select: none; 132 } 133 134 .nav-item span { 135 display: none; 136 } 137 138 .nav-item svg { 139 flex: none; 140 width: 1.125rem; 141 height: 1.125rem; 142 } 143 144 .nav-item:hover { 145 background: var(--menu-hover); 146 color: #fff; 147 } 148 149 .nav-item.is-active { 150 background: var(--sidebar-active); 151 color: #fff; 152 } 153 154 .main { 155 display: flex; 156 flex-direction: column; 157 min-width: 0; 158 } 159 160 .content { 161 width: 100%; 162 max-width: 72rem; 163 margin: 0 auto; 164 padding: 1.75rem 2rem 3rem; 165 } 166 167 .page-header { 168 margin-bottom: 1.5rem; 169 } 170 171 .page-header h1 { 172 margin: 0; 173 font-size: 1.5rem; 174 font-weight: 400; 175 line-height: 1.3; 176 } 177 178 .page-header p { 179 margin: 0.25rem 0 0; 180 color: var(--muted); 181 font-size: 0.875rem; 182 line-height: 1.5; 183 } 184 185 .grid { 186 display: grid; 187 grid-template-columns: minmax(0, 1fr); 188 gap: 1rem; 189 } 190 191 .panel { 192 padding: 1.5rem; 193 background: var(--surface); 194 box-shadow: var(--shadow); 195 } 196 197 .panel-wide { 198 grid-column: 1 / -1; 199 margin-top: 1rem; 200 } 201 202 .panel h2 { 203 margin: 0 0 1.25rem; 204 font-size: 1.0625rem; 205 font-weight: 500; 206 line-height: 1.4; 207 } 208 209 .details { 210 display: grid; 211 gap: 0.875rem; 212 margin: 0; 213 } 214 215 .details > div { 216 display: grid; 217 grid-template-columns: minmax(0, 1fr); 218 gap: 1rem; 219 } 220 221 .details dt { 222 color: var(--muted); 223 font-size: 0.875rem; 224 line-height: 1.5; 225 } 226 227 .details dd { 228 margin: 0; 229 overflow-wrap: anywhere; 230 font-size: 0.875rem; 231 line-height: 1.5; 232 } 233 234 .note { 235 margin: 0; 236 color: var(--muted); 237 font-size: 0.875rem; 238 line-height: 1.6; 239 } 240 241 .button { 242 display: inline-block; 243 padding: 0.625rem 1.25rem; 244 border: 0; 245 border-radius: 0; 246 background: var(--accent); 247 color: var(--on-accent); 248 font: inherit; 249 font-size: 0.8125rem; 250 font-weight: 500; 251 letter-spacing: 0.05em; 252 line-height: 1.4; 253 text-decoration: none; 254 text-transform: uppercase; 255 cursor: pointer; 256 } 257 258 .button:hover { 259 background: var(--accent-hover); 260 } 261 262 .button:active { 263 background: var(--accent-active); 264 } 265 266 .user-menu { 267 position: relative; 268 } 269 270 .user-menu summary { 271 display: grid; 272 place-items: center; 273 width: 2.25rem; 274 height: 2.25rem; 275 color: rgba(255, 255, 255, 0.86); 276 list-style: none; 277 cursor: pointer; 278 user-select: none; 279 } 280 281 .user-menu summary::-webkit-details-marker { 282 display: none; 283 } 284 285 .user-menu summary::marker { 286 content: ''; 287 } 288 289 .user-menu summary:hover, 290 .user-menu[open] summary { 291 color: #fff; 292 } 293 294 .user-menu svg { 295 width: 1.5rem; 296 height: 1.5rem; 297 } 298 299 .user-panel { 300 position: absolute; 301 top: 2.75rem; 302 right: 0; 303 z-index: 10; 304 width: 15rem; 305 background: var(--sidebar); 306 color: #fff; 307 box-shadow: var(--shadow); 308 } 309 310 .user-summary { 311 display: grid; 312 gap: 0.125rem; 313 padding: 0.875rem 1rem; 314 } 315 316 .user-name { 317 font-size: 0.875rem; 318 font-weight: 500; 319 line-height: 1.4; 320 } 321 322 .user-meta { 323 color: rgba(255, 255, 255, 0.56); 324 font-size: 0.75rem; 325 line-height: 1.4; 326 } 327 328 .user-menu-list { 329 display: flex; 330 flex-direction: column; 331 padding: 0.5rem 0; 332 } 333 334 .user-menu-item { 335 display: flex; 336 align-items: center; 337 gap: 0.75rem; 338 width: 100%; 339 padding: 0.625rem 1rem; 340 border: 0; 341 background: transparent; 342 color: rgba(255, 255, 255, 0.82); 343 font: inherit; 344 font-size: 0.875rem; 345 line-height: 1.4; 346 text-align: left; 347 text-decoration: none; 348 cursor: pointer; 349 user-select: none; 350 } 351 352 .user-menu-value { 353 margin-left: auto; 354 color: rgba(255, 255, 255, 0.56); 355 font-size: 0.75rem; 356 } 357 358 .user-menu-item svg { 359 flex: none; 360 width: 1.125rem; 361 height: 1.125rem; 362 } 363 364 .user-menu-item:hover { 365 background: var(--menu-hover); 366 color: #fff; 367 } 368 369 .mockup-controls { 370 position: fixed; 371 right: 1rem; 372 bottom: 1rem; 373 z-index: 100; 374 display: flex; 375 flex-wrap: wrap; 376 align-items: center; 377 gap: 0.25rem; 378 max-width: calc(100vw - 2rem); 379 padding: 0.375rem; 380 background: #000; 381 color: #fff; 382 box-shadow: var(--shadow); 383 font-size: 0.75rem; 384 } 385 386 .mockup-label { 387 padding: 0 0.5rem; 388 color: rgba(255, 255, 255, 0.5); 389 font-size: 0.6875rem; 390 font-weight: 600; 391 letter-spacing: 0.08em; 392 text-transform: uppercase; 393 } 394 395 .mockup-button { 396 padding: 0.375rem 0.625rem; 397 border: 0; 398 background: transparent; 399 color: rgba(255, 255, 255, 0.76); 400 font: inherit; 401 font-size: 0.75rem; 402 cursor: pointer; 403 } 404 405 .mockup-button:hover { 406 background: var(--menu-hover); 407 color: #fff; 408 } 409 410 .mockup-button.is-active { 411 background: var(--sidebar-active); 412 color: #fff; 413 } 414 415 .mockup-separator { 416 width: 0.0625rem; 417 height: 1.25rem; 418 margin: 0 0.25rem; 419 background: rgba(255, 255, 255, 0.18); 420 } 421 422 a:focus-visible, 423 button:focus-visible, 424 summary:focus-visible { 425 outline: 2pt solid var(--accent); 426 outline-offset: 2pt; 427 } 428 429 @media (min-width: 40em) { 430 .nav-item span { 431 display: inline; 432 } 433 434 .details > div { 435 grid-template-columns: 8.5rem minmax(0, 1fr); 436 } 437 } 438 439 @media (min-width: 60em) { 440 .app { 441 grid-template-columns: 15rem minmax(0, 1fr); 442 grid-template-rows: minmax(0, 1fr); 443 } 444 445 .sidebar { 446 min-height: calc(100vh - 3.5rem); 447 } 448 449 .nav { 450 flex: 1; 451 flex-direction: column; 452 flex-wrap: nowrap; 453 } 454 455 .nav-label { 456 display: block; 457 } 458 459 .nav-item { 460 width: 100%; 461 flex: none; 462 justify-content: flex-start; 463 } 464 465 .grid { 466 grid-template-columns: repeat(2, minmax(0, 1fr)); 467 } 468 } 469 470 @media (prefers-color-scheme: dark) { 471 :root:not([data-theme]) { 472 --canvas: #181818; 473 --page: #000; 474 --surface: #282828; 475 --sidebar: #000; 476 --sidebar-active: #333; 477 --topbar: #000; 478 --text: #e7e7e7; 479 --muted: #a0a4a8; 480 --accent-text: #4d8dff; 481 --accent-text-hover: #6ea8ff; 482 --accent-text-active: #3b7cff; 483 --row: #ffffff0d; 484 --row-hover: #ffffff14; 485 --skeleton: #ffffff14; 486 --danger: #f28b82; 487 --field-line: rgba(255, 255, 255, 0.42); 488 --hex: url('./hex-grid-dark.svg'); 489 color-scheme: dark; 490 } 491 } 492 493 :root[data-theme="dark"] { 494 --canvas: #181818; 495 --page: #000; 496 --surface: #282828; 497 --sidebar: #000; 498 --sidebar-active: #333; 499 --topbar: #000; 500 --text: #e7e7e7; 501 --muted: #a0a4a8; 502 --accent-text: #4d8dff; 503 --accent-text-hover: #6ea8ff; 504 --accent-text-active: #3b7cff; 505 --row: #ffffff0d; 506 --row-hover: #ffffff14; 507 --skeleton: #ffffff14; 508 --danger: #f28b82; 509 --field-line: rgba(255, 255, 255, 0.42); 510 --hex: url('./hex-grid-dark.svg'); 511 color-scheme: dark; 512 }