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,1029 +8,1007 @@
8
8
  *
9
9
  */
10
10
 
11
-
12
11
  /*******************************
13
12
  Theme
14
13
  *******************************/
15
14
 
16
- @type : 'element';
17
- @element : 'label';
15
+ @type: "element";
16
+ @element: "label";
18
17
 
19
- @import (multiple) '../../theme.config';
18
+ @import (multiple) "../../theme.config";
20
19
 
21
20
  /*******************************
22
21
  Label
23
22
  *******************************/
24
23
 
25
24
  .ui.label {
26
- display: inline-block;
27
- line-height: 1;
28
- vertical-align: @verticalAlign;
29
-
30
- margin: @verticalMargin @horizontalMargin;
31
-
32
- background-color: @backgroundColor;
33
- background-image: @backgroundImage;
34
- padding: @verticalPadding @horizontalPadding;
35
- color: @color;
36
-
37
- text-transform: @textTransform;
38
- font-weight: @fontWeight;
39
-
40
- border: @border;
41
- border-radius: @borderRadius;
42
- transition: @transition;
25
+ display: inline-block;
26
+ line-height: 1;
27
+ vertical-align: @verticalAlign;
28
+ margin: @verticalMargin @horizontalMargin;
29
+ background-color: @backgroundColor;
30
+ background-image: @backgroundImage;
31
+ padding: @verticalPadding @horizontalPadding;
32
+ color: @color;
33
+ text-transform: @textTransform;
34
+ font-weight: @fontWeight;
35
+ border: @border;
36
+ border-radius: @borderRadius;
37
+ transition: @transition;
43
38
  }
44
39
 
45
40
  .ui.label:first-child {
46
- margin-left: 0;
41
+ margin-left: 0;
47
42
  }
48
43
  .ui.label:last-child {
49
- margin-right: 0;
44
+ margin-right: 0;
50
45
  }
51
46
 
52
47
  /* Link */
53
48
  a.ui.label {
54
- cursor: pointer;
49
+ cursor: pointer;
55
50
  }
56
51
 
57
52
  /* Inside Link */
58
53
  .ui.label > a {
59
- cursor: pointer;
60
- color: inherit;
61
- opacity: @linkOpacity;
62
- transition: @linkTransition;
54
+ cursor: pointer;
55
+ color: inherit;
56
+ opacity: @linkOpacity;
57
+ transition: @linkTransition;
63
58
  }
64
59
  .ui.label > a:hover {
65
- opacity: 1;
60
+ opacity: 1;
66
61
  }
67
62
 
68
63
  /* Image */
69
64
  .ui.label > img {
70
- width: auto !important;
71
- vertical-align: middle;
72
- height: @imageHeight;
65
+ width: auto !important;
66
+ vertical-align: middle;
67
+ height: @imageHeight;
73
68
  }
74
69
 
75
70
  /* Icon */
76
71
  .ui.ui[class*="left icon"].label > .icon,
77
72
  .ui.label > .icon {
78
- width: auto;
79
- margin: 0 @iconDistance 0 0;
73
+ width: auto;
74
+ margin: 0 @iconDistance 0 0;
80
75
  }
81
76
 
82
77
  /* Detail */
83
78
  .ui.label > .detail {
84
- display: inline-block;
85
- vertical-align: top;
86
- font-weight: @detailFontWeight;
87
- margin-left: @detailMargin;
88
- opacity: @detailOpacity;
79
+ display: inline-block;
80
+ vertical-align: top;
81
+ font-weight: @detailFontWeight;
82
+ margin-left: @detailMargin;
83
+ opacity: @detailOpacity;
89
84
  }
90
85
  .ui.label > .detail .icon {
91
- margin: 0 @detailIconDistance 0 0;
86
+ margin: 0 @detailIconDistance 0 0;
92
87
  }
93
88
 
94
89
  /* Removable label */
95
90
  .ui.label > .close.icon,
96
91
  .ui.label > .delete.icon {
97
- cursor: pointer;
98
- font-size: @deleteSize;
99
- opacity: @deleteOpacity;
100
- transition: @deleteTransition;
92
+ cursor: pointer;
93
+ font-size: @deleteSize;
94
+ opacity: @deleteOpacity;
95
+ transition: @deleteTransition;
101
96
  }
102
97
  .ui.label > .close.icon:hover,
103
98
  .ui.label > .delete.icon:hover {
104
- opacity: 1;
99
+ opacity: 1;
105
100
  }
106
101
 
107
102
  /* Backward compatible positioning */
108
103
  .ui.label[class*="left icon"] > .close.icon,
109
104
  .ui.label[class*="left icon"] > .delete.icon {
110
- margin: 0 @deleteMargin 0 0;
111
- &.right {
112
- margin: 0 0 0 @deleteMargin;
113
- }
105
+ margin: 0 @deleteMargin 0 0;
106
+ &.right {
107
+ margin: 0 0 0 @deleteMargin;
108
+ }
114
109
  }
115
110
  .ui.label:not(.icon) > .close.icon,
116
111
  .ui.label:not(.icon) > .delete.icon {
117
- margin: 0 0 0 @deleteMargin;
112
+ margin: 0 0 0 @deleteMargin;
118
113
  }
119
114
 
120
115
  /* Label for only an icon */
121
116
  .ui.icon.label > .icon {
122
- margin: 0 auto;
117
+ margin: 0 auto;
123
118
  }
124
119
 
125
120
  /* Right Side Icon */
126
121
  .ui[class*="right icon"].label > .icon {
127
- margin: 0 0 0 @iconDistance;
122
+ margin: 0 0 0 @iconDistance;
128
123
  }
129
124
 
130
- /*-------------------
125
+ /* -------------------
131
126
  Group
132
- --------------------*/
127
+ -------------------- */
133
128
 
134
129
  .ui.labels > .label {
135
- margin: 0 @groupHorizontalMargin @groupVerticalMargin 0;
130
+ margin: 0 @groupHorizontalMargin @groupVerticalMargin 0;
136
131
  }
137
132
 
138
-
139
- /*-------------------
133
+ /* -------------------
140
134
  Coupling
141
- --------------------*/
135
+ -------------------- */
142
136
 
143
137
  .ui.header > .ui.label {
144
- margin-top: @lineHeightOffset;
138
+ margin-top: @lineHeightOffset;
145
139
  }
146
140
 
147
-
148
141
  /* Remove border radius on attached segment */
149
142
  .ui.attached.segment > .ui.top.left.attached.label,
