File tree Expand file tree Collapse file tree 2 files changed +44
-5
lines changed Expand file tree Collapse file tree 2 files changed +44
-5
lines changed Original file line number Diff line number Diff line change
1
+ : root {
2
+ --example-block-bg : # f5f5f5 ;
3
+ --pre-bg : # f5f5f5 ;
4
+ }
5
+
6
+ [data-md-color-scheme = "default" ] {
7
+ --example-block-bg : # f5f5f5 ;
8
+ --pre-bg : # f5f5f5 ;
9
+ }
10
+
11
+ [data-md-color-scheme = "slate" ] {
12
+ --example-block-bg : # 272a35 ; /* dark theme background */
13
+ --pre-bg : # 272a35 ; /* dark theme background */
14
+ }
15
+
1
16
.md-typeset h1 {
2
17
margin : 0 ;
3
18
}
4
19
.md-typeset h2 {
5
20
margin : 0.5em 0 0 ;
6
21
}
22
+ .md-typeset .example-block {
23
+ overflow-x : auto;
24
+ padding : 0 .2941176471em ;
25
+ background-color : var (--example-block-bg );
26
+ border-radius : .1rem ;
27
+ }
28
+ .md-typeset .example-block p {
29
+ margin : 0 ;
30
+ }
7
31
.md-content__inner > pre {
8
32
margin : 0 ;
9
33
overflow-x : auto;
10
34
padding : 0 .2941176471em ;
11
- background-color : # f5f5f5 ;
35
+ background-color : var ( --pre-bg ) ;
12
36
border-radius : .1rem ;
13
37
}
Original file line number Diff line number Diff line change
1
+ : root {
2
+ --example-block-bg : # f5f5f5 ;
3
+ --pre-bg : # f5f5f5 ;
4
+ }
5
+
6
+ [data-md-color-scheme = "default" ] {
7
+ --example-block-bg : # f5f5f5 ;
8
+ --pre-bg : # f5f5f5 ;
9
+ }
10
+
11
+ [data-md-color-scheme = "slate" ] {
12
+ --example-block-bg : # 272a35 ; /* dark theme background */
13
+ --pre-bg : # 272a35 ; /* dark theme background */
14
+ }
15
+
1
16
.md-typeset h1 {
2
- margin : 0 0 0 em ;
17
+ margin : 0 ;
3
18
}
4
19
.md-typeset h2 {
5
- margin : 0.5em 0 0 em ;
20
+ margin : 0.5em 0 0 ;
6
21
}
7
22
.md-typeset .example-block {
8
23
overflow-x : auto;
9
24
padding : 0 .2941176471em ;
10
- background-color : # f5f5f5 ;
25
+ background-color : var ( --example-block-bg ) ;
11
26
border-radius : .1rem ;
12
27
}
13
28
.md-typeset .example-block p {
17
32
margin : 0 ;
18
33
overflow-x : auto;
19
34
padding : 0 .2941176471em ;
20
- background-color : # f5f5f5 ;
35
+ background-color : var ( --pre-bg ) ;
21
36
border-radius : .1rem ;
22
37
}
You can’t perform that action at this time.
0 commit comments