Spaces:
Running
Running
Make night panel colors more subtle
Browse files
style.css
CHANGED
|
@@ -431,28 +431,18 @@ html[data-theme="night"] .theme-toggle {
|
|
| 431 |
/* NIGHT COLORED PANELS */
|
| 432 |
|
| 433 |
/*
|
| 434 |
-
|
| 435 |
-
|
|
|
|
|
|
|
| 436 |
*/
|
| 437 |
|
| 438 |
html[data-theme="night"] .card {
|
| 439 |
position: relative;
|
| 440 |
isolation: isolate;
|
| 441 |
overflow: hidden;
|
| 442 |
-
|
| 443 |
-
color: #f8fafc;
|
| 444 |
-
border-color: rgba(226, 232, 240, .55);
|
| 445 |
-
|
| 446 |
-
box-shadow:
|
| 447 |
-
0 10px 26px rgba(0, 0, 0, .34);
|
| 448 |
}
|
| 449 |
|
| 450 |
-
/*
|
| 451 |
-
The fallback is a very light darkening layer.
|
| 452 |
-
Modern browsers additionally apply brightness and saturation to the
|
| 453 |
-
original category-colored background behind this layer.
|
| 454 |
-
*/
|
| 455 |
-
|
| 456 |
html[data-theme="night"] .card::before {
|
| 457 |
content: "";
|
| 458 |
position: absolute;
|
|
@@ -460,15 +450,15 @@ html[data-theme="night"] .card::before {
|
|
| 460 |
z-index: 0;
|
| 461 |
pointer-events: none;
|
| 462 |
|
| 463 |
-
background: rgba(
|
| 464 |
|
| 465 |
-webkit-backdrop-filter:
|
| 466 |
-
brightness(.
|
| 467 |
-
saturate(1.
|
| 468 |
|
| 469 |
backdrop-filter:
|
| 470 |
-
brightness(.
|
| 471 |
-
saturate(1.
|
| 472 |
}
|
| 473 |
|
| 474 |
html[data-theme="night"] .card > * {
|
|
@@ -476,44 +466,12 @@ html[data-theme="night"] .card > * {
|
|
| 476 |
z-index: 1;
|
| 477 |
}
|
| 478 |
|
| 479 |
-
html[data-theme="night"] .card:hover {
|
| 480 |
-
border-color: rgba(248, 250, 252, .75);
|
| 481 |
-
|
| 482 |
-
box-shadow:
|
| 483 |
-
0 14px 34px rgba(0, 0, 0, .44);
|
| 484 |
-
}
|
| 485 |
-
|
| 486 |
html[data-theme="night"] .card:hover::before {
|
| 487 |
-webkit-backdrop-filter:
|
| 488 |
-
brightness(.
|
| 489 |
-
saturate(1.
|
| 490 |
|
| 491 |
backdrop-filter:
|
| 492 |
-
brightness(.
|
| 493 |
-
saturate(1.
|
| 494 |
-
}
|
| 495 |
-
|
| 496 |
-
html[data-theme="night"] .card h3,
|
| 497 |
-
html[data-theme="night"] .card .metrics strong {
|
| 498 |
-
color: #ffffff;
|
| 499 |
-
}
|
| 500 |
-
|
| 501 |
-
html[data-theme="night"] .card p,
|
| 502 |
-
html[data-theme="night"] .card .metrics {
|
| 503 |
-
color: #e2e8f0;
|
| 504 |
-
}
|
| 505 |
-
|
| 506 |
-
html[data-theme="night"] .card .metrics {
|
| 507 |
-
border-top-color: rgba(241, 245, 249, .28);
|
| 508 |
-
}
|
| 509 |
-
|
| 510 |
-
/*
|
| 511 |
-
Badges keep their original category colors.
|
| 512 |
-
They are not affected by the card-background filter.
|
| 513 |
-
*/
|
| 514 |
-
|
| 515 |
-
html[data-theme="night"] .card .badge {
|
| 516 |
-
filter:
|
| 517 |
-
saturate(1.12)
|
| 518 |
-
brightness(.95);
|
| 519 |
}
|
|
|
|
| 431 |
/* NIGHT COLORED PANELS */
|
| 432 |
|
| 433 |
/*
|
| 434 |
+
Very subtle darkening:
|
| 435 |
+
- preserves each category hue;
|
| 436 |
+
- does not recolor text, borders, or badges;
|
| 437 |
+
- avoids gray or washed-out cards.
|
| 438 |
*/
|
| 439 |
|
| 440 |
html[data-theme="night"] .card {
|
| 441 |
position: relative;
|
| 442 |
isolation: isolate;
|
| 443 |
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 444 |
}
|
| 445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 446 |
html[data-theme="night"] .card::before {
|
| 447 |
content: "";
|
| 448 |
position: absolute;
|
|
|
|
| 450 |
z-index: 0;
|
| 451 |
pointer-events: none;
|
| 452 |
|
| 453 |
+
background: rgba(0, 0, 0, .01);
|
| 454 |
|
| 455 |
-webkit-backdrop-filter:
|
| 456 |
+
brightness(.88)
|
| 457 |
+
saturate(1.08);
|
| 458 |
|
| 459 |
backdrop-filter:
|
| 460 |
+
brightness(.88)
|
| 461 |
+
saturate(1.08);
|
| 462 |
}
|
| 463 |
|
| 464 |
html[data-theme="night"] .card > * {
|
|
|
|
| 466 |
z-index: 1;
|
| 467 |
}
|
| 468 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 469 |
html[data-theme="night"] .card:hover::before {
|
| 470 |
-webkit-backdrop-filter:
|
| 471 |
+
brightness(.92)
|
| 472 |
+
saturate(1.08);
|
| 473 |
|
| 474 |
backdrop-filter:
|
| 475 |
+
brightness(.92)
|
| 476 |
+
saturate(1.08);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 477 |
}
|