150
- .ui.bottom.attached.segment > .ui.top.left.attached.label {
151
- border-top-left-radius: 0;
143
+ .ui.bottom.attached.segment > .ui.top.left.attached.label {
144
+ border-top-left-radius: 0;
152
145
  }
153
146
  .ui.attached.segment > .ui.top.right.attached.label,
154
- .ui.bottom.attached.segment > .ui.top.right.attached.label {
155
- border-top-right-radius: 0;
147
+ .ui.bottom.attached.segment > .ui.top.right.attached.label {
148
+ border-top-right-radius: 0;
156
149
  }
157
- .ui.top.attached.segment > .ui.bottom.left.attached.label {
158
- border-bottom-left-radius: 0;
150
+ .ui.top.attached.segment > .ui.bottom.left.attached.label {
151
+ border-bottom-left-radius: 0;
159
152
  }
160
- .ui.top.attached.segment > .ui.bottom.right.attached.label {
161
- border-bottom-right-radius: 0;
153
+ .ui.top.attached.segment > .ui.bottom.right.attached.label {
154
+ border-bottom-right-radius: 0;
162
155
  }
163
156
 
164
157
  /* Padding on next content after a label */
165
158
  .ui.top.attached.label ~ .ui.bottom.attached.label + :not(.attached),
166
159
  .ui.top.attached.label + :not(.attached) {
167
- margin-top: @attachedSegmentPadding !important;
160
+ margin-top: @attachedSegmentPadding !important;
168
161
  }
169
162
  .ui.bottom.attached.label ~ :last-child:not(.attached) {
170
- margin-top:0;
171
- margin-bottom: @attachedSegmentPadding !important;
163
+ margin-top: 0;
164
+ margin-bottom: @attachedSegmentPadding !important;
172
165
  }
173
166
 
174
167
  .ui.segment:not(.basic) > .ui.top.attached.label {
175
- margin-top: @attachedOffset;
168
+ margin-top: @attachedOffset;
176
169
  }
177
170
  .ui.segment:not(.basic) > .ui.bottom.attached.label {
178
- margin-bottom: @attachedOffset;
171
+ margin-bottom: @attachedOffset;
179
172
  }
180
173
  .ui.segment:not(.basic) > .ui.attached.label:not(.right) {
181
- margin-left: @attachedOffset;
174
+ margin-left: @attachedOffset;
182
175
  }
183
176
  .ui.segment:not(.basic) > .ui.right.attached.label {
184
- margin-right: @attachedOffset;
177
+ margin-right: @attachedOffset;
185
178
  }
186
179
  .ui.segment:not(.basic) > .ui.attached.label:not(.left):not(.right) {
187
- width: @attachedWidthOffset;
180
+ width: @attachedWidthOffset;
188
181
  }
189
182
 
190
-
191
-
192
183
  /*******************************
193
184
  Types
194
185
  *******************************/
195
186
  & when (@variationLabelImage) {
196
- .ui.image.label {
197
- width: auto;
198
- margin-top: 0;
199
- margin-bottom: 0;
200
- max-width: 9999px;
201
- vertical-align: baseline;
202
- text-transform: none;
203
-
204
- background: @imageLabelBackground;
205
- padding: @imageLabelPadding;
206
- border-radius: @imageLabelBorderRadius;
207
- box-shadow: @imageLabelBoxShadow;
208
- &.attached:not(.basic) when (@variationLabelAttached) {
209
- padding: @imageLabelPadding;
187
+ .ui.image.label {
188
+ width: auto;
189
+ margin-top: 0;
190
+ margin-bottom: 0;
191
+ max-width: 9999px;
192
+ vertical-align: baseline;
193
+ text-transform: none;
194
+ background: @imageLabelBackground;
195
+ padding: @imageLabelPadding;
196
+ border-radius: @imageLabelBorderRadius;
197
+ box-shadow: @imageLabelBoxShadow;
198
+ &.attached:not(.basic) when (@variationLabelAttached) {
199
+ padding: @imageLabelPadding;
200
+ }
210
201
  }
211
- }
212
202
 
213
- .ui.image.label img {
214
- display: inline-block;
215
- vertical-align: top;
216
-
217
- height: @imageLabelImageHeight;
218
- margin: @imageLabelImageMargin;
219
- border-radius: @imageLabelImageBorderRadius;
220
- }
203
+ .ui.image.label img {
204
+ display: inline-block;
205
+ vertical-align: top;
206
+ height: @imageLabelImageHeight;
207
+ margin: @imageLabelImageMargin;
208
+ border-radius: @imageLabelImageBorderRadius;
209
+ }
221
210
 
222
- .ui.image.label .detail {
223
- background: @imageLabelDetailBackground;
224
- margin: @imageLabelDetailMargin;
225
- padding: @imageLabelDetailPadding;
226
- border-radius: 0 @imageLabelBorderRadius @imageLabelBorderRadius 0;
227
- }
228
- & when (@variationLabelAttached) {
229
- .ui.bottom.attached.image.label:not(.right) > img,
230
- .ui.top.right.attached.image.label > img {
231
- border-top-left-radius: 0;
211
+ .ui.image.label .detail {
212
+ background: @imageLabelDetailBackground;
213
+ margin: @imageLabelDetailMargin;
214
+ padding: @imageLabelDetailPadding;
215
+ border-radius: 0 @imageLabelBorderRadius @imageLabelBorderRadius 0;
232
216
  }
217
+ & when (@variationLabelAttached) {
218
+ .ui.bottom.attached.image.label:not(.right) > img,
219
+ .ui.top.right.attached.image.label > img {
220
+ border-top-left-radius: 0;
221
+ }
233
222
 
234
- .ui.top.attached.image.label:not(.right) > img,
235
- .ui.bottom.right.attached.image.label > img {
236
- border-bottom-left-radius: 0;
223
+ .ui.top.attached.image.label:not(.right) > img,
224
+ .ui.bottom.right.attached.image.label > img {
225
+ border-bottom-left-radius: 0;
226
+ }
237
227
  }
238
- }
239
228
  }
240
229
 
241
230
  & when (@variationLabelTag) {
242
- /*-------------------
243
- Tag
244
- --------------------*/
245
-
246
- .ui.tag.labels .label,
247
- .ui.tag.label {
248
- margin-left: 1em;
249
- position: relative;
250
- padding-left: @tagHorizontalPadding;
251
- padding-right: @tagHorizontalPadding;
252
-
253
- border-radius: 0 @borderRadius @borderRadius 0;
254
- transition: @tagTransition;
255
- }
256
- .ui.tag.labels .label::before,
257
- .ui.tag.label::before {
258
- position: absolute;
259
- transform: translateY(-50%) translateX(50%) rotate(-45deg);
260
-
261
- top: @tagTriangleTopOffset;
262
- right: @tagTriangleRightOffset;
263
- content: '';
264
-
265
- background-color: inherit;
266
- background-image: @tagTriangleBackgroundImage;
267
-
268
- width: @tagTriangleSize;
269
- height: @tagTriangleSize;
270
- transition: @tagTransition;
271
- }
272
-
273
-
274
- .ui.tag.labels .label::after,
275
- .ui.tag.label::after {
276
- position: absolute;
277
- content: '';
278
- top: 50%;
279
- left: -(@tagCircleSize / 2);
280
-
281
- margin-top: -(@tagCircleSize / 2);
282
- background-color: @tagCircleColor;
283
- width: @tagCircleSize;
284
- height: @tagCircleSize;
285
-
286
- box-shadow: @tagCircleBoxShadow;
287
- border-radius: @circularRadius;
288
- }
289
- & when (@variationLabelBasic) {
290
- .ui.basic.tag.labels .label::before,
291
- .ui.basic.tag.label::before {
292
- border-color: inherit;
293
- border-width: @basicBorderWidth 0 0 @basicBorderWidth;
294
- border-style: inherit;
295
- right: @basicBorderFullWidthOffset;
296
- }
297
- .ui.basic.tag.labels .label::after,
298
- .ui.basic.tag.label::after {
299
- box-shadow: @basicTagCircleBoxShadow;
300
- }
301
- }
231
+ /* -------------------
232
+ Tag
233
+ -------------------- */
234
+
235
+ .ui.tag.labels .label,
236
+ .ui.tag.label {
237
+ margin-left: 1em;
238
+ position: relative;
239
+ padding-left: @tagHorizontalPadding;
240
+ padding-right: @tagHorizontalPadding;
241
+ border-radius: 0 @borderRadius @borderRadius 0;
242
+ transition: @tagTransition;
243
+ }
244
+ .ui.tag.labels .label::before,
245
+ .ui.tag.label::before {
246
+ position: absolute;
247
+ transform: translateY(-50%) translateX(50%) rotate(-45deg);
248
+ top: @tagTriangleTopOffset;
249
+ right: @tagTriangleRightOffset;
250
+ content: "";
251
+ background-color: inherit;
252
+ background-image: @tagTriangleBackgroundImage;
253
+ width: @tagTriangleSize;
254
+ height: @tagTriangleSize;
255
+ transition: @tagTransition;
256
+ }
257
+
258
+ .ui.tag.labels .label::after,
259
+ .ui.tag.label::after {
260
+ position: absolute;
261
+ content: "";
262
+ top: 50%;
263
+ left: -(@tagCircleSize / 2);
264
+ margin-top: -(@tagCircleSize / 2);
265
+ background-color: @tagCircleColor;
266
+ width: @tagCircleSize;
267
+ height: @tagCircleSize;
268
+ box-shadow: @tagCircleBoxShadow;
269
+ border-radius: @circularRadius;
270
+ }
271
+ & when (@variationLabelBasic) {
272
+ .ui.basic.tag.labels .label::before,
273
+ .ui.basic.tag.label::before {
274
+ border-color: inherit;
275
+ border-width: @basicBorderWidth 0 0 @basicBorderWidth;
276
+ border-style: inherit;
277
+ right: @basicBorderFullWidthOffset;
278
+ }
279
+ .ui.basic.tag.labels .label::after,
280
+ .ui.basic.tag.label::after {
281
+ box-shadow: @basicTagCircleBoxShadow;
282
+ }
283
+ }
302
284
  }
303
285
 
304
286
  & when (@variationLabelCorner) {
305
- /*-------------------
306
- Corner Label
307
- --------------------*/
308
-
309
- .ui.corner.label {
310
- position: absolute;
311
- top: 0;
312
- right: 0;
313
- margin: 0;
314
- padding: 0;
315
- text-align: center;
287
+ /* -------------------
288
+ Corner Label
289
+ -------------------- */
290
+
291
+ .ui.corner.label {
292
+ position: absolute;
293
+ top: 0;
294
+ right: 0;
295
+ margin: 0;
296
+ padding: 0;
297
+ text-align: center;
298
+ border-color: @backgroundColor;
299
+ width: @cornerTriangleSize;
300
+ height: @cornerTriangleSize;
301
+ z-index: @cornerTriangleZIndex;
302
+ transition: @cornerTriangleTransition;
303
+ }
304
+
305
+ /* Icon Label */
306
+ .ui.corner.label {
307
+ background-color: transparent !important;
308
+ }
309
+ .ui.corner.label::after {
310
+ position: absolute;
311
+ content: "";
312
+ right: 0;
313
+ top: 0;
314
+ z-index: -1;
315
+ width: 0;
316
+ height: 0;
317
+ background-color: transparent;
318
+ border-top: 0 solid transparent;
319
+ border-right: @cornerTriangleSize solid transparent;
320
+ border-bottom: @cornerTriangleSize solid transparent;
321
+ border-left: 0 solid transparent;
322
+ border-right-color: inherit;
323
+ transition: @cornerTriangleTransition;
324
+ }
325
+
326
+ .ui.corner.label .icon {
327
+ cursor: inherit;
328
+ position: absolute;
329
+ top: @cornerIconTopOffset;
330
+ left: auto;
331
+ right: @cornerIconRightOffset;
332
+ font-size: @cornerIconSize;
333
+ margin: 0;
334
+ }
335
+
336
+ /* Left Corner */
337
+ .ui.left.corner.label,
338
+ .ui.left.corner.label::after {
339
+ right: auto;
340
+ left: 0;
341
+ }
342
+ .ui.left.corner.label::after {
343
+ border-top: @cornerTriangleSize solid transparent;
344
+ border-right: @cornerTriangleSize solid transparent;
345
+ border-bottom: 0 solid transparent;
346
+ border-left: 0 solid transparent;
347
+ border-top-color: inherit;
348
+ }
349
+ .ui.left.corner.label .icon {
350
+ left: @cornerIconLeftOffset;
351
+ right: auto;
352
+ }
316
353
 
317
- border-color: @backgroundColor;
318
-
319
- width: @cornerTriangleSize;
320
- height: @cornerTriangleSize;
321
- z-index: @cornerTriangleZIndex;
322
- transition: @cornerTriangleTransition;
323
- }
324
-
325
- /* Icon Label */
326
- .ui.corner.label{
327
- background-color: transparent !important;
328
- }
329
- .ui.corner.label::after {
330
- position: absolute;
331
- content: "";
332
- right: 0;
333
- top: 0;
334
- z-index: -1;
335
-
336
- width: 0;
337
- height: 0;
338
- background-color: transparent;
339
-
340
- border-top: 0 solid transparent;
341
- border-right: @cornerTriangleSize solid transparent;
342
- border-bottom: @cornerTriangleSize solid transparent;
343
- border-left: 0 solid transparent;
344
-
345
- border-right-color: inherit;
346
- transition: @cornerTriangleTransition;
347
- }
348
-
349
- .ui.corner.label .icon {
350
- cursor: inherit;
351
- position: absolute;
352
- top: @cornerIconTopOffset;
353
- left: auto;
354
- right: @cornerIconRightOffset;
355
- font-size: @cornerIconSize;
356
- margin: 0;
357
- }
358
-
359
- /* Left Corner */
360
- .ui.left.corner.label,
361
- .ui.left.corner.label::after {
362
- right: auto;
363
- left: 0;
364
- }
365
- .ui.left.corner.label::after {
366
- border-top: @cornerTriangleSize solid transparent;
367
- border-right: @cornerTriangleSize solid transparent;
368
- border-bottom: 0 solid transparent;
369
- border-left: 0 solid transparent;
370
-
371
- border-top-color: inherit;
372
- }
373
- .ui.left.corner.label .icon {
374
- left: @cornerIconLeftOffset;
375
- right: auto;
376
- }
377
-
378
- /* Segment */
379
- .ui.segment > .ui.corner.label {
380
- top: -1px;
381
- right: -1px;
382
- }
383
- .ui.segment > .ui.left.corner.label {
384
- right: auto;
385
- left: -1px;
386
- }
354
+ /* Segment */
355
+ .ui.segment > .ui.corner.label {
356
+ top: -1px;
357
+ right: -1px;
358
+ }
359
+ .ui.segment > .ui.left.corner.label {
360
+ right: auto;
361
+ left: -1px;
362
+ }
387
363
  }
388
364
 
389
365
  & when (@variationLabelRibbon) {
390
- /*-------------------
391
- Ribbon
392
- --------------------*/
393
-
394
- .ui.ribbon.label {
395
- position: relative;
396
- margin: 0;
397
- min-width: max-content;
398
- border-radius: 0 @borderRadius @borderRadius 0;
399
- border-color: @ribbonShadowColor;
400
- }
401
-
402
- .ui.ribbon.label::after {
403
- position: absolute;
404
- content: '';
405
-
406
- top: 100%;
407
- left: 0;
408
- background-color: transparent;
409
-
410
- border-style: solid;
411
- border-width: 0 @ribbonTriangleSize @ribbonTriangleSize 0;
412
- border-color: transparent;
413
- border-right-color: inherit;
414
-
415
- width: 0;
416
- height: 0;
417
- }
418
- /* Positioning */
419
- .ui.ribbon.label {
420
- left: @ribbonOffset;
421
- margin-right: -@ribbonTriangleSize;
422
- padding-left: @ribbonDistance;
423
- padding-right: @ribbonTriangleSize;
424
- }
425
- .ui[class*="right ribbon"].label {
426
- left: @rightRibbonOffset;
427
- padding-left: @ribbonTriangleSize;
428
- padding-right: @ribbonDistance;
429
- }
430
- & when (@variationLabelBasic) {
431
- .ui.basic.ribbon.label {
432
- padding-top: @basicRibbonOffset;
433
- padding-bottom: @basicRibbonOffset;
434
- }
435
- .ui.basic.ribbon.label:not([class*="right ribbon"]) {
436
- padding-left: @basicRibbonTriangleSizeOffset;
437
- padding-right: @basicRibbonTriangleSize;
438
- }
439
- .ui.basic[class*="right ribbon"].label {
440
- padding-left: @basicRibbonTriangleSize;
441
- padding-right: @basicRibbonTriangleSizeOffset;
442
- }
443
- .ui.basic.ribbon.label::after {
444
- top: @basicBorderFullWidthOffset;
445
- }
446
- .ui.basic.ribbon.label:not([class*="right ribbon"])::after {
447
- left: @basicBorderWidthOffset;
448
- }
449
- .ui.basic[class*="right ribbon"].label::after {
450
- right: @basicBorderWidthOffset;
451
- }
452
- }
453
- /* Right Ribbon */
454
- .ui[class*="right ribbon"].label {
455
- text-align: left;
456
- transform: translateX(-100%);
457
- border-radius: @borderRadius 0 0 @borderRadius;
458
- }
459
- .ui[class*="right ribbon"].label::after {
460
- left: auto;
461
- right: 0;
462
-
463
- border-style: solid;
464
- border-width: @ribbonTriangleSize @ribbonTriangleSize 0 0;
465
- border-color: transparent;
466
- border-top-color: inherit;
467
- }
468
-
469
- /* Inside Table */
470
- .ui.image > .ribbon.label,
471
- .ui.card .image > .ribbon.label {
472
- position: absolute;
473
- top: @ribbonImageTopDistance;
474
- }
475
- .ui.card .image > .ui.ribbon.label,
476
- .ui.image > .ui.ribbon.label {
477
- left: @ribbonImageOffset;
478
- }
479
- .ui.card .image > .ui[class*="right ribbon"].label,
480
- .ui.image > .ui[class*="right ribbon"].label {
481
- left: @rightRibbonImageOffset;
482
- padding-left: @horizontalPadding;
483
- }
484
-
485
- /* Inside Table */
486
- .ui.table td > .ui.ribbon.label {
487
- left: @ribbonTableOffset;
488
- }
489
- .ui.table td > .ui[class*="right ribbon"].label {
490
- left: @rightRibbonTableOffset;
491
- padding-left: @horizontalPadding;
492
- }
366
+ /* -------------------
367
+ Ribbon
368
+ -------------------- */
369
+
370
+ .ui.ribbon.label {
371
+ position: relative;
372
+ margin: 0;
373
+ min-width: max-content;
374
+ border-radius: 0 @borderRadius @borderRadius 0;
375
+ border-color: @ribbonShadowColor;
376
+ }
377
+
378
+ .ui.ribbon.label::after {
379
+ position: absolute;
380
+ content: "";
381
+ top: 100%;
382
+ left: 0;
383
+ background-color: transparent;
384
+ border-style: solid;
385
+ border-width: 0 @ribbonTriangleSize @ribbonTriangleSize 0;
386
+ border-color: transparent;
387
+ border-right-color: inherit;
388
+ width: 0;
389
+ height: 0;
390
+ }
391
+
392
+ /* Positioning */
393
+ .ui.ribbon.label {
394
+ left: @ribbonOffset;
395
+ margin-right: -@ribbonTriangleSize;
396
+ padding-left: @ribbonDistance;
397
+ padding-right: @ribbonTriangleSize;
398
+ }
399
+ .ui[class*="right ribbon"].label {
400
+ left: @rightRibbonOffset;
401
+ padding-left: @ribbonTriangleSize;
402
+ padding-right: @ribbonDistance;
403
+ }
404
+ & when (@variationLabelBasic) {
405
+ .ui.basic.ribbon.label {
406
+ padding-top: @basicRibbonOffset;
407
+ padding-bottom: @basicRibbonOffset;
408
+ }
409
+ .ui.basic.ribbon.label:not([class*="right ribbon"]) {
410
+ padding-left: @basicRibbonTriangleSizeOffset;
411
+ padding-right: @basicRibbonTriangleSize;
412
+ }
413
+ .ui.basic[class*="right ribbon"].label {
414
+ padding-left: @basicRibbonTriangleSize;
415
+ padding-right: @basicRibbonTriangleSizeOffset;
416
+ }
417
+ .ui.basic.ribbon.label::after {
418
+ top: @basicBorderFullWidthOffset;
419
+ }
420
+ .ui.basic.ribbon.label:not([class*="right ribbon"])::after {
421
+ left: @basicBorderWidthOffset;
422
+ }
423
+ .ui.basic[class*="right ribbon"].label::after {
424
+ right: @basicBorderWidthOffset;
425
+ }
426
+ }
427
+
428
+ /* Right Ribbon */
429
+ .ui[class*="right ribbon"].label {
430
+ text-align: left;
431
+ transform: translateX(-100%);
432
+ border-radius: @borderRadius 0 0 @borderRadius;
433
+ }
434
+ .ui[class*="right ribbon"].label::after {
435
+ left: auto;
436
+ right: 0;
437
+ border-style: solid;
438
+ border-width: @ribbonTriangleSize @ribbonTriangleSize 0 0;
439
+ border-color: transparent;
440
+ border-top-color: inherit;
441
+ }
442
+
443
+ /* Inside Table */
444
+ .ui.image > .ribbon.label,
445
+ .ui.card .image > .ribbon.label {
446
+ position: absolute;
447
+ top: @ribbonImageTopDistance;
448
+ }
449
+ .ui.card .image > .ui.ribbon.label,
450
+ .ui.image > .ui.ribbon.label {
451
+ left: @ribbonImageOffset;
452
+ }
453
+ .ui.card .image > .ui[class*="right ribbon"].label,
454
+ .ui.image > .ui[class*="right ribbon"].label {
455
+ left: @rightRibbonImageOffset;
456
+ padding-left: @horizontalPadding;
457
+ }
458
+
459
+ /* Inside Table */
460
+ .ui.table td > .ui.ribbon.label {
461
+ left: @ribbonTableOffset;
462
+ }
463
+ .ui.table td > .ui[class*="right ribbon"].label {
464
+ left: @rightRibbonTableOffset;
465
+ padding-left: @horizontalPadding;
466
+ }
493
467
  }
494
468
 
495
469
  & when (@variationLabelAttached) {
496
- /*-------------------
497
- Attached
498
- --------------------*/
499
-
500
- .ui[class*="top attached"].label,
501
- .ui.attached.label {
502
- width: 100%;
503
- position: absolute;
504
- margin: 0;
505
- top: 0;
506
- left: 0;
507
-
508
- padding: @attachedVerticalPadding @attachedHorizontalPadding;
509
-
510
- border-radius: @attachedCornerBorderRadius @attachedCornerBorderRadius 0 0;
511
- }
512
- .ui[class*="bottom attached"].label {
513
- top: auto;
514
- bottom: 0;
515
- border-radius: 0 0 @attachedCornerBorderRadius @attachedCornerBorderRadius;
516
- }
517
-
518
- .ui[class*="top left attached"].label {
519
- width: auto;
520
- margin-top: 0;
521
- border-radius: @attachedCornerBorderRadius 0 @attachedBorderRadius 0;
522
- }
470
+ /* -------------------
471
+ Attached
472
+ -------------------- */
473
+
474
+ .ui[class*="top attached"].label,
475
+ .ui.attached.label {
476
+ width: 100%;
477
+ position: absolute;
478
+ margin: 0;
479
+ top: 0;
480
+ left: 0;
481
+ padding: @attachedVerticalPadding @attachedHorizontalPadding;
482
+ border-radius: @attachedCornerBorderRadius @attachedCornerBorderRadius 0 0;
483
+ }
484
+ .ui[class*="bottom attached"].label {
485
+ top: auto;
486
+ bottom: 0;
487
+ border-radius: 0 0 @attachedCornerBorderRadius @attachedCornerBorderRadius;
488
+ }
523
489
 
524
- .ui[class*="top right attached"].label {
525
- width: auto;
526
- left: auto;
527
- right: 0;
528
- border-radius: 0 @attachedCornerBorderRadius 0 @attachedBorderRadius;
529
- }
530
- .ui[class*="bottom left attached"].label {
531
- width: auto;
532
- top: auto;
533
- bottom: 0;
534
- border-radius: 0 @attachedBorderRadius 0 @attachedCornerBorderRadius;
535
- }
536
- .ui[class*="bottom right attached"].label {
537
- top: auto;
538
- bottom: 0;
539
- left: auto;
540
- right: 0;
541
- width: auto;
542
- border-radius: @attachedBorderRadius 0 @attachedCornerBorderRadius 0;
543
- }
490
+ .ui[class*="top left attached"].label {
491
+ width: auto;
492
+ margin-top: 0;
493
+ border-radius: @attachedCornerBorderRadius 0 @attachedBorderRadius 0;
494
+ }
495
+
496
+ .ui[class*="top right attached"].label {
497
+ width: auto;
498
+ left: auto;
499
+ right: 0;
500
+ border-radius: 0 @attachedCornerBorderRadius 0 @attachedBorderRadius;
501
+ }
502
+ .ui[class*="bottom left attached"].label {
503
+ width: auto;
504
+ top: auto;
505
+ bottom: 0;
506
+ border-radius: 0 @attachedBorderRadius 0 @attachedCornerBorderRadius;
507
+ }
508
+ .ui[class*="bottom right attached"].label {
509
+ top: auto;
510
+ bottom: 0;
511
+ left: auto;
512
+ right: 0;
513
+ width: auto;
514
+ border-radius: @attachedBorderRadius 0 @attachedCornerBorderRadius 0;
515
+ }
544
516
  }
545
517
 
546
518
  /*******************************
547
519
  States
548
520
  *******************************/
549
521
 
550
- /*-------------------
522
+ /* -------------------
551
523
  Disabled
552
- --------------------*/
524
+ -------------------- */
553
525
  & when (@variationLabelDisabled) {
554
- .ui.label.disabled {
555
- opacity: 0.5;
556
- }
526
+ .ui.disabled.labels .label,
527
+ .ui.label.disabled {
528
+ opacity: @disabledOpacity;
529
+ pointer-events: @disabledPointerEvents;
530
+ }
557
531
  }
558
- /*-------------------
532
+
533
+ /* -------------------
559
534
  Hover
560
- --------------------*/
535
+ -------------------- */
561
536
 
562
537
  .ui.labels a.label:hover,
563
538
  a.ui.label:hover {
564
- background-color: @labelHoverBackgroundColor;
565
- border-color: @labelHoverBackgroundColor;
566
-
567
- background-image: @labelHoverBackgroundImage;
568
- color: @labelHoverTextColor;
539
+ background-color: @labelHoverBackgroundColor;
540
+ border-color: @labelHoverBackgroundColor;
541
+ background-image: @labelHoverBackgroundImage;
542
+ color: @labelHoverTextColor;
569
543
  }
570
544
  .ui.labels a.label:hover::before,
571
545
  a.ui.label:hover::before {
572
- color: @labelHoverTextColor;
546
+ color: @labelHoverTextColor;
573
547
  }
574
548
 
575
- /*-------------------
549
+ /* -------------------
576
550
  Active
577
- --------------------*/
551
+ -------------------- */
578
552
 
579
553
  .ui.active.label {
580
- background-color: @labelActiveBackgroundColor;
581
- border-color: @labelActiveBackgroundColor;
582
-
583
- background-image: @labelActiveBackgroundImage;
584
- color: @labelActiveTextColor;
554
+ background-color: @labelActiveBackgroundColor;
555
+ border-color: @labelActiveBackgroundColor;
556
+ background-image: @labelActiveBackgroundImage;
557
+ color: @labelActiveTextColor;
585
558
  }
586
559
  .ui.active.label::before {
587
- background-color: @labelActiveBackgroundColor;
588
- background-image: @labelActiveBackgroundImage;
589
- color: @labelActiveTextColor;
560
+ background-color: @labelActiveBackgroundColor;
561
+ background-image: @labelActiveBackgroundImage;
562
+ color: @labelActiveTextColor;
590
563
  }
591
564
 
592
- /*-------------------
565
+ /* -------------------
593
566
  Active Hover
594
- --------------------*/
567
+ -------------------- */
595
568
 
596
569
  .ui.labels a.active.label:hover,
597
570
  a.ui.active.label:hover {
598
- background-color: @labelActiveHoverBackgroundColor;
599
- border-color: @labelActiveHoverBackgroundColor;
600
-
601
- background-image: @labelActiveHoverBackgroundImage;
602
- color: @labelActiveHoverTextColor;
571
+ background-color: @labelActiveHoverBackgroundColor;
572
+ border-color: @labelActiveHoverBackgroundColor;
573
+ background-image: @labelActiveHoverBackgroundImage;
574
+ color: @labelActiveHoverTextColor;
603
575
  }
604
576
  .ui.labels a.active.label:hover::before,
605
577
  a.ui.active.label:hover::before {
606
- background-color: @labelActiveHoverBackgroundColor;
607
- background-image: @labelActiveHoverBackgroundImage;
608
- color: @labelActiveHoverTextColor;
578
+ background-color: @labelActiveHoverBackgroundColor;
579
+ background-image: @labelActiveHoverBackgroundImage;
580
+ color: @labelActiveHoverTextColor;
609
581
  }
610
582
 
611
-
612
- /*-------------------
583
+ /* -------------------
613
584
  Visible
614
- --------------------*/
585
+ -------------------- */
615
586
 
616
587
  .ui.labels.visible .label,
617
588
  .ui.label.visible:not(.dropdown) {
618
- display: inline-block !important;
589
+ display: inline-block !important;
619
590
  }
620
591
 
621
- /*-------------------
592
+ /* -------------------
622
593
  Hidden
623
- --------------------*/
594
+ -------------------- */
624
595
 
625
596
  .ui.labels.hidden .label,
626
597
  .ui.label.hidden {
627
- display: none !important;
598
+ display: none !important;
628
599
  }
629
600
 
630
-
631
601
  /*******************************
632
602
  Variations
633
603
  *******************************/
634
604
 
635
-
636
605
  & when (@variationLabelBasic) {
637
- /*-------------------
638
- Basic
639
- --------------------*/
640
-
641
- .ui.basic.labels .label,
642
- .ui.basic.label {
643
- background: @basicBackground;
644
- border: @basicBorder;
645
- color: @basicColor;
646
- box-shadow: @basicBoxShadow;
647
- padding-top: @basicVerticalPadding;
648
- padding-bottom: @basicVerticalPadding;
649
- padding-right: @basicHorizontalPadding;
650
- }
651
- .ui.basic.labels:not(.tag):not(.image):not(.ribbon) .label,
652
- .ui.basic.label:not(.tag):not(.image):not(.ribbon) {
653
- padding-left: @basicHorizontalPadding;
654
- }
655
- & when (@variationLabelImage) {
656
- .ui.basic.image.label {
657
- padding-left: @basicImageLabelPadding;
658
- }
659
- }
660
-
661
- /* Link */
662
- .ui.basic.labels a.label:hover,
663
- a.ui.basic.label:hover {
664
- text-decoration: none;
665
- background: @basicHoverBackground;
666
- color: @basicHoverColor;
667
- box-shadow: @basicHoverBoxShadow;
668
- }
669
- & when (@variationLabelPointing) {
670
- /* Pointing */
671
- .ui.basic.pointing.label::before {
672
- border-color: inherit;
673
- }
674
- }
606
+ /* -------------------
607
+ Basic
608
+ -------------------- */
609
+
610
+ .ui.basic.labels .label,
611
+ .ui.basic.label {
612
+ background: @basicBackground;
613
+ border: @basicBorder;
614
+ color: @basicColor;
615
+ box-shadow: @basicBoxShadow;
616
+ padding-top: @basicVerticalPadding;
617
+ padding-bottom: @basicVerticalPadding;
618
+ padding-right: @basicHorizontalPadding;
619
+ }
620
+ .ui.basic.labels:not(.tag):not(.image):not(.ribbon) .label,
621
+ .ui.basic.label:not(.tag):not(.image):not(.ribbon) {
622
+ padding-left: @basicHorizontalPadding;
623
+ }
624
+ & when (@variationLabelImage) {
625
+ .ui.basic.image.label {
626
+ padding-left: @basicImageLabelPadding;
627
+ }
628
+ }
629
+
630
+ /* Link */
631
+ .ui.basic.labels a.label:hover,
632
+ a.ui.basic.label:hover {
633
+ text-decoration: none;
634
+ background: @basicHoverBackground;
635
+ color: @basicHoverColor;
636
+ box-shadow: @basicHoverBoxShadow;
637
+ }
638
+ & when (@variationLabelPointing) {
639
+ /* Pointing */
640
+ .ui.basic.pointing.label::before {
641
+ border-color: inherit;
642
+ }
643
+ }
675
644
  }
676
645
 
677
646
  & when (@variationLabelFluid) {
678
- /*-------------------
679
- Fluid
680
- --------------------*/
681
-
682
- .ui.label.fluid,
683
- .ui.fluid.labels > .label {
684
- width: 100%;
685
- box-sizing: border-box;
686
- }
647
+ /* -------------------
648
+ Fluid
649
+ -------------------- */
650
+
651
+ .ui.label.fluid,
652
+ .ui.fluid.labels > .label {
653
+ width: 100%;
654
+ box-sizing: border-box;
655
+ }
656
+ }
657
+
658
+ & when (@variationLabelCentered) {
659
+ .ui.centered.labels .label,
660
+ .ui.centered.label {
661
+ text-align: center;
662
+ }
687
663
  }
688
664
 
689
665
  & when (@variationLabelInverted) {
690
- /*-------------------
691
- Inverted
692
- --------------------*/
693
-
694
- .ui.inverted.labels .label,
695
- .ui.inverted.label {
696
- color: @invertedTextColor;
697
- background-color: @invertedBackgroundColor;
698
- }
699
- .ui.inverted.corner.label {
700
- border-color: @invertedBackgroundColor;
701
- }
702
- .ui.inverted.corner.label:hover {
703
- border-color: @backgroundColor;
704
- transition: none;
705
- }
706
- .ui.inverted.basic.labels .label,
707
- .ui.inverted.basic.label,
708
- .ui.inverted.basic.label:hover {
709
- border-color: @basicInvertedBorderColor;
710
- background: @black;
711
- }
712
- .ui.inverted.basic.label:hover {
713
- color: @linkColor;
714
- }
666
+ /* -------------------
667
+ Inverted
668
+ -------------------- */
669
+
670
+ .ui.inverted.labels .label,
671
+ .ui.inverted.label {
672
+ color: @invertedTextColor;
673
+ background-color: @invertedBackgroundColor;
674
+ }
675
+ .ui.inverted.corner.label {
676
+ border-color: @invertedBackgroundColor;
677
+ }
678
+ .ui.inverted.corner.label:hover {
679
+ border-color: @backgroundColor;
680
+ transition: none;
681
+ }
682
+ .ui.inverted.basic.labels .label,
683
+ .ui.inverted.basic.label,
684
+ .ui.inverted.basic.label:hover {
685
+ border-color: @basicInvertedBorderColor;
686
+ background: @black;
687
+ }
688
+ .ui.inverted.basic.label:hover {
689
+ color: @linkColor;
690
+ }
715
691
  }
716
692
 
717
- /*-------------------
693
+ /* -------------------
718
694
  Colors
719
- --------------------*/
695
+ -------------------- */
720
696
  & when not (@variationLabelColors = false) {
721
- each(@variationLabelColors, {
722
- @color: @value;
723
- @isDark: @colors[@@color][isDark];
724
- @_labelColor: @colors[@@color][color];
725
- @_labelInvertedColor: @colors[@@color][light];
726
- @_labelTextColor: @colors[@@color][text];
727
- @_labelHover: @colors[@@color][hover];
728
- @_labelInvertedHover: @colors[@@color][lightHover];
729
- @_labelHoverTextColor: @colors[@@color][hoverText];
730
- @_labelRibbonShadow: @colors[@@color][ribbon];
731
- @_labelInvertedRibbonShadow: @colors[@@color][invertedRibbon];
732
-
733
- .ui.@{color}.labels .label,
734
- .ui.ui.ui.@{color}.label {
735
- background-color: @_labelColor;
736
- border-color: @_labelColor;
737
- color: @_labelTextColor;
738
- }
739
- /* Link */
740
- .ui.@{color}.labels a.label:hover,
741
- a.ui.ui.ui.@{color}.label:hover {
742
- background-color: @_labelHover;
743
- border-color: @_labelHover;
744
- color: @_labelHoverTextColor;
745
- }
746
- & when (@variationLabelRibbon) {
747
- /* Ribbon */
748
- .ui.ui.ui.@{color}.ribbon.label {
749
- border-color: @_labelRibbonShadow;
750
- }
751
- }
752
- & when (@variationLabelBasic) {
753
- /* Basic */
754
- .ui.basic.labels .@{color}.label,
755
- .ui.ui.ui.basic.@{color}.label {
756
- background: @basicBackground;
757
- border-color: @_labelColor;
758
- color: @_labelColor;
759
- }
760
- .ui.basic.labels a.@{color}.label:hover,
761
- a.ui.ui.ui.basic.@{color}.label:hover {
762
- background: @basicBackground;
763
- border-color: @_labelHover;
764
- color: @_labelHover;
765
- }
766
- }
767
- & when (@variationLabelInverted) {
768
- /* Inverted */
769
- .ui.inverted.labels .@{color}.label,
770
- .ui.ui.ui.inverted.@{color}.label {
771
- background-color: @_labelInvertedColor;
772
- border-color: @_labelInvertedColor;
773
- color: @black;
774
- }
775
- /* Inverted Link */
776
- .ui.inverted.labels a.@{color}.label:hover,
777
- a.ui.ui.ui.inverted.@{color}.label:hover {
778
- background-color: @_labelInvertedHover;
779
- border-color: @_labelInvertedHover;
780
- & when not (@isDark) {
781
- color: @black;
782
- }
783
- & when (@isDark) {
784
- color: @_labelTextColor;
697
+ each(@variationLabelColors, {
698
+ @color: @value;
699
+ @isDark: @colors[@@color][isDark];
700
+ @_labelColor: @colors[@@color][color];
701
+ @_labelInvertedColor: @colors[@@color][light];
702
+ @_labelTextColor: @colors[@@color][text];
703
+ @_labelHover: @colors[@@color][hover];
704
+ @_labelInvertedHover: @colors[@@color][lightHover];
705
+ @_labelHoverTextColor: @colors[@@color][hoverText];
706
+ @_labelRibbonShadow: @colors[@@color][ribbon];
707
+ @_labelInvertedRibbonShadow: @colors[@@color][invertedRibbon];
708
+
709
+ .ui.@{color}.labels .label,
710
+ .ui.ui.ui.@{color}.label {
711
+ background-color: @_labelColor;
712
+ border-color: @_labelColor;
713
+ color: @_labelTextColor;
785
714
  }
786
- }
787
- & when (@variationLabelRibbon) {
788
- /* Inverted Ribbon */
789
- .ui.ui.ui.inverted.@{color}.ribbon.label {
790
- border-color: @_labelInvertedRibbonShadow;
715
+ /* Link */
716
+ .ui.@{color}.labels a.label:hover,
717
+ a.ui.ui.ui.@{color}.label:hover {
718
+ background-color: @_labelHover;
719
+ border-color: @_labelHover;
720
+ color: @_labelHoverTextColor;
791
721
  }
792
- }
793
- & when (@variationLabelBasic) {
794
- /* Inverted Basic */
795
- .ui.inverted.basic.labels .@{color}.label,
796
- .ui.ui.ui.inverted.basic.@{color}.label {
797
- background-color: @invertedBackground;
798
- border-color: @_labelInvertedColor;
799
- & when not (@isDark) {
800
- color: @_labelInvertedColor;
801
- }
802
- & when (@isDark) {
803
- color: @invertedTextColor;
804
- }
722
+ & when (@variationLabelRibbon) {
723
+ /* Ribbon */
724
+ .ui.ui.ui.@{color}.ribbon.label {
725
+ border-color: @_labelRibbonShadow;
726
+ }
805
727
  }
806
- .ui.inverted.basic.labels a.@{color}.label:hover,
807
- a.ui.ui.ui.inverted.basic.@{color}.label:hover {
808
- border-color: @_labelInvertedHover;
809
- background-color: @invertedBackground;
810
- & when not (@isDark) {
811
- color: @_labelInvertedHover;
812
- }
728
+ & when (@variationLabelBasic) {
729
+ /* Basic */
730
+ .ui.basic.labels .@{color}.label,
731
+ .ui.ui.ui.basic.@{color}.label {
732
+ background: @basicBackground;
733
+ border-color: @_labelColor;
734
+ color: @_labelColor;
735
+ }
736
+ .ui.basic.labels a.@{color}.label:hover,
737
+ a.ui.ui.ui.basic.@{color}.label:hover {
738
+ background: @basicBackground;
739
+ border-color: @_labelHover;
740
+ color: @_labelHover;
741
+ }
813
742
  }
814
- & when (@variationLabelTag) {
815
- /* Inverted Basic Tags */
816
- .ui.inverted.basic.tag.labels .@{color}.label,
817
- .ui.ui.ui.inverted.@{color}.basic.tag.label {
818
- border: @invertedBorderSize solid @_labelInvertedColor;
819
- }
820
- .ui.inverted.basic.tag.labels .@{color}.label::before,
821
- .ui.ui.ui.inverted.@{color}.basic.tag.label::before {
822
- border-color: inherit;
823
- border-width: @invertedBorderSize 0 0 @invertedBorderSize;
824
- border-style: inherit;
825
- background-color: @invertedBackground;
826
- right: e(%("calc(100%% + %d)", @invertedBorderSize));
827
- }
743
+ & when (@variationLabelInverted) {
744
+ /* Inverted */
745
+ .ui.inverted.labels .@{color}.label,
746
+ .ui.ui.ui.inverted.@{color}.label {
747
+ background-color: @_labelInvertedColor;
748
+ border-color: @_labelInvertedColor;
749
+ color: @black;
750
+ }
751
+ /* Inverted Link */
752
+ .ui.inverted.labels a.@{color}.label:hover,
753
+ a.ui.ui.ui.inverted.@{color}.label:hover {
754
+ background-color: @_labelInvertedHover;
755
+ border-color: @_labelInvertedHover;
756
+ & when not (@isDark) {
757
+ color: @black;
758
+ }
759
+ & when (@isDark) {
760
+ color: @_labelTextColor;
761
+ }
762
+ }
763
+ & when (@variationLabelRibbon) {
764
+ /* Inverted Ribbon */
765
+ .ui.ui.ui.inverted.@{color}.ribbon.label {
766
+ border-color: @_labelInvertedRibbonShadow;
767
+ }
768
+ }
769
+ & when (@variationLabelBasic) {
770
+ /* Inverted Basic */
771
+ .ui.inverted.basic.labels .@{color}.label,
772
+ .ui.ui.ui.inverted.basic.@{color}.label {
773
+ background-color: @invertedBackground;
774
+ border-color: @_labelInvertedColor;
775
+ & when not (@isDark) {
776
+ color: @_labelInvertedColor;
777
+ }
778
+ & when (@isDark) {
779
+ color: @invertedTextColor;
780
+ }
781
+ }
782
+ .ui.inverted.basic.labels a.@{color}.label:hover,
783
+ a.ui.ui.ui.inverted.basic.@{color}.label:hover {
784
+ border-color: @_labelInvertedHover;
785
+ background-color: @invertedBackground;
786
+ & when not (@isDark) {
787
+ color: @_labelInvertedHover;
788
+ }
789
+ }
790
+ & when (@variationLabelTag) {
791
+ /* Inverted Basic Tags */
792
+ .ui.inverted.basic.tag.labels .@{color}.label,
793
+ .ui.ui.ui.inverted.@{color}.basic.tag.label {
794
+ border: @invertedBorderSize solid @_labelInvertedColor;
795
+ }
796
+ .ui.inverted.basic.tag.labels .@{color}.label::before,
797
+ .ui.ui.ui.inverted.@{color}.basic.tag.label::before {
798
+ border-color: inherit;
799
+ border-width: @invertedBorderSize 0 0 @invertedBorderSize;
800
+ border-style: inherit;
801
+ background-color: @invertedBackground;
802
+ right: e(%("calc(100%% + %d)", @invertedBorderSize));
803
+ }
804
+ }
805
+ }
828
806
  }
829
- }
830
- }
831
- })
807
+ });
832
808
  }
833
809
 
834
- /*-------------------
810
+ /* -------------------
835
811
  Horizontal
836
- --------------------*/
812
+ -------------------- */
837
813
 
838
814
  .ui.horizontal.labels .label,
839
815
  .ui.horizontal.label {
840
- margin: 0 @horizontalLabelMargin 0 0;
841
-
842
- padding: @horizontalLabelVerticalPadding @horizontalPadding;
843
- min-width: @horizontalLabelMinWidth;
844
- text-align: center;
816
+ margin: 0 @horizontalLabelMargin 0 0;
817
+ padding: @horizontalLabelVerticalPadding @horizontalPadding;
818
+ min-width: @horizontalLabelMinWidth;
819
+ text-align: center;
845
820
  }
846
821
 
847
822
  & when (@variationLabelCircular) {
848
- /*-------------------
849
- Circular
850
- --------------------*/
823
+ /* -------------------
824
+ Circular
825
+ -------------------- */
826
+
827
+ .ui.circular.labels .label,
828
+ .ui.circular.label {
829
+ min-width: @circularMinSize;
830
+ min-height: @circularMinSize;
831
+ padding: @circularPadding !important;
832
+ line-height: 1em;
833
+ text-align: center;
834
+ border-radius: @circularRadius;
835
+ }
836
+ .ui.empty.circular.labels .label,
837
+ .ui.empty.circular.label {
838
+ min-width: 0;
839
+ min-height: 0;
840
+ overflow: hidden;
841
+ width: @emptyCircleSize;
842
+ height: @emptyCircleSize;
843
+ vertical-align: baseline;
844
+ }
845
+ }
851
846
 
852
- .ui.circular.labels .label,
853
- .ui.circular.label {
854
- min-width: @circularMinSize;
855
- min-height: @circularMinSize;
847
+ & when (@variationLabelPointing) {
848
+ /* -------------------
849
+ Pointing
850
+ -------------------- */
856
851
 
857
- padding: @circularPadding !important;
852
+ .ui.pointing.label {
853
+ position: relative;
854
+ }
858
855
 
859
- line-height: 1em;
860
- text-align: center;
861
- border-radius: @circularRadius;
862
- }
863
- .ui.empty.circular.labels .label,
864
- .ui.empty.circular.label {
865
- min-width: 0;
866
- min-height: 0;
867
- overflow: hidden;
868
- width: @emptyCircleSize;
869
- height: @emptyCircleSize;
870
- vertical-align: baseline;
871
- }
872
- }
856
+ .ui.attached.pointing.label {
857
+ position: absolute;
858
+ }
873
859
 
874
- & when (@variationLabelPointing) {
875
- /*-------------------
876
- Pointing
877
- --------------------*/
878
-
879
- .ui.pointing.label {
880
- position: relative;
881
- }
882
-
883
- .ui.attached.pointing.label {
884
- position: absolute;
885
- }
886
-
887
- .ui.pointing.label::before {
888
- background-color: inherit;
889
- background-image: inherit;
890
- border-width: 0;
891
- border-style: solid;
892
- border-color: @pointingBorderColor;
893
- }
894
- /* Arrow */
895
- .ui.pointing.label::before {
896
- position: absolute;
897
- content: '';
898
- transform: rotate(45deg);
899
- background-image: none;
900
-
901
- z-index: @pointingTriangleZIndex;
902
- width: @pointingTriangleSize;
903
- height: @pointingTriangleSize;
904
- transition: @pointingTriangleTransition;
905
- }
906
-
907
- /*--- Above ---*/
908
- .ui.pointing.label,
909
- .ui[class*="pointing above"].label {
910
- margin-top: @pointingVerticalDistance;
911
- }
912
- .ui.pointing.label::before,
913
- .ui[class*="pointing above"].label::before {
914
- border-width: @borderWidth 0 0 @borderWidth;
915
- transform: translateX(-50%) translateY(-50%) rotate(45deg);
916
- top: 0;
917
- left: 50%;
918
- }
919
- /*--- Below ---*/
920
- .ui[class*="bottom pointing"].label,
921
- .ui[class*="pointing below"].label {
922
- margin-top: 0;
923
- margin-bottom: @pointingVerticalDistance;
924
- }
925
- .ui[class*="bottom pointing"].label::before,
926
- .ui[class*="pointing below"].label::before {
927
- border-width: 0 @borderWidth @borderWidth 0;
928
- top: auto;
929
- right: auto;
930
- transform: translateX(-50%) translateY(-50%) rotate(45deg);
931
- top: 100%;
932
- left: 50%;
933
- }
934
- /*--- Left ---*/
935
- .ui[class*="left pointing"].label {
936
- margin-top: 0;
937
- margin-left: @pointingHorizontalDistance;
938
- }
939
- .ui[class*="left pointing"].label::before {
940
- border-width: 0 0 @borderWidth @borderWidth;
941
- transform: translateX(-50%) translateY(-50%) rotate(45deg);
942
- bottom: auto;
943
- right: auto;
944
- top: 50%;
945
- left: 0;
946
- }
947
- /*--- Right ---*/
948
- .ui[class*="right pointing"].label {
949
- margin-top: 0;
950
- margin-right: @pointingHorizontalDistance;
951
- }
952
- .ui[class*="right pointing"].label::before {
953
- border-width: @borderWidth @borderWidth 0 0;
954
- transform: translateX(50%) translateY(-50%) rotate(45deg);
955
- top: 50%;
956
- right: 0;
957
- bottom: auto;
958
- left: auto;
959
- }
960
- & when (@variationLabelBasic) {
961
- /* Basic Pointing */
962
-
963
- /*--- Above ---*/
964
- .ui.basic.pointing.label::before,
965
- .ui.basic[class*="pointing above"].label::before {
966
- margin-top: @basicPointingTriangleOffset;
967
- }
968
- /*--- Below ---*/
969
- .ui.basic[class*="bottom pointing"].label::before,
970
- .ui.basic[class*="pointing below"].label::before {
971
- bottom: auto;
972
- top: 100%;
973
- margin-top: -@basicPointingTriangleOffset;
974
- }
975
- /*--- Left ---*/
976
- .ui.basic[class*="left pointing"].label::before {
977
- top: 50%;
978
- left: @basicPointingTriangleOffset;
979
- }
980
- /*--- Right ---*/
981
- .ui.basic[class*="right pointing"].label::before {
982
- top: 50%;
983
- right: @basicPointingTriangleOffset;
984
- }
985
- }
860
+ .ui.pointing.label::before {
861
+ background-color: inherit;
862
+ background-image: inherit;
863
+ border-width: 0;
864
+ border-style: solid;
865
+ border-color: @pointingBorderColor;
866
+ }
867
+
868
+ /* Arrow */
869
+ .ui.pointing.label::before {
870
+ position: absolute;
871
+ content: "";
872
+ transform: rotate(45deg);
873
+ background-image: none;
874
+ z-index: @pointingTriangleZIndex;
875
+ width: @pointingTriangleSize;
876
+ height: @pointingTriangleSize;
877
+ transition: @pointingTriangleTransition;
878
+ }
879
+
880
+ /* --- Above --- */
881
+ .ui.pointing.label,
882
+ .ui[class*="pointing above"].label {
883
+ margin-top: @pointingVerticalDistance;
884
+ }
885
+ .ui.pointing.label::before,
886
+ .ui[class*="pointing above"].label::before {
887
+ border-width: @borderWidth 0 0 @borderWidth;
888
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
889
+ top: 0;
890
+ left: 50%;
891
+ }
892
+
893
+ /* --- Below --- */
894
+ .ui[class*="bottom pointing"].label,
895
+ .ui[class*="pointing below"].label {
896
+ margin-top: 0;
897
+ margin-bottom: @pointingVerticalDistance;
898
+ }
899
+ .ui[class*="bottom pointing"].label::before,
900
+ .ui[class*="pointing below"].label::before {
901
+ border-width: 0 @borderWidth @borderWidth 0;
902
+ right: auto;
903
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
904
+ top: 100%;
905
+ left: 50%;
906
+ }
907
+
908
+ /* --- Left --- */
909
+ .ui[class*="left pointing"].label {
910
+ margin-top: 0;
911
+ margin-left: @pointingHorizontalDistance;
912
+ }
913
+ .ui[class*="left pointing"].label::before {
914
+ border-width: 0 0 @borderWidth @borderWidth;
915
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
916
+ bottom: auto;
917
+ right: auto;
918
+ top: 50%;
919
+ left: 0;
920
+ }
921
+
922
+ /* --- Right --- */
923
+ .ui[class*="right pointing"].label {
924
+ margin-top: 0;
925
+ margin-right: @pointingHorizontalDistance;
926
+ }
927
+ .ui[class*="right pointing"].label::before {
928
+ border-width: @borderWidth @borderWidth 0 0;
929
+ transform: translateX(50%) translateY(-50%) rotate(45deg);
930
+ top: 50%;
931
+ right: 0;
932
+ bottom: auto;
933
+ left: auto;
934
+ }
935
+ & when (@variationLabelBasic) {
936
+ /* Basic Pointing */
937
+
938
+ /* --- Above --- */
939
+ .ui.basic.pointing.label::before,
940
+ .ui.basic[class*="pointing above"].label::before {
941
+ margin-top: @basicPointingTriangleOffset;
942
+ }
943
+
944
+ /* --- Below --- */
945
+ .ui.basic[class*="bottom pointing"].label::before,
946
+ .ui.basic[class*="pointing below"].label::before {
947
+ bottom: auto;
948
+ top: 100%;
949
+ margin-top: -@basicPointingTriangleOffset;
950
+ }
951
+
952
+ /* --- Left --- */
953
+ .ui.basic[class*="left pointing"].label::before {
954
+ top: 50%;
955
+ left: @basicPointingTriangleOffset;
956
+ }
957
+
958
+ /* --- Right --- */
959
+ .ui.basic[class*="right pointing"].label::before {
960
+ top: 50%;
961
+ right: @basicPointingTriangleOffset;
962
+ }
963
+ }
986
964
  }
987
965
 
988
966
  & when (@variationLabelFloating) {
989
- /*------------------
990
- Floating Label
991
- -------------------*/
992
-
993
- .ui.floating.label {
994
- position: absolute;
995
- z-index: @floatingZIndex;
996
- top: @floatingTopOffset;
997
- right: 0;
998
- white-space: nowrap;
999
- transform: translateX(50%);
1000
- }
1001
- .ui.right.aligned.floating.label {
1002
- transform: translateX(@floatingAlignOffset);
1003
- }
1004
- .ui.left.floating.label {
1005
- left:0;
1006
- right:auto;
1007
- transform: translateX(-50%);
1008
- }
1009
- .ui.left.aligned.floating.label {
1010
- transform: translateX(-@floatingAlignOffset);
1011
- }
1012
- .ui.bottom.floating.label {
1013
- top: auto;
1014
- bottom: @floatingBottomOffset;
1015
- }
967
+ /* ------------------
968
+ Floating Label
969
+ ------------------- */
970
+
971
+ .ui.floating.label {
972
+ position: absolute;
973
+ z-index: @floatingZIndex;
974
+ top: @floatingTopOffset;
975
+ right: 0;
976
+ white-space: nowrap;
977
+ transform: translateX(50%);
978
+ }
979
+ .ui.right.aligned.floating.label {
980
+ transform: translateX(@floatingAlignOffset);
981
+ }
982
+ .ui.left.floating.label {
983
+ left: 0;
984
+ right: auto;
985
+ transform: translateX(-50%);
986
+ }
987
+ .ui.left.aligned.floating.label {
988
+ transform: translateX(-@floatingAlignOffset);
989
+ }
990
+ .ui.bottom.floating.label {
991
+ top: auto;
992
+ bottom: @floatingBottomOffset;
993
+ }
1016
994
  }
1017
995
 
1018
- /*-------------------
996
+ /* -------------------
1019
997
  Sizes
1020
- --------------------*/
998
+ -------------------- */
1021
999
 
1022
1000
  .ui.labels .label,
1023
1001
  .ui.label {
1024
- font-size: @medium;
1002
+ font-size: @medium;
1025
1003
  }
1026
1004
  & when not (@variationLabelSizes = false) {
1027
- each(@variationLabelSizes, {
1028
- @s: @@value;
1029
- .ui.@{value}.labels .label,
1030
- .ui.@{value}.label {
1031
- font-size: @s;
1032
- }
1033
- })
1005
+ each(@variationLabelSizes, {
1006
+ @s: @@value;
1007
+ .ui.@{value}.labels .label,
1008
+ .ui.@{value}.label {
1009
+ font-size: @s;
1010
+ }
1011
+ });
1034
1012
  }
1035
1013
 
1036
1014
  .loadUIOverrides();