_background-variant.scss 474 B

123456789101112131415161718192021
  1. // stylelint-disable declaration-no-important
  2. // Contextual backgrounds
  3. @mixin bg-variant($parent, $color) {
  4. #{$parent} {
  5. background-color: $color !important;
  6. }
  7. a#{$parent},
  8. button#{$parent} {
  9. @include hover-focus {
  10. background-color: darken($color, 10%) !important;
  11. }
  12. }
  13. }
  14. @mixin bg-gradient-variant($parent, $color) {
  15. #{$parent} {
  16. background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
  17. }
  18. }