_mixins.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Mixins
  2. // --------------------------
  3. @mixin fa-icon-rotate($degrees, $rotation) {
  4. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=$rotation);
  5. -webkit-transform: rotate($degrees);
  6. -moz-transform: rotate($degrees);
  7. -ms-transform: rotate($degrees);
  8. -o-transform: rotate($degrees);
  9. transform: rotate($degrees);
  10. }
  11. @mixin fa-icon-flip($horiz, $vert) {
  12. -webkit-transform: scale($horiz, $vert);
  13. -moz-transform: scale($horiz, $vert);
  14. -ms-transform: scale($horiz, $vert);
  15. -o-transform: scale($horiz, $vert);
  16. transform: scale($horiz, $vert);
  17. }
  18. @mixin fa-icon-stack($width: 2em, $height: 2em, $top-font-size: 1em, $base-font-size: 2em) {
  19. .fa-icon-stack {
  20. position: relative;
  21. display: inline-block;
  22. width: $width;
  23. height: $height;
  24. line-height: $width;
  25. vertical-align: -35%;
  26. .fa-icon {
  27. position: absolute;
  28. display: block;
  29. width: 100%;
  30. height: 100%;
  31. font-size: $top-font-size;
  32. line-height: inherit;
  33. *line-height: $height;
  34. text-align: center;
  35. }
  36. .fa-icon-stack-base {
  37. font-size: $base-font-size;
  38. *line-height: ($height / $base-font-size);
  39. }
  40. }
  41. }