File tree Expand file tree Collapse file tree 5 files changed +190
-180
lines changed
Expand file tree Collapse file tree 5 files changed +190
-180
lines changed Original file line number Diff line number Diff line change 11.darkmode {
2- cursor : pointer ;
3- padding : 0 ;
4- position : relative ;
5- background : none ;
6- border : none ;
7- width : 20px ;
8- height : 20px ;
9- margin : 0 ;
10- text-align : inherit ;
11- flex-shrink : 0 ;
12-
13- & svg {
14- position : absolute ;
2+ cursor : pointer ;
3+ padding : 0 ;
4+ position : relative ;
5+ background : none ;
6+ border : none ;
157 width : 20px ;
168 height : 20px ;
17- top : calc (50% - 10px );
18- fill : var (--darkgray );
19- transition : opacity 0.1s ease ;
20- }
9+ text-align : inherit ;
10+ flex-shrink : 0 ;
11+ display : flex ;
12+
13+ & svg {
14+ position : absolute ;
15+ width : 20px ;
16+ height : 20px ;
17+ top : 50% ;
18+ left : 50% ;
19+ transform : translate (-50% , -50% );
20+ fill : var (--darkgray );
21+ transition : opacity 0.1s ease ;
22+ }
2123}
2224
2325:root [saved-theme = " dark" ] {
24- color-scheme : dark ;
26+ color-scheme : dark ;
2527}
2628
2729:root [saved-theme = " light" ] {
28- color-scheme : light ;
30+ color-scheme : light ;
2931}
3032
3133:root [saved-theme = " dark" ] .darkmode {
32- & > .dayIcon {
33- display : none ;
34- }
35- & > .nightIcon {
36- display : inline ;
37- }
34+ & >.dayIcon {
35+ display : none ;
36+ }
37+
38+ & >.nightIcon {
39+ display : inline ;
40+ }
3841}
3942
4043:root .darkmode {
41- & > .dayIcon {
42- display : inline ;
43- }
44- & > .nightIcon {
45- display : none ;
46- }
44+ & >.dayIcon {
45+ display : inline ;
46+ }
47+
48+ & >.nightIcon {
49+ display : none ;
50+ }
4751}
Original file line number Diff line number Diff line change 11.readermode {
2- cursor : pointer ;
3- padding : 0 ;
4- position : relative ;
5- background : none ;
6- border : none ;
7- width : 20px ;
8- height : 20px ;
9- margin : 0 ;
10- text-align : inherit ;
11- flex-shrink : 0 ;
12-
13- & svg {
14- position : absolute ;
2+ cursor : pointer ;
3+ padding : 0 ;
4+ position : relative ;
5+ background : none ;
6+ border : none ;
157 width : 20px ;
168 height : 20px ;
17- top : calc (50% - 10px );
18- fill : var (--darkgray );
19- stroke : var (--darkgray );
20- transition : opacity 0.1s ease ;
21- }
9+ text-align : inherit ;
10+ flex-shrink : 0 ;
11+ display : flex ;
12+
13+ & svg {
14+ position : absolute ;
15+ width : 20px ;
16+ height : 20px ;
17+ top : 50% ;
18+ left : 50% ;
19+ transform : translate (-50% , -50% );
20+ fill : var (--darkgray );
21+ stroke : var (--darkgray );
22+ transition : opacity 0.1s ease ;
23+ }
2224}
2325
2426:root [reader-mode = " on" ] {
25- & .sidebar.left ,
26- & .sidebar.right {
27- opacity : 0 ;
28- transition : opacity 0.2s ease ;
2927
30- & :hover {
31- opacity : 1 ;
28+ & .sidebar.left ,
29+ & .sidebar.right {
30+ opacity : 0 ;
31+ transition : opacity 0.2s ease ;
32+
33+ & :hover {
34+ opacity : 1 ;
35+ }
3236 }
33- }
3437}
Original file line number Diff line number Diff line change 3232 .search-label {
3333 display : block ;
3434
35- @media (max-width : 600 px ) {
35+ @media (max-width : 450 px ) {
3636 display : none ;
3737 }
3838 }
You can’t perform that action at this time.
0 commit comments