File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 3
3
top : 50px ;
4
4
left : 0 ;
5
5
z-index : 1000 ;
6
- width : 100 % ;
6
+ width : 275 px ;
7
7
height : 100% ;
8
8
overflow-x : hidden; /* Safari and some others don't support overflow: x y */
9
9
overflow-y : auto;
10
10
-webkit-overflow-scrolling : touch; /* nicer scrolling on touch screens */
11
11
font-family : var (--font-family-sidebar );
12
12
background : var (--sidebar );
13
- visibility : hidden ; /* hidden by default, shown by toggle (on small screens) */
14
- opacity : 0 ;
15
- transition : visibility .25 s ease-out , opacity .25 s ease-out ;
13
+ margin-left : -275 px ; /* invisible by default, shown by toggle */
14
+ transition : margin .25 s ease-out ;
15
+ box-shadow : 0 0 10 px var ( --primary ) ;
16
16
}
17
17
18
18
.sidebar .toggled {
19
- visibility : visible;
20
- opacity : 1 ;
19
+ margin-left : 0 ;
21
20
}
22
21
23
22
.sidebar ul .toc {
124
123
125
124
@media (min-width : 768px ) {
126
125
.sidebar { /* visible by default, hidden by toggle */
127
- width : 275px ;
128
- visibility : visible;
129
- opacity : 1 ;
130
126
margin-left : 0 ;
131
- transition : margin .25s ease-out;
132
127
}
133
128
.sidebar .toggled {
134
129
margin-left : -275px ;
You can’t perform that action at this time.
0 commit comments