_background-variant.less 589 B

123456789101112131415161718192021
  1. // Contextual backgrounds
  2. #bg-variant(@parent, @color, @ignore-warning: false) {
  3. @{parent} {
  4. background-color: @color !important;
  5. }
  6. a@{parent},
  7. button@{parent} {
  8. #hover-focus({
  9. background-color: darken(@color, 10%) !important;
  10. });
  11. }
  12. #deprecate("The `#bg-variant` mixin", "v4.4.0", "v5", @ignore-warning);
  13. }
  14. #bg-gradient-variant(@parent, @color, @ignore-warning: false) {
  15. @{parent} {
  16. background: @color linear-gradient(180deg, mix(@body-bg, @color, 15%), @color) repeat-x !important;
  17. }
  18. #deprecate("The `bg-gradient-variant` mixin", "v4.5.0", "v5", @ignore-warning);
  19. }