Fix scrollbar appearance on Windows

Scrollbar appearance on Windows improved. Fixed sidebar and main content positioning below the footer.
This commit is contained in:
Kemal Ersin YILMAZ 2025-03-12 17:59:33 +03:00 committed by GitHub
parent 7c65334f53
commit b20226fc9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,8 @@
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
<style>
:root {
--header-height: 145px;
--footer-height: 145px;
--bg-color-light: #ffffff;
--bg-color-dark: #1a1a1a;
--text-color-light: #000000;
@ -24,6 +26,7 @@
color: var(--text-color-light);
margin: 0;
padding: 0;
overflow-y: hidden;
}
body.dark-mode {
@ -55,6 +58,7 @@
}
.site-header {
height: var(--header-height);
padding: 1rem 2rem;
text-align: left;
border-bottom: 1px solid #e1e4e8;
@ -133,6 +137,7 @@
}
.site-footer {
height: var(--footer-height);
padding: 12px 20px;
text-align: center;
border-top: 1px solid #e1e4e8;
@ -497,23 +502,30 @@
width: var(--sidebar-width);
padding: 20px;
border-right: 1px solid #e1e4e8;
height: calc(100vh - 140px);
height: calc(100vh - var(--header-height) - var(--footer-height));
overflow-y: auto;
background-color: var(--bg-color-light);
scrollbar-width: thin;
}
.dark-mode .sidebar {
background-color: var(--bg-color-dark);
border-right-color: #2d2d2d;
scrollbar-color: #2d2d2d transparent;
}
.main-content {
flex: 1;
height: calc(100vh - 140px);
height: calc(100vh - var(--header-height) - var(--footer-height));
overflow-y: auto;
padding: 20px;
padding-top: 0;
position: relative;
scrollbar-width: thin;
}
.dark-mode .main-content {
scrollbar-color: #2d2d2d transparent;
}
.main-content-header {