Skip to content

Commit

Permalink
dark mode: adjust colors for manual pages' drop-downs
Browse files Browse the repository at this point in the history
The light mode colors in the versions and the translation drop-down
boxes are waaaay to bright in dark mode.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Oct 20, 2024
1 parent 9944956 commit 1bebf7e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions assets/sass/dark-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
$main-bg: #fcfcfa;
$bg-color: #f0efe7 url($baseurl + "images/bg/body.jpg");
$sidebar-bg-color: #efefe7;
$no-changes-bg-color: #f5f5f3;
$dropdown-active-bg-color: #fff;
$versions-footer-bg-color: #eae9e0;

@if $mode == dark {
$orange: #d7834f;
Expand All @@ -37,6 +40,9 @@
$main-bg: #333333;
$bg-color: #2a2a2aff;
$sidebar-bg-color: #3d3d3a;
$no-changes-bg-color: #515150;
$dropdown-active-bg-color: #515150;
$versions-footer-bg-color: #1f1f1e;

:root#{$theme} {
div#masthead {
Expand Down Expand Up @@ -100,6 +106,14 @@
input.pagefind-ui__search-input {
background: var(--main-bg);
}

#reference-version {
background-color: rgba(111, 110, 105, 0.33);
}

#l10n-versions-dropdown footer a {
color: #6969dd;
}
}
}

Expand Down Expand Up @@ -132,6 +146,9 @@
--main-bg: #{$main-bg};
--sidebar-bg-color: #{$sidebar-bg-color};
--bg-color: #{$bg-color};
--no-changes-bg-color: #{$no-changes-bg-color};
--dropdown-active-bg-color: #{$dropdown-active-bg-color};
--versions-footer-bg-color: #{$versions-footer-bg-color};
}
}

Expand Down
2 changes: 1 addition & 1 deletion assets/sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ a.dropdown-trigger {
&.active {
position: relative;
z-index: 200;
background-color: #fff !important;
background-color: var(--dropdown-active-bg-color) !important;
@include border-top-left-radius(3px);
@include border-top-right-radius(3px);
border: solid 1px var(--base-border-color-darker-8);
Expand Down
4 changes: 2 additions & 2 deletions assets/sass/reference.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ h3.plumbing {
font-size: 11px;
font-weight: normal;
color: var(--font-color);
background-color: #eae9e0;
background-color: var(--versions-footer-bg-color);
@include border-bottom-left-radius(3px);
@include border-bottom-right-radius(3px);

Expand Down Expand Up @@ -285,7 +285,7 @@ ol.reference-previous-versions {
@include border-bottom-left-radius(10px);
font-size: 10px;
font-style: italic;
background-color: #f5f5f3;
background-color: var(--no-changes-bg-color);
}
}
}
Expand Down

0 comments on commit 1bebf7e

Please sign in to comment.