fomantic-ui 2.9.1-beta.8 → 2.9.1

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 -745
  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 +53 -63
  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 +424 -202
  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 +9344 -12298
  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 +17 -8
  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 +541 -484
  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 -149
  249. package/src/definitions/modules/popup.js +1455 -1455
  250. package/src/definitions/modules/popup.less +738 -693
  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 +2016 -2012
  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 +6 -4
  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 +11 -14
  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,15 +8,14 @@
8
8
  *
9
9
  */
10
10
 
11
-
12
11
  /*******************************
13
12
  Theme
14
13
  *******************************/
15
14
 
16
- @type : 'module';
17
- @element : 'toast';
15
+ @type: "module";
16
+ @element: "toast";
18
17
 
19
- @import (multiple) '../../theme.config';
18
+ @import (multiple) "../../theme.config";
20
19
 
21
20
  /*******************************
22
21
  Toast container
@@ -25,417 +24,417 @@
25
24
  .ui.toast-container {
26
25
  position: fixed;
27
26
  z-index: 9999;
28
- &.absolute {
29
- position: absolute;
30
- }
31
- &.ui.attached when (@variationToastAttached) {
32
- width: 100%;
33
- left: 0;
34
- & .vertical.attached when (@variationToastVertical) {
35
- border-radius: 0;
36
- }
37
- &.ui.ui .attached.actions .button when (@variationToastActions) {
38
- border-radius: 0;
27
+ &.absolute {
28
+ position: absolute;
39
29
  }
40
- & .toast-box {
41
- margin: 0;
42
- width: 100%;
43
- border-radius: 0;
44
- & > .ui.toast,
45
- > .ui.message {
46
- margin-left: 0;
47
- }
48
- & when (@variationToastFloating) {
49
- &.floating,
50
- &.hoverfloating:hover {
51
- border: none;
52
- }
53
- }
54
- & > .vertical > .content when (@variationToastVertical) {
55
- flex: 1;
56
- }
57
- & > * {
30
+ &.ui.attached when (@variationToastAttached) {
58
31
  width: 100%;
59
- border-radius: 0;
60
- & > .vertical:not(.actions) when (@variationToastVertical) {
61
- flex: 1;
32
+ left: 0;
33
+ & .vertical.attached when (@variationToastVertical) {
34
+ border-radius: 0;
35
+ }
36
+ &.ui.ui .attached.actions .button when (@variationToastActions) {
37
+ border-radius: 0;
38
+ }
39
+ & .toast-box {
40
+ margin: 0;
41
+ width: 100%;
42
+ border-radius: 0;
43
+ & > .ui.toast,
44
+ > .ui.message {
45
+ margin-left: 0;
46
+ }
47
+ & when (@variationToastFloating) {
48
+ &.floating,
49
+ &.hoverfloating:hover {
50
+ border: none;
51
+ }
52
+ }
53
+ & > .vertical > .content when (@variationToastVertical) {
54
+ flex: 1;
55
+ }
56
+ & > * {
57
+ width: 100%;
58
+ border-radius: 0;
59
+ & > .vertical:not(.actions) when (@variationToastVertical) {
60
+ flex: 1;
61
+ }
62
+ }
63
+ & > .attached.actions when (@variationToastActions) {
64
+ margin-right: @toastLeftRightMargin;
65
+ }
66
+ }
67
+ &.top when (@variationToastTop) {
68
+ top: 0;
69
+ }
70
+ &.bottom when (@variationToastBottom) {
71
+ bottom: 0;
62
72
  }
63
- }
64
- & > .attached.actions when (@variationToastActions) {
65
- margin-right: @toastLeftRightMargin;
66
- }
67
73
  }
68
74
  &.top when (@variationToastTop) {
69
- top: 0;
75
+ &.right when (@variationToastRight) {
76
+ top: @toastContainerDistance;
77
+ right: @toastContainerDistance;
78
+ margin-left: @toastContainerDistance;
79
+ }
80
+ &.left when (@variationToastLeft) {
81
+ top: @toastContainerDistance;
82
+ left: @toastContainerDistance;
83
+ margin-right: @toastContainerDistance;
84
+ }
85
+ &.center when (@variationToastCenter) {
86
+ left: 50%;
87
+ transform: translate(-50%, 0);
88
+ top: @toastContainerDistance;
89
+ }
70
90
  }
71
91
  &.bottom when (@variationToastBottom) {
72
- bottom: 0;
73
- }
74
- }
75
- &.top when (@variationToastTop) {
76
- &.right when (@variationToastRight) {
77
- top: @toastContainerDistance;
78
- right: @toastContainerDistance;
79
- margin-left: @toastContainerDistance;
80
- }
81
- &.left when (@variationToastLeft) {
82
- top: @toastContainerDistance;
83
- left: @toastContainerDistance;
84
- margin-right: @toastContainerDistance;
85
- }
86
- &.center when (@variationToastCenter) {
87
- left: 50%;
88
- transform: translate(-50%, 0);
89
- top: @toastContainerDistance;
90
- }
91
- }
92
- &.bottom when (@variationToastBottom) {
93
- &.right when (@variationToastRight) {
94
- bottom: @toastContainerDistance;
95
- right: @toastContainerDistance;
96
- margin-left: @toastContainerDistance;
97
- }
98
- &.left when (@variationToastLeft) {
99
- bottom: @toastContainerDistance;
100
- left: @toastContainerDistance;
101
- margin-right: @toastContainerDistance;
102
- }
103
- &.center when (@variationToastCenter) {
104
- left: 50%;
105
- transform: translate(-50%, 0);
106
- bottom: @toastContainerDistance;
107
- }
108
- }
109
- &.centered when (@variationToastCentered) {
110
- transform: translate(-50%, -50%);
111
- top: 50%;
112
- left: 50%;
113
- }
114
- & .visible.toast-box,
115
- .animating.toast-box,
116
- .toast-box {
117
- display: table !important;
118
- }
119
- &.horizontal when (@variationToastHorizontal) {
120
- display: flex;
121
- flex-direction: row;
122
- & .toast-box {
123
- margin-right: @toastBoxMarginRight;
124
- }
125
- }
126
- & .toast-box {
127
- margin-bottom: @toastBoxMarginBottom;
128
- border-radius: @defaultBorderRadius;
129
- cursor: default;
130
- will-change: transform, opacity;
131
- &:hover {
132
- opacity: @toastOpacityOnHover;
133
- }
134
- &:not(.unclickable):hover {
135
- cursor: @toastCursorOnHover;
136
- }
137
- & when (@variationToastFloating) {
138
- &.floating,
139
- &.hoverfloating:hover {
140
- box-shadow: @floatingShadow;
141
- border: @toastBoxBorder;
142
- }
143
- }
144
- & when (@variationToastCompact) {
145
- &.compact,
146
- > .compact {
147
- width: @toastWidth;
148
- }
149
- }
150
- & > .ui.toast,
151
- > .ui.message {
152
- margin: @toastMargin;
153
- position: relative;
154
- }
155
- & > .attached.progress when (@variationToastProgress) {
156
- z-index:1;
157
- &.bottom {
158
- margin: @toastMarginProgress -@toastLeftRightMargin @toastMarginBottom;
159
- }
160
- &.top {
161
- margin: @toastMarginBottom -@toastLeftRightMargin @toastMarginProgress;
162
- }
163
- & .bar {
164
- min-width: 0;
165
- }
166
- &.info .bar.bar.bar {
167
- background: @toastInfoProgressColor;
168
- }
169
- &.warning .bar.bar.bar {
170
- background: @toastWarningProgressColor;
171
- }
172
- &.success .bar.bar.bar {
173
- background: @toastSuccessProgressColor;
174
- }
175
- &.error .bar.bar.bar {
176
- background: @toastErrorProgressColor;
177
- }
178
- &.neutral .bar.bar.bar {
179
- background: @toastNeutralProgressColor;
180
- }
181
- }
182
- & > .ui.message when (@variationToastMessage) {
183
- & > .close.icon when (@variationToastClose){
184
- top: @toastCloseTopDistance;
185
- right: @toastCloseRightDistance;
186
- }
187
- & > .actions:last-child when (@variationToastActions) {
188
- margin-bottom: @toastActionMargin;
189
- }
190
- &.icon when (@variationToastIcon) {
191
- align-items: inherit;
192
- & > :not(.icon):not(.actions) {
193
- padding-left: @toastIconMessageContentPadding;
92
+ &.right when (@variationToastRight) {
93
+ bottom: @toastContainerDistance;
94
+ right: @toastContainerDistance;
95
+ margin-left: @toastContainerDistance;
194
96
  }
195
- & > i.icon:not(.close) when (@variationToastIcon) {
196
- display: inline-block;
197
- position: absolute;
198
- width: @toastIconMessageWidth;
199
- top: 50%;
200
- transform: translateY(-50%);
201
- }
202
- &:not(.vertical) {
203
- &.actions > i.icon:not(.close) when (@variationToastActions) and (@variationToastIcon) {
204
- top: e(%("calc(50%% - %d)", @toastIconCenteredAdjustment));
205
- transform: none;
206
- }
207
- &.icon.icon.icon when (@variationToastIcon){
208
- display: block;
209
- }
97
+ &.left when (@variationToastLeft) {
98
+ bottom: @toastContainerDistance;
99
+ left: @toastContainerDistance;
100
+ margin-right: @toastContainerDistance;
101
+ }
102
+ &.center when (@variationToastCenter) {
103
+ left: 50%;
104
+ transform: translate(-50%, 0);
105
+ bottom: @toastContainerDistance;
210
106
  }
211
- }
212
107
  }
213
- & .ui.toast {
214
- & > .close.icon when (@variationToastClose){
215
- cursor: pointer;
216
- margin: 0;
217
- opacity: @toastCloseOpacity;
218
- transition: @toastCloseTransition;
108
+ &.centered when (@variationToastCentered) {
109
+ transform: translate(-50%, -50%);
110
+ top: 50%;
111
+ left: 50%;
112
+ }
113
+ & .visible.toast-box,
114
+ .animating.toast-box,
115
+ .toast-box {
116
+ display: table !important;
117
+ }
118
+ &.horizontal when (@variationToastHorizontal) {
119
+ display: flex;
120
+ flex-direction: row;
121
+ & .toast-box {
122
+ margin-right: @toastBoxMarginRight;
123
+ }
124
+ }
125
+ & .toast-box {
126
+ margin-bottom: @toastBoxMarginBottom;
127
+ border-radius: @defaultBorderRadius;
128
+ cursor: default;
129
+ will-change: transform, opacity;
219
130
  &:hover {
220
- opacity: 1;
221
- }
222
- }
223
- &.vertical > .close.icon when (@variationToastVertical) and (@variationToastClose) {
224
- margin-top: -@toastCloseTopDistance;
225
- margin-right: -@toastCloseTopDistance;
226
- }
227
- &:not(.vertical) > .close.icon when (@variationToastClose) {
228
- position: absolute;
229
- top: @toastCloseTopDistance;
230
- &:not(.left) {
231
- right: @toastCloseRightDistance;
131
+ opacity: @toastOpacityOnHover;
232
132
  }
233
- &.left {
234
- margin-left: -@toastCloseRightDistance;
133
+ &:not(.unclickable):hover {
134
+ cursor: @toastCursorOnHover;
235
135
  }
236
- }
237
- }
238
- & .ui.card when (@variationToastCard) {
239
- margin:0;
240
- &.attached:not(.vertical) when (@variationToastAttached) {
241
- &.bottom {
242
- border-top-left-radius: 0;
243
- border-top-right-radius: 0;
244
- &.horizontal {
245
- & > .image > img {
246
- border-top-left-radius: 0;
136
+ & when (@variationToastFloating) {
137
+ &.floating,
138
+ &.hoverfloating:hover {
139
+ box-shadow: @floatingShadow;
140
+ border: @toastBoxBorder;
247
141
  }
248
- & > .image:last-child > img {
249
- border-top-right-radius: 0;
142
+ }
143
+ & when (@variationToastCompact) {
144
+ &.compact,
145
+ > .compact {
146
+ width: @toastWidth;
250
147
  }
251
- }
252
148
  }
253
- &.top {
254
- border-bottom-left-radius: 0;
255
- border-bottom-right-radius: 0;
256
- &.horizontal {
257
- & > .image > img {
258
- border-bottom-left-radius: 0;
149
+ & > .ui.toast,
150
+ > .ui.message {
151
+ margin: @toastMargin;
152
+ position: relative;
153
+ }
154
+ & > .attached.progress when (@variationToastProgress) {
155
+ z-index: 1;
156
+ &.bottom {
157
+ margin: @toastMarginProgress -@toastLeftRightMargin @toastMarginBottom;
259
158
  }
260
- & > .image:last-child > img {
261
- border-bottom-right-radius: 0;
159
+ &.top {
160
+ margin: @toastMarginBottom -@toastLeftRightMargin @toastMarginProgress;
161
+ }
162
+ & .bar {
163
+ min-width: 0;
164
+ }
165
+ &.info .bar.bar.bar {
166
+ background: @toastInfoProgressColor;
167
+ }
168
+ &.warning .bar.bar.bar {
169
+ background: @toastWarningProgressColor;
170
+ }
171
+ &.success .bar.bar.bar {
172
+ background: @toastSuccessProgressColor;
173
+ }
174
+ &.error .bar.bar.bar {
175
+ background: @toastErrorProgressColor;
176
+ }
177
+ &.neutral .bar.bar.bar {
178
+ background: @toastNeutralProgressColor;
262
179
  }
263
- }
264
- }
265
- }
266
- &.horizontal.actions when (@variationToastActions) {
267
- & > .image > img {
268
- border-bottom-left-radius: 0;
269
180
  }
270
- & > .image:last-child > img {
271
- border-bottom-right-radius: 0;
181
+ & > .ui.message when (@variationToastMessage) {
182
+ & > .close.icon when (@variationToastClose) {
183
+ top: @toastCloseTopDistance;
184
+ right: @toastCloseRightDistance;
185
+ }
186
+ & > .actions:last-child when (@variationToastActions) {
187
+ margin-bottom: @toastActionMargin;
188
+ }
189
+ &.icon when (@variationToastIcon) {
190
+ align-items: inherit;
191
+ & > :not(.icon):not(.actions) {
192
+ padding-left: @toastIconMessageContentPadding;
193
+ }
194
+ & > i.icon:not(.close) when (@variationToastIcon) {
195
+ display: inline-block;
196
+ position: absolute;
197
+ width: @toastIconMessageWidth;
198
+ top: 50%;
199
+ transform: translateY(-50%);
200
+ }
201
+ &:not(.vertical) {
202
+ &.actions > i.icon:not(.close) when (@variationToastActions) and (@variationToastIcon) {
203
+ top: e(%("calc(50%% - %d)", @toastIconCenteredAdjustment));
204
+ transform: none;
205
+ }
206
+ &.icon.icon.icon when (@variationToastIcon) {
207
+ display: block;
208
+ }
209
+ }
210
+ }
272
211
  }
273
- }
274
- }
275
- & .progressing {
276
- animation-iteration-count: 1;
277
- animation-timing-function: linear;
278
- & when (@variationToastProgress) {
279
- &.up {
280
- animation-name: progressUp;
212
+ & .ui.toast {
213
+ & > .close.icon when (@variationToastClose) {
214
+ cursor: pointer;
215
+ margin: 0;
216
+ opacity: @toastCloseOpacity;
217
+ transition: @toastCloseTransition;
218
+ &:hover {
219
+ opacity: 1;
220
+ }
221
+ }
222
+ &.vertical > .close.icon when (@variationToastVertical) and (@variationToastClose) {
223
+ margin-top: -@toastCloseTopDistance;
224
+ margin-right: -@toastCloseTopDistance;
225
+ }
226
+ &:not(.vertical) > .close.icon when (@variationToastClose) {
227
+ position: absolute;
228
+ top: @toastCloseTopDistance;
229
+ &:not(.left) {
230
+ right: @toastCloseRightDistance;
231
+ }
232
+ &.left {
233
+ margin-left: -@toastCloseRightDistance;
234
+ }
235
+ }
281
236
  }
282
- &.down {
283
- animation-name: progressDown;
237
+ & .ui.card when (@variationToastCard) {
238
+ margin: 0;
239
+ &.attached:not(.vertical) when (@variationToastAttached) {
240
+ &.bottom {
241
+ border-top-left-radius: 0;
242
+ border-top-right-radius: 0;
243
+ &.horizontal {
244
+ & > .image > img {
245
+ border-top-left-radius: 0;
246
+ }
247
+ & > .image:last-child > img {
248
+ border-top-right-radius: 0;
249
+ }
250
+ }
251
+ }
252
+ &.top {
253
+ border-bottom-left-radius: 0;
254
+ border-bottom-right-radius: 0;
255
+ &.horizontal {
256
+ & > .image > img {
257
+ border-bottom-left-radius: 0;
258
+ }
259
+ & > .image:last-child > img {
260
+ border-bottom-right-radius: 0;
261
+ }
262
+ }
263
+ }
264
+ }
265
+ &.horizontal.actions when (@variationToastActions) {
266
+ & > .image > img {
267
+ border-bottom-left-radius: 0;
268
+ }
269
+ & > .image:last-child > img {
270
+ border-bottom-right-radius: 0;
271
+ }
272
+ }
284
273
  }
285
- }
286
- &.wait {
287
- animation-name: progressWait;
288
- }
289
- }
290
- &:hover .pausable.progressing {
291
- animation-play-state: paused;
292
- }
293
- & .ui.toast:not(.vertical) {
294
- display:block;
295
- }
296
- & :not(.comment) {
297
- &:not(.card) .actions when (@variationToastActions) {
298
- margin: @toastActionMarginTop @toastActionMargin @toastActionMargin @toastActionMargin;
299
- }
300
- & .actions when (@variationToastActions) {
301
- padding: @toastActionPadding @toastActionPadding @toastActionPaddingBottom @toastActionPadding;
302
- text-align: right;
303
- &.attached:not(.vertical) when (@variationToastAttached) {
304
- margin-right: @toastLeftRightMargin;
274
+ & .progressing {
275
+ animation-iteration-count: 1;
276
+ animation-timing-function: linear;
277
+ & when (@variationToastProgress) {
278
+ &.up {
279
+ animation-name: progressUp;
280
+ }
281
+ &.down {
282
+ animation-name: progressDown;
283
+ }
284
+ }
285
+ &.wait {
286
+ animation-name: progressWait;
287
+ }
305
288
  }
306
- &:not(.basic):not(.attached) {
307
- background: @toastActionBackground;
308
- border-top: @toastActionBorder;
289
+ &:hover .pausable.progressing {
290
+ animation-play-state: paused;
309
291
  }
310
- &.left {
311
- text-align: left;
292
+ & .ui.toast:not(.vertical) {
293
+ display: block;
312
294
  }
313
- }
314
- }
315
- & when (@variationToastVertical) {
316
- & .vertical.actions > .button,
317
- & > .vertical > .vertical.vertical,
318
- & > .vertical.vertical.vertical {
319
- display: flex;
320
- }
321
- }
322
- & :not(.comment) .vertical.actions when (@variationToastVertical) and (@variationToastActions) {
323
- flex-direction: column;
324
- & > .button {
325
- justify-content: center;
326
- }
327
- &.attached > .button when (@variationToastAttached) {
328
- align-items: center;
329
- }
330
- &:not(.attached) {
331
- border-top: 0;
332
- margin-top: -@toastActionPaddingBottom;
333
- margin-bottom: -@toastActionPaddingBottom;
334
- margin-left: @toastActionMarginLeft;
335
- justify-content: space-around;
336
- &:not(.basic) {
337
- border-left: @toastActionBorder;
338
- }
339
- & > .button:not(:last-child) {
340
- margin-bottom: @toastActionMarginBottom;
295
+ & :not(.comment) {
296
+ &:not(.card) .actions when (@variationToastActions) {
297
+ margin: @toastActionMarginTop @toastActionMargin @toastActionMargin @toastActionMargin;
298
+ }
299
+ & .actions when (@variationToastActions) {
300
+ padding: @toastActionPadding @toastActionPadding @toastActionPaddingBottom @toastActionPadding;
301
+ text-align: right;
302
+ &.attached:not(.vertical) when (@variationToastAttached) {
303
+ margin-right: @toastLeftRightMargin;
304
+ }
305
+ &:not(.basic):not(.attached) {
306
+ background: @toastActionBackground;
307
+ border-top: @toastActionBorder;
308
+ }
309
+ &.left {
310
+ text-align: left;
311
+ }
312
+ }
341
313
  }
342
- &.top {
343
- justify-content: flex-start;
314
+ & when (@variationToastVertical) {
315
+ & .vertical.actions > .button,
316
+ & > .vertical > .vertical.vertical,
317
+ & > .vertical.vertical.vertical {
318
+ display: flex;
319
+ }
344
320
  }
345
- &.bottom {
346
- justify-content: flex-end;
321
+ & :not(.comment) .vertical.actions when (@variationToastVertical) and (@variationToastActions) {
322
+ flex-direction: column;
323
+ & > .button {
324
+ justify-content: center;
325
+ }
326
+ &.attached > .button when (@variationToastAttached) {
327
+ align-items: center;
328
+ }
329
+ &:not(.attached) {
330
+ border-top: 0;
331
+ margin-top: -@toastActionPaddingBottom;
332
+ margin-bottom: -@toastActionPaddingBottom;
333
+ margin-left: @toastActionMarginLeft;
334
+ justify-content: space-around;
335
+ &:not(.basic) {
336
+ border-left: @toastActionBorder;
337
+ }
338
+ & > .button:not(:last-child) {
339
+ margin-bottom: @toastActionMarginBottom;
340
+ }
341
+ &.top {
342
+ justify-content: flex-start;
343
+ }
344
+ &.bottom {
345
+ justify-content: flex-end;
346
+ }
347
+ }
347
348
  }
348
- }
349
349
  }
350
- }
351
350
  }
352
351
 
353
352
  .ui.vertical.attached when (@variationToastVertical) and (@variationToastAttached) {
354
- &:not(.left) {
355
- &.card when (@variationToastCard) {
356
- & > .image > img {
357
- border-top-right-radius: 0;
358
- }
359
- &.horizontal > .image:last-child > img {
360
- border-top-right-radius: 0;
361
- border-bottom-right-radius: 0;
362
- }
363
- }
364
- &.card,
365
- &.toast {
366
- border-top-right-radius: 0;
367
- border-bottom-right-radius: 0;
368
- }
369
- &.actions when (@variationToastActions) {
370
- border-top-right-radius: @toastBorderRadius;
371
- border-bottom-right-radius: @toastBorderRadius;
372
- & .button:first-child,
373
- .button:last-child {
374
- border-top-left-radius: 0;
375
- border-bottom-left-radius: 0;
376
- }
377
- }
378
- &.message when (@variationToastMessage) {
379
- border-top-right-radius: 0;
380
- border-bottom-left-radius: @toastBorderRadius;
381
- }
382
- }
383
- &.left {
384
- &.card when (@variationToastCard) {
385
- & > .image > img {
386
- border-top-left-radius: 0;
387
- }
388
- &.horizontal > .image > img {
389
- border-top-left-radius: 0;
390
- border-bottom-left-radius: 0;
391
- }
392
- }
393
- &.card,
394
- &.toast {
395
- border-top-left-radius: 0;
396
- border-bottom-left-radius: 0;
397
- }
398
- &.actions when (@variationToastActions) {
399
- border-top-left-radius: @toastBorderRadius;
400
- border-bottom-left-radius: @toastBorderRadius;
401
- & .button:first-child,
402
- .button:last-child {
403
- border-top-right-radius: 0;
404
- border-bottom-right-radius: 0;
405
- }
406
- }
407
- &.message.message.message when (@variationToastMessage) {
408
- border-top-right-radius: @toastBorderRadius;
409
- border-bottom-right-radius: @toastBorderRadius;
410
- }
411
- }
353
+ &:not(.left) {
354
+ &.card when (@variationToastCard) {
355
+ & > .image > img {
356
+ border-top-right-radius: 0;
357
+ }
358
+ &.horizontal > .image:last-child > img {
359
+ border-top-right-radius: 0;
360
+ border-bottom-right-radius: 0;
361
+ }
362
+ }
363
+ &.card,
364
+ &.toast {
365
+ border-top-right-radius: 0;
366
+ border-bottom-right-radius: 0;
367
+ }
368
+ &.actions when (@variationToastActions) {
369
+ border-top-right-radius: @toastBorderRadius;
370
+ border-bottom-right-radius: @toastBorderRadius;
371
+ & .button:first-child,
372
+ .button:last-child {
373
+ border-top-left-radius: 0;
374
+ border-bottom-left-radius: 0;
375
+ }
376
+ }
377
+ &.message when (@variationToastMessage) {
378
+ border-top-right-radius: 0;
379
+ border-bottom-left-radius: @toastBorderRadius;
380
+ }
381
+ }
382
+ &.left {
383
+ &.card when (@variationToastCard) {
384
+ & > .image > img {
385
+ border-top-left-radius: 0;
386
+ }
387
+ &.horizontal > .image > img {
388
+ border-top-left-radius: 0;
389
+ border-bottom-left-radius: 0;
390
+ }
391
+ }
392
+ &.card,
393
+ &.toast {
394
+ border-top-left-radius: 0;
395
+ border-bottom-left-radius: 0;
396
+ }
397
+ &.actions when (@variationToastActions) {
398
+ border-top-left-radius: @toastBorderRadius;
399
+ border-bottom-left-radius: @toastBorderRadius;
400
+ & .button:first-child,
401
+ .button:last-child {
402
+ border-top-right-radius: 0;
403
+ border-bottom-right-radius: 0;
404
+ }
405
+ }
406
+ &.message.message.message when (@variationToastMessage) {
407
+ border-top-right-radius: @toastBorderRadius;
408
+ border-bottom-right-radius: @toastBorderRadius;
409
+ }
410
+ }
412
411
  }
413
412
 
414
413
  .ui.attached:not(.vertical) when (@variationToastAttached) {
415
- &:not(.top) {
416
- &.actions when (@variationToastActions) {
417
- border-bottom-left-radius: @toastBorderRadius;
418
- border-bottom-right-radius: @toastBorderRadius;
419
- & .button:first-child {
420
- border-bottom-left-radius: @toastBorderRadius;
421
- }
422
- & .button:last-child {
423
- border-bottom-right-radius: @toastBorderRadius;
424
- }
425
- }
426
- }
427
- &.top {
428
- &.actions when (@variationToastActions) {
429
- border-top-left-radius: @toastBorderRadius;
430
- border-top-right-radius: @toastBorderRadius;
431
- & .button:first-child {
432
- border-top-left-radius: @toastBorderRadius;
433
- }
434
- & .button:last-child {
435
- border-top-right-radius: @toastBorderRadius;
436
- }
437
- }
438
- }
414
+ &:not(.top) {
415
+ &.actions when (@variationToastActions) {
416
+ border-bottom-left-radius: @toastBorderRadius;
417
+ border-bottom-right-radius: @toastBorderRadius;
418
+ & .button:first-child {
419
+ border-bottom-left-radius: @toastBorderRadius;
420
+ }
421
+ & .button:last-child {
422
+ border-bottom-right-radius: @toastBorderRadius;
423
+ }
424
+ }
425
+ }
426
+ &.top {
427
+ &.actions when (@variationToastActions) {
428
+ border-top-left-radius: @toastBorderRadius;
429
+ border-top-right-radius: @toastBorderRadius;
430
+ & .button:first-child {
431
+ border-top-left-radius: @toastBorderRadius;
432
+ }
433
+ & .button:last-child {
434
+ border-top-right-radius: @toastBorderRadius;
435
+ }
436
+ }
437
+ }
439
438
  }
440
439
 
441
440
  /*******************************
@@ -449,149 +448,150 @@
449
448
  margin: @toastMargin;
450
449
  color: @toastInvertedTextColor;
451
450
  background-color: @toastNeutralColor;
452
- & > .content > .header {
453
- font-weight: bold;
454
- color: inherit;
455
- margin:0;
456
- }
457
- &.info when (@variationToastInfo) {
458
- background-color: @toastInfoColor;
459
- color: @toastTextColor;
460
- }
461
- &.warning when (@variationToastWarning) {
462
- background-color: @toastWarningColor;
463
- color: @toastTextColor;
464
- }
465
- &.success when (@variationToastSuccess) {
466
- background-color: @toastSuccessColor;
467
- color: @toastTextColor;
468
- }
469
- &.error when (@variationToastError) {
470
- background-color: @toastErrorColor;
471
- color: @toastTextColor;
472
- }
473
- &.neutral {
474
- background-color: @toastNeutralColor;
475
- color: @toastNeutralTextColor;
476
- }
477
- & > i.icon:not(.close) when (@variationToastIcon) {
478
- font-size: @toastIconFontSize;
479
- }
480
- &:not(.vertical) {
481
- &:not(.centered):not(.center) {
482
- & > i.icon:not(.close) when (@variationToastIcon) {
483
- position: absolute;
484
- }
485
- & > .ui.image when (@variationToastImage) {
486
- position: absolute;
487
- }
488
- }
489
- & > i.icon:not(.close) when (@variationToastIcon) {
490
- & + .content {
491
- padding-left: @toastIconContentPadding;
492
- }
493
- }
494
- & > .close.icon + .content when (@variationToastClose){
495
- padding-left: @toastCloseDistance;
496
- }
497
- & > .ui.image when (@variationToastImage) {
498
- &.avatar + .content {
499
- padding-left: @toastAvatarImageContentPadding;
500
- min-height: @toastAvatarImageHeight;
501
- }
502
- &.mini + .content {
503
- padding-left: @toastMiniImageContentPadding;
504
- min-height: @toastMiniImageHeight;
505
- }
506
- &.tiny + .content {
507
- padding-left: @toastTinyImageContentPadding;
508
- min-height: @toastTinyImageHeight;
509
- }
510
- &.small + .content {
511
- padding-left: @toastSmallImageContentPadding;
512
- min-height: @toastSmallImageHeight;
513
- }
514
- }
515
- &:not(.centered):not(.center) when (@variationToastImage) or (@variationToastIcon) {
516
- & > .centered.image,
517
- > .centered.icon {
518
- transform: translateY(-50%);
519
- top: 50%;
520
- }
451
+ & > .content > .header {
452
+ font-weight: bold;
453
+ color: inherit;
454
+ margin: 0;
521
455
  }
522
- &.actions > .centered.image when (@variationToastActions) and (@variationToastImage) {
523
- top: e(%("calc(50%% - %d)", @toastImageCenteredAdjustment));
456
+ &.info when (@variationToastInfo) {
457
+ background-color: @toastInfoColor;
458
+ color: @toastTextColor;
524
459
  }
525
- &.actions > .centered.icon when (@variationToastActions) and (@variationToastIcon) {
526
- top: e(%("calc(50%% - %d)", @toastIconCenteredAdjustment));
460
+ &.warning when (@variationToastWarning) {
461
+ background-color: @toastWarningColor;
462
+ color: @toastTextColor;
527
463
  }
528
- }
529
- &.vertical when (@variationToastVertical) {
530
- & > .content {
531
- flex-grow: 1;
464
+ &.success when (@variationToastSuccess) {
465
+ background-color: @toastSuccessColor;
466
+ color: @toastTextColor;
532
467
  }
533
- &.attached when (@variationToastAttached){
534
- flex-grow: 1;
468
+ &.error when (@variationToastError) {
469
+ background-color: @toastErrorColor;
470
+ color: @toastTextColor;
535
471
  }
536
- & > .close.icon + .content when (@variationToastClose){
537
- padding-left: @toastCloseDistanceVertical;
472
+ &.neutral {
473
+ background-color: @toastNeutralColor;
474
+ color: @toastNeutralTextColor;
538
475
  }
539
- & when (@variationToastImage) or (@variationToastIcon) {
540
- & > .ui.image + .content,
541
- > i.icon:not(.close) + .content {
542
- padding-left: @toastImageContentPadding;
543
- }
476
+ & > i.icon:not(.close) when (@variationToastIcon) {
477
+ font-size: @toastIconFontSize;
544
478
  }
545
- & > .ui.image when (@variationToastImage){
546
- align-self: flex-start;
547
- flex-shrink:0; /* IE11 fix */
479
+ &:not(.vertical) {
480
+ &:not(.centered):not(.center) {
481
+ & > i.icon:not(.close) when (@variationToastIcon) {
482
+ position: absolute;
483
+ }
484
+ & > .ui.image when (@variationToastImage) {
485
+ position: absolute;
486
+ }
487
+ }
488
+ & > i.icon:not(.close) when (@variationToastIcon) {
489
+ & + .content {
490
+ padding-left: @toastIconContentPadding;
491
+ }
492
+ }
493
+ & > .close.icon + .content when (@variationToastClose) {
494
+ padding-left: @toastCloseDistance;
495
+ }
496
+ & > .ui.image when (@variationToastImage) {
497
+ &.avatar + .content {
498
+ padding-left: @toastAvatarImageContentPadding;
499
+ min-height: @toastAvatarImageHeight;
500
+ }
501
+ &.mini + .content {
502
+ padding-left: @toastMiniImageContentPadding;
503
+ min-height: @toastMiniImageHeight;
504
+ }
505
+ &.tiny + .content {
506
+ padding-left: @toastTinyImageContentPadding;
507
+ min-height: @toastTinyImageHeight;
508
+ }
509
+ &.small + .content {
510
+ padding-left: @toastSmallImageContentPadding;
511
+ min-height: @toastSmallImageHeight;
512
+ }
513
+ }
514
+ &:not(.centered):not(.center) when (@variationToastImage) or (@variationToastIcon) {
515
+ & > .centered.image,
516
+ > .centered.icon {
517
+ transform: translateY(-50%);
518
+ top: 50%;
519
+ }
520
+ }
521
+ &.actions > .centered.image when (@variationToastActions) and (@variationToastImage) {
522
+ top: e(%("calc(50%% - %d)", @toastImageCenteredAdjustment));
523
+ }
524
+ &.actions > .centered.icon when (@variationToastActions) and (@variationToastIcon) {
525
+ top: e(%("calc(50%% - %d)", @toastIconCenteredAdjustment));
526
+ }
548
527
  }
