_icons-navigation.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // Icon arrows
  2. .icon-arrow-down,
  3. .icon-arrow-left,
  4. .icon-arrow-right,
  5. .icon-arrow-up,
  6. .icon-downward,
  7. .icon-back,
  8. .icon-forward,
  9. .icon-upward {
  10. &::before {
  11. border: $icon-border-width solid currentColor;
  12. border-bottom: 0;
  13. border-right: 0;
  14. height: .65em;
  15. width: .65em;
  16. }
  17. }
  18. .icon-arrow-down {
  19. &::before {
  20. transform: translate(-50%, -75%) rotate(225deg);
  21. }
  22. }
  23. .icon-arrow-left {
  24. &::before {
  25. transform: translate(-25%, -50%) rotate(-45deg);
  26. }
  27. }
  28. .icon-arrow-right {
  29. &::before {
  30. transform: translate(-75%, -50%) rotate(135deg);
  31. }
  32. }
  33. .icon-arrow-up {
  34. &::before {
  35. transform: translate(-50%, -25%) rotate(45deg);
  36. }
  37. }
  38. .icon-back,
  39. .icon-forward {
  40. &::after {
  41. background: currentColor;
  42. height: $icon-border-width;
  43. width: .8em;
  44. }
  45. }
  46. .icon-downward,
  47. .icon-upward {
  48. &::after {
  49. background: currentColor;
  50. height: .8em;
  51. width: $icon-border-width;
  52. }
  53. }
  54. .icon-back {
  55. &::after {
  56. left: 55%;
  57. }
  58. &::before {
  59. transform: translate(-50%, -50%) rotate(-45deg);
  60. }
  61. }
  62. .icon-downward {
  63. &::after {
  64. top: 45%;
  65. }
  66. &::before {
  67. transform: translate(-50%, -50%) rotate(-135deg);
  68. }
  69. }
  70. .icon-forward {
  71. &::after {
  72. left: 45%;
  73. }
  74. &::before {
  75. transform: translate(-50%, -50%) rotate(135deg);
  76. }
  77. }
  78. .icon-upward {
  79. &::after {
  80. top: 55%;
  81. }
  82. &::before {
  83. transform: translate(-50%, -50%) rotate(45deg);
  84. }
  85. }
  86. // Icon caret
  87. .icon-caret {
  88. &::before {
  89. border-top: .3em solid currentColor;
  90. border-right: .3em solid transparent;
  91. border-left: .3em solid transparent;
  92. height: 0;
  93. transform: translate(-50%, -25%);
  94. width: 0;
  95. }
  96. }
  97. // Icon menu
  98. .icon-menu {
  99. &::before {
  100. background: currentColor;
  101. box-shadow: 0 -.35em, 0 .35em;
  102. height: $icon-border-width;
  103. width: 100%;
  104. }
  105. }
  106. // Icon apps
  107. .icon-apps {
  108. &::before {
  109. background: currentColor;
  110. box-shadow: -.35em -.35em, -.35em 0, -.35em .35em, 0 -.35em, 0 .35em, .35em -.35em, .35em 0, .35em .35em;
  111. height: 3px;
  112. width: 3px;
  113. }
  114. }