removed scrollbar

This commit is contained in:
aneuhmanh 2025-04-08 22:03:36 +03:00
parent c9b4ec26fd
commit bf5aeb677f
2 changed files with 14 additions and 9 deletions

View File

@ -4,10 +4,23 @@ $light-violet: #8784C9;
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Playwrite+IT+Moderna:wght@100..400&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Playwrite+IT+Moderna:wght@100..400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
body { body {
background-color: #05040A; background-color: #05040A;
font-family: Nunito, sans-serif; font-family: Nunito, sans-serif;
} }
html, body {
overflow: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
display: none;
}
.container { .container {
position: absolute; position: absolute;

View File

@ -1,8 +0,0 @@
document.addEventListener("DOMContentLoaded", () => {
const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
document.body.style.paddingRight = `${scrollbarWidth}px`;
const navbarHeight = document.querySelector('.navbar').offsetHeight;
document.documentElement.style.scrollPaddingTop = `${navbarHeight}px`;
});