improved scrollbar

This commit is contained in:
Daniel Bulant 2023-08-04 15:57:02 +02:00
parent 7caa4cb292
commit 91ea7c1a16

View file

@ -31,7 +31,7 @@
</PageTransition>
</div>
<style>
<style lang="postcss">
:global(:root), :global(body) {
@apply overflow-hidden w-100vw;
}
@ -39,4 +39,23 @@
@apply transition-colors;
-webkit-tap-highlight-color: transparent;
}
:global(::-webkit-scrollbar) {
width: 10px;
}
:global(::-webkit-scrollbar-thumb) {
background: #d8d8d8;
border-radius: 5px;
}
:global(.dark ::-webkit-scrollbar-thumb) {
background: #2e2e2e;
}
:global(::-webkit-scrollbar-track) {
background: transparent;
}
:global(::-webkit-scrollbar-button) {
display: none;
}
:global(::-webkit-scrollbar-track-piece) {
background: transparent;
}
</style>