1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-12 22:32:21 +04:00

move SCSS variables to CSS variables (#1214)

This commit is contained in:
Paweł Kuna
2022-08-31 22:47:29 +02:00
committed by GitHub
parent fa4afb0101
commit b4a078f32a
63 changed files with 463 additions and 400 deletions
+6 -11
View File
@@ -13,15 +13,6 @@
justify-content: center;
white-space: nowrap;
//&:hover {
// color: var(--#{$prefix}btn-color-text);
// border-color: rgba(var(--#{$prefix}btn-color-text-rgb), #{$border-active-opacity});
//}
//
//&:focus:not([disabled]):not(.disabled) {
// border-color: var(--#{$prefix}btn-color, #{$primary});
//}
.icon {
width: var(--#{$prefix}btn-icon-size);
height: var(--#{$prefix}btn-icon-size);
@@ -73,6 +64,10 @@
.btn-#{$color} {
--#{$prefix}btn-border-color: transparent;
--#{$prefix}btn-color: #{color-contrast($value)};
--#{$prefix}btn-bg: var(--#{$prefix}#{$color});
--#{$prefix}btn-hover-bg: var(--#{$prefix}#{$color}-darken);
--#{$prefix}btn-hover-color: #{color-contrast($value)};
--#{$prefix}btn-hover-border-color: transparent;
}
}
@@ -193,7 +188,7 @@
height: 2rem;
align-items: center;
justify-content: center;
border-radius: $border-radius;
border-radius: var(--#{$prefix}border-radius);
&:after {
content: none;
@@ -211,7 +206,7 @@
}
&.show {
color: $primary;
color: var(--#{$prefix}primary);
}
.icon {