Skip to content

Commit 80281c3

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 4f886dd commit 80281c3

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
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;
@@ -80,6 +86,14 @@
8086
color: var(--light-font-color);
8187
background-color: #5e5951;
8288
}
89+
90+
form#search {
91+
@include box-shadow(none);
92+
}
93+
94+
input.pagefind-ui__search-input {
95+
background: var(--main-bg);
96+
}
8397
}
8498
}
8599

@@ -101,6 +115,9 @@
101115
--fixed-width-font-color: #{$fixed-width-font-color};
102116
--button-bg-color: #{$button-bg-color};
103117
--button-bg-hover-color: #{$button-bg-hover-color};
118+
--button-color: #{$button-color};
119+
--mark-bg-color: #{$mark-bg-color};
120+
--mark-color: #{$mark-color};
104121
--base-border-color: #{$base-border-color};
105122
--base-border-color-darker-8: #{darken($base-border-color, 8%)};
106123
--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
/**

assets/sass/search.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ ol.full-search-results {
174174
}
175175

176176
button {
177-
border-color: var(--link-color);
178-
color: var(--link-color);
177+
border-color: var(--button-color);
178+
color: var(--button-color);
179179
background: var(--callout-color);
180180
font-weight: bold;
181181
@include border-radius(3px);

0 commit comments

Comments
 (0)