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.

56 lines
1.2 KiB

7 years ago
  1. // Mixins
  2. // --------------------------
  3. @mixin fa-icon {
  4. -webkit-font-smoothing: antialiased;
  5. -moz-osx-font-smoothing: grayscale;
  6. display: inline-block;
  7. font-style: normal;
  8. font-variant: normal;
  9. font-weight: normal;
  10. line-height: 1;
  11. }
  12. @mixin fa-icon-rotate($degrees, $rotation) {
  13. -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
  14. transform: rotate($degrees);
  15. }
  16. @mixin fa-icon-flip($horiz, $vert, $rotation) {
  17. -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
  18. transform: scale($horiz, $vert);
  19. }
  20. // Only display content to screen readers. A la Bootstrap 4.
  21. //
  22. // See: http://a11yproject.com/posts/how-to-hide-content/
  23. @mixin sr-only {
  24. border: 0;
  25. clip: rect(0, 0, 0, 0);
  26. height: 1px;
  27. margin: -1px;
  28. overflow: hidden;
  29. padding: 0;
  30. position: absolute;
  31. width: 1px;
  32. }
  33. // Use in conjunction with .sr-only to only display content when it's focused.
  34. //
  35. // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
  36. //
  37. // Credit: HTML5 Boilerplate
  38. @mixin sr-only-focusable {
  39. &:active,
  40. &:focus {
  41. clip: auto;
  42. height: auto;
  43. margin: 0;
  44. overflow: visible;
  45. position: static;
  46. width: auto;
  47. }
  48. }