bootstrap-less-port
Version:
A Less port of Bootstrap v4
27 lines (22 loc) • 595 B
text/less
//@each $color, $value in $theme-colors {
// @include bg-variant('.bg-#{$color}', $value);
//}
each(@theme-colors, #(@value, @color) {
#bg-variant(~".bg-@{color}", @value, true);
});
//@if $enable-gradients {
// @each $color, $value in $theme-colors {
// @include bg-gradient-variant(".bg-gradient-#{$color}", $value);
// }
//}
& when (@enable-gradients) {
each(@theme-colors, #(@value, @color) {
#bg-gradient-variant(~".bg-gradient-@{color}", @value, true);
});
}
.bg-white {
background-color: @white ;
}
.bg-transparent {
background-color: transparent ;
}