removed scrollbar
This commit is contained in:
parent
c9b4ec26fd
commit
bf5aeb677f
@ -4,11 +4,24 @@ $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=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
|
||||
|
||||
|
||||
body {
|
||||
background-color: #05040A;
|
||||
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 {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
|
@ -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`;
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user