1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Fix scrollbar color mixin to use body color variable instead of RGB (#2246)

This commit is contained in:
Paweł Kuna
2025-03-26 22:35:20 +01:00
committed by GitHub
parent e8e3857b00
commit 4846828f39
2 changed files with 8 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Fix scrollbar color mixin to use body color variable

View File

@@ -15,7 +15,7 @@
@mixin scrollbar($color: var(--#{$prefix}body-color-rgb)) {
#{if(&, "&", "*")} {
scrollbar-color: rgba(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color-rgb)), .16);
scrollbar-color: color-transparent(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color)), .20);
}
#{if(&, "&", "*")}::-webkit-scrollbar {
@@ -27,7 +27,7 @@
#{if(&, "&", "*")}::-webkit-scrollbar-thumb {
border-radius: 1rem;
border: 5px solid transparent;
box-shadow: inset 0 0 0 1rem rgba(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color-rgb)), .16);
box-shadow: inset 0 0 0 1rem color-transparent(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color)), .20);
}
#{if(&, "&", "*")}::-webkit-scrollbar-track {
@@ -35,7 +35,7 @@
}
#{if(&, "&", "*")}:hover::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 0 1rem rgba(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color-rgb)), .32);
box-shadow: inset 0 0 0 1rem color-transparent(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color)), .40);
}
#{if(&, "&", "*")}::-webkit-scrollbar-corner {