mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2025-06-06 18:30:59 +00:00
Fix scrollbar appearance on Windows
Scrollbar appearance on Windows improved. Fixed sidebar and main content positioning below the footer.
This commit is contained in:
parent
7c65334f53
commit
b20226fc9f
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user