暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_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. }