mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
fix: Use CSS variables for status colors and include social colors (#2547)
This commit is contained in:
5
.changeset/fix-status-colors-variables.md
Normal file
5
.changeset/fix-status-colors-variables.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixed status color classes to use CSS variables instead of hardcoded values and include social colors (bitbucket, facebook, etc.) in status class generation.
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@use 'sass:map';
|
||||||
|
|
||||||
@keyframes status-pulsate-main {
|
@keyframes status-pulsate-main {
|
||||||
40% {
|
40% {
|
||||||
transform: scale(1.25, 1.25);
|
transform: scale(1.25, 1.25);
|
||||||
@@ -74,10 +76,10 @@
|
|||||||
color: var(--#{$prefix}body-color) !important;
|
color: var(--#{$prefix}body-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@each $name, $color in $theme-colors {
|
@each $name, $color in map.merge($theme-colors, $social-colors) {
|
||||||
.status-#{$name} {
|
.status-#{$name} {
|
||||||
--#{$prefix}status-color: #{$color};
|
--#{$prefix}status-color: var(--#{$prefix}#{$name});
|
||||||
--#{$prefix}status-color-rgb: #{to-rgb($color)};
|
--#{$prefix}status-color-rgb: var(--#{$prefix}#{$name}-rgb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user