No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_background-variant.scss 798B

123456789101112131415161718192021222324252627282930
  1. // Contextual backgrounds
  2. @mixin bg-variant($parent, $color) {
  3. #{$parent} {
  4. background-color: $color !important;
  5. }
  6. a#{$parent},
  7. button#{$parent} {
  8. @include hover-focus {
  9. background-color: darken($color, 10%) !important;
  10. }
  11. }
  12. }
  13. @mixin bg-gradient-variant($parent, $color) {
  14. #{$parent} {
  15. background: linear-gradient(87deg, $color 0, adjust-hue($color, 25%) 100%) !important;
  16. }
  17. }
  18. @mixin bg-translucent-variant($parent, $color) {
  19. #{$parent} {
  20. background-color: darken(rgba($color, $translucent-color-opacity), 7%) !important;
  21. }
  22. a#{$parent},
  23. button#{$parent} {
  24. @include hover-focus {
  25. background-color: darken(rgba($color, $translucent-color-opacity), 12%) !important;
  26. }
  27. }
  28. }