mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-04-22 21:22:24 +02:00
32 lines
659 B
CSS
32 lines
659 B
CSS
/* Set the scroll container to only scroll vertically */
|
|
.scroll-container {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
/* Hide native scrollbar */
|
|
scrollbar-width: none; /* Firefox */
|
|
}
|
|
|
|
.scroll-container::-webkit-scrollbar {
|
|
display: none; /* WebKit */
|
|
}
|
|
|
|
#custom-scrollbar {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 8px;
|
|
/* height: 100vh; <-- remove or adjust this line */
|
|
background: transparent;
|
|
transition: opacity 0.3s ease;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* The scrollbar thumb */
|
|
#scroll-thumb {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
border-radius: 4px;
|
|
}
|