fomantic-ui 2.9.1-beta.9 → 2.9.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (521) hide show
  1. package/.eslint/eqeqeq-rule.js +18 -0
  2. package/.eslint/index.js +29 -0
  3. package/.eslint/no-extra-parens-rule.js +17 -0
  4. package/.eslint/package.json +11 -0
  5. package/.eslintrc.js +123 -0
  6. package/.github/auto_assign.yml +0 -1
  7. package/.github/workflows/ci.yml +37 -4
  8. package/.github/workflows/nightly.yml +1 -1
  9. package/.github/workflows/release.yml +1 -1
  10. package/.prettierrc.js +12 -0
  11. package/.stylelintrc.js +48 -0
  12. package/CHANGELOG.md +112 -0
  13. package/README.md +1 -1
  14. package/dist/components/accordion.css +35 -53
  15. package/dist/components/accordion.js +568 -595
  16. package/dist/components/accordion.min.css +2 -2
  17. package/dist/components/accordion.min.js +3 -3
  18. package/dist/components/ad.css +34 -45
  19. package/dist/components/ad.min.css +2 -2
  20. package/dist/components/api.js +1157 -1179
  21. package/dist/components/api.min.js +3 -3
  22. package/dist/components/breadcrumb.css +5 -5
  23. package/dist/components/breadcrumb.min.css +2 -2
  24. package/dist/components/button.css +709 -1111
  25. package/dist/components/button.min.css +2 -2
  26. package/dist/components/calendar.css +24 -27
  27. package/dist/components/calendar.js +1934 -1809
  28. package/dist/components/calendar.min.css +2 -2
  29. package/dist/components/calendar.min.js +3 -3
  30. package/dist/components/card.css +219 -365
  31. package/dist/components/card.min.css +2 -2
  32. package/dist/components/checkbox.css +120 -191
  33. package/dist/components/checkbox.js +842 -841
  34. package/dist/components/checkbox.min.css +2 -2
  35. package/dist/components/checkbox.min.js +3 -3
  36. package/dist/components/comment.css +41 -59
  37. package/dist/components/comment.min.css +2 -2
  38. package/dist/components/container.css +7 -6
  39. package/dist/components/container.min.css +2 -2
  40. package/dist/components/dimmer.css +53 -172
  41. package/dist/components/dimmer.js +706 -737
  42. package/dist/components/dimmer.min.css +2 -2
  43. package/dist/components/dimmer.min.js +3 -3
  44. package/dist/components/divider.css +43 -61
  45. package/dist/components/divider.min.css +2 -2
  46. package/dist/components/dropdown.css +252 -386
  47. package/dist/components/dropdown.js +4195 -4236
  48. package/dist/components/dropdown.min.css +2 -2
  49. package/dist/components/dropdown.min.js +3 -3
  50. package/dist/components/embed.css +18 -29
  51. package/dist/components/embed.js +645 -675
  52. package/dist/components/embed.min.css +2 -2
  53. package/dist/components/embed.min.js +3 -3
  54. package/dist/components/emoji.css +3556 -3556
  55. package/dist/components/emoji.min.css +1 -1
  56. package/dist/components/feed.css +35 -57
  57. package/dist/components/feed.min.css +2 -2
  58. package/dist/components/flag.css +270 -268
  59. package/dist/components/flag.min.css +2 -2
  60. package/dist/components/flyout.css +95 -141
  61. package/dist/components/flyout.js +1514 -1465
  62. package/dist/components/flyout.min.css +2 -2
  63. package/dist/components/flyout.min.js +3 -3
  64. package/dist/components/form.css +244 -339
  65. package/dist/components/form.js +2022 -2004
  66. package/dist/components/form.min.css +2 -2
  67. package/dist/components/form.min.js +3 -3
  68. package/dist/components/grid.css +183 -329
  69. package/dist/components/grid.min.css +2 -2
  70. package/dist/components/header.css +118 -142
  71. package/dist/components/header.min.css +2 -2
  72. package/dist/components/icon.css +662 -732
  73. package/dist/components/icon.min.css +2 -2
  74. package/dist/components/image.css +39 -63
  75. package/dist/components/image.min.css +2 -2
  76. package/dist/components/input.css +356 -274
  77. package/dist/components/input.min.css +2 -2
  78. package/dist/components/item.css +84 -131
  79. package/dist/components/item.min.css +2 -2
  80. package/dist/components/label.css +359 -410
  81. package/dist/components/label.min.css +2 -2
  82. package/dist/components/list.css +49 -70
  83. package/dist/components/list.min.css +2 -2
  84. package/dist/components/loader.css +67 -155
  85. package/dist/components/loader.min.css +2 -2
  86. package/dist/components/menu.css +270 -431
  87. package/dist/components/menu.min.css +1 -1
  88. package/dist/components/message.css +125 -197
  89. package/dist/components/message.min.css +2 -2
  90. package/dist/components/modal.css +120 -154
  91. package/dist/components/modal.js +1544 -1486
  92. package/dist/components/modal.min.css +2 -2
  93. package/dist/components/modal.min.js +3 -3
  94. package/dist/components/nag.css +51 -60
  95. package/dist/components/nag.js +520 -526
  96. package/dist/components/nag.min.css +2 -2
  97. package/dist/components/nag.min.js +3 -3
  98. package/dist/components/placeholder.css +22 -42
  99. package/dist/components/placeholder.min.css +2 -2
  100. package/dist/components/popup.css +211 -289
  101. package/dist/components/popup.js +1456 -1456
  102. package/dist/components/popup.min.css +2 -2
  103. package/dist/components/popup.min.js +3 -3
  104. package/dist/components/progress.css +106 -211
  105. package/dist/components/progress.js +969 -997
  106. package/dist/components/progress.min.css +2 -2
  107. package/dist/components/progress.min.js +3 -3
  108. package/dist/components/rail.css +15 -20
  109. package/dist/components/rail.min.css +1 -1
  110. package/dist/components/rating.css +80 -121
  111. package/dist/components/rating.js +507 -523
  112. package/dist/components/rating.min.css +2 -2
  113. package/dist/components/rating.min.js +3 -3
  114. package/dist/components/reset.css +8 -13
  115. package/dist/components/reset.min.css +2 -2
  116. package/dist/components/reveal.css +44 -83
  117. package/dist/components/reveal.min.css +2 -2
  118. package/dist/components/search.css +69 -98
  119. package/dist/components/search.js +1520 -1534
  120. package/dist/components/search.min.css +2 -2
  121. package/dist/components/search.min.js +3 -3
  122. package/dist/components/segment.css +148 -224
  123. package/dist/components/segment.min.css +2 -2
  124. package/dist/components/shape.css +14 -30
  125. package/dist/components/shape.js +783 -810
  126. package/dist/components/shape.min.css +2 -2
  127. package/dist/components/shape.min.js +3 -3
  128. package/dist/components/sidebar.css +103 -206
  129. package/dist/components/sidebar.js +1061 -1099
  130. package/dist/components/sidebar.min.css +2 -2
  131. package/dist/components/sidebar.min.js +3 -3
  132. package/dist/components/site.css +28 -41
  133. package/dist/components/site.js +436 -476
  134. package/dist/components/site.min.css +2 -2
  135. package/dist/components/site.min.js +3 -3
  136. package/dist/components/slider.css +93 -121
  137. package/dist/components/slider.js +1310 -1311
  138. package/dist/components/slider.min.css +1 -1
  139. package/dist/components/slider.min.js +3 -3
  140. package/dist/components/state.js +638 -657
  141. package/dist/components/state.min.js +3 -3
  142. package/dist/components/statistic.css +75 -116
  143. package/dist/components/statistic.min.css +2 -2
  144. package/dist/components/step.css +77 -150
  145. package/dist/components/step.min.css +2 -2
  146. package/dist/components/sticky.css +1 -5
  147. package/dist/components/sticky.js +847 -901
  148. package/dist/components/sticky.min.css +2 -2
  149. package/dist/components/sticky.min.js +3 -3
  150. package/dist/components/tab.css +10 -14
  151. package/dist/components/tab.js +902 -966
  152. package/dist/components/tab.min.css +2 -2
  153. package/dist/components/tab.min.js +3 -3
  154. package/dist/components/table.css +547 -774
  155. package/dist/components/table.min.css +2 -2
  156. package/dist/components/text.css +32 -32
  157. package/dist/components/text.min.css +1 -1
  158. package/dist/components/toast.css +69 -147
  159. package/dist/components/toast.js +910 -884
  160. package/dist/components/toast.min.css +2 -2
  161. package/dist/components/toast.min.js +3 -3
  162. package/dist/components/transition.css +299 -1356
  163. package/dist/components/transition.js +1048 -1077
  164. package/dist/components/transition.min.css +2 -2
  165. package/dist/components/transition.min.js +3 -3
  166. package/dist/components/visibility.js +1213 -1245
  167. package/dist/components/visibility.min.js +3 -3
  168. package/dist/semantic.css +9069 -12355
  169. package/dist/semantic.js +29181 -29423
  170. package/dist/semantic.min.css +3 -3
  171. package/dist/semantic.min.js +3 -3
  172. package/dist/themes/basic/assets/fonts/icons.woff2 +0 -0
  173. package/dist/themes/github/assets/fonts/octicons.woff2 +0 -0
  174. package/examples/.eslintrc.js +6 -0
  175. package/examples/assets/library/jquery.min.js +2 -4
  176. package/examples/assets/show-examples.js +13 -13
  177. package/examples/attached.html +1 -1
  178. package/examples/bootstrap.html +1 -1
  179. package/examples/components/button.html +1 -1
  180. package/examples/components/card.html +6 -6
  181. package/examples/components/input.html +1 -1
  182. package/examples/components/menu.html +1 -1
  183. package/examples/components/site.html +1 -1
  184. package/examples/components/sticky-context.html +2 -2
  185. package/examples/components/table.html +1 -1
  186. package/examples/fixed.html +3 -3
  187. package/examples/grid.html +5 -5
  188. package/examples/homepage.html +1 -1
  189. package/examples/login.html +2 -2
  190. package/examples/responsive.html +2 -2
  191. package/examples/sticky.html +4 -4
  192. package/examples/theming.html +1 -1
  193. package/gulpfile.js +13 -11
  194. package/package.json +16 -7
  195. package/scripts/nightly-version.js +83 -75
  196. package/src/_site/collections/menu.overrides +1 -1
  197. package/src/_site/elements/flag.variables +2 -2
  198. package/src/_site/globals/site.variables +1 -1
  199. package/src/_site/modules/embed.variables +3 -0
  200. package/src/definitions/behaviors/api.js +1158 -1180
  201. package/src/definitions/behaviors/form.js +2021 -2003
  202. package/src/definitions/behaviors/state.js +644 -663
  203. package/src/definitions/behaviors/visibility.js +1212 -1244
  204. package/src/definitions/collections/breadcrumb.less +43 -47
  205. package/src/definitions/collections/form.less +866 -884
  206. package/src/definitions/collections/grid.less +1681 -1699
  207. package/src/definitions/collections/menu.less +1522 -1544
  208. package/src/definitions/collections/message.less +294 -298
  209. package/src/definitions/collections/table.less +1657 -1661
  210. package/src/definitions/elements/button.less +1716 -1750
  211. package/src/definitions/elements/container.less +211 -211
  212. package/src/definitions/elements/divider.less +198 -211
  213. package/src/definitions/elements/emoji.less +41 -48
  214. package/src/definitions/elements/flag.less +46 -48
  215. package/src/definitions/elements/header.less +351 -359
  216. package/src/definitions/elements/icon.less +538 -555
  217. package/src/definitions/elements/image.less +216 -227
  218. package/src/definitions/elements/input.less +692 -699
  219. package/src/definitions/elements/label.less +784 -806
  220. package/src/definitions/elements/list.less +810 -814
  221. package/src/definitions/elements/loader.less +273 -268
  222. package/src/definitions/elements/placeholder.less +173 -170
  223. package/src/definitions/elements/rail.less +93 -93
  224. package/src/definitions/elements/reveal.less +192 -198
  225. package/src/definitions/elements/segment.less +742 -749
  226. package/src/definitions/elements/step.less +423 -437
  227. package/src/definitions/elements/text.less +34 -36
  228. package/src/definitions/globals/reset.less +11 -8
  229. package/src/definitions/globals/site.js +435 -475
  230. package/src/definitions/globals/site.less +108 -110
  231. package/src/definitions/modules/accordion.js +567 -594
  232. package/src/definitions/modules/accordion.less +244 -248
  233. package/src/definitions/modules/calendar.js +1933 -1808
  234. package/src/definitions/modules/calendar.less +100 -97
  235. package/src/definitions/modules/checkbox.js +841 -840
  236. package/src/definitions/modules/checkbox.less +531 -552
  237. package/src/definitions/modules/dimmer.js +705 -736
  238. package/src/definitions/modules/dimmer.less +294 -305
  239. package/src/definitions/modules/dropdown.js +4194 -4235
  240. package/src/definitions/modules/dropdown.less +1568 -1598
  241. package/src/definitions/modules/embed.js +644 -674
  242. package/src/definitions/modules/embed.less +82 -84
  243. package/src/definitions/modules/flyout.js +1513 -1464
  244. package/src/definitions/modules/flyout.less +453 -455
  245. package/src/definitions/modules/modal.js +1543 -1485
  246. package/src/definitions/modules/modal.less +459 -467
  247. package/src/definitions/modules/nag.js +519 -525
  248. package/src/definitions/modules/nag.less +136 -148
  249. package/src/definitions/modules/popup.js +1455 -1455
  250. package/src/definitions/modules/popup.less +735 -740
  251. package/src/definitions/modules/progress.js +968 -996
  252. package/src/definitions/modules/progress.less +523 -499
  253. package/src/definitions/modules/rating.js +506 -522
  254. package/src/definitions/modules/rating.less +98 -103
  255. package/src/definitions/modules/search.js +1519 -1533
  256. package/src/definitions/modules/search.less +374 -394
  257. package/src/definitions/modules/shape.js +782 -809
  258. package/src/definitions/modules/shape.less +70 -79
  259. package/src/definitions/modules/sidebar.js +1060 -1098
  260. package/src/definitions/modules/sidebar.less +463 -476
  261. package/src/definitions/modules/slider.js +1309 -1310
  262. package/src/definitions/modules/slider.less +309 -310
  263. package/src/definitions/modules/sticky.js +863 -917
  264. package/src/definitions/modules/sticky.less +17 -25
  265. package/src/definitions/modules/tab.js +901 -965
  266. package/src/definitions/modules/tab.less +48 -54
  267. package/src/definitions/modules/toast.js +909 -883
  268. package/src/definitions/modules/toast.less +589 -589
  269. package/src/definitions/modules/transition.js +1047 -1076
  270. package/src/definitions/modules/transition.less +58 -59
  271. package/src/definitions/views/ad.less +207 -208
  272. package/src/definitions/views/card.less +955 -973
  273. package/src/definitions/views/comment.less +192 -200
  274. package/src/definitions/views/feed.less +222 -226
  275. package/src/definitions/views/item.less +437 -448
  276. package/src/definitions/views/statistic.less +273 -279
  277. package/src/semantic.less +8 -6
  278. package/src/theme.config.example +53 -53
  279. package/src/theme.less +44 -35
  280. package/src/themes/amazon/elements/button.overrides +23 -24
  281. package/src/themes/amazon/elements/button.variables +18 -23
  282. package/src/themes/amazon/globals/site.variables +16 -17
  283. package/src/themes/basic/assets/fonts/icons.woff2 +0 -0
  284. package/src/themes/basic/collections/table.overrides +0 -1
  285. package/src/themes/basic/collections/table.variables +3 -3
  286. package/src/themes/basic/elements/button.overrides +0 -1
  287. package/src/themes/basic/elements/button.variables +9 -9
  288. package/src/themes/basic/elements/icon.overrides +9 -169
  289. package/src/themes/basic/elements/icon.variables +161 -18
  290. package/src/themes/basic/elements/step.overrides +2 -2
  291. package/src/themes/basic/elements/step.variables +2 -2
  292. package/src/themes/basic/globals/reset.overrides +1 -1
  293. package/src/themes/basic/globals/reset.variables +1 -1
  294. package/src/themes/basic/modules/progress.variables +2 -2
  295. package/src/themes/basic/views/card.overrides +0 -1
  296. package/src/themes/basic/views/card.variables +6 -6
  297. package/src/themes/bookish/elements/header.overrides +4 -4
  298. package/src/themes/bookish/elements/header.variables +5 -5
  299. package/src/themes/bootstrap3/elements/button.overrides +3 -0
  300. package/src/themes/bootstrap3/elements/button.variables +20 -25
  301. package/src/themes/chubby/collections/form.overrides +9 -9
  302. package/src/themes/chubby/collections/form.variables +3 -3
  303. package/src/themes/chubby/collections/menu.overrides +3 -0
  304. package/src/themes/chubby/collections/menu.variables +3 -3
  305. package/src/themes/chubby/elements/button.overrides +8 -10
  306. package/src/themes/chubby/elements/button.variables +10 -10
  307. package/src/themes/chubby/elements/header.overrides +1 -1
  308. package/src/themes/chubby/elements/header.variables +4 -4
  309. package/src/themes/chubby/modules/accordion.overrides +2 -2
  310. package/src/themes/chubby/modules/accordion.variables +4 -4
  311. package/src/themes/chubby/views/comment.overrides +5 -5
  312. package/src/themes/chubby/views/comment.variables +11 -11
  313. package/src/themes/classic/collections/table.variables +3 -3
  314. package/src/themes/classic/elements/button.variables +36 -43
  315. package/src/themes/classic/elements/header.variables +4 -4
  316. package/src/themes/classic/modules/progress.variables +3 -3
  317. package/src/themes/classic/views/card.overrides +25 -27
  318. package/src/themes/classic/views/card.variables +7 -7
  319. package/src/themes/colored/modules/checkbox.overrides +3 -0
  320. package/src/themes/colored/modules/checkbox.variables +1 -3
  321. package/src/themes/default/collections/breadcrumb.variables +4 -4
  322. package/src/themes/default/collections/form.variables +15 -16
  323. package/src/themes/default/collections/grid.overrides +0 -1
  324. package/src/themes/default/collections/grid.variables +15 -16
  325. package/src/themes/default/collections/menu.variables +31 -45
  326. package/src/themes/default/collections/message.variables +84 -123
  327. package/src/themes/default/collections/table.overrides +3 -0
  328. package/src/themes/default/collections/table.variables +30 -34
  329. package/src/themes/default/elements/button.variables +44 -53
  330. package/src/themes/default/elements/container.variables +8 -16
  331. package/src/themes/default/elements/divider.overrides +8 -9
  332. package/src/themes/default/elements/divider.variables +5 -6
  333. package/src/themes/default/elements/emoji.overrides +0 -1
  334. package/src/themes/default/elements/emoji.variables +3556 -3556
  335. package/src/themes/default/elements/flag.variables +1595 -1595
  336. package/src/themes/default/elements/header.overrides +0 -1
  337. package/src/themes/default/elements/header.variables +21 -21
  338. package/src/themes/default/elements/icon.variables +2002 -2013
  339. package/src/themes/default/elements/image.variables +6 -7
  340. package/src/themes/default/elements/input.variables +11 -12
  341. package/src/themes/default/elements/label.variables +25 -26
  342. package/src/themes/default/elements/list.variables +17 -21
  343. package/src/themes/default/elements/loader.variables +16 -17
  344. package/src/themes/default/elements/placeholder.variables +12 -9
  345. package/src/themes/default/elements/rail.variables +4 -5
  346. package/src/themes/default/elements/reveal.variables +1 -1
  347. package/src/themes/default/elements/segment.variables +24 -36
  348. package/src/themes/default/elements/step.overrides +4 -4
  349. package/src/themes/default/elements/step.variables +19 -22
  350. package/src/themes/default/elements/text.variables +2 -3
  351. package/src/themes/default/globals/colors.less +588 -588
  352. package/src/themes/default/globals/reset.overrides +63 -59
  353. package/src/themes/default/globals/reset.variables +1 -1
  354. package/src/themes/default/globals/site.variables +1074 -1123
  355. package/src/themes/default/globals/variation.variables +4 -3
  356. package/src/themes/default/modules/accordion.overrides +11 -11
  357. package/src/themes/default/modules/accordion.variables +15 -20
  358. package/src/themes/default/modules/calendar.variables +2 -0
  359. package/src/themes/default/modules/chatroom.variables +1 -1
  360. package/src/themes/default/modules/checkbox.overrides +9 -13
  361. package/src/themes/default/modules/checkbox.variables +24 -33
  362. package/src/themes/default/modules/dimmer.variables +14 -17
  363. package/src/themes/default/modules/dropdown.overrides +17 -17
  364. package/src/themes/default/modules/dropdown.variables +29 -31
  365. package/src/themes/default/modules/embed.variables +9 -13
  366. package/src/themes/default/modules/flyout.variables +10 -8
  367. package/src/themes/default/modules/modal.variables +64 -67
  368. package/src/themes/default/modules/nag.variables +10 -13
  369. package/src/themes/default/modules/popup.variables +14 -13
  370. package/src/themes/default/modules/progress.variables +17 -19
  371. package/src/themes/default/modules/rating.variables +10 -12
  372. package/src/themes/default/modules/search.variables +12 -17
  373. package/src/themes/default/modules/shape.variables +7 -8
  374. package/src/themes/default/modules/sidebar.variables +4 -4
  375. package/src/themes/default/modules/slider.variables +55 -54
  376. package/src/themes/default/modules/sticky.variables +1 -1
  377. package/src/themes/default/modules/toast.variables +8 -8
  378. package/src/themes/default/modules/transition.overrides +936 -915
  379. package/src/themes/default/modules/transition.variables +1 -1
  380. package/src/themes/default/views/ad.variables +1 -1
  381. package/src/themes/default/views/card.variables +33 -45
  382. package/src/themes/default/views/comment.variables +7 -9
  383. package/src/themes/default/views/feed.variables +10 -10
  384. package/src/themes/default/views/item.variables +20 -23
  385. package/src/themes/default/views/statistic.variables +8 -8
  386. package/src/themes/duo/elements/loader.variables +1 -1
  387. package/src/themes/famfamfam/elements/flag.overrides +263 -268
  388. package/src/themes/famfamfam/elements/flag.variables +4 -4
  389. package/src/themes/fixed-width/collections/grid.variables +4 -4
  390. package/src/themes/fixed-width/modules/modal.variables +11 -13
  391. package/src/themes/flat/collections/form.overrides +9 -9
  392. package/src/themes/flat/collections/form.variables +16 -17
  393. package/src/themes/flat/globals/site.variables +69 -74
  394. package/src/themes/github/assets/fonts/octicons.woff2 +0 -0
  395. package/src/themes/github/collections/breadcrumb.variables +0 -1
  396. package/src/themes/github/collections/form.overrides +7 -8
  397. package/src/themes/github/collections/form.variables +16 -18
  398. package/src/themes/github/collections/grid.variables +1 -2
  399. package/src/themes/github/collections/menu.overrides +2 -2
  400. package/src/themes/github/collections/menu.variables +24 -26
  401. package/src/themes/github/collections/message.overrides +3 -3
  402. package/src/themes/github/collections/message.variables +12 -14
  403. package/src/themes/github/collections/table.variables +2 -2
  404. package/src/themes/github/elements/button.overrides +0 -1
  405. package/src/themes/github/elements/button.variables +26 -30
  406. package/src/themes/github/elements/header.variables +2 -2
  407. package/src/themes/github/elements/icon.overrides +3 -208
  408. package/src/themes/github/elements/icon.variables +234 -19
  409. package/src/themes/github/elements/image.variables +1 -1
  410. package/src/themes/github/elements/input.overrides +16 -16
  411. package/src/themes/github/elements/input.variables +4 -5
  412. package/src/themes/github/elements/label.overrides +3 -3
  413. package/src/themes/github/elements/label.variables +0 -1
  414. package/src/themes/github/elements/segment.variables +9 -10
  415. package/src/themes/github/elements/step.overrides +13 -13
  416. package/src/themes/github/elements/step.variables +6 -6
  417. package/src/themes/github/globals/site.variables +16 -16
  418. package/src/themes/github/modules/dropdown.overrides +18 -19
  419. package/src/themes/github/modules/dropdown.variables +8 -10
  420. package/src/themes/github/modules/popup.variables +0 -2
  421. package/src/themes/gmail/collections/message.overrides +3 -0
  422. package/src/themes/gmail/collections/message.variables +4 -4
  423. package/src/themes/instagram/views/card.overrides +4 -5
  424. package/src/themes/instagram/views/card.variables +7 -8
  425. package/src/themes/joypixels/elements/emoji.overrides +0 -2
  426. package/src/themes/joypixels/elements/emoji.variables +3554 -3554
  427. package/src/themes/material/collections/menu.overrides +1 -1
  428. package/src/themes/material/collections/menu.variables +4 -4
  429. package/src/themes/material/elements/button.overrides +7 -9
  430. package/src/themes/material/elements/button.variables +44 -46
  431. package/src/themes/material/elements/header.overrides +3 -3
  432. package/src/themes/material/elements/header.variables +8 -10
  433. package/src/themes/material/elements/icon.overrides +3 -934
  434. package/src/themes/material/elements/icon.variables +958 -18
  435. package/src/themes/material/globals/site.overrides +3 -0
  436. package/src/themes/material/globals/site.variables +83 -84
  437. package/src/themes/material/modules/dropdown.overrides +2 -2
  438. package/src/themes/material/modules/dropdown.variables +5 -5
  439. package/src/themes/material/modules/modal.overrides +3 -3
  440. package/src/themes/material/modules/modal.variables +4 -5
  441. package/src/themes/pulsar/elements/loader.overrides +23 -61
  442. package/src/themes/raised/elements/button.variables +8 -9
  443. package/src/themes/resetcss/globals/reset.overrides +115 -33
  444. package/src/themes/resetcss/globals/reset.variables +1 -1
  445. package/src/themes/round/elements/button.overrides +3 -0
  446. package/src/themes/round/elements/button.variables +33 -38
  447. package/src/themes/rtl/globals/site.overrides +1 -1
  448. package/src/themes/rtl/globals/site.variables +5 -6
  449. package/src/themes/striped/modules/progress.overrides +20 -16
  450. package/src/themes/systemfont/globals/reset.overrides +1 -1
  451. package/src/themes/systemfont/globals/site.variables +6 -6
  452. package/src/themes/timeline/views/feed.overrides +12 -12
  453. package/src/themes/timeline/views/feed.variables +8 -8
  454. package/src/themes/twitter/elements/button.overrides +4 -5
  455. package/src/themes/twitter/elements/button.variables +17 -18
  456. package/src/themes/twitter/elements/emoji.variables +3556 -3556
  457. package/tasks/.eslintrc.js +9 -0
  458. package/tasks/README.md +2 -4
  459. package/tasks/admin/components/create.js +268 -277
  460. package/tasks/admin/components/init.js +123 -129
  461. package/tasks/admin/components/update.js +151 -158
  462. package/tasks/admin/distributions/create.js +183 -189
  463. package/tasks/admin/distributions/init.js +125 -131
  464. package/tasks/admin/distributions/update.js +147 -153
  465. package/tasks/admin/publish.js +5 -9
  466. package/tasks/admin/register.js +37 -39
  467. package/tasks/admin/release.js +8 -12
  468. package/tasks/build/assets.js +43 -40
  469. package/tasks/build/css.js +230 -217
  470. package/tasks/build/javascript.js +120 -114
  471. package/tasks/build.js +11 -11
  472. package/tasks/check-install.js +15 -17
  473. package/tasks/clean.js +6 -6
  474. package/tasks/collections/README.md +3 -5
  475. package/tasks/collections/admin.js +34 -36
  476. package/tasks/collections/build.js +19 -21
  477. package/tasks/collections/docs.js +11 -13
  478. package/tasks/collections/install.js +11 -13
  479. package/tasks/collections/rtl.js +9 -12
  480. package/tasks/collections/various.js +10 -12
  481. package/tasks/config/admin/github.js +17 -19
  482. package/tasks/config/admin/oauth.example.js +4 -4
  483. package/tasks/config/admin/release.js +98 -98
  484. package/tasks/config/admin/templates/README.md +8 -8
  485. package/tasks/config/admin/templates/bower.json +3 -2
  486. package/tasks/config/admin/templates/component-package.js +9 -10
  487. package/tasks/config/admin/templates/css-package.js +19 -21
  488. package/tasks/config/admin/templates/less-package.js +12 -14
  489. package/tasks/config/admin/templates/package.json +6 -6
  490. package/tasks/config/defaults.js +116 -116
  491. package/tasks/config/docs.js +23 -23
  492. package/tasks/config/npm/gulpfile.js +15 -14
  493. package/tasks/config/project/config.js +124 -136
  494. package/tasks/config/project/install.js +722 -719
  495. package/tasks/config/project/release.js +34 -41
  496. package/tasks/config/tasks.js +168 -167
  497. package/tasks/config/user.js +28 -32
  498. package/tasks/docs/build.js +100 -96
  499. package/tasks/docs/metadata.js +91 -98
  500. package/tasks/docs/serve.js +84 -82
  501. package/tasks/install.js +373 -382
  502. package/tasks/rtl/build.js +4 -3
  503. package/tasks/rtl/watch.js +4 -3
  504. package/tasks/version.js +4 -6
  505. package/tasks/watch.js +29 -31
  506. package/test/.eslintrc.js +23 -0
  507. package/test/meteor/assets.js +11 -14
  508. package/test/meteor/fonts.js +12 -13
  509. package/test/modules/accordion.spec.js +6 -8
  510. package/test/modules/checkbox.spec.js +5 -7
  511. package/test/modules/dropdown.spec.js +5 -7
  512. package/test/modules/modal.spec.js +6 -8
  513. package/test/modules/module.spec.js +158 -178
  514. package/test/modules/popup.spec.js +5 -7
  515. package/test/modules/search.spec.js +5 -7
  516. package/test/modules/shape.spec.js +5 -7
  517. package/test/modules/sidebar.spec.js +5 -7
  518. package/test/modules/tab.spec.js +6 -8
  519. package/test/modules/transition.spec.js +5 -7
  520. package/test/modules/video.spec.js +5 -7
  521. package/.github/workflows/codeql.yml +0 -68
