_extras.scss 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. $mdi-sizes: 18 24 36 48;
  2. @each $mdi-size in $mdi-sizes {
  3. .#{$mdi-css-prefix}-#{$mdi-size}px {
  4. &.#{$mdi-css-prefix}-set,
  5. &.#{$mdi-css-prefix}:before {
  6. font-size: $mdi-size * 1px;
  7. }
  8. }
  9. }
  10. .#{$mdi-css-prefix}-dark {
  11. &:before {
  12. color: rgba(0, 0, 0, 0.54);
  13. }
  14. &.mdi-inactive:before {
  15. color: rgba(0, 0, 0, 0.26);
  16. }
  17. }
  18. .#{$mdi-css-prefix}-light {
  19. &:before {
  20. color: rgba(255, 255, 255, 1);
  21. }
  22. &.mdi-inactive:before {
  23. color: rgba(255, 255, 255, 0.3);
  24. }
  25. }
  26. $mdi-degrees: 45 90 135 180 225 270 315;
  27. @each $mdi-degree in $mdi-degrees {
  28. .#{$mdi-css-prefix}-rotate-#{$mdi-degree}{
  29. &:before {
  30. -webkit-transform: rotate(#{$mdi-degree}deg);
  31. -ms-transform: rotate(#{$mdi-degree}deg);
  32. transform: rotate(#{$mdi-degree}deg);
  33. }
  34. /*
  35. // Not included in production
  36. &.#{$mdi-css-prefix}-flip-h:before {
  37. -webkit-transform: scaleX(-1) rotate(#{$mdi-degree}deg);
  38. transform: scaleX(-1) rotate(#{$mdi-degree}deg);
  39. filter: FlipH;
  40. -ms-filter: "FlipH";
  41. }
  42. &.#{$mdi-css-prefix}-flip-v:before {
  43. -webkit-transform: scaleY(-1) rotate(#{$mdi-degree}deg);
  44. -ms-transform: rotate(#{$mdi-degree}deg);
  45. transform: scaleY(-1) rotate(#{$mdi-degree}deg);
  46. filter: FlipV;
  47. -ms-filter: "FlipV";
  48. }
  49. */
  50. }
  51. }
  52. .#{$mdi-css-prefix}-flip-h:before {
  53. -webkit-transform: scaleX(-1);
  54. transform: scaleX(-1);
  55. filter: FlipH;
  56. -ms-filter: "FlipH";
  57. }
  58. .#{$mdi-css-prefix}-flip-v:before {
  59. -webkit-transform: scaleY(-1);
  60. transform: scaleY(-1);
  61. filter: FlipV;
  62. -ms-filter: "FlipV";
  63. }