File tree 3 files changed +13
-14
lines changed
3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ a > .hljs {
40
40
border-block-end-style : solid;
41
41
}
42
42
# menu-bar .sticky ,
43
- . js # menu-bar-hover-placeholder : hover + # menu-bar ,
44
- . js # menu-bar : hover ,
45
- . js .sidebar-visible # menu-bar {
43
+ # menu-bar-hover-placeholder : hover + # menu-bar ,
44
+ # menu-bar : hover ,
45
+ body .sidebar-visible # menu-bar {
46
46
position : -webkit-sticky;
47
47
position : sticky;
48
48
top : 0 !important ;
@@ -91,7 +91,7 @@ a > .hljs {
91
91
display : flex;
92
92
margin : 0 5px ;
93
93
}
94
- . no-js .left-buttons button {
94
+ html : not (. js ) .left-buttons button {
95
95
display : none;
96
96
}
97
97
@@ -107,7 +107,7 @@ a > .hljs {
107
107
overflow : hidden;
108
108
text-overflow : ellipsis;
109
109
}
110
- .js . menu-title {
110
+ .menu-title {
111
111
cursor : pointer;
112
112
}
113
113
@@ -427,8 +427,7 @@ ul#searchresults span.teaser em {
427
427
-ms-user-select : none;
428
428
user-select : none;
429
429
}
430
- .no-js .sidebar ,
431
- .js : not (.sidebar-resizing ) .sidebar {
430
+ html : not (.sidebar-resizing ) .sidebar {
432
431
transition : transform 0.3s ; /* Animation: slide away */
433
432
}
434
433
.sidebar code {
@@ -465,7 +464,7 @@ ul#searchresults span.teaser em {
465
464
left : calc (var (--sidebar-resize-indicator-width ) * -1 );
466
465
right : unset;
467
466
}
468
- .js . sidebar .sidebar-resize-handle {
467
+ .sidebar .sidebar-resize-handle {
469
468
cursor : col-resize;
470
469
width : calc (var (--sidebar-resize-indicator-width ) - var (--sidebar-resize-indicator-space ));
471
470
}
Original file line number Diff line number Diff line change 112
112
--copy-button-filter-hover : invert (36% ) sepia (70% ) saturate (503% ) hue-rotate (167deg ) brightness (98% ) contrast (89% );
113
113
}
114
114
115
- .light {
115
+ .light , html : not (. js ) {
116
116
--bg : hsl (0 , 0% , 100% );
117
117
--fg : hsl (0 , 0% , 0% );
118
118
258
258
}
259
259
260
260
@media (prefers-color-scheme : dark) {
261
- . light . no-js {
261
+ html : not (. js ) {
262
262
--bg : hsl (200 , 7% , 8% );
263
263
--fg : # 98a3ad ;
264
264
299
299
--searchresults-li-bg : # 2b2b2f ;
300
300
--search-mark-bg : # 355c7d ;
301
301
302
+ --color-scheme : dark;
303
+
302
304
/* Same as `--icons` */
303
305
--copy-button-filter : invert (26% ) sepia (8% ) saturate (575% ) hue-rotate (169deg ) brightness (87% ) contrast (82% );
304
306
/* Same as `--sidebar-active` */
Original file line number Diff line number Diff line change 53
53
<script async src =" https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML" ></script >
54
54
{{ /if }}
55
55
</head >
56
- <body class =" sidebar-visible no-js " >
56
+ <body class =" sidebar-visible" >
57
57
<div id =" body-container" >
58
58
<!-- Provide site root to javascript -->
59
59
<script >
85
85
var html = document .querySelector (' html' );
86
86
html .classList .remove (' {{ default_theme }}' )
87
87
html .classList .add (theme);
88
- var body = document .querySelector (' body' );
89
- body .classList .remove (' no-js' )
90
- body .classList .add (' js' );
88
+ html .classList .add (" js" );
91
89
</script >
92
90
93
91
<input type =" checkbox" id =" sidebar-toggle-anchor" class =" hidden" >
You can’t perform that action at this time.
0 commit comments