Skip to content

Commit 3abc6ac

Browse files
committed
dark mode: adjust colors for manual pages' drop-downs
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]>
1 parent 070fec6 commit 3abc6ac

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

assets/sass/dark-mode.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
$main-bg: #fcfcfa;
1919
$bg-color: #f0efe7 url($baseurl + "images/bg/body.jpg");
2020
$sidebar-bg-color: #efefe7;
21+
$no-changes-bg-color: #f5f5f3;
22+
$dropdown-active-bg-color: #fff;
23+
$versions-footer-bg-color: #eae9e0;
2124

2225
@if $mode == dark {
2326
$orange: #d7834f;
@@ -37,6 +40,9 @@
3740
$main-bg: #333333;
3841
$bg-color: #2a2a2aff;
3942
$sidebar-bg-color: #3d3d3a;
43+
$no-changes-bg-color: #515150;
44+
$dropdown-active-bg-color: #515150;
45+
$versions-footer-bg-color: #1f1f1e;
4046

4147
:root#{$theme} {
4248
div#masthead {
@@ -96,6 +102,14 @@
96102
input.pagefind-ui__search-input {
97103
background: var(--main-bg);
98104
}
105+
106+
#reference-version {
107+
background-color: rgba(111, 110, 105, 0.33);
108+
}
109+
110+
#l10n-versions-dropdown footer a {
111+
color: #6969dd;
112+
}
99113
}
100114
}
101115

@@ -128,6 +142,9 @@
128142
--main-bg: #{$main-bg};
129143
--sidebar-bg-color: #{$sidebar-bg-color};
130144
--bg-color: #{$bg-color};
145+
--no-changes-bg-color: #{$no-changes-bg-color};
146+
--dropdown-active-bg-color: #{$dropdown-active-bg-color};
147+
--versions-footer-bg-color: #{$versions-footer-bg-color};
131148
}
132149
}
133150

assets/sass/layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ a.dropdown-trigger {
298298
&.active {
299299
position: relative;
300300
z-index: 200;
301-
background-color: #fff !important;
301+
background-color: var(--dropdown-active-bg-color) !important;
302302
@include border-top-left-radius(3px);
303303
@include border-top-right-radius(3px);
304304
border: solid 1px var(--base-border-color-darker-8);

assets/sass/reference.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ h3.plumbing {
131131
font-size: 11px;
132132
font-weight: normal;
133133
color: var(--font-color);
134-
background-color: #eae9e0;
134+
background-color: var(--versions-footer-bg-color);
135135
@include border-bottom-left-radius(3px);
136136
@include border-bottom-right-radius(3px);
137137

@@ -285,7 +285,7 @@ ol.reference-previous-versions {
285285
@include border-bottom-left-radius(10px);
286286
font-size: 10px;
287287
font-style: italic;
288-
background-color: #f5f5f3;
288+
background-color: var(--no-changes-bg-color);
289289
}
290290
}
291291
}

0 commit comments

Comments
 (0)