1
0
forked from HPR/hpr_generator

6 Commits

Author SHA1 Message Date
f78789fdc4 Merge pull request 'First cut at dark theme' (#287) from i275_User-desiresa-Dark-Theme into main
Reviewed-on: HPR/hpr_generator#287
2025-10-25 18:05:44 +00:00
4327c15823 Merge branch 'main' into i275_User-desiresa-Dark-Theme 2025-10-25 18:05:17 +00:00
39c14fb3e4 Fix scrollbar issue on chrome based browsers 2025-10-25 13:44:39 -04:00
47e1ebf69c Improve contrast of header and link text for dark theme 2025-10-25 13:06:22 -04:00
88f9362279 Reduce brightness of images for dark theme 2025-10-25 13:04:15 -04:00
96e4d9a402 First cut at dark theme
Add reduced brightness background images for main header and lane
buttons. Use CSS filters to reduce brightness of host page images.
Redefine text and background color variables.
2025-10-23 22:07:30 -04:00
3 changed files with 37 additions and 1 deletions

View File

@@ -349,7 +349,7 @@ article > p,
2px 4px 4px var(--shadow-cards); 2px 4px 4px var(--shadow-cards);
transition: 0.3s; transition: 0.3s;
flex: 1 0 100%; flex: 1 0 100%;
overflow-x: scroll; overflow: auto;
padding-bottom: 1rem; padding-bottom: 1rem;
} }
.lane > article:hover, .lane > article:hover,
@@ -841,3 +841,39 @@ fieldset > table td input[type="radio"] {
max-width: 30%; max-width: 30%;
} }
} }
@media (prefers-color-scheme: dark) {
:root {
--link-primary: #bbdfe7;
--link-header-hover: #b54c08; /* original --link-primary-hover */;
--link-primary-hover: var(--link-secondary-hover);
--background-primary: #4d4d4d; /* HPR Grey */
--text-primary: #dfdfdf /*#fffff7#fafafa#fbfbee #dfdfdf */;
--banner-text-primary: #b6b6b6;
--shadow-secondary-color: hsl(0, 0%, 40%);
--input-border-primary: var(--shadow-secondary-color);
--lane-button-color: #d5e6ea;
}
body > header {
background-image: url("/images/main-header-background-dark.png");
background-color: #22545a;
}
img {
filter: brightness(0.70);
}
a.lane-button {
background-image: url("/images/lane-button-background-dark.png");
color: var(--lane-button-color);
}
a.lane-button img {
filter: none;
}
.lane > article > header {
color: var(--text-secondary);
}
#title a:hover {
color: var(--link-header-hover);
}
#hosts td:nth-child(-n+2) {
color: var(--text-primary);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 KiB