Skip to content

Commit 38133d4

Browse files
authored
Merge pull request #843 from kemalersin/main
2 parents 7c65334 + ef3af89 commit 38133d4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

_layouts/default.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
--bg-color-dark: #1a1a1a;
1515
--text-color-light: #000000;
1616
--text-color-dark: #ffffff;
17+
--header-height: 145px;
18+
--footer-height: 145px;
1719
--sidebar-width: 300px;
1820
--accent-color: #10b981;
1921
--accent-color-hover: #059669;
@@ -24,6 +26,7 @@
2426
color: var(--text-color-light);
2527
margin: 0;
2628
padding: 0;
29+
overflow-y: hidden;
2730
}
2831

2932
body.dark-mode {
@@ -65,6 +68,7 @@
6568
display: flex;
6669
justify-content: space-between;
6770
align-items: center;
71+
height: var(--header-height);
6872
}
6973

7074
.dark-mode .site-header {
@@ -142,6 +146,7 @@
142146
left: 0;
143147
right: 0;
144148
z-index: 100;
149+
height: var(--footer-height);
145150
}
146151

147152
.dark-mode .site-footer {
@@ -497,25 +502,30 @@
497502
width: var(--sidebar-width);
498503
padding: 20px;
499504
border-right: 1px solid #e1e4e8;
500-
height: calc(100vh - 140px);
505+
height: calc(100vh - var(--header-height) - var(--footer-height));
501506
overflow-y: auto;
502507
background-color: var(--bg-color-light);
503508
}
504509

505510
.dark-mode .sidebar {
506511
background-color: var(--bg-color-dark);
507512
border-right-color: #2d2d2d;
513+
scrollbar-color: #2d2d2d transparent;
508514
}
509515

510516
.main-content {
511517
flex: 1;
512-
height: calc(100vh - 140px);
518+
height: calc(100vh - var(--header-height) - var(--footer-height));
513519
overflow-y: auto;
514520
padding: 20px;
515521
padding-top: 0;
516522
position: relative;
517523
}
518524

525+
.dark-mode .main-content {
526+
scrollbar-color: #2d2d2d transparent;
527+
}
528+
519529
.main-content-header {
520530
position: sticky;
521531
top: 0;

0 commit comments

Comments
 (0)