@@ -8,53 +8,47 @@
8
8
  *
9
9
  */
10
10
 
11
-
12
11
  /*******************************
13
12
  Theme
14
13
  *******************************/
15
14
 
16
- @type : 'element';
17
- @element : 'icon';
18
-
19
- @import (multiple) '../../theme.config';
15
+ @type: "element";
16
+ @element: "icon";
20
17
 
18
+ @import (multiple) "../../theme.config";
21
19
 
22
20
  /*******************************
23
21
  Icon
24
22
  *******************************/
25
23
  & when (@importIcons) {
26
- each(@fonts, {
27
- @font-face {
28
- each(@value,{
29
- @{key}: @value;
30
- });
31
- }
32
- })
24
+ each(@fonts, {
25
+ @font-face {
26
+ each(@value, {
27
+ @{key}: @value;
28
+ });
29
+ }
30
+ });
33
31
  }
34
32
 
35
33
  i.icon {
36
- display: inline-block;
37
- opacity: @opacity;
38
-
39
- margin: 0 @distanceFromText 0 0;
40
-
41
- width: @width;
42
- height: @height;
43
-
44
- font-family: @fontName;
45
- font-style: normal;
46
- font-weight: @normal;
47
- text-decoration: inherit;
48
- text-align: center;
49
-
50
- speak: none;
51
- -moz-osx-font-smoothing: grayscale;
52
- -webkit-font-smoothing: antialiased;
53
- backface-visibility: hidden;
34
+ display: inline-block;
35
+ opacity: @opacity;
36
+ margin: 0 @distanceFromText 0 0;
37
+ width: @width;
38
+ height: @height;
39
+ font-family: @fontName;
40
+ font-style: normal;
41
+ font-weight: @normal;
42
+ text-decoration: inherit;
43
+ text-align: center;
44
+ speak: none;
45
+ -moz-osx-font-smoothing: grayscale;
46
+ -webkit-font-smoothing: antialiased;
47
+ backface-visibility: hidden;
54
48
  }