549
- & when (@variationToastImage) or (@variationToastIcon) {
550
- & > .centered.image,
551
- > .centered.icon {
552
- align-self: center;
553
- }
528
+ &.vertical when (@variationToastVertical) {
529
+ & > .content {
530
+ flex-grow: 1;
531
+ }
532
+ &.attached when (@variationToastAttached) {
533
+ flex-grow: 1;
534
+ }
535
+ & > .close.icon + .content when (@variationToastClose) {
536
+ padding-left: @toastCloseDistanceVertical;
537
+ }
538
+ & when (@variationToastImage) or (@variationToastIcon) {
539
+ & > .ui.image + .content,
540
+ > i.icon:not(.close) + .content {
541
+ padding-left: @toastImageContentPadding;
542
+ }
543
+ }
544
+ & > .ui.image when (@variationToastImage) {
545
+ align-self: flex-start;
546
+ flex-shrink: 0; /* IE11 fix */
547
+ }
548
+ & when (@variationToastImage) or (@variationToastIcon) {
549
+ & > .centered.image,
550
+ > .centered.icon {
551
+ align-self: center;
552
+ }
553
+ }
554
554
  }
555
- }
556
555
 
557
- &.attached when (@variationToastAttached) {
558
- &.bottom {
559
- border-top-left-radius: 0;
560
- border-top-right-radius: 0;
561
- }
562
- &.top {
563
- border-bottom-left-radius: 0;
564
- border-bottom-right-radius: 0;
556
+ &.attached when (@variationToastAttached) {
557
+ &.bottom {
558
+ border-top-left-radius: 0;
559
+ border-top-right-radius: 0;
560
+ }
561
+ &.top {
562
+ border-bottom-left-radius: 0;
563
+ border-bottom-right-radius: 0;
564
+ }
565
565
  }
566
- }
567
566
 
568
- &.ui.ui.ui.image when (@variationToastImage) {
569
- padding: 0;
570
- & > .content {
571
- padding-top: @inputVerticalPadding;
572
- padding-bottom: @inputVerticalPadding;
573
- padding-right: @inputHorizontalPadding;
574
- }
575
- & > .actions when (@variationToastActions) {
576
- margin: 0;
577
- }
578
- & > .ui.image {
579
- border-top-left-radius: @defaultBorderRadius;
580
- border-bottom-left-radius: @defaultBorderRadius;
581
- &.mini {
582
- min-width: @toastImageMiniImageAdjustment;
583
- & + .content {
584
- min-height: @toastImageMiniImageAdjustment;
585
- padding-left: @toastImageMiniImagePadding;
586
- }
587
- }
588
- }
589
- }
567
+ &.ui.ui.ui.image when (@variationToastImage) {
568
+ padding: 0;
569
+ & > .content {
570
+ padding-top: @inputVerticalPadding;
571
+ padding-bottom: @inputVerticalPadding;
572
+ padding-right: @inputHorizontalPadding;
573
+ }
574
+ & > .actions when (@variationToastActions) {
575
+ margin: 0;
576
+ }
577
+ & > .ui.image {
578
+ border-top-left-radius: @defaultBorderRadius;
579
+ border-bottom-left-radius: @defaultBorderRadius;
580
+ &.mini {
581
+ min-width: @toastImageMiniImageAdjustment;
582
+ & + .content {
583
+ min-height: @toastImageMiniImageAdjustment;
584
+ padding-left: @toastImageMiniImagePadding;
585
+ }
586
+ }
587
+ }
588
+ }
590
589
  }
