Skip to content

Commit 148a592

Browse files
committed
dark-mode: adjust the background
In dark mode, we do not actually want the textured background. Also, the sidebar needs to be adjusted, it had a hard-coded, very bright background. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent fad54b4 commit 148a592

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

assets/sass/dark-mode.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
$highlight-bg-color: #eee0b5;
1515
$black-3: #333333;
1616
$main-bg: #fcfcfa;
17+
$bg-color: #f0efe7 url($baseurl + "images/bg/body.jpg");
18+
$sidebar-bg-color: #efefe7;
1719

1820
@if $mode == dark {
1921
$orange: #d7834f;
@@ -29,6 +31,8 @@
2931
$highlight-bg-color: #47412d;
3032
$black-3: #cccccc;
3133
$main-bg: #333333;
34+
$bg-color: #2a2a2aff;
35+
$sidebar-bg-color: #3d3d3a;
3236
}
3337

3438
:root#{$theme} {
@@ -56,6 +60,8 @@
5660

5761
--black-3: #{$black-3};
5862
--main-bg: #{$main-bg};
63+
--sidebar-bg-color: #{$sidebar-bg-color};
64+
--bg-color: #{$bg-color};
5965
}
6066
}
6167

assets/sass/errors.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body {
66
line-height: $base-line-height;
77
font-family: $base-font-family;
88
color: var(--font-color);
9-
background: #f0efe7 url($baseurl + "images/bg/body.jpg");
9+
background: var(--bg-color);
1010
}
1111

1212
// windows chrome makes a mess of Adelle web font

assets/sass/layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body {
88
font-size: $base-font-size;
99
line-height: $base-line-height;
1010
color: var(--font-color);
11-
background: #f0efe7 url($baseurl + "images/bg/body.jpg");
11+
background: var(--bg-color);
1212
}
1313

1414
// windows chrome makes a mess of Adelle web font

assets/sass/mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383

8484
@mixin responsive-sidebar-ui {
85-
background-color: #efefe7;
85+
background-color: var(--sidebar-bg-color);
8686
z-index: 305;
8787
left: 0;
8888
box-shadow: 6px 2px 8px 0px rgba(28,28,28,0.10%);

0 commit comments

Comments
 (0)