File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 14
14
--bg-color-dark : # 1a1a1a ;
15
15
--text-color-light : # 000000 ;
16
16
--text-color-dark : # ffffff ;
17
+ --header-height : 145px ;
18
+ --footer-height : 145px ;
17
19
--sidebar-width : 300px ;
18
20
--accent-color : # 10b981 ;
19
21
--accent-color-hover : # 059669 ;
24
26
color : var (--text-color-light );
25
27
margin : 0 ;
26
28
padding : 0 ;
29
+ overflow-y : hidden;
27
30
}
28
31
29
32
body .dark-mode {
65
68
display : flex;
66
69
justify-content : space-between;
67
70
align-items : center;
71
+ height : var (--header-height );
68
72
}
69
73
70
74
.dark-mode .site-header {
142
146
left : 0 ;
143
147
right : 0 ;
144
148
z-index : 100 ;
149
+ height : var (--footer-height );
145
150
}
146
151
147
152
.dark-mode .site-footer {
497
502
width : var (--sidebar-width );
498
503
padding : 20px ;
499
504
border-right : 1px solid # e1e4e8 ;
500
- height : calc (100vh - 140 px );
505
+ height : calc (100vh - var ( --header-height ) - var ( --footer-height ) );
501
506
overflow-y : auto;
502
507
background-color : var (--bg-color-light );
503
508
}
504
509
505
510
.dark-mode .sidebar {
506
511
background-color : var (--bg-color-dark );
507
512
border-right-color : # 2d2d2d ;
513
+ scrollbar-color : # 2d2d2d transparent;
508
514
}
509
515
510
516
.main-content {
511
517
flex : 1 ;
512
- height : calc (100vh - 140 px );
518
+ height : calc (100vh - var ( --header-height ) - var ( --footer-height ) );
513
519
overflow-y : auto;
514
520
padding : 20px ;
515
521
padding-top : 0 ;
516
522
position : relative;
517
523
}
518
524
525
+ .dark-mode .main-content {
526
+ scrollbar-color : # 2d2d2d transparent;
527
+ }
528
+
519
529
.main-content-header {
520
530
position : sticky;
521
531
top : 0 ;
You can’t perform that action at this time.
0 commit comments