591
590
 
592
-
593
591
  .ui.hoverfloating.message:hover when (@variationToastMessage) and (@variationToastFloating) {
594
- box-shadow: 0 0 0 1px inset, @floatingShadow;
592
+ box-shadow:
593
+ 0 0 0 1px inset,
594
+ @floatingShadow;
595
595
  }
596
596
 
597
597
  .ui.center.toast-container .toast-box,
@@ -604,114 +604,114 @@
604
604
  }
605
605
 
606
606
  & when (@variationToastCentered) {
607
- .ui.ui.toast-container .toast-box .centered.toast,
608
- .ui.ui.toast-container .toast-box .center.aligned.toast {
609
- text-align: center;
610
- display: flex;
611
- justify-content: center;
607
+ .ui.ui.toast-container .toast-box .centered.toast,
608
+ .ui.ui.toast-container .toast-box .center.aligned.toast {
609
+ text-align: center;
610
+ display: flex;
611
+ justify-content: center;
612
612
 
613
- & > .content,
614
- & > .ui.image,
615
- & > i.icon:not(.close) {
616
- align-self: center;
613
+ & > .content,
614
+ & > .ui.image,
615
+ & > i.icon:not(.close) {
616
+ align-self: center;
617
+ }
617
618
  }
618
- }
619
619
 
620
- .ui.toast-container .toast-box .toast .centered.content,
621
- .ui.toast-container .toast-box .toast .center.aligned.content {
622
- text-align: center;
623
- }
620
+ .ui.toast-container .toast-box .toast .centered.content,
621
+ .ui.toast-container .toast-box .toast .center.aligned.content {
622
+ text-align: center;
623
+ }
624
624
 
625
- .ui.toast-container .toast-box .centered.actions,
626
- .ui.toast-container .toast-box .center.aligned.actions {
627
- text-align: center;
625
+ .ui.toast-container .toast-box .centered.actions,
626
+ .ui.toast-container .toast-box .center.aligned.actions {
627
+ text-align: center;
628
628
 
629
- &:not(.attached) > .button:not(.fluid) {
630
- margin-left: @toastActionCenteredMargin;
631
- margin-right: @toastActionCenteredMargin;
629
+ &:not(.attached) > .button:not(.fluid) {
630
+ margin-left: @toastActionCenteredMargin;
631
+ margin-right: @toastActionCenteredMargin;
632
+ }
632
633
  }
633
- }
634
634
  }
635
635
 
636
- /*--------------
636
+ /* --------------
637
637
  Colors
638
638
  -------------- */
639
639
  & when not (@variationToastColors = false) {
640
- each(@variationToastColors, {
641
- @color: @value;
642
- @c: @colors[@@color][color];
643
- @l: @colors[@@color][light];
640
+ each(@variationToastColors, {
641
+ @color: @value;
642
+ @c: @colors[@@color][color];
643
+ @l: @colors[@@color][light];
644
644
 
645
- .ui.@{color}.toast {
646
- background-color: @c;
647
- color: @toastTextColor;
648
- }
649
- & when (@variationToastInverted) {
650
- .ui.inverted.@{color}.toast,
651
- .ui.toast-container .toast-box > .inverted.@{color}.attached.progress .bar {
652
- background-color: @l;
653
- color: @toastInvertedTextColor;
654
- }
655
- }
656
- })
645
+ .ui.@{color}.toast {
646
+ background-color: @c;
647
+ color: @toastTextColor;
648
+ }
649
+ & when (@variationToastInverted) {
650
+ .ui.inverted.@{color}.toast,
651
+ .ui.toast-container .toast-box > .inverted.@{color}.attached.progress .bar {
652
+ background-color: @l;
653
+ color: @toastInvertedTextColor;
654
+ }
655
+ }
656
+ });
657
657
  }
658
658
 
659
659
  & when (@variationToastInverted) {
660
- .ui.inverted.toast {
661
- color: @toastTextColor;
662
- background-color: @toastInvertedColor;
663
- }
660
+ .ui.inverted.toast {
661
+ color: @toastTextColor;
662
+ background-color: @toastInvertedColor;
663
+ }
664
664
  }
665
665
 
666
666
  @media only screen and (max-width: @mobileToastBreakpoint) {
667
- .ui.toast-container .toast-box {
668
- &.toast-box,
669
- & > .compact,
670
- & > .vertical > *,
671
- & > * {
672
- width: auto;
673
- max-width: 100%;
674
- }
675
- & > *:not(.vertical) {
676
- min-width: @mobileWidth;
677
- }
678
- & when (@variationToastCard) {
679
- & > .ui.card.horizontal,
680
- > .vertical > .ui.horizontal.card {
681
- min-width: initial;
682
- }
683
- }
684
- }
667
+ .ui.toast-container .toast-box {
668
+ &.toast-box,
669
+ & > .compact,
670
+ & > .vertical > *,
671
+ & > * {
672
+ width: auto;
673
+ max-width: 100%;
674
+ }
675
+ & > *:not(.vertical) {
676
+ min-width: @mobileWidth;
677
+ }
678
+ & when (@variationToastCard) {
679
+ & > .ui.card.horizontal,
680
+ > .vertical > .ui.horizontal.card {
681
+ min-width: initial;
682
+ }
683
+ }
684
+ }
685
685
  }
686
686
 
687
- /*---------------
687
+ /* ---------------
688
688
  Progress Bar
689
- ----------------*/
690
- & when (@variationToastProgress) {
691
- @keyframes progressDown {
692
- 0% {
693
- width: 100%;
689
+ ---------------- */
690
+ & when (@variationToastProgress) {
691
+ @keyframes progressDown {
692
+ 0% {
693
+ width: 100%;
694
+ }
695
+ 100% {
696
+ width: 0;
697
+ }
694
698
  }
695
- 100% {
696
- width: 0;
699
+ @keyframes progressUp {
700
+ 0% {
701
+ width: 0;
702
+ }
703
+ 100% {
704
+ width: 100%;
705
+ }
697
706
  }
698
- }
699
- @keyframes progressUp {
707
+ }
708
+ @keyframes progressWait {
700
709
  0% {
701
- width: 0;
710
+ opacity: 1;
702
711
  }
703
712
  100% {
704
- width: 100%;
713
+ opacity: 0;
705
714
  }
706
- }
707
- }
708
- @keyframes progressWait {
709
- 0% {
710
- opacity: 1;
711
- }
712
- 100% {
713
- opacity: 0;
714
- }
715
715
  }
716
716
 
717
717
  .loadUIOverrides();