ui(colors): Adds neutral color variable and updates scrollbars (#4933)
This commit is contained in:
1 parent
cfa202e89a
commit
49c08298fc
7 files changed
+14
-7
No files matched your search
@@ -114,7 +114,7 @@ const ScrollBar = React.forwardRef<
|
||||
)}
|
||||
{...props}
|
||||
>
|
||||
<ScrollAreaPrimitive.ScrollAreaThumb className="bg-input relative flex-1 rounded-full" />
|
||||
<ScrollAreaPrimitive.ScrollAreaThumb className="bg-neutral/50 relative flex-1 rounded-full" />
|
||||
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
||||
));
|
||||
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
||||
|
||||
@@ -32,7 +32,8 @@
|
||||
/* Thumb styles for WebKit browsers - more specific selector */
|
||||
input[type='range'].scrollbarInput::-webkit-slider-thumb {
|
||||
-webkit-appearance: none !important;
|
||||
background-color: hsl(var(--input));
|
||||
background-color: hsl(var(--neutral));
|
||||
opacity: 50%;
|
||||
border: none;
|
||||
border-radius: 57px;
|
||||
cursor: -webkit-grab;
|
||||
@@ -44,12 +45,14 @@ input[type='range'].scrollbarInput::-webkit-slider-thumb {
|
||||
input[type='range'].scrollbarInput::-webkit-slider-thumb:active,
|
||||
input[type='range'].scrollbarInput::-webkit-slider-thumb:hover {
|
||||
background-color: hsl(var(--primary));
|
||||
opacity: 60%;
|
||||
cursor: -webkit-grabbing;
|
||||
}
|
||||
|
||||
/* Thumb styles for Firefox - more specific selector */
|
||||
input[type='range'].scrollbarInput::-moz-range-thumb {
|
||||
background-color: hsl(var(--input));
|
||||
background-color: hsl(var(--neutral));
|
||||
opacity: 50%;
|
||||
border: none;
|
||||
border-radius: 57px;
|
||||
cursor: -moz-grab;
|
||||
@@ -60,6 +63,7 @@ input[type='range'].scrollbarInput::-moz-range-thumb {
|
||||
input[type='range'].scrollbarInput::-moz-range-thumb:active,
|
||||
input[type='range'].scrollbarInput::-moz-range-thumb:hover {
|
||||
background-color: hsl(var(--primary));
|
||||
opacity: 50%;
|
||||
cursor: -moz-grabbing;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user