55
49
 
56
50
  i.icon::before {
57
- background: none !important;
51
+ background: none !important;
58
52
  }
59
53
 
60
54
  /*******************************
@@ -62,35 +56,40 @@ i.icon::before {
62
56
  *******************************/
63
57
 
64
58
  & when (@variationIconLoading) {
65
- /*--------------
66
- Loading
67
- ---------------*/
68
-
69
- i.loading.icon {
70
- height: 1em;
71
- line-height: 1;
72
- }
73
- i.loading.icon, i.loading.icons {
74
- animation: loader @loadingDuration linear infinite;
75
- }
59
+ /* --------------
60
+ Loading
61
+ --------------- */
62
+
63
+ i.loading.icon {
64
+ height: 1em;
65
+ line-height: 1;
66
+ }
67
+ i.loading.icon,
68
+ i.loading.icons {
69
+ animation: loader @loadingDuration linear infinite;
70
+ }
76
71
  }
77
72
 
78
73
  /*******************************
79
74
  States
80
75
  *******************************/
81
76
 
82
- i.icon:hover, i.icons:hover,
83
- i.icon:active, i.icons:active,
84
- i.emphasized.icon:not(.disabled), i.emphasized.icons:not(.disabled) {
85
- opacity: 1;
77
+ i.icon:hover,
78
+ i.icons:hover,
79
+ i.icon:active,
80
+ i.icons:active,
81
+ i.emphasized.icon:not(.disabled),
82
+ i.emphasized.icons:not(.disabled) {
83
+ opacity: 1;
86
84
  }
87
85
 
88
86
  & when (@variationIconDisabled) {
89
- i.disabled.icon, i.disabled.icons {
90
- opacity: @disabledOpacity;
91
- cursor: default;
92
- pointer-events: none;
93
- }
87
+ i.disabled.icon,
88
+ i.disabled.icons {
89
+ opacity: @disabledOpacity;
90
+ cursor: default;
91
+ pointer-events: none;
92
+ }
94
93
  }
95
94
 
96
95
  /*******************************
@@ -98,578 +97,562 @@ i.emphasized.icon:not(.disabled), i.emphasized.icons:not(.disabled) {
98
97
  *******************************/
99
98
 
100
99
  & when (@variationIconFitted) {
101
- /*-------------------
102
- Fitted
103
- --------------------*/
104
-
105
- i.fitted.icons,
106
- i.fitted.icon {
107
- width: auto;
108
- margin: 0 !important;
109
- }
100
+ /* -------------------
101
+ Fitted
102
+ -------------------- */
103
+
104
+ i.fitted.icons,
105
+ i.fitted.icon {
106
+ width: auto;
107
+ margin: 0 !important;
108
+ }
110
109
  }
111
110
 
112
111
  & when (@variationIconLink) {
113
- /*-------------------
114
- Link
115
- --------------------*/
116
-
117
- i.link.icon:not(.disabled), i.link.icons:not(.disabled) {
118
- cursor: pointer;
119
- opacity: @linkOpacity;
120
- transition: opacity @defaultDuration @defaultEasing;
121
- }
122
- i.link.icon:hover, i.link.icons:hover {
123
- opacity: 1;
124
- }
112
+ /* -------------------
113
+ Link
114
+ -------------------- */
115
+
116
+ i.link.icon:not(.disabled),
117
+ i.link.icons:not(.disabled) {
118
+ cursor: pointer;
119
+ opacity: @linkOpacity;
120
+ transition: opacity @defaultDuration @defaultEasing;
121
+ }
122
+ i.link.icon:hover,
123
+ i.link.icons:hover {
124
+ opacity: 1;
125
+ }
125
126
  }
126
127
 
127
128
  & when (@variationIconCircular) {
128
- /*-------------------
129
- Circular
130
- --------------------*/
131
-
132
- i.circular.icon {
133
- border-radius: 500em !important;
134
- line-height: 1 !important;
135
-
136
- padding: @circularPadding !important;
137
- box-shadow: @circularShadow;
138
-
139
- width: @circularSize !important;
140
- height: @circularSize !important;
141
- &.colored when (@variationIconColored){
142
- box-shadow: @coloredBoxShadow;
129
+ /* -------------------
130
+ Circular
131
+ -------------------- */
132
+
133
+ i.circular.icon {
134
+ border-radius: 500em !important;
135
+ line-height: 1 !important;
136
+ padding: @circularPadding !important;
137
+ box-shadow: @circularShadow;
138
+ width: @circularSize !important;
139
+ height: @circularSize !important;
140
+ &.colored when (@variationIconColored) {
141
+ box-shadow: @coloredBoxShadow;
142
+ }
143
143
  }
144
- }
145
- & when (@variationIconInverted) {
146
- i.circular.inverted.icon {
147
- border: none;
148
- box-shadow: none;
144
+ & when (@variationIconInverted) {
145
+ i.circular.inverted.icon {
146
+ border: none;
147
+ box-shadow: none;
148
+ }
149
149
  }
150
- }
151
150
  }
152
151
 
153
152
  & when (@variationIconFlipped) {
154
- /*-------------------
155
- Flipped
156
- --------------------*/
157
-
158
- i.flipped.icon,
159
- i.horizontally.flipped.icon {
160
- transform: scale(-1, 1);
161
- }
162
- i.vertically.flipped.icon {
163
- transform: scale(1, -1);
164
- }
165
-
166
- & when (@variationIconGroups) {
167
- .icons i.flipped.icon:not(.corner):not(:first-child),
168
- .icons i.horizontally.flipped.icon:not(.corner):not(:first-child) {
169
- transform: translateX(-50%) translateY(-50%) scale(-1, 1);
170
- }
171
- .icons i.vertically.flipped.icon:not(.corner):not(:first-child) {
172
- transform: translateX(-50%) translateY(-50%) scale(1, -1);
173
- }
174
- }
153
+ /* -------------------
154
+ Flipped
155
+ -------------------- */
156
+
157
+ i.flipped.icon,
158
+ i.horizontally.flipped.icon {
159
+ transform: scale(-1, 1);
160
+ }
161
+ i.vertically.flipped.icon {
162
+ transform: scale(1, -1);
163
+ }
164
+
165
+ & when (@variationIconGroups) {
166
+ .icons i.flipped.icon:not(.corner):not(:first-child),
167
+ .icons i.horizontally.flipped.icon:not(.corner):not(:first-child) {
168
+ transform: translateX(-50%) translateY(-50%) scale(-1, 1);
169
+ }
170
+ .icons i.vertically.flipped.icon:not(.corner):not(:first-child) {
171
+ transform: translateX(-50%) translateY(-50%) scale(1, -1);
172
+ }
173
+ }
175
174
  }
176
175
 
177
176
  & when (@variationIconRotated) {
178
- /*-------------------
179
- Rotated
180
- --------------------*/
181
-
182
- i.rotated.icon,
183
- i.right.rotated.icon,
184
- i.clockwise.rotated.icon {
185
- transform: rotate(90deg);
186
- }
187
-
188
- i.left.rotated.icon,
189
- i.counterclockwise.rotated.icon {
190
- transform: rotate(-90deg);
191
- }
192
-
193
- i.halfway.rotated.icon {
194
- transform: rotate(180deg);
195
- }
196
-
197
- & when (@variationIconGroups) {
198
- .icons i.rotated.rotated.icon:not(.corner):not(:first-child),
199
- .icons i.right.rotated.icon:not(.corner):not(:first-child),
200
- .icons i.clockwise.rotated.icon:not(.corner):not(:first-child) {
201
- transform: translateX(-50%) translateY(-50%) rotate(90deg);
202
- }
203
- .icons i.left.rotated.icon:not(.corner):not(:first-child),
204
- .icons i.counterclockwise.rotated.icon:not(.corner):not(:first-child) {
205
- transform: translateX(-50%) translateY(-50%) rotate(-90deg);
206
- }
207
- .icons i.halfway.rotated.icon:not(.corner):not(:first-child) {
208
- transform: translateX(-50%) translateY(-50%) rotate(180deg);
209
- }
210
- }
177
+ /* -------------------
178
+ Rotated
179
+ -------------------- */
180
+
181
+ i.rotated.icon,
182
+ i.right.rotated.icon,
183
+ i.clockwise.rotated.icon {
184
+ transform: rotate(90deg);
185
+ }
186
+
187
+ i.left.rotated.icon,
188
+ i.counterclockwise.rotated.icon {
189
+ transform: rotate(-90deg);
190
+ }
191
+
192
+ i.halfway.rotated.icon {
193
+ transform: rotate(180deg);
194
+ }
195
+
196
+ & when (@variationIconGroups) {
197
+ .icons i.rotated.rotated.icon:not(.corner):not(:first-child),
198
+ .icons i.right.rotated.icon:not(.corner):not(:first-child),
199
+ .icons i.clockwise.rotated.icon:not(.corner):not(:first-child) {
200
+ transform: translateX(-50%) translateY(-50%) rotate(90deg);
201
+ }
202
+ .icons i.left.rotated.icon:not(.corner):not(:first-child),
203
+ .icons i.counterclockwise.rotated.icon:not(.corner):not(:first-child) {
204
+ transform: translateX(-50%) translateY(-50%) rotate(-90deg);
205
+ }
206
+ .icons i.halfway.rotated.icon:not(.corner):not(:first-child) {
207
+ transform: translateX(-50%) translateY(-50%) rotate(180deg);
208
+ }
209
+ }
211
210
  }
212
211
 
213
212
  & when (@variationIconFlipped) and (@variationIconRotated) {
214
- /*--------------------------
215
- Flipped & Rotated
216
- ---------------------------*/
217
-
218
- i.rotated.flipped.icon,
219
- i.right.rotated.flipped.icon,
220
- i.clockwise.rotated.flipped.icon {
221
- transform: scale(-1, 1) rotate(90deg);
222
- }
223
-
224
- i.left.rotated.flipped.icon,
225
- i.counterclockwise.rotated.flipped.icon {
226
- transform: scale(-1, 1) rotate(-90deg);
227
- }
228
-
229
- i.halfway.rotated.flipped.icon {
230
- transform: scale(-1, 1) rotate(180deg);
231
- }
232
-
233
- i.rotated.vertically.flipped.icon,
234
- i.right.rotated.vertically.flipped.icon,
235
- i.clockwise.rotated.vertically.flipped.icon {
236
- transform: scale(1, -1) rotate(90deg);
237
- }
238
-
239
- i.left.rotated.vertically.flipped.icon,
240
- i.counterclockwise.rotated.vertically.flipped.icon {
241
- transform: scale(1, -1) rotate(-90deg);
242
- }
243
-
244
- i.halfway.rotated.vertically.flipped.icon {
245
- transform: scale(1, -1) rotate(180deg);
246
- }
247
-
248
- & when (@variationIconGroups) {
249
- .icons i.rotated.flipped.icon:not(.corner):not(:first-child),
250
- .icons i.right.rotated.flipped.icon:not(.corner):not(:first-child),
251
- .icons i.clockwise.rotated.flipped.icon:not(.corner):not(:first-child) {
252
- transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(90deg);
253
- }
254
- .icons i.left.rotated.flipped.icon:not(.corner):not(:first-child),
255
- .icons i.counterclockwise.rotated.flipped.icon:not(.corner):not(:first-child) {
256
- transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(-90deg);
257
- }
258
- .icons i.halfway.rotated.flipped.icon:not(.corner):not(:first-child) {
259
- transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(180deg);
260
- }
261
- .icons i.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
262
- .icons i.right.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
263
- .icons i.clockwise.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
264
- transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(90deg);
265
- }
266
- .icons i.left.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
267
- .icons i.counterclockwise.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
268
- transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(-90deg);
269
- }
270
- .icons i.halfway.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
271
- transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(180deg);
272
- }
273
- }
213
+ /* --------------------------
214
+ Flipped & Rotated
215
+ --------------------------- */
216
+
217
+ i.rotated.flipped.icon,
218
+ i.right.rotated.flipped.icon,
219
+ i.clockwise.rotated.flipped.icon {
220
+ transform: scale(-1, 1) rotate(90deg);
221
+ }
222
+
223
+ i.left.rotated.flipped.icon,
224
+ i.counterclockwise.rotated.flipped.icon {
225
+ transform: scale(-1, 1) rotate(-90deg);
226
+ }
227
+
228
+ i.halfway.rotated.flipped.icon {
229
+ transform: scale(-1, 1) rotate(180deg);
230
+ }
231
+
232
+ i.rotated.vertically.flipped.icon,
233
+ i.right.rotated.vertically.flipped.icon,
234
+ i.clockwise.rotated.vertically.flipped.icon {
235
+ transform: scale(1, -1) rotate(90deg);
236
+ }
237
+
238
+ i.left.rotated.vertically.flipped.icon,
239
+ i.counterclockwise.rotated.vertically.flipped.icon {
240
+ transform: scale(1, -1) rotate(-90deg);
241
+ }
242
+
243
+ i.halfway.rotated.vertically.flipped.icon {
244
+ transform: scale(1, -1) rotate(180deg);
245
+ }
246
+
247
+ & when (@variationIconGroups) {
248
+ .icons i.rotated.flipped.icon:not(.corner):not(:first-child),
249
+ .icons i.right.rotated.flipped.icon:not(.corner):not(:first-child),
250
+ .icons i.clockwise.rotated.flipped.icon:not(.corner):not(:first-child) {
251
+ transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(90deg);
252
+ }
253
+ .icons i.left.rotated.flipped.icon:not(.corner):not(:first-child),
254
+ .icons i.counterclockwise.rotated.flipped.icon:not(.corner):not(:first-child) {
255
+ transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(-90deg);
256
+ }
257
+ .icons i.halfway.rotated.flipped.icon:not(.corner):not(:first-child) {
258
+ transform: translateX(-50%) translateY(-50%) scale(-1, 1) rotate(180deg);
259
+ }
260
+ .icons i.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
261
+ .icons i.right.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
262
+ .icons i.clockwise.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
263
+ transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(90deg);
264
+ }
265
+ .icons i.left.rotated.vertically.flipped.icon:not(.corner):not(:first-child),
266
+ .icons i.counterclockwise.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
267
+ transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(-90deg);
268
+ }
269
+ .icons i.halfway.rotated.vertically.flipped.icon:not(.corner):not(:first-child) {
270
+ transform: translateX(-50%) translateY(-50%) scale(1, -1) rotate(180deg);
271
+ }
272
+ }
274
273
  }
