Skip to content

Commit 28f8114

Browse files
committed
dark-mode: adjust the search
This includes the search box as well as the search results page. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ac25cef commit 28f8114

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

assets/sass/dark-mode.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
$fixed-width-font-color: #4e443c;
1111
$button-bg-color: #dfddd554;
1212
$button-bg-hover-color: #fafafae5;
13+
$button-color: #{$link-color};
14+
$mark-bg-color: #ff0;
15+
$mark-color: #000;
1316
$base-border-color: #d8d7cf;
1417
$callout-color: #e9e8e0;
1518
$highlight-bg-color: #eee0b5;
@@ -28,6 +31,9 @@
2831
$nav-link-color: #979594;
2932
$fixed-width-font-color: #afa7a0;
3033
$button-bg-hover-color: #dfddd599;
34+
$button-color: #{$button-bg-hover-color};
35+
$mark-bg-color: #898882;
36+
$mark-color: #d2d2d2;
3137
$base-border-color: #b3b2a7;
3238
$callout-color: #555555;
3339
$highlight-bg-color: #47412d;
@@ -82,6 +88,14 @@
8288
color: var(--light-font-color);
8389
background-color: #5e5951;
8490
}
91+
92+
form#search {
93+
@include box-shadow(none);
94+
}
95+
96+
input.pagefind-ui__search-input {
97+
background: var(--main-bg);
98+
}
8599
}
86100
}
87101

@@ -103,6 +117,9 @@
103117
--fixed-width-font-color: #{$fixed-width-font-color};
104118
--button-bg-color: #{$button-bg-color};
105119
--button-bg-hover-color: #{$button-bg-hover-color};
120+
--button-color: #{$button-color};
121+
--mark-bg-color: #{$mark-bg-color};
122+
--mark-color: #{$mark-color};
106123
--base-border-color: #{$base-border-color};
107124
--base-border-color-darker-8: #{darken($base-border-color, 8%)};
108125
--base-border-color-lighter-10: #{lighten($base-border-color, 10%)};

assets/sass/normalize.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ h1 {
141141
*/
142142

143143
mark {
144-
background: #ff0;
145-
color: #000;
144+
background: var(--mark-bg-color);
145+
color: var(--mark-color);
146146
}
147147

148148
/**

0 commit comments

Comments
 (0)