[CL-448] Scrollbar Styles (#11111)
* add scrollbar styles to tailwind configuration * scope scrollbar styles to the extension, not globally * update background of scrollbar to be alt
This commit is contained in:
parent
04180482c5
commit
aaf52bb956
|
@ -3,3 +3,26 @@
|
|||
@tailwind utilities;
|
||||
|
||||
@import "../../../../../libs/components/src/tw-theme.css";
|
||||
|
||||
@layer base {
|
||||
/* Chrome & Safari support */
|
||||
::-webkit-scrollbar {
|
||||
@apply tw-overflow-auto;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
@apply tw-bg-secondary-500 tw-rounded-lg tw-border-4 tw-border-solid tw-border-transparent tw-bg-clip-content;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
@apply tw-bg-background-alt;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
@apply tw-bg-secondary-600;
|
||||
}
|
||||
|
||||
/* FireFox support */
|
||||
* {
|
||||
@supports (-moz-appearance: none) {
|
||||
scrollbar-color: rgb(var(--color-secondary-500)) rgb(var(--color-background-alt));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue