File tree Expand file tree Collapse file tree 4 files changed +66
-17
lines changed Expand file tree Collapse file tree 4 files changed +66
-17
lines changed Original file line number Diff line number Diff line change 1
1
* : focus-visible {
2
2
outline-offset : 4px ;
3
3
outline-width : 1px ;
4
- outline-color : # DB83ED ;
5
4
}
6
5
7
6
article .header {
@@ -12,7 +11,6 @@ article .header {
12
11
13
12
body {
14
13
font-size : 1.6rem ;
15
- color : # 000 ;
16
14
margin : 0 auto;
17
15
max-width : 120rem ;
18
16
}
@@ -42,14 +40,10 @@ details > summary {
42
40
43
41
.example {
44
42
flex-grow : 1 ;
45
- overflow-x : scroll !important ;
43
+ overflow-x : auto ;
46
44
margin-top : 10px ;
47
45
}
48
46
49
- .example pre {
50
- background-color : # FAFAFA ;
51
- }
52
-
53
47
.example-container {
54
48
min-height : 300px ;
55
49
display : flex;
@@ -71,7 +65,6 @@ details > summary {
71
65
}
72
66
73
67
.filename {
74
- background-color : # EAEAEA ;
75
68
padding : 10px 5px 10px 5px ;
76
69
}
77
70
@@ -85,12 +78,10 @@ footer {
85
78
86
79
h1 {
87
80
font-size : 2.4rem ;
88
- color : # 6D28D9 ;
89
81
}
90
82
91
83
h2 {
92
84
font-size : 2rem ;
93
- color : # 6D28D9 ;
94
85
}
95
86
96
87
header {
@@ -129,20 +120,14 @@ main {
129
120
padding : 0 2% ;
130
121
}
131
122
main code {
132
- background-color : # EDE4FA ;
133
123
font-family : monospace;
134
124
display : inline-block;
135
125
padding-left : 2px ;
136
126
padding-right : 2px ;
137
127
}
138
128
139
- main pre {
140
- background : # fafafa ;
141
- }
142
-
143
129
main pre code {
144
130
padding : 10px ;
145
- background : # fafafa ;
146
131
}
147
132
148
133
nav .breadcrumb {
@@ -152,7 +137,6 @@ nav.breadcrumb {
152
137
153
138
nav .breadcrumb a {
154
139
font-weight : normal;
155
- color : black;
156
140
text-decoration : underline;
157
141
text-transform : none;
158
142
display : inline;
Original file line number Diff line number Diff line change
1
+ body {
2
+ --bg-color : # FFFFFF ;
3
+ --text-color : # 333 ;
4
+ --outline-color : # DB83ED ;
5
+ --header-color : # 6D28D9 ;
6
+ --anchor : # 0000EE ;
7
+ --bg-nav : transparent;
8
+ --code-color : # FAFAFA ;
9
+ --filename-bg : # EAEAEA ;
10
+ }
11
+
12
+ @media (prefers-color-scheme : dark) {
13
+ body {
14
+ --bg-color : # 33333A ;
15
+ --text-color : # F4F3F8 ;
16
+ --header-color : # 70619E ;
17
+ --anchor : # EB82DC ;
18
+ --bg-nav : # 393939 ;
19
+ --code-color : transparent;
20
+ --filename-bg : # 2C2C2C ;
21
+ }
22
+
23
+ code .hljs {
24
+ background-color : transparent;
25
+ filter : invert (1 );
26
+ }
27
+ }
28
+
29
+ * : focus-visible {
30
+ outline-color : var (--outline-color );
31
+ }
32
+
33
+ body {
34
+ color : var (--text-color );
35
+ background-color : var (--bg-color );
36
+ }
37
+
38
+ h1 , h2 , h3 , h4 , h5 , h6 {
39
+ color : var (--header-color );
40
+ }
41
+
42
+ a {
43
+ color : var (--anchor );
44
+ }
45
+
46
+ input {
47
+ background-color : rgba (255 , 255 , 255 , 0.06 );
48
+ }
49
+
50
+ details {
51
+ border : 2px solid # C7A1FF ;
52
+ }
53
+
54
+ main code , main pre , main pre code , .example pre {
55
+ background-color : var (--code-color );
56
+ }
57
+
58
+ .filename {
59
+ background-color : var (--filename-bg );
60
+ }
61
+
62
+ nav .breadcrumb a {
63
+ color : var (--text-color );
64
+ }
Original file line number Diff line number Diff line change 10
10
< link rel ="stylesheet " href ="/css/highlight.css ">
11
11
< script src ="/js/highlight.min.js "> </ script >
12
12
< link rel ="stylesheet " href ="/css/default.css " />
13
+ < link rel ="stylesheet " href ="/css/theme.css " />
13
14
</ head >
14
15
15
16
< body >
You can’t perform that action at this time.
0 commit comments