Skip to content

Commit

Permalink
Update to modern standard for scrollbar styles (#2596)
Browse files Browse the repository at this point in the history
  • Loading branch information
endigo9740 committed Apr 8, 2024
1 parent c5aafca commit a4acb5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-cows-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@skeletonlabs/tw-plugin": minor
---

Bugfix: Update scrollbar styles to the latest standard.
17 changes: 5 additions & 12 deletions packages/plugin/src/styles/base/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,12 @@ html {
}

/* === Scrollbars === */
/* https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color */
/* https://developer.chrome.com/docs/css-ui/scrollbar-styling */

::-webkit-scrollbar {
@apply w-2;
@apply h-2;
}
::-webkit-scrollbar-track {
@apply !bg-surface-50-900-token px-[1px];
}
::-webkit-scrollbar-thumb {
@apply rounded-token bg-surface-400-500-token;
}
::-webkit-scrollbar-corner {
@apply !bg-surface-50-900-token;
:root {
scrollbar-color: rgba(128, 128, 128, 0.5) rgba(0, 0, 0, 0.1); /* thumb / track */
scrollbar-width: thin;
}

/* Firefox */
Expand Down

0 comments on commit a4acb5a

Please sign in to comment.