Skip to content

Commit 6cd6af6

Browse files
committed
dark-mode: replace hard-coded #fff with the --main-bg property
This is a step in the right direction, there is one more instance of `#fff` (active drop-down titles) but it will be handled differently because `--main-bg` would be too dark. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d8c3f0d commit 6cd6af6

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

assets/sass/application.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ code {
3535
}
3636

3737
pre {
38-
background-color: #fff;
38+
background-color: var(--main-bg);
3939
border: solid 1px #efeee6;
4040
border-radius: 3px;
4141
color: var(--orange);

assets/sass/forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ form#search {
5757

5858
&.focus {
5959
border-color: #007175;
60-
background-color: #fff;
60+
background-color: var(--main-bg);
6161
}
6262
}
6363

assets/sass/front-page.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ $monitor-height: 271px;
132132
height: $monitor-height - 45;
133133
padding-top: 45px;
134134
padding-left: 40px;
135-
color: #fff;
135+
color: var(--main-bg);
136136
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
137137

138138
h4 {
139139
font-weight: normal;
140-
color: #fff;
140+
color: var(--main-bg);
141141
font-size: 16px;
142142
}
143143

@@ -166,7 +166,7 @@ $monitor-height: 271px;
166166
padding: 5px 0;
167167
margin-top: 10px;
168168
font-size: 16px;
169-
color: #fff;
169+
color: var(--main-bg);
170170
text-align: center;
171171
background-image: linear-gradient(#1c868c, #186368);
172172
border-top: solid 1px #085e64;

assets/sass/layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ a.dropdown-trigger {
310310
position: absolute;
311311
z-index: 199;
312312
display: none;
313-
background-color: #fff;
313+
background-color: var(--main-bg);
314314
border: solid 1px var(--base-border-color-darker-8);
315315
@include border-radius(3px);
316316
@include box-shadow(0 1px 2px #ccc);

assets/sass/lists.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ ol#about-nav {
102102

103103
&.current {
104104
@include background-image-2x($baseurl + "images/icons/nav-circles", 90px, 180px, 0 -90px);
105-
color: #fff;
105+
color: var(--main-bg);
106106
opacity: 1;
107107
}
108108

assets/sass/search.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
table {
2727
width: 100%;
2828
line-height: 1;
29-
background-color: #fff;
29+
background-color: var(--main-bg);
3030
@include border-bottom-right-radius(3px);
3131
@include border-bottom-left-radius(3px);
3232

@@ -60,13 +60,13 @@
6060

6161
&:hover,
6262
&.highlight {
63-
color: #fff;
63+
color: var(--main-bg);
6464
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
6565
background: #55bec4;
6666
background-image: linear-gradient(#55bec4, #54b2b7);
6767

6868
span {
69-
color: #fff;
69+
color: var(--main-bg);
7070
}
7171
}
7272
}

assets/sass/typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ code {
260260
line-height: $fixed-width-line-height;
261261
font-variant-ligatures: none;
262262
color: var(--orange);
263-
background-color: #fff;
263+
background-color: var(--main-bg);
264264
border: solid 1px #efeee6;
265265
}
266266

0 commit comments

Comments
 (0)