2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

Add new text-bg-color utilities

This commit is contained in:
Mark Otto
2022-04-27 20:40:23 -07:00
parent 9f6ff84aa5
commit 7a5c9f712d
5 changed files with 55 additions and 5 deletions
+1
View File
@@ -1,4 +1,5 @@
@import "helpers/clearfix";
@import "helpers/color-bg";
@import "helpers/colored-links";
@import "helpers/ratio";
@import "helpers/position";
+7
View File
@@ -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
}
}