275
274
 
276
275
  & when (@variationIconBordered) {
277
- /*-------------------
278
- Bordered
279
- --------------------*/
280
-
281
- i.bordered.icon {
282
- line-height: 1;
283
- vertical-align: baseline;
284
-
285
- width: @borderedSize;
286
- height: @borderedSize;
287
- padding: @borderedVerticalPadding @borderedHorizontalPadding !important;
288
- box-shadow: @borderedShadow;
289
- &.colored when (@variationIconColored){
290
- box-shadow: @coloredBoxShadow;
291
- }
292
- }
293
- & when (@variationIconInverted) {
294
- i.bordered.inverted.icon {
295
- border: none;
296
- box-shadow: none;
297
- }
298
- }
276
+ /* -------------------
277
+ Bordered
278
+ -------------------- */
279
+
280
+ i.bordered.icon {
281
+ line-height: 1;
282
+ vertical-align: baseline;
283
+ width: @borderedSize;
284
+ height: @borderedSize;
285
+ padding: @borderedVerticalPadding @borderedHorizontalPadding !important;
286
+ box-shadow: @borderedShadow;
287
+ &.colored when (@variationIconColored) {
288
+ box-shadow: @coloredBoxShadow;
289
+ }
290
+ }
291
+ & when (@variationIconInverted) {
292
+ i.bordered.inverted.icon {
293
+ border: none;
294
+ box-shadow: none;
295
+ }
296
+ }
299
297
  }
