aboutsummaryrefslogblamecommitdiff
path: root/themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_background-variant.scss
blob: 494439d2b45fd21205a9cc4880dc83501c63d5f3 (plain) (tree)




















                                                                                                       
// 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;
  }
}