PageRenderTime 15ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/mizuxe2017/scss/bootstrap/mixins/_background-variant.scss

https://bitbucket.org/Trulsh/personal-bootstrap-projects
Sass | 21 lines | 16 code | 3 blank | 2 comment | 0 complexity | a8951be7f19a8c0ac9d21b2d1a5831f4 MD5 | raw file
 1// stylelint-disable declaration-no-important
 2
 3// Contextual backgrounds
 4
 5@mixin bg-variant($parent, $color) {
 6  #{$parent} {
 7    background-color: $color !important;
 8  }
 9  a#{$parent},
10  button#{$parent} {
11    @include hover-focus {
12      background-color: darken($color, 10%) !important;
13    }
14  }
15}
16
17@mixin bg-gradient-variant($parent, $color) {
18  #{$parent} {
19    background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
20  }
21}