Skip to content

Commit 863eb56

Browse files
author
mirkobrombin
committed
add dark-mode
1 parent 9769bff commit 863eb56

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

assets/css/dark.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@media (prefers-color-scheme: dark) {
2+
body {
3+
background-color: #1d1c1e;
4+
color: #f0eef7;
5+
}
6+
7+
a {
8+
color: #f2efff;
9+
}
10+
11+
nav a:not(.brand):not(.button):hover, article p a {
12+
color: #00b7ff;
13+
}
14+
15+
.highlighter-rouge {
16+
background-color: #2f3438;
17+
}
18+
19+
pre>code {
20+
background-color: #2f3438;
21+
}
22+
}

assets/css/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@import url('https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp');
55
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');
66
@import url('https://usebottles.com/assets/css/style.css');
7+
@import url('/assets/css/dark.css');
78

89
body {
910
font-size: 18px;

dependencies/Introduction.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,3 @@ before this one.
120120

121121
There are also more complex actions but we will not cover them here, refer
122122
to the [Actions](/dependencies/structure/Actions.md) page for more information.
123-

0 commit comments

Comments
 (0)