_hover.scss 763 B

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