mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Add new text-bg-color utilities
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
@each $color, $value in $theme-colors {
|
||||
$color-rgb: to-rgb($value);
|
||||
.text-bg-#{$color} {
|
||||
color: color-contrast($value) !important; // stylelint-disable-line declaration-no-important
|
||||
background-color: rgba($color-rgb, var(--#{$prefix}bg-opacity, 1)) !important; // stylelint-disable-line declaration-no-important
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user