300
298
 
301
299
  & when (@variationIconInverted) {
302
- /*-------------------
303
- Inverted
304
- --------------------*/
305
-
306
- /* Inverted Shapes */
307
- i.inverted.bordered.icon,
308
- i.inverted.circular.icon {
309
- background-color: @black;
310
- color: @white;
311
- }
312
-
313
- i.inverted.icon {
314
- color: @white;
315
- }
300
+ /* -------------------
301
+ Inverted
302
+ -------------------- */
303
+
304
+ /* Inverted Shapes */
305
+ i.inverted.bordered.icon,
306
+ i.inverted.circular.icon {
307
+ background-color: @black;
308
+ color: @white;
309
+ }
310
+
311
+ i.inverted.icon {
312
+ color: @white;
313
+ }
316
314
  }
317
315
 
318
- /*-------------------
316
+ /* -------------------
319
317
  Colors
320
- --------------------*/
318
+ -------------------- */
321
319
  & when not (@variationIconColors = false) {
322
- each(@variationIconColors, {
323
- @color: @value;
324
- @c: @colors[@@color][color];
325
- @l: @colors[@@color][light];
320
+ each(@variationIconColors, {
321
+ @color: @value;
322
+ @c: @colors[@@color][color];
323
+ @l: @colors[@@color][light];
326
324
 
327
- i.@{color}.icon.icon.icon.icon.icon {
328
- color: @c;
329
- }
330
- & when (@variationIconInverted) {
331
- i.inverted.@{color}.icon.icon.icon.icon.icon {
332
- color: @l;
333
- }
334
- & when (@variationIconBordered) or (@variationIconCircular) {
335
- i.inverted.bordered.@{color}.icon.icon.icon.icon.icon,
336
- i.inverted.circular.@{color}.icon.icon.icon.icon.icon,
337
- i.inverted.bordered.@{color}.icons,
338
- i.inverted.circular.@{color}.icons {
339
- background-color: @c;
340
- color: @white;
341
- }
342
- }
343
- }
344
- })
325
+ i.@{color}.icon.icon.icon.icon.icon {
326
+ color: @c;
327
+ }
328
+ & when (@variationIconInverted) {
329
+ i.inverted.@{color}.icon.icon.icon.icon.icon {
330
+ color: @l;
331
+ }
332
+ & when (@variationIconBordered) or (@variationIconCircular) {
333
+ i.inverted.bordered.@{color}.icon.icon.icon.icon.icon,
334
+ i.inverted.circular.@{color}.icon.icon.icon.icon.icon,
335
+ i.inverted.bordered.@{color}.icons,
336
+ i.inverted.circular.@{color}.icons {
337
+ background-color: @c;
338
+ color: @white;
339
+ }
340
+ }
341
+ }
342
+ });
345
343
  }
