feat: add auto-hide native scrollbar and optimize scrollbar styling

This commit is contained in:
radishzzz 2025-05-14 19:01:54 +01:00
parent 41fca8569e
commit 168e231119
7 changed files with 82 additions and 12 deletions

View file

@ -5,16 +5,28 @@
}
html {
--at-apply: 'bg-background c-secondary antialiased';
scrollbar-gutter: stable both-edges;
}
::selection {
--at-apply: 'bg-mark';
}
/* Fix Flash Issue On iOS */
body {
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
body::selection {
--at-apply: 'bg-mark';
}
body::-webkit-scrollbar {
--at-apply: 'w-1.75';
}
body::-webkit-scrollbar-thumb {
--at-apply: 'rounded-full bg-transparent';
}
body.scrolling::-webkit-scrollbar-thumb {
--at-apply: 'bg-secondary/25';
}
body::-webkit-scrollbar-thumb:hover {
--at-apply: 'bg-secondary/40';
}
/* Highlight Hover Animation */
.highlight-static,