Skip to content

Commit f1314b2

Browse files
committed
Different icon for dark mode
1 parent 0cfdd56 commit f1314b2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

guides/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
type="text"
6666
placeholder="Search the docs..."
6767
/>
68-
<a href="#" onclick="event.preventDefault(); detectDarkTheme(true)"></a>
68+
<a href="#" onclick="event.preventDefault(); detectDarkTheme(true)" class="dark-theme-button"></a>
6969
</div>
7070
</div>
7171
<div class="search-results-container">

guides/css/main.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,17 @@ $dark-theme-container-color: #424242;
4646
body {
4747
font-family: $font;
4848
background: $background-color;
49+
.dark-theme-button::after {
50+
content: ""
51+
}
4952
}
5053

5154
body.dark-theme {
5255
background: $dark-theme-code-background;
5356
color: $dark-theme-font-color;
57+
.dark-theme-button::after {
58+
content: ""
59+
}
5460
}
5561

5662
strong, b {

0 commit comments

Comments
 (0)