_icons-action.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. // Icon resize
  2. .icon-resize-horiz,
  3. .icon-resize-vert {
  4. &::before,
  5. &::after {
  6. border: $icon-border-width solid currentColor;
  7. border-bottom: 0;
  8. border-right: 0;
  9. height: .45em;
  10. width: .45em;
  11. }
  12. &::before {
  13. transform: translate(-50%, -90%) rotate(45deg);
  14. }
  15. &::after {
  16. transform: translate(-50%, -10%) rotate(225deg);
  17. }
  18. }
  19. .icon-resize-horiz {
  20. &::before {
  21. transform: translate(-90%, -50%) rotate(-45deg);
  22. }
  23. &::after {
  24. transform: translate(-10%, -50%) rotate(135deg);
  25. }
  26. }
  27. // Icon more
  28. .icon-more-horiz,
  29. .icon-more-vert {
  30. &::before {
  31. background: currentColor;
  32. box-shadow: -.4em 0, .4em 0;
  33. border-radius: 50%;
  34. height: 3px;
  35. width: 3px;
  36. }
  37. }
  38. .icon-more-vert {
  39. &::before {
  40. box-shadow: 0 -.4em, 0 .4em;
  41. }
  42. }
  43. // Icon plus, minus, cross
  44. .icon-plus,
  45. .icon-minus,
  46. .icon-cross {
  47. &::before {
  48. background: currentColor;
  49. height: $icon-border-width;
  50. width: 100%;
  51. }
  52. }
  53. .icon-plus,
  54. .icon-cross {
  55. &::after {
  56. background: currentColor;
  57. height: 100%;
  58. width: $icon-border-width;
  59. }
  60. }
  61. .icon-cross {
  62. &::before {
  63. width: 100%;
  64. }
  65. &::after {
  66. height: 100%;
  67. }
  68. &::before,
  69. &::after {
  70. transform: translate(-50%, -50%) rotate(45deg);
  71. }
  72. }
  73. // Icon check
  74. .icon-check {
  75. &::before {
  76. border: $icon-border-width solid currentColor;
  77. border-right: 0;
  78. border-top: 0;
  79. height: .5em;
  80. width: .9em;
  81. transform: translate(-50%, -75%) rotate(-45deg);
  82. }
  83. }
  84. // Icon stop
  85. .icon-stop {
  86. border: $icon-border-width solid currentColor;
  87. border-radius: 50%;
  88. &::before {
  89. background: currentColor;
  90. height: $icon-border-width;
  91. transform: translate(-50%, -50%) rotate(45deg);
  92. width: 1em;
  93. }
  94. }
  95. // Icon shutdown
  96. .icon-shutdown {
  97. border: $icon-border-width solid currentColor;
  98. border-radius: 50%;
  99. border-top-color: transparent;
  100. &::before {
  101. background: currentColor;
  102. content: "";
  103. height: .5em;
  104. top: .1em;
  105. width: $icon-border-width;
  106. }
  107. }
  108. // Icon refresh
  109. .icon-refresh {
  110. &::before {
  111. border: $icon-border-width solid currentColor;
  112. border-radius: 50%;
  113. border-right-color: transparent;
  114. height: 1em;
  115. width: 1em;
  116. }
  117. &::after {
  118. border: .2em solid currentColor;
  119. border-top-color: transparent;
  120. border-left-color: transparent;
  121. height: 0;
  122. left: 80%;
  123. top: 20%;
  124. width: 0;
  125. }
  126. }
  127. // Icon search
  128. .icon-search {
  129. &::before {
  130. border: $icon-border-width solid currentColor;
  131. border-radius: 50%;
  132. height: .75em;
  133. left: 5%;
  134. top: 5%;
  135. transform: translate(0, 0) rotate(45deg);
  136. width: .75em;
  137. }
  138. &::after {
  139. background: currentColor;
  140. height: $icon-border-width;
  141. left: 80%;
  142. top: 80%;
  143. transform: translate(-50%, -50%) rotate(45deg);
  144. width: .4em;
  145. }
  146. }
  147. // Icon edit
  148. .icon-edit {
  149. &::before {
  150. border: $icon-border-width solid currentColor;
  151. height: .4em;
  152. transform: translate(-40%, -60%) rotate(-45deg);
  153. width: .85em;
  154. }
  155. &::after {
  156. border: .15em solid currentColor;
  157. border-top-color: transparent;
  158. border-right-color: transparent;
  159. height: 0;
  160. left: 5%;
  161. top: 95%;
  162. transform: translate(0, -100%);
  163. width: 0;
  164. }
  165. }
  166. // Icon delete
  167. .icon-delete {
  168. &::before {
  169. border: $icon-border-width solid currentColor;
  170. border-bottom-left-radius: $border-radius;
  171. border-bottom-right-radius: $border-radius;
  172. border-top: 0;
  173. height: .75em;
  174. top: 60%;
  175. width: .75em;
  176. }
  177. &::after {
  178. background: currentColor;
  179. box-shadow: -.25em .2em, .25em .2em;
  180. height: $icon-border-width;
  181. top: $icon-border-width/2;
  182. width: .5em;
  183. }
  184. }
  185. // Icon share
  186. .icon-share {
  187. border: $icon-border-width solid currentColor;
  188. border-radius: $border-radius;
  189. border-right: 0;
  190. border-top: 0;
  191. &::before {
  192. border: $icon-border-width solid currentColor;
  193. border-left: 0;
  194. border-top: 0;
  195. height: .4em;
  196. left: 100%;
  197. top: .25em;
  198. transform: translate(-125%, -50%) rotate(-45deg);
  199. width: .4em;
  200. }
  201. &::after {
  202. border: $icon-border-width solid currentColor;
  203. border-bottom: 0;
  204. border-right: 0;
  205. border-radius: 75% 0;
  206. height: .5em;
  207. width: .6em;
  208. }
  209. }
  210. // Icon flag
  211. .icon-flag {
  212. &::before {
  213. background: currentColor;
  214. height: 1em;
  215. left: 15%;
  216. width: $icon-border-width;
  217. }
  218. &::after {
  219. border: $icon-border-width solid currentColor;
  220. border-bottom-right-radius: $border-radius;
  221. border-left: 0;
  222. border-top-right-radius: $border-radius;
  223. height: .65em;
  224. top: 35%;
  225. left: 60%;
  226. width: .8em;
  227. }
  228. }
  229. // Icon bookmark
  230. .icon-bookmark {
  231. &::before {
  232. border: $icon-border-width solid currentColor;
  233. border-bottom: 0;
  234. border-top-left-radius: $border-radius;
  235. border-top-right-radius: $border-radius;
  236. height: .9em;
  237. width: .8em;
  238. }
  239. &::after {
  240. border: $icon-border-width solid currentColor;
  241. border-bottom: 0;
  242. border-left: 0;
  243. border-radius: $border-radius;
  244. height: .5em;
  245. transform: translate(-50%, 35%) rotate(-45deg) skew(15deg, 15deg);
  246. width: .5em;
  247. }
  248. }
  249. // Icon download & upload
  250. .icon-download,
  251. .icon-upload {
  252. border-bottom: $icon-border-width solid currentColor;
  253. &::before {
  254. border: $icon-border-width solid currentColor;
  255. border-bottom: 0;
  256. border-right: 0;
  257. height: .5em;
  258. width: .5em;
  259. transform: translate(-50%, -60%) rotate(-135deg);
  260. }
  261. &::after {
  262. background: currentColor;
  263. height: .6em;
  264. top: 40%;
  265. width: $icon-border-width;
  266. }
  267. }
  268. .icon-upload {
  269. &::before {
  270. transform: translate(-50%, -60%) rotate(45deg);
  271. }
  272. &::after {
  273. top: 50%;
  274. }
  275. }
  276. // Icon copy
  277. .icon-copy {
  278. &::before {
  279. border: $icon-border-width solid currentColor;
  280. border-radius: $border-radius;
  281. border-right: 0;
  282. border-bottom: 0;
  283. height: .8em;
  284. left: 40%;
  285. top: 35%;
  286. width: .8em;
  287. }
  288. &::after {
  289. border: $icon-border-width solid currentColor;
  290. border-radius: $border-radius;
  291. height: .8em;
  292. left: 60%;
  293. top: 60%;
  294. width: .8em;
  295. }
  296. }