_hover.scss 783 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // stylelint-disable indentation
  2. // Hover mixin and `$enable-hover-media-query` are deprecated.
  3. //
  4. // Origally added during our alphas and maintained during betas, this mixin was
  5. // designed to prevent `:hover` stickiness on iOS—an issue where hover styles
  6. // would persist after initial touch.
  7. //
  8. // For backward compatibility, we've kept these mixins and updated them to
  9. // always return their regular psuedo-classes instead of a shimmed media query.
  10. //
  11. // Issue: https://github.com/twbs/bootstrap/issues/25195
  12. @mixin hover {
  13. &:hover { @content; }
  14. }
  15. @mixin hover-focus {
  16. &:hover,
  17. &:focus {
  18. @content;
  19. }
  20. }
  21. @mixin plain-hover-focus {
  22. &,
  23. &:hover,
  24. &:focus {
  25. @content;
  26. }
  27. }
  28. @mixin hover-focus-active {
  29. &:hover,
  30. &:focus,
  31. &:active {
  32. @content;
  33. }
  34. }