1
+ $color-mode-type : media- query;
2
+
1
3
@import " ~bootstrap/scss/bootstrap" ;
2
4
@import " github-fork-ribbon-css/gh-fork-ribbon.css" ;
3
- @import " highlight.js/styles/github.css" ;
5
+
6
+ @import url (' highlight.js/styles/github-dark.css' ) screen and (prefers-color-scheme : dark );
7
+ @import url (' highlight.js/styles/github.css' ) screen and (prefers-color-scheme : light );
4
8
5
9
#language-navbar {
6
10
border-bottom : none ;
7
11
}
8
12
9
13
.nav-item > .nav-link {
10
14
& .active , & :hover {
11
- background-color : #f8f8f8 ;
15
+ background-color : #f6f8fa ;
12
16
border-bottom : none ;
13
17
transition : none ;
14
18
}
15
19
}
20
+ @media (prefers-color-scheme : dark ) {
21
+ .nav-item > .nav-link {
22
+ & .active , & :hover {
23
+ background-color : rgb (13 , 17 , 23 );
24
+ }
25
+ }
26
+ }
16
27
17
28
.nav-link {
18
29
// Don't briefly draw a blue bar under Node.js dropdown after hovering over it
38
49
39
50
.nav.error > .nav-item > .nav-link {
40
51
& .active , & :hover {
41
- background-color : #ffcdcd ;
42
- border-color : #ffcdcd ;
52
+ color : #1f2328 !important ;
53
+ background-color : #ffebe9 ;
54
+ border-color : #ffebe9 ;
55
+ }
56
+ }
57
+ @media (prefers-color-scheme : dark ) {
58
+ .nav.error > .nav-item > .nav-link {
59
+ & .active , & :hover {
60
+ color : #fff !important ;
61
+ border-color : var (--bs-danger );
62
+ background-color : var (--bs-danger );
63
+ }
43
64
}
44
65
}
45
66
59
80
}
60
81
61
82
#generated-code {
62
- border-color : #f8f8f8 ;
63
- background-color : #f8f8f8 ;
83
+ border-color : #f6f8fa ;
84
+ background-color : #f6f8fa ;
85
+ }
86
+ @media (prefers-color-scheme : dark ) {
87
+ #generated-code {
88
+ border-color : rgb (13 , 17 , 23 );
89
+ background-color : rgb (13 , 17 , 23 );
90
+ }
64
91
}
65
92
66
- #warnings {
67
- border-color : #ffffdd ;
68
- background-color : #ffffdd ;
69
93
94
+ #warnings {
70
95
/* if the error is very long, without this the yellow stops when you scroll right */
71
96
overflow-x : auto ;
72
97
min-width : 100% ;
73
98
}
99
+ #warnings {
100
+ color : #1f2328 !important ;
101
+ border-color : #fff8c5 ;
102
+ background-color : #fff8c5 ;
103
+ }
104
+ @media (prefers-color-scheme : dark ) {
105
+ #warnings {
106
+ color : #000 !important ;
107
+ border-color : var (--bs-warning );
108
+ background-color : var (--bs-warning );
109
+ }
110
+ }
74
111
75
112
/* At least Chrome on macOS adds a bottom margin */
76
113
pre {
@@ -85,11 +122,24 @@ code {
85
122
#generated-code {
86
123
display : block ;
87
124
overflow-x : auto ;
125
+ }
88
126
127
+ #generated-code {
89
128
/* The output should be marked as plaintext only when there's an error. */
90
129
& .language-plaintext {
91
- border-color : #ffcdcd ;
92
- background-color : #ffcdcd ;
130
+ color : #1f2328 !important ;
131
+ background-color : #ffebe9 ;
132
+ border-color : #ffebe9 ;
133
+ }
134
+ }
135
+ @media (prefers-color-scheme : dark ) {
136
+ #generated-code {
137
+ /* The output should be marked as plaintext only when there's an error. */
138
+ & .language-plaintext {
139
+ color : #fff !important ;
140
+ border-color : var (--bs-danger );
141
+ background-color : var (--bs-danger );
142
+ }
93
143
}
94
144
}
95
145
0 commit comments