346
344
 
347
-
348
- /*-------------------
345
+ /* -------------------
349
346
  Sizes
350
- --------------------*/
347
+ -------------------- */
351
348
 
352
349
  i.icon,
353
350
  i.icons {
354
- font-size: @medium;
355
- line-height: @lineHeight;
356
- font-style: normal;
351
+ font-size: @medium;
352
+ line-height: @lineHeight;
353
+ font-style: normal;
357
354
  }
358
355
  & when not (@variationIconSizes = false) {
359
- each(@variationIconSizes, {
360
- @s: @@value;
361
- i.@{value}.@{value}.@{value}.icon,
362
- i.@{value}.@{value}.@{value}.icons {
363
- font-size: @s;
364
- vertical-align: middle;
365
- }
366
- })
356
+ each(@variationIconSizes, {
357
+ @s: @@value;
358
+ i.@{value}.@{value}.@{value}.icon,
359
+ i.@{value}.@{value}.@{value}.icons {
360
+ font-size: @s;
361
+ vertical-align: middle;
362
+ }
363
+ });
367
364
  }
368
365
 
369
366
  & when (@variationIconGroups) or (@variationIconCorner) {
370
- /*******************************
371
- Groups
372
- *******************************/
367
+ /*******************************
368
+ Groups
369
+ *******************************/
370
+
371
+ i.icons {
372
+ display: inline-block;
373
+ position: relative;
374
+ line-height: 1;
375
+ min-width: @width;
376
+ min-height: @height;
377
+ margin: 0 @distanceFromText 0 0;
378
+ text-align: center;
379
+ }
380
+
381
+ i.icons .icon {
382
+ position: absolute;
383
+ top: 50%;
384
+ left: 50%;
385
+ margin: 0;
386
+ &:not(.corner):not(.rotated):not(.flipped) {
387
+ transform: translateX(-50%) translateY(-50%);
388
+ }
389
+ }
373
390
 
374
- i.icons {
375
- display: inline-block;
376
- position: relative;
377
- line-height: 1;
378
- min-width: @width;
379
- min-height: @height;
380
- margin: 0 @distanceFromText 0 0;
381
- text-align: center;
382
- }
383
-
384
- i.icons .icon {
385
- position: absolute;
386
- top: 50%;
387
- left: 50%;
388
- margin: 0;
389
- &:not(.corner):not(.rotated):not(.flipped) {
390
- transform: translateX(-50%) translateY(-50%);
391
- }
392
- }
393
-
394
- i.icons .icon:first-child {
395
- position: static;
396
- width: auto;
397
- height: auto;
398
- vertical-align: top;
399
- }
400
- i.icons:not(.bordered):not(.circular) .icon:first-child:not(.rotated):not(.flipped) {
401
- transform: none;
402
- }
403
-
404
- & when (@variationIconCorner) {
405
- /* Corner Icon */
406
- i.icons .corner.icon {
407
- top: auto;
408
- left: auto;
409
- right: @cornerOffset;
410
- bottom: @cornerOffset;
411
- font-size: @cornerIconSize;
412
- text-shadow: @cornerIconShadow;
413
- &:not(.rotated):not(.flipped) {
391
+ i.icons .icon:first-child {
392
+ position: static;
393
+ width: auto;
394
+ height: auto;
395
+ vertical-align: top;
396
+ }
397
+ i.icons:not(.bordered):not(.circular) .icon:first-child:not(.rotated):not(.flipped) {
414
398
  transform: none;
415
- }
416
- }
417
- i.icons .icon.corner[class*="top right"] {
418
- top: @cornerOffset;
419
- left: auto;
420
- right: @cornerOffset;
421
- bottom: auto;
422
- }
423
- i.icons .icon.corner[class*="top left"] {
424
- top: @cornerOffset;
425
- left: @cornerOffset;
426
- right: auto;
427
- bottom: auto;
428
- }
429
- i.icons .icon.corner[class*="bottom left"] {
430
- top: auto;
431
- left: @cornerOffset;
432
- right: auto;
433
- bottom: @cornerOffset;
434
- }
435
- i.icons .icon.corner[class*="bottom right"] {
436
- top: auto;
437
- left: auto;
438
- right: @cornerOffset;
439
- bottom: @cornerOffset;
440
399
  }
441
- & when (@variationIconInverted) {
442
- i.icons .inverted.corner.icon {
443
- text-shadow: @cornerIconInvertedShadow;
444
- }
400
+
401
+ & when (@variationIconCorner) {
402
+ /* Corner Icon */
403
+ i.icons .corner.icon {
404
+ top: auto;
405
+ left: auto;
406
+ right: @cornerOffset;
407
+ bottom: @cornerOffset;
408
+ font-size: @cornerIconSize;
409
+ text-shadow: @cornerIconShadow;
410
+ &:not(.rotated):not(.flipped) {
411
+ transform: none;
412
+ }
413
+ }
414
+ i.icons .icon.corner[class*="top right"] {
415
+ top: @cornerOffset;
416
+ left: auto;
417
+ right: @cornerOffset;
418
+ bottom: auto;
419
+ }
420
+ i.icons .icon.corner[class*="top left"] {
421
+ top: @cornerOffset;
422
+ left: @cornerOffset;
423
+ right: auto;
424
+ bottom: auto;
425
+ }
426
+ i.icons .icon.corner[class*="bottom left"] {
427
+ top: auto;
428
+ left: @cornerOffset;
429
+ right: auto;
430
+ bottom: @cornerOffset;
431
+ }
432
+ i.icons .icon.corner[class*="bottom right"] {
433
+ top: auto;
434
+ left: auto;
435
+ right: @cornerOffset;
436
+ bottom: @cornerOffset;
437
+ }
438
+ & when (@variationIconInverted) {
439
+ i.icons .inverted.corner.icon {
440
+ text-shadow: @cornerIconInvertedShadow;
441
+ }
442
+ }
445
443
  }
446
- }
447
444
  }
448
445
 
449
- & when ((@variationIconGroups) or (@variationIconCorner))
450
- and ((@variationIconBordered) or (@variationIconCircular)) {
451
- /*************************************************
452
- Bordered/circular with corner or group icons
453
- *************************************************/
454
- i.bordered.icons,
455
- i.circular.icons {
456
- width: @borderedSize;
457
- height: @borderedSize;
458
- box-shadow: @borderedShadow;
459
- vertical-align: middle;
460
- &.colored when (@variationIconColored){
461
- box-shadow: @coloredBoxShadow;
462
- }
463
- }
464
- i.circular.icons {
465
- border-radius: 500em;
466
- }
467
- i.bordered.icons i.icon:first-child,
468
- i.circular.icons i.icon:first-child {
469
- position: absolute;
470
- transform: translateX(-50%) translateY(-50%);
471
- }
472
-
473
- & when (@variationIconInverted) {
474
- /* Inverted Icon */
475
- i.bordered.inverted.icons,
476
- i.circular.inverted.icons {
477
- border: none;
478
- box-shadow: none;
479
- background-color: @black;
480
- color: @white;
481
- }
482
- }
483
-
484
- & when (@variationIconCorner) {
485
- /* Corner Icon */
486
- i.bordered.icons .icon.corner,
487
- i.circular.icons .icon.corner,
488
- i.bordered.icons .icon.corner[class*="bottom right"],
489
- i.circular.icons .icon.corner[class*="bottom right"] {
490
- top: auto;
491
- left: auto;
492
- right: @borderedGroupCornerOffset;
493
- bottom: @borderedGroupCornerOffset;
494
- }
495
- i.bordered.icons .icon.corner[class*="top right"],
496
- i.circular.icons .icon.corner[class*="top right"] {
497
- top: @borderedGroupCornerOffset;
498
- left: auto;
499
- right: @borderedGroupCornerOffset;
500
- bottom: auto;
501
- }
502
- i.bordered.icons .icon.corner[class*="top left"],
503
- i.circular.icons .icon.corner[class*="top left"] {
504
- top: @borderedGroupCornerOffset;
505
- left: @borderedGroupCornerOffset;
506
- right: auto;
507
- bottom: auto;
508
- }
509
- i.bordered.icons .icon.corner[class*="bottom left"],
510
- i.circular.icons .icon.corner[class*="bottom left"] {
511
- top: auto;
512
- left: @borderedGroupCornerOffset;
513
- right: auto;
514
- bottom: @borderedGroupCornerOffset;
515
- }
516
- }
446
+ & when ((@variationIconGroups) or (@variationIconCorner)) and ((@variationIconBordered) or (@variationIconCircular)) {
447
+ /*************************************************
448
+ Bordered/circular with corner or group icons
449
+ *************************************************/
450
+ i.bordered.icons,
451
+ i.circular.icons {
452
+ width: @borderedSize;
453
+ height: @borderedSize;
454
+ box-shadow: @borderedShadow;
455
+ vertical-align: middle;
456
+ &.colored when (@variationIconColored) {
457
+ box-shadow: @coloredBoxShadow;
458
+ }
459
+ }
460
+ i.circular.icons {
461
+ border-radius: 500em;
462
+ }
463
+ i.bordered.icons i.icon:first-child,
464
+ i.circular.icons i.icon:first-child {
465
+ position: absolute;
466
+ transform: translateX(-50%) translateY(-50%);
467
+ }
468
+
469
+ & when (@variationIconInverted) {
470
+ /* Inverted Icon */
471
+ i.bordered.inverted.icons,
472
+ i.circular.inverted.icons {
473
+ border: none;
474
+ box-shadow: none;
475
+ background-color: @black;
476
+ color: @white;
477
+ }
478
+ }
479
+
480
+ & when (@variationIconCorner) {
481
+ /* Corner Icon */
482
+ i.bordered.icons .icon.corner,
483
+ i.circular.icons .icon.corner,
484
+ i.bordered.icons .icon.corner[class*="bottom right"],
485
+ i.circular.icons .icon.corner[class*="bottom right"] {
486
+ top: auto;
487
+ left: auto;
488
+ right: @borderedGroupCornerOffset;
489
+ bottom: @borderedGroupCornerOffset;
490
+ }
491
+ i.bordered.icons .icon.corner[class*="top right"],
492
+ i.circular.icons .icon.corner[class*="top right"] {
493
+ top: @borderedGroupCornerOffset;
494
+ left: auto;
495
+ right: @borderedGroupCornerOffset;
496
+ bottom: auto;
497
+ }
498
+ i.bordered.icons .icon.corner[class*="top left"],
499
+ i.circular.icons .icon.corner[class*="top left"] {
500
+ top: @borderedGroupCornerOffset;
501
+ left: @borderedGroupCornerOffset;
502
+ right: auto;
503
+ bottom: auto;
504
+ }
505
+ i.bordered.icons .icon.corner[class*="bottom left"],
506
+ i.circular.icons .icon.corner[class*="bottom left"] {
507
+ top: auto;
508
+ left: @borderedGroupCornerOffset;
509
+ right: auto;
510
+ bottom: @borderedGroupCornerOffset;
511
+ }
512
+ }
517
513
  }
518
514
 
519
- .generateIcons(@map, @fontFamily) {
520
- each(@map,{
521
- @escapedKey: replace(@key,'^([0-9])','\3$1 ');
522
- @normalizedKey: replace(@escapedKey,'_','.','g');
523
- i.icon.@{normalizedKey}::before {
524
- content: "@{value}";
525
- & when not (@fontFamily = false) {
526
- font-family: @fontFamily;
527
- }
528
- }
529
- });
530
- };
531
-
532
- .generateSecondaryIcons(@map) {
533
- each(@map,{
534
- @escapedKey: replace(@key,'^([0-9])','\3$1 ');
535
- @normalizedKey: replace(@escapedKey,'_','.','g');
536
- i.icon.@{normalizedKey}::after {
537
- content: "@{value}";
538
- }
539
- });
540
- };
515
+ .generateIcons(@map, @fontFamily: false, @pseudo: before) {
516
+ each(@map, {
517
+ @escapedKey: replace(@key, "^([0-9])", "\3$1 ");
518
+ @normalizedKey: replace(@escapedKey, "_", @iconClassSeparator, "g");
519
+ @unorderedKey: e(%(".%s::%s",@normalizedKey, @pseudo));
520
+ @orderedKey: e(%('[%s*="%s"]::%s', @iconForcedAttribute, @normalizedKey, @pseudo));
521
+ @selectorKey: if(@iconForcedOrder or @iconClassSeparator = " ", @orderedKey, @unorderedKey);
522
+ i.icon@{selectorKey} {
523
+ content: "@{value}";
524
+ & when not (@fontFamily = false) {
525
+ font-family: @fontFamily;
526
+ }
527
+ }
528
+ });
529
+ }
541
530
 
542
531
  & when (@variationIconDeprecated) {
543
-
544
- /* Deprecated *In/Out Naming Conflict) */
545
- .generateIcons(@icon-deprecated-map,false);
532
+ /* Deprecated *In/Out Naming Conflict) */
533
+ .generateIcons(@icon-deprecated-map);
546
534
  }
547
535
 
548
536
  & when (@variationIconSolid) {
549
- /*******************************
550
- Solid Icons
551
- *******************************/
537
+ /*******************************
538
+ Solid Icons
539
+ *******************************/
552
540
 
553
- /* Icons */
554
- .generateIcons(@icon-map,false);
555
- & when (@variationIconAliases) {
556
-
557
- /* Aliases */
558
- .generateIcons(@icon-aliases-map,false);
559
- }
541
+ /* Icons */
542
+ .generateIcons(@icon-map);
543
+ & when (@variationIconAliases) {
544
+ /* Aliases */
545
+ .generateIcons(@icon-aliases-map);
546
+ }
560
547
  }
561
548
 
562
549
  & when (@variationIconOutline) {
563
- /*******************************
564
- Outline Icons
565
- *******************************/
550
+ /*******************************
551
+ Outline Icons
552
+ *******************************/
566
553
 
567
- i.icon.outline {
568
- font-family: @outlineFontName;
569
- }
570
-
571
- /* Icons */
572
- .generateIcons(@icon-outline-map,false);
573
- & when (@variationIconAliases) {
554
+ i.icon.outline {
555
+ font-family: @outlineFontName;
556
+ }
574
557
 
575
- /* Aliases */
576
- .generateIcons(@icon-outline-aliases-map,false);
577
- }
558
+ /* Icons */
559
+ .generateIcons(@icon-outline-map);
560
+ & when (@variationIconAliases) {
561
+ /* Aliases */
562
+ .generateIcons(@icon-outline-aliases-map);
563
+ }
578
564
  }
579
565
 
580
566
  & when (@variationIconThin) {
581
- /*******************************
582
- Thin Icons
583
- *******************************/
584
-
585
- /* Icons */
586
- i.icon.thin {
587
- font-family: @thinFontName;
588
- }
589
- .generateIcons(@icon-thin-map,false);
590
- & when (@variationIconAliases) {
591
-
592
- /* Aliases */
593
- .generateIcons(@icon-thin-aliases-map,false);
594
- }
567
+ /*******************************
568
+ Thin Icons
569
+ *******************************/
570
+
571
+ /* Icons */
572
+ i.icon.thin {
573
+ font-family: @thinFontName;
574
+ }
575
+ .generateIcons(@icon-thin-map);
576
+ & when (@variationIconAliases) {
577
+ /* Aliases */
578
+ .generateIcons(@icon-thin-aliases-map);
579
+ }
595
580
  }
596
581
 
597
582
  & when (@variationIconBrand) {
598
- /*******************************
599
- Brand Icons
600
- *******************************/
583
+ /*******************************
584
+ Brand Icons
585
+ *******************************/
601
586
 
602
- /* Icons */
603
- .generateIcons(@icon-brand-map,@brandFontName);
604
- & when (@variationIconAliases) {
605
-
606
- /* Aliases */
607
- .generateIcons(@icon-brand-aliases-map,@brandFontName);
608
- }
587
+ /* Icons */
588
+ .generateIcons(@icon-brand-map, @brandFontName);
589
+ & when (@variationIconAliases) {
590
+ /* Aliases */
591
+ .generateIcons(@icon-brand-aliases-map, @brandFontName);
592
+ }
609
593
  }
610
594
 
611
595
  & when (@variationIconDuotone) {
612
- /*******************************
613
- Duotone Icons
614
- *******************************/
615
-
616
- /* Make duotone icons use the proper font */
617
- i.icon.duotone {
618
- font-family: @duotoneFontName;
619
- /* To position the secondary layer on top of the first layer */
620
- position: relative;
621
- }
622
-
623
- /* Set the default opacity levels and colors for each layer */
624
- i.icon.duotone::before {
625
- color: @duotonePrimaryColor;
626
- opacity: @duotonePrimaryOpacity;
627
- }
628
-
629
- i.icon.duotone::after {
630
- /* Position secondary layer to the left, centered horizontally and aligned vertically to flex with different line heights */
631
- position: absolute;
632
- left: 0;
633
- top: 50%;
634
- transform: translateY(-50%);
635
- text-align: center;
636
-
637
- color: @duotoneSecondaryColor;
638
- opacity: @duotoneSecondaryOpacity;
639
- }
640
-
641
- .generateIcons(@icon-duotone-map,false);
642
- .generateSecondaryIcons(@icon-duotone-secondary-map);
643
-
644
- & when (@variationIconAliases) {
645
-
646
- /* Aliases */
647
- .generateIcons(@icon-duotone-aliases-map,false);
648
- .generateSecondaryIcons(@icon-duotone-secondary-aliases-map);
649
- }
650
-
651
- /*
652
- * Colors for duotone icons, in the form `primary-secondary`(e.g. `black-grey duotone icon`).
653
- */
654
- & when not (@variationIconColors = false) {
655
- each(@variationIconColors, {
656
- @color: @value;
657
- @c: @colors[@@color][color];
658
- @l: @colors[@@color][light];
659
-
660
- i.icon.duotone[class*="@{color}-"]::before,
661
- i.icon.duotone[class*="-@{color}"]::after {
662
- color: @c;
663
- }
664
-
665
- & when (@variationIconInverted) {
666
- i.icon.inverted.duotone[class*="@{color}-"]::before,
667
- i.icon.inverted.duotone[class*="-@{color}"]::after {
668
- color: @l;
669
- }
670
- }
671
- })
672
- }
596
+ /*******************************
597
+ Duotone Icons
598
+ *******************************/
599
+
600
+ /* Make duotone icons use the proper font */
601
+ i.icon.duotone {
602
+ font-family: @duotoneFontName;
603
+
604
+ /* To position the secondary layer on top of the first layer */
605
+ position: relative;
606
+ }
607
+
608
+ /* Set the default opacity levels and colors for each layer */
609
+ i.icon.duotone::before {
610
+ color: @duotonePrimaryColor;
611
+ opacity: @duotonePrimaryOpacity;
612
+ }
613
+
614
+ i.icon.duotone::after {
615
+ /* Position secondary layer to the left, centered horizontally and aligned vertically to flex with different line heights */
616
+ position: absolute;
617
+ left: 0;
618
+ top: 50%;
619
+ transform: translateY(-50%);
620
+ text-align: center;
621
+ color: @duotoneSecondaryColor;
622
+ opacity: @duotoneSecondaryOpacity;
623
+ }
624
+
625
+ .generateIcons(@icon-duotone-map);
626
+ .generateIcons(@icon-duotone-secondary-map, false, after);
627
+
628
+ & when (@variationIconAliases) {
629
+ /* Aliases */
630
+ .generateIcons(@icon-duotone-aliases-map);
631
+ .generateIcons(@icon-duotone-secondary-aliases-map, false, after);
632
+ }
633
+
634
+ /*
635
+ * Colors for duotone icons, in the form `primary-secondary`(e.g. `black-grey duotone icon`).
636
+ */
637
+ & when not (@variationIconColors = false) {
638
+ each(@variationIconColors, {
639
+ @color: @value;
640
+ @c: @colors[@@color][color];
641
+ @l: @colors[@@color][light];
642
+
643
+ i.icon.duotone[class*="@{color}-"]::before,
644
+ i.icon.duotone[class*="-@{color}"]::after {
645
+ color: @c;
646
+ }
647
+
648
+ & when (@variationIconInverted) {
649
+ i.icon.inverted.duotone[class*="@{color}-"]::before,
650
+ i.icon.inverted.duotone[class*="-@{color}"]::after {
651
+ color: @l;
652
+ }
653
+ }
654
+ });
655
+ }
673
656
  }
674
657
 
675
658
  .loadUIOverrides();