aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2019-03-14 18:36:02 +0100
committerXhmikosR <[email protected]>2019-03-14 19:36:02 +0200
commita88d58605a2aa864eb28da683c187824a580b7ec (patch)
tree62ba26b19547019731eacf3369b6b61d4fada8b4 /scss
parent837ff0cc11dd3d25b8fe74129afcd7a81aeb2280 (diff)
downloadbootstrap-a88d58605a2aa864eb28da683c187824a580b7ec.tar.xz
bootstrap-a88d58605a2aa864eb28da683c187824a580b7ec.zip
Remove hover states on background utilities (#28457)
Diffstat (limited to 'scss')
-rw-r--r--scss/mixins/_background-variant.scss14
-rw-r--r--scss/utilities/_background.scss4
2 files changed, 3 insertions, 15 deletions
diff --git a/scss/mixins/_background-variant.scss b/scss/mixins/_background-variant.scss
index 494439d2b..55dcccd5d 100644
--- a/scss/mixins/_background-variant.scss
+++ b/scss/mixins/_background-variant.scss
@@ -1,19 +1,5 @@
// stylelint-disable declaration-no-important
-// Contextual backgrounds
-
-@mixin bg-variant($parent, $color) {
- #{$parent} {
- background-color: $color !important;
- }
- a#{$parent},
- button#{$parent} {
- @include hover-focus {
- background-color: darken($color, 10%) !important;
- }
- }
-}
-
@mixin bg-gradient-variant($parent, $color) {
#{$parent} {
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
diff --git a/scss/utilities/_background.scss b/scss/utilities/_background.scss
index 1f18b2f3f..f9fbb48b9 100644
--- a/scss/utilities/_background.scss
+++ b/scss/utilities/_background.scss
@@ -1,7 +1,9 @@
// stylelint-disable declaration-no-important
@each $color, $value in $theme-colors {
- @include bg-variant(".bg-#{$color}", $value);
+ .bg-#{$color} {
+ background-color: $value !important;
+ }
}
@if $enable-gradients {