LudOkapi's picture
can you make this work correctly
833b632 verified
Raw History Blame Contribute Delete
1.06 kB
/* Reset some default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Basic styles */
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow: hidden;
}
#diagonal-scroll-container {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
}
#content-wrapper {
position: absolute;
will-change: transform;
}
.panel {
position: absolute;
width: 100vw;
height: 100vh;
overflow: hidden;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.5);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.7);
}
/* Ensure navbar and footer stay visible */
diagonal-navbar, diagonal-footer {
position: fixed;
z-index: 1000;
}