mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-28 10:24:19 +01:00
Ignore the bg-variant deprecation warning in our files.
This commit is contained in:
parent
23d7dd6dbd
commit
e61d609bc0
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// Contextual backgrounds
|
// Contextual backgrounds
|
||||||
|
|
||||||
@mixin bg-variant($parent, $color) {
|
@mixin bg-variant($parent, $color, $ignore-warning: false) {
|
||||||
#{$parent} {
|
#{$parent} {
|
||||||
background-color: $color !important;
|
background-color: $color !important;
|
||||||
}
|
}
|
||||||
@ -12,7 +12,7 @@
|
|||||||
background-color: darken($color, 10%) !important;
|
background-color: darken($color, 10%) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@include deprecate("The `bg-variant` mixin", "v4.3.2", "v5");
|
@include deprecate("The `bg-variant` mixin", "v4.3.2", "v5", $ignore-warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin bg-gradient-variant($parent, $color) {
|
@mixin bg-gradient-variant($parent, $color) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// stylelint-disable declaration-no-important
|
// stylelint-disable declaration-no-important
|
||||||
|
|
||||||
@each $color, $value in $theme-colors {
|
@each $color, $value in $theme-colors {
|
||||||
@include bg-variant(".bg-#{$color}", $value);
|
@include bg-variant(".bg-#{$color}", $value, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@if $enable-gradients {
|
@if $enable-gradients {
|
||||||
|
Loading…
Reference in New Issue
Block a user