File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ html {
17
17
--color-syntax-string : #718c00 ;
18
18
}
19
19
20
- // To add a new theme, copy the above theme into a new `html[data-theme="name"]`
20
+ // To add a new theme, copy the above theme into a new `html[data-docs-rs- theme="name"]`
21
21
// block below and change the colors
22
22
23
- html [data-theme = " dark" ] {
23
+ html [data-docs-rs- theme = " dark" ] {
24
24
--color-syntax-foreground : inherit ;
25
25
--color-syntax-attribute : #ee6868 ;
26
26
--color-syntax-background : #2a2a2a ;
@@ -39,7 +39,7 @@ html[data-theme="dark"] {
39
39
--color-syntax-string : #83a300 ;
40
40
}
41
41
42
- html [data-theme = " ayu" ] {
42
+ html [data-docs-rs- theme = " ayu" ] {
43
43
--color-syntax-foreground : #e6e1cf ;
44
44
--color-syntax-attribute : #e6e1cf ;
45
45
--color-syntax-background : #191f26 ;
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ html {
32
32
--chart-grid : #ddd ;
33
33
}
34
34
35
- // To add a new theme, copy the above theme into a new `html[data-theme="name"]`
35
+ // To add a new theme, copy the above theme into a new `html[data-docs-rs- theme="name"]`
36
36
// block below and change the colors
37
37
38
- html [data-theme = " dark" ] {
38
+ html [data-docs-rs- theme = " dark" ] {
39
39
color-scheme : dark ;
40
40
--color-background-code : #2a2a2a ;
41
41
--color-background : #353535 ;
@@ -68,7 +68,7 @@ html[data-theme="dark"] {
68
68
--chart-grid : #4e4e4e ;
69
69
}
70
70
71
- html [data-theme = " ayu" ] {
71
+ html [data-docs-rs- theme = " ayu" ] {
72
72
color-scheme : dark ;
73
73
--color-background-code : #191f26 ;
74
74
--color-background : #0f1419 ;
Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
2
function applyTheme ( theme ) {
3
3
if ( theme ) {
4
- document . documentElement . dataset . theme = theme ;
4
+ document . documentElement . dataset . docsRsTheme = theme ;
5
5
}
6
6
}
7
7
You can’t perform that action at this time.
0 commit comments