fomantic-ui 2.9.1-beta.9 → 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 -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 +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 +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
@@ -12,635 +12,625 @@
12
12
  Theme
13
13
  *******************************/
14
14
 
15
- @type : 'element';
16
- @element : 'button';
15
+ @type: "element";
16
+ @element: "button";
17
17
 
18
- @import (multiple) '../../theme.config';
18
+ @import (multiple) "../../theme.config";
19
19
 
20
20
  /*******************************
21
21
  Button
22
22
  *******************************/
23
23
 
24
24
  .ui.button {
25
- cursor: pointer;
26
- display: inline-block;
27
-
28
- min-height: 1em;
29
-
30
- outline: none;
31
- border: none;
32
- vertical-align: @verticalAlign;
33
- background: @background;
34
- color: @textColor;
35
-
36
- font-family: @fontFamily;
37
-
38
- margin: 0 @horizontalMargin @verticalMargin 0;
39
- padding: @verticalPadding @horizontalPadding (@verticalPadding + @shadowOffset);
40
-
41
- text-transform: @textTransform;
42
- text-shadow: @textShadow;
43
- font-weight: @fontWeight;
44
- line-height: @lineHeight;
45
- font-style: normal;
46
- text-align: center;
47
- text-decoration: none;
48
-
49
- border-radius: @borderRadius;
50
- box-shadow: @boxShadow;
51
-
52
- user-select: none;
53
- transition: @transition;
54
- will-change: @willChange;
55
-
56
- -webkit-tap-highlight-color: @tapColor;
25
+ cursor: pointer;
26
+ display: inline-block;
27
+ min-height: 1em;
28
+ outline: none;
29
+ border: none;
30
+ vertical-align: @verticalAlign;
31
+ background: @background;
32
+ color: @textColor;
33
+ font-family: @fontFamily;
34
+ margin: 0 @horizontalMargin @verticalMargin 0;
35
+ padding: @verticalPadding @horizontalPadding (@verticalPadding + @shadowOffset);
36
+ text-transform: @textTransform;
37
+ text-shadow: @textShadow;
38
+ font-weight: @fontWeight;
39
+ line-height: @lineHeight;
40
+ font-style: normal;
41
+ text-align: center;
42
+ text-decoration: none;
43
+ border-radius: @borderRadius;
44
+ box-shadow: @boxShadow;
45
+ user-select: none;
46
+ transition: @transition;
47
+ will-change: @willChange;
48
+ -webkit-tap-highlight-color: @tapColor;
57
49
  }
58
50
 
59
-
60
51
  /*******************************
61
52
  States
62
53
  *******************************/
63
54
 
64
- /*--------------
55
+ /* --------------
65
56
  Hover
66
- ---------------*/
57
+ --------------- */
67
58
 
68
59
  .ui.button:hover {
69
- background-color: @hoverBackgroundColor;
70
- background-image: @hoverBackgroundImage;
71
- box-shadow: @hoverBoxShadow;
72
- color: @hoverColor;
60
+ background-color: @hoverBackgroundColor;
61
+ background-image: @hoverBackgroundImage;
62
+ box-shadow: @hoverBoxShadow;
63
+ color: @hoverColor;
73
64
  }
74
65
 
75
66
  .ui.button:hover .icon {
76
- opacity: @iconHoverOpacity;
67
+ opacity: @iconHoverOpacity;
77
68
  }
78
69
 
79
- /*--------------
70
+ /* --------------
80
71
  Focus
81
- ---------------*/
72
+ --------------- */
82
73
 
83
74
  .ui.button:focus {
84
- background-color: @focusBackgroundColor;
85
- color: @focusColor;
86
- background-image: @focusBackgroundImage;
87
- box-shadow: @focusBoxShadow;
75
+ background-color: @focusBackgroundColor;
76
+ color: @focusColor;
77
+ background-image: @focusBackgroundImage;
78
+ box-shadow: @focusBoxShadow;
88
79
  }
89
80
 
90
81
  .ui.button:focus .icon {
91
- opacity: @iconFocusOpacity;
82
+ opacity: @iconFocusOpacity;
92
83
  }
93
84
 
94
- /*--------------
85
+ /* --------------
95
86
  Down
96
- ---------------*/
87
+ --------------- */
97
88
 
98
89
  .ui.button:active,
99
90
  .ui.active.button:active {
100
- background-color: @downBackgroundColor;
101
- background-image: @downBackgroundImage;
102
- color: @downColor;
103
- box-shadow: @downBoxShadow;
91
+ background-color: @downBackgroundColor;
92
+ background-image: @downBackgroundImage;
93
+ color: @downColor;
94
+ box-shadow: @downBoxShadow;
104
95
  }
105
96
 
106
- /*--------------
97
+ /* --------------
107
98
  Active
108
- ---------------*/
99
+ --------------- */
109
100
 
110
101
  .ui.active.button {
111
- background-color: @activeBackgroundColor;
112
- background-image: @activeBackgroundImage;
113
- box-shadow: @activeBoxShadow;
114
- color: @activeColor;
102
+ background-color: @activeBackgroundColor;
103
+ background-image: @activeBackgroundImage;
104
+ box-shadow: @activeBoxShadow;
105
+ color: @activeColor;
115
106
  }
116
107
  .ui.active.button:hover {
117
- background-color: @activeHoverBackgroundColor;
118
- background-image: @activeHoverBackgroundImage;
119
- color: @activeHoverColor;
108
+ background-color: @activeHoverBackgroundColor;
109
+ background-image: @activeHoverBackgroundImage;
110
+ color: @activeHoverColor;
120
111
  }
121
112
  .ui.active.button:active {
122
- background-color: @activeBackgroundColor;
123
- background-image: @activeBackgroundImage;
113
+ background-color: @activeBackgroundColor;
114
+ background-image: @activeBackgroundImage;
124
115
  }
125
116
 
126
117
  & when (@variationButtonLoading) {
127
- /*--------------
128
- Loading
129
- ---------------*/
130
-
131
- /* Specificity hack */
132
- .ui.loading.loading.loading.loading.loading.loading.button {
133
- position: relative;
134
- cursor: default;
135
- text-shadow: none !important;
136
- color: transparent;
137
- opacity: @loadingOpacity;
138
- pointer-events: @loadingPointerEvents;
139
- transition: @loadingTransition;
140
- }
141
- .ui.loading.button::before {
142
- position: absolute;
143
- content: '';
144
- top: 50%;
145
- left: 50%;
146
-
147
- margin: @loaderMargin;
148
- width: @loaderSize;
149
- height: @loaderSize;
150
-
151
- border-radius: @circularRadius;
152
- border: @loaderLineWidth solid @invertedLoaderFillColor;
153
- }
154
- .ui.loading.button::after {
155
- position: absolute;
156
- content: '';
157
- top: 50%;
158
- left: 50%;
159
-
160
- margin: @loaderMargin;
161
- width: @loaderSize;
162
- height: @loaderSize;
163
-
164
- border-radius: @circularRadius;
165
-
166
- animation: loader @loaderSpeed infinite linear;
167
- border: @loaderLineWidth solid currentColor;
168
- color: @invertedLoaderLineColor;
169
-
170
- box-shadow: 0 0 0 1px transparent;
171
- }
172
- .ui.ui.ui.loading.button .label {
173
- background-color: transparent;
174
- border-color: transparent;
175
- color: transparent;
176
- }
177
- & when (@variationButtonLabeledIcon){
178
- .ui.labeled.icon.loading.button .icon {
179
- background-color: transparent;
180
- box-shadow: none;
181
- }
182
- }
183
- & when (@variationButtonBasic){
184
- .ui.basic.loading.button:not(.inverted)::before {
185
- border-color: @loaderFillColor;
186
- }
187
- .ui.basic.loading.button:not(.inverted)::after {
188
- border-color: @loaderLineColor;
189
- }
190
- }
118
+ /* --------------
119
+ Loading
120
+ --------------- */
121
+
122
+ /* Specificity hack */
123
+ .ui.loading.loading.loading.loading.loading.loading.button {
124
+ position: relative;
125
+ cursor: default;
126
+ text-shadow: none !important;
127
+ color: transparent;
128
+ opacity: @loadingOpacity;
129
+ pointer-events: @loadingPointerEvents;
130
+ transition: @loadingTransition;
131
+ }
132
+ .ui.loading.button::before {
133
+ position: absolute;
134
+ content: "";
135
+ top: 50%;
136
+ left: 50%;
137
+ margin: @loaderMargin;
138
+ width: @loaderSize;
139
+ height: @loaderSize;
140
+ border-radius: @circularRadius;
141
+ border: @loaderLineWidth solid @invertedLoaderFillColor;
142
+ }
143
+ .ui.loading.button::after {
144
+ position: absolute;
145
+ content: "";
146
+ top: 50%;
147
+ left: 50%;
148
+ margin: @loaderMargin;
149
+ width: @loaderSize;
150
+ height: @loaderSize;
151
+ border-radius: @circularRadius;
152
+ animation: loader @loaderSpeed infinite linear;
153
+ border: @loaderLineWidth solid currentColor;
154
+ color: @invertedLoaderLineColor;
155
+ box-shadow: 0 0 0 1px transparent;
156
+ }
157
+ .ui.ui.ui.loading.button .label {
158
+ background-color: transparent;
159
+ border-color: transparent;
160
+ color: transparent;
161
+ }
162
+ & when (@variationButtonLabeledIcon) {
163
+ .ui.labeled.icon.loading.button .icon {
164
+ background-color: transparent;
165
+ box-shadow: none;
166
+ }
167
+ }
168
+ & when (@variationButtonBasic) {
169
+ .ui.basic.loading.button:not(.inverted)::before {
170
+ border-color: @loaderFillColor;
171
+ }
172
+ .ui.basic.loading.button:not(.inverted)::after {
173
+ border-color: @loaderLineColor;
174
+ }
175
+ }
191
176
  }
192
- & when (@variationButtonDisabled){
193
- /*-------------------
194
- Disabled
195
- --------------------*/
196
-
197
- .ui.buttons .disabled.button:not(.basic),
198
- .ui.disabled.button,
199
- .ui.button:disabled,
200
- .ui.disabled.button:hover,
201
- .ui.disabled.active.button {
202
- cursor: default;
203
- opacity: @disabledOpacity !important;
204
- background-image: none;
205
- box-shadow: none;
206
- pointer-events: none !important;
207
- }
208
- & when (@variationButtonBasic){
209
- /* Basic Group With Disabled */
210
- .ui.basic.buttons .ui.disabled.button {
211
- border-color: @disabledBorderColor;
212
- }
213
- }
177
+ & when (@variationButtonDisabled) {
178
+ /* -------------------
179
+ Disabled
180
+ -------------------- */
181
+
182
+ .ui.buttons .disabled.button:not(.basic),
183
+ .ui.disabled.button,
184
+ .ui.button:disabled,
185
+ .ui.disabled.button:hover,
186
+ .ui.disabled.active.button {
187
+ cursor: default;
188
+ opacity: @disabledOpacity !important;
189
+ background-image: none;
190
+ box-shadow: none;
191
+ pointer-events: none !important;
192
+ }
193
+ & when (@variationButtonBasic) {
194
+ /* Basic Group With Disabled */
195
+ .ui.basic.buttons .ui.disabled.button {
196
+ border-color: @disabledBorderColor;
197
+ }
198
+ }
214
199
  }
215
200
 
216
201
  /*******************************
217
202
  Types
218
203
  *******************************/
219
- & when (@variationButtonAnimated){
220
- /*-------------------
221
- Animated
222
- --------------------*/
223
-
224
- .ui.animated.button {
225
- position: relative;
226
- overflow: hidden;
227
- padding-right: 0 !important;
228
- vertical-align: @animatedVerticalAlign;
229
- z-index: @animatedZIndex;
230
- }
231
-
232
- .ui.animated.button .content {
233
- will-change: transform, opacity;
234
- }
235
- .ui.animated.button .visible.content {
236
- position: relative;
237
- margin-right: @horizontalPadding;
238
- }
239
- .ui.animated.button .hidden.content {
240
- position: absolute;
241
- width: 100%;
242
- }
243
-
244
- /* Horizontal */
245
- .ui.animated.button .visible.content,
246
- .ui.animated.button .hidden.content {
247
- transition: right @animationDuration @animationEasing 0s;
248
- }
249
- .ui.animated.button .visible.content {
250
- left: auto;
251
- right: 0;
252
- }
253
- .ui.animated.button .hidden.content {
254
- top: 50%;
255
- left: auto;
256
- right: -100%;
257
- margin-top: -(@lineHeight / 2);
258
- }
259
- .ui.animated.button:focus .visible.content,
260
- .ui.animated.button:hover .visible.content {
261
- left: auto;
262
- right: 200%;
263
- }
264
- .ui.animated.button:focus .hidden.content,
265
- .ui.animated.button:hover .hidden.content {
266
- left: auto;
267
- right: 0;
268
- }
269
-
270
- & when (@variationButtonVertical) {
271
- /* Vertical */
272
- .ui.vertical.animated.button .visible.content,
273
- .ui.vertical.animated.button .hidden.content {
274
- transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
275
- }
276
- .ui.vertical.animated.button .visible.content {
277
- transform: translateY(0%);
278
- right: auto;
279
- }
280
- .ui.vertical.animated.button .hidden.content {
281
- top: -50%;
282
- left: 0;
283
- right: auto;
284
- }
285
- .ui.vertical.animated.button:focus .visible.content,
286
- .ui.vertical.animated.button:hover .visible.content {
287
- transform: translateY(200%);
288
- right: auto;
289
- }
290
- .ui.vertical.animated.button:focus .hidden.content,
291
- .ui.vertical.animated.button:hover .hidden.content {
292
- top: 50%;
293
- right: auto;
294
- }
295
- }
296
- & when (@variationButtonAnimatedFade) {
297
- /* Fade */
298
- .ui.fade.animated.button .visible.content,
299
- .ui.fade.animated.button .hidden.content {
300
- transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
301
- }
302
- .ui.fade.animated.button .visible.content {
303
- left: auto;
304
- right: auto;
305
- opacity: 1;
306
- transform: scale(1);
307
- }
308
- .ui.fade.animated.button .hidden.content {
309
- opacity: 0;
310
- left: 0;
311
- right: auto;
312
- transform: scale(@fadeScaleHigh);
313
- }
314
- .ui.fade.animated.button:focus .visible.content,
315
- .ui.fade.animated.button:hover .visible.content {
316
- left: auto;
317
- right: auto;
318
- opacity: 0;
319
- transform: scale(@fadeScaleLow);
320
- }
321
- .ui.fade.animated.button:focus .hidden.content,
322
- .ui.fade.animated.button:hover .hidden.content {
323
- left: 0;
324
- right: auto;
325
- opacity: 1;
326
- transform: scale(1);
327
- }
328
- }
204
+ & when (@variationButtonAnimated) {
205
+ /* -------------------
206
+ Animated
207
+ -------------------- */
208
+
209
+ .ui.animated.button {
210
+ position: relative;
211
+ overflow: hidden;
212
+ padding-right: 0 !important;
213
+ vertical-align: @animatedVerticalAlign;
214
+ z-index: @animatedZIndex;
215
+ }
216
+
217
+ .ui.animated.button .content {
218
+ will-change: transform, opacity;
219
+ }
220
+ .ui.animated.button .visible.content {
221
+ position: relative;
222
+ margin-right: @horizontalPadding;
223
+ }
224
+ .ui.animated.button .hidden.content {
225
+ position: absolute;
226
+ width: 100%;
227
+ }
228
+
229
+ /* Horizontal */
230
+ .ui.animated.button .visible.content,
231
+ .ui.animated.button .hidden.content {
232
+ transition: right @animationDuration @animationEasing 0s;
233
+ }
234
+ .ui.animated.button .visible.content {
235
+ left: auto;
236
+ right: 0;
237
+ }
238
+ .ui.animated.button .hidden.content {
239
+ top: 50%;
240
+ left: auto;
241
+ right: -100%;
242
+ margin-top: -(@lineHeight / 2);
243
+ }
244
+ .ui.animated.button:focus .visible.content,
245
+ .ui.animated.button:hover .visible.content {
246
+ left: auto;
247
+ right: 200%;
248
+ }
249
+ .ui.animated.button:focus .hidden.content,
250
+ .ui.animated.button:hover .hidden.content {
251
+ left: auto;
252
+ right: 0;
253
+ }
254
+
255
+ & when (@variationButtonVertical) {
256
+ /* Vertical */
257
+ .ui.vertical.animated.button .visible.content,
258
+ .ui.vertical.animated.button .hidden.content {
259
+ transition:
260
+ top @animationDuration @animationEasing,
261
+ transform @animationDuration @animationEasing;
262
+ }
263
+ .ui.vertical.animated.button .visible.content {
264
+ transform: translateY(0);
265
+ right: auto;
266
+ }
267
+ .ui.vertical.animated.button .hidden.content {
268
+ top: -50%;
269
+ left: 0;
270
+ right: auto;
271
+ }
272
+ .ui.vertical.animated.button:focus .visible.content,
273
+ .ui.vertical.animated.button:hover .visible.content {
274
+ transform: translateY(200%);
275
+ right: auto;
276
+ }
277
+ .ui.vertical.animated.button:focus .hidden.content,
278
+ .ui.vertical.animated.button:hover .hidden.content {
279
+ top: 50%;
280
+ right: auto;
281
+ }
282
+ }
283
+ & when (@variationButtonAnimatedFade) {
284
+ /* Fade */
285
+ .ui.fade.animated.button .visible.content,
286
+ .ui.fade.animated.button .hidden.content {
287
+ transition:
288
+ opacity @animationDuration @animationEasing,
289
+ transform @animationDuration @animationEasing;
290
+ }
291
+ .ui.fade.animated.button .visible.content {
292
+ left: auto;
293
+ right: auto;
294
+ opacity: 1;
295
+ transform: scale(1);
296
+ }
297
+ .ui.fade.animated.button .hidden.content {
298
+ opacity: 0;
299
+ left: 0;
300
+ right: auto;
301
+ transform: scale(@fadeScaleHigh);
302
+ }
303
+ .ui.fade.animated.button:focus .visible.content,
304
+ .ui.fade.animated.button:hover .visible.content {
305
+ left: auto;
306
+ right: auto;
307
+ opacity: 0;
308
+ transform: scale(@fadeScaleLow);
309
+ }
310
+ .ui.fade.animated.button:focus .hidden.content,
311
+ .ui.fade.animated.button:hover .hidden.content {
312
+ left: 0;
313
+ right: auto;
314
+ opacity: 1;
315
+ transform: scale(1);
316
+ }
317
+ }
329
318
  }
330
319
 
331
320
  & when (@variationButtonInverted) {
332
- /*-------------------
333
- Inverted
334
- --------------------*/
321
+ /* -------------------
322
+ Inverted
323
+ -------------------- */
335
324
 
336
- .ui.inverted.button {
337
- box-shadow: 0 0 0 @invertedBorderSize @white inset;
338
- background: transparent none;
339
- color: @white;
340
- text-shadow: none !important;
341
- }
325
+ .ui.inverted.button {
326
+ box-shadow: 0 0 0 @invertedBorderSize @white inset;
327
+ background: transparent none;
328
+ color: @white;
329
+ text-shadow: none !important;
330
+ }
342
331
 
343
- & when (@variationButtonGroups) {
344
- /* Group */
345
- .ui.inverted.buttons .button {
346
- margin: @invertedGroupButtonOffset;
332
+ & when (@variationButtonGroups) {
333
+ /* Group */
334
+ .ui.inverted.buttons .button {
335
+ margin: @invertedGroupButtonOffset;
336
+ }
337
+ .ui.inverted.buttons .button:first-child {
338
+ margin-left: 0;
339
+ }
340
+ & when (@variationButtonVertical) {
341
+ .ui.inverted.vertical.buttons .button {
342
+ margin: @invertedVerticalGroupButtonOffset;
343
+ }
344
+ .ui.inverted.vertical.buttons .button:first-child {
345
+ margin-top: 0;
346
+ }
347
+ }
347
348
  }
348
- .ui.inverted.buttons .button:first-child {
349
- margin-left: 0;
349
+
350
+ /* States */
351
+
352
+ /* Hover */
353
+ .ui.inverted.button:hover {
354
+ background: @white;
355
+ box-shadow: 0 0 0 @invertedBorderSize @white inset;
356
+ color: @hoverColor;
350
357
  }
351
- & when (@variationButtonVertical) {
352
- .ui.inverted.vertical.buttons .button {
353
- margin: @invertedVerticalGroupButtonOffset;
354
- }
355
- .ui.inverted.vertical.buttons .button:first-child {
356
- margin-top: 0;
357
- }
358
- }
359
- }
360
- /* States */
361
-
362
- /* Hover */
363
- .ui.inverted.button:hover {
364
- background: @white;
365
- box-shadow: 0 0 0 @invertedBorderSize @white inset;
366
- color: @hoverColor;
367
- }
368
358
 
369
- /* Active / Focus */
370
- .ui.inverted.button:focus,
371
- .ui.inverted.button.active {
372
- background: @white;
373
- box-shadow: 0 0 0 @invertedBorderSize @white inset;
374
- color: @focusColor;
375
- }
359
+ /* Active / Focus */
360
+ .ui.inverted.button:focus,
361
+ .ui.inverted.button.active {
362
+ background: @white;
363
+ box-shadow: 0 0 0 @invertedBorderSize @white inset;
364
+ color: @focusColor;
365
+ }
376
366
 
377
- /* Active Focus */
378
- .ui.inverted.button.active:focus {
379
- background: @midWhite;
380
- box-shadow: 0 0 0 @invertedBorderSize @midWhite inset;
381
- color: @focusColor;
382
- }
367
+ /* Active Focus */
368
+ .ui.inverted.button.active:focus {
369
+ background: @midWhite;
370
+ box-shadow: 0 0 0 @invertedBorderSize @midWhite inset;
371
+ color: @focusColor;
372
+ }
383
373
  }
384
374
 
385
- & when (@variationButtonLabeled) or (@variationButtonLabeledIcon){
386
- /*-------------------
387
- Labeled Button
388
- --------------------*/
375
+ & when (@variationButtonLabeled) or (@variationButtonLabeledIcon) {
376
+ /* -------------------
377
+ Labeled Button
378
+ -------------------- */
389
379
 
390
- .ui.labeled.button:not(.icon) {
391
- display: inline-flex;
392
- flex-direction: row;
393
- background: none;
394
- padding: 0 !important;
395
- border: none;
396
- box-shadow: none;
397
- }
398
-
399
- .ui.labeled.button > .button {
400
- margin: 0;
401
- }
402
- .ui.labeled.button > .label {
403
- display: flex;
404
- align-items: @labeledLabelAlign;
405
- margin: 0 0 0 @labeledLabelBorderOffset !important;
406
- font-size: @labeledLabelFontSize;
407
- padding: @labeledLabelPadding;
408
- border-color: @labeledLabelBorderColor;
409
- }
410
-
411
- /* Tag */
412
- .ui.labeled.button > .tag.label::before {
413
- width: @labeledTagLabelSize;
414
- height: @labeledTagLabelSize;
415
- }
416
-
417
- /* Right */
418
- .ui.labeled.button:not([class*="left labeled"]) > .button {
419
- border-top-right-radius: 0;
420
- border-bottom-right-radius: 0;
421
- }
422
- .ui.labeled.button:not([class*="left labeled"]) > .label {
423
- border-top-left-radius: 0;
424
- border-bottom-left-radius: 0;
425
- }
426
-
427
- /* Left Side */
428
- .ui[class*="left labeled"].button > .button {
429
- border-top-left-radius: 0;
430
- border-bottom-left-radius: 0;
431
- }
432
- .ui[class*="left labeled"].button > .label {
433
- border-top-right-radius: 0;
434
- border-bottom-right-radius: 0;
435
- }
380
+ .ui.labeled.button:not(.icon) {
381
+ display: inline-flex;
382
+ flex-direction: row;
383
+ background: none;
384
+ padding: 0 !important;
385
+ border: none;
386
+ box-shadow: none;
387
+ }
388
+
389
+ .ui.labeled.button > .button {
390
+ margin: 0;
391
+ }
392
+ .ui.labeled.button > .label {
393
+ display: flex;
394
+ align-items: @labeledLabelAlign;
395
+ margin: 0 0 0 @labeledLabelBorderOffset !important;
396
+ font-size: @labeledLabelFontSize;
397
+ padding: @labeledLabelPadding;
398
+ border-color: @labeledLabelBorderColor;
399
+ }
400
+
401
+ /* Tag */
402
+ .ui.labeled.button > .tag.label::before {
403
+ width: @labeledTagLabelSize;
404
+ height: @labeledTagLabelSize;
405
+ }
406
+
407
+ /* Right */
408
+ .ui.labeled.button:not([class*="left labeled"]) > .button {
409
+ border-top-right-radius: 0;
410
+ border-bottom-right-radius: 0;
411
+ }
412
+ .ui.labeled.button:not([class*="left labeled"]) > .label {
413
+ border-top-left-radius: 0;
414
+ border-bottom-left-radius: 0;
415
+ }
416
+
417
+ /* Left Side */
418
+ .ui[class*="left labeled"].button > .button {
419
+ border-top-left-radius: 0;
420
+ border-bottom-left-radius: 0;
421
+ }
422
+ .ui[class*="left labeled"].button > .label {
423
+ border-top-right-radius: 0;
424
+ border-bottom-right-radius: 0;
425
+ }
436
426
  }
437
427
 
438
428
  & when (@variationButtonSocial) {
439
- /*-------------------
440
- Social
441
- --------------------*/
442
-
443
- /* Facebook */
444
- .ui.facebook.button {
445
- background-color: @facebookColor;
446
- color: @invertedTextColor;
447
- text-shadow: @invertedTextShadow;
448
- background-image: @coloredBackgroundImage;
449
- box-shadow: @coloredBoxShadow;
450
- }
451
- .ui.facebook.button:hover {
452
- background-color: @facebookHoverColor;
453
- color: @invertedTextColor;
454
- text-shadow: @invertedTextShadow;
455
- }
456
- .ui.facebook.button:active {
457
- background-color: @facebookDownColor;
458
- color: @invertedTextColor;
459
- text-shadow: @invertedTextShadow;
460
- }
461
-
462
- /* Twitter */
463
- .ui.twitter.button {
464
- background-color: @twitterColor;
465
- color: @invertedTextColor;
466
- text-shadow: @invertedTextShadow;
467
- background-image: @coloredBackgroundImage;
468
- box-shadow: @coloredBoxShadow;
469
- }
470
- .ui.twitter.button:hover {
471
- background-color: @twitterHoverColor;
472
- color: @invertedTextColor;
473
- text-shadow: @invertedTextShadow;
474
- }
475
- .ui.twitter.button:active {
476
- background-color: @twitterDownColor;
477
- color: @invertedTextColor;
478
- text-shadow: @invertedTextShadow;
479
- }
480
-
481
- /* Google Plus */
482
- .ui.google.plus.button {
483
- background-color: @googlePlusColor;
484
- color: @invertedTextColor;
485
- text-shadow: @invertedTextShadow;
486
- background-image: @coloredBackgroundImage;
487
- box-shadow: @coloredBoxShadow;
488
- }
489
- .ui.google.plus.button:hover {
490
- background-color: @googlePlusHoverColor;
491
- color: @invertedTextColor;
492
- text-shadow: @invertedTextShadow;
493
- }
494
- .ui.google.plus.button:active {
495
- background-color: @googlePlusDownColor;
496
- color: @invertedTextColor;
497
- text-shadow: @invertedTextShadow;
498
- }
499
-
500
- /* Linked In */
501
- .ui.linkedin.button {
502
- background-color: @linkedInColor;
503
- color: @invertedTextColor;
504
- text-shadow: @invertedTextShadow;
505
- }
506
- .ui.linkedin.button:hover {
507
- background-color: @linkedInHoverColor;
508
- color: @invertedTextColor;
509
- text-shadow: @invertedTextShadow;
510
- }
511
- .ui.linkedin.button:active {
512
- background-color: @linkedInDownColor;
513
- color: @invertedTextColor;
514
- text-shadow: @invertedTextShadow;
515
- }
516
-
517
- /* YouTube */
518
- .ui.youtube.button {
519
- background-color: @youtubeColor;
520
- color: @invertedTextColor;
521
- text-shadow: @invertedTextShadow;
522
- background-image: @coloredBackgroundImage;
523
- box-shadow: @coloredBoxShadow;
524
- }
525
- .ui.youtube.button:hover {
526
- background-color: @youtubeHoverColor;
527
- color: @invertedTextColor;
528
- text-shadow: @invertedTextShadow;
529
- }
530
- .ui.youtube.button:active {
531
- background-color: @youtubeDownColor;
532
- color: @invertedTextColor;
533
- text-shadow: @invertedTextShadow;
534
- }
535
-
536
- /* Instagram */
537
- .ui.instagram.button {
538
- background-color: @instagramColor;
539
- color: @invertedTextColor;
540
- text-shadow: @invertedTextShadow;
541
- background-image: @coloredBackgroundImage;
542
- box-shadow: @coloredBoxShadow;
543
- }
544
- .ui.instagram.button:hover {
545
- background-color: @instagramHoverColor;
546
- color: @invertedTextColor;
547
- text-shadow: @invertedTextShadow;
548
- }
549
- .ui.instagram.button:active {
550
- background-color: @instagramDownColor;
551
- color: @invertedTextColor;
552
- text-shadow: @invertedTextShadow;
553
- }
554
-
555
- /* Pinterest */
556
- .ui.pinterest.button {
557
- background-color: @pinterestColor;
558
- color: @invertedTextColor;
559
- text-shadow: @invertedTextShadow;
560
- background-image: @coloredBackgroundImage;
561
- box-shadow: @coloredBoxShadow;
562
- }
563
- .ui.pinterest.button:hover {
564
- background-color: @pinterestHoverColor;
565
- color: @invertedTextColor;
566
- text-shadow: @invertedTextShadow;
567
- }
568
- .ui.pinterest.button:active {
569
- background-color: @pinterestDownColor;
570
- color: @invertedTextColor;
571
- text-shadow: @invertedTextShadow;
572
- }
573
-
574
- /* VK */
575
- .ui.vk.button {
576
- background-color: @vkColor;
577
- color: @white;
578
- background-image: @coloredBackgroundImage;
579
- box-shadow: @coloredBoxShadow;
580
- }
581
- .ui.vk.button:hover {
582
- background-color: @vkHoverColor;
583
- color: @white;
584
- }
585
- .ui.vk.button:active {
586
- background-color: @vkDownColor;
587
- color: @white;
588
- }
589
-
590
- /* WhatsApp */
591
- .ui.whatsapp.button {
592
- background-color: @whatsAppColor;
593
- color: @white;
594
- background-image: @coloredBackgroundImage;
595
- box-shadow: @coloredBoxShadow;
596
- }
597
- .ui.whatsapp.button:hover {
598
- background-color: @whatsAppHoverColor;
599
- color: @white;
600
- }
601
- .ui.whatsapp.button:active {
602
- background-color: @whatsAppDownColor;
603
- color: @white;
604
- }
605
-
606
- /* Telegram */
607
- .ui.telegram.button {
608
- background-color: @telegramColor;
609
- color: @white;
610
- background-image: @coloredBackgroundImage;
611
- box-shadow: @coloredBoxShadow;
612
- }
613
- .ui.telegram.button:hover {
614
- background-color: @telegramHoverColor;
615
- color: @white;
616
- }
617
- .ui.telegram.button:active {
618
- background-color: @telegramDownColor;
619
- color: @white;
620
- }
429
+ /* -------------------
430
+ Social
431
+ -------------------- */
432
+
433
+ /* Facebook */
434
+ .ui.facebook.button {
435
+ background-color: @facebookColor;
436
+ color: @invertedTextColor;
437
+ text-shadow: @invertedTextShadow;
438
+ background-image: @coloredBackgroundImage;
439
+ box-shadow: @coloredBoxShadow;
440
+ }
441
+ .ui.facebook.button:hover {
442
+ background-color: @facebookHoverColor;
443
+ color: @invertedTextColor;
444
+ text-shadow: @invertedTextShadow;
445
+ }
446
+ .ui.facebook.button:active {
447
+ background-color: @facebookDownColor;
448
+ color: @invertedTextColor;
449
+ text-shadow: @invertedTextShadow;
450
+ }
451
+
452
+ /* Twitter */
453
+ .ui.twitter.button {
454
+ background-color: @twitterColor;
455
+ color: @invertedTextColor;
456
+ text-shadow: @invertedTextShadow;
457
+ background-image: @coloredBackgroundImage;
458
+ box-shadow: @coloredBoxShadow;
459
+ }
460
+ .ui.twitter.button:hover {
461
+ background-color: @twitterHoverColor;
462
+ color: @invertedTextColor;
463
+ text-shadow: @invertedTextShadow;
464
+ }
465
+ .ui.twitter.button:active {
466
+ background-color: @twitterDownColor;
467
+ color: @invertedTextColor;
468
+ text-shadow: @invertedTextShadow;
469
+ }
470
+
471
+ /* Google Plus */
472
+ .ui.google.plus.button {
473
+ background-color: @googlePlusColor;
474
+ color: @invertedTextColor;
475
+ text-shadow: @invertedTextShadow;
476
+ background-image: @coloredBackgroundImage;
477
+ box-shadow: @coloredBoxShadow;
478
+ }
479
+ .ui.google.plus.button:hover {
480
+ background-color: @googlePlusHoverColor;
481
+ color: @invertedTextColor;
482
+ text-shadow: @invertedTextShadow;
483
+ }
484
+ .ui.google.plus.button:active {
485
+ background-color: @googlePlusDownColor;
486
+ color: @invertedTextColor;
487
+ text-shadow: @invertedTextShadow;
488
+ }
489
+
490
+ /* Linked In */
491
+ .ui.linkedin.button {
492
+ background-color: @linkedInColor;
493
+ color: @invertedTextColor;
494
+ text-shadow: @invertedTextShadow;
495
+ }
496
+ .ui.linkedin.button:hover {
497
+ background-color: @linkedInHoverColor;
498
+ color: @invertedTextColor;
499
+ text-shadow: @invertedTextShadow;
500
+ }
501
+ .ui.linkedin.button:active {
502
+ background-color: @linkedInDownColor;
503
+ color: @invertedTextColor;
504
+ text-shadow: @invertedTextShadow;
505
+ }
506
+
507
+ /* YouTube */
508
+ .ui.youtube.button {
509
+ background-color: @youtubeColor;
510
+ color: @invertedTextColor;
511
+ text-shadow: @invertedTextShadow;
512
+ background-image: @coloredBackgroundImage;
513
+ box-shadow: @coloredBoxShadow;
514
+ }
515
+ .ui.youtube.button:hover {
516
+ background-color: @youtubeHoverColor;
517
+ color: @invertedTextColor;
518
+ text-shadow: @invertedTextShadow;
519
+ }
520
+ .ui.youtube.button:active {
521
+ background-color: @youtubeDownColor;
522
+ color: @invertedTextColor;
523
+ text-shadow: @invertedTextShadow;
524
+ }
525
+
526
+ /* Instagram */
527
+ .ui.instagram.button {
528
+ background-color: @instagramColor;
529
+ color: @invertedTextColor;
530
+ text-shadow: @invertedTextShadow;
531
+ background-image: @coloredBackgroundImage;
532
+ box-shadow: @coloredBoxShadow;
533
+ }
534
+ .ui.instagram.button:hover {
535
+ background-color: @instagramHoverColor;
536
+ color: @invertedTextColor;
537
+ text-shadow: @invertedTextShadow;
538
+ }
539
+ .ui.instagram.button:active {
540
+ background-color: @instagramDownColor;
541
+ color: @invertedTextColor;
542
+ text-shadow: @invertedTextShadow;
543
+ }
544
+
545
+ /* Pinterest */
546
+ .ui.pinterest.button {
547
+ background-color: @pinterestColor;
548
+ color: @invertedTextColor;
549
+ text-shadow: @invertedTextShadow;
550
+ background-image: @coloredBackgroundImage;
551
+ box-shadow: @coloredBoxShadow;
552
+ }
553
+ .ui.pinterest.button:hover {
554
+ background-color: @pinterestHoverColor;
555
+ color: @invertedTextColor;
556
+ text-shadow: @invertedTextShadow;
557
+ }
558
+ .ui.pinterest.button:active {
559
+ background-color: @pinterestDownColor;
560
+ color: @invertedTextColor;
561
+ text-shadow: @invertedTextShadow;
562
+ }
563
+
564
+ /* VK */
565
+ .ui.vk.button {
566
+ background-color: @vkColor;
567
+ color: @white;
568
+ background-image: @coloredBackgroundImage;
569
+ box-shadow: @coloredBoxShadow;
570
+ }
571
+ .ui.vk.button:hover {
572
+ background-color: @vkHoverColor;
573
+ color: @white;
574
+ }
575
+ .ui.vk.button:active {
576
+ background-color: @vkDownColor;
577
+ color: @white;
578
+ }
579
+
580
+ /* WhatsApp */
581
+ .ui.whatsapp.button {
582
+ background-color: @whatsAppColor;
583
+ color: @white;
584
+ background-image: @coloredBackgroundImage;
585
+ box-shadow: @coloredBoxShadow;
586
+ }
587
+ .ui.whatsapp.button:hover {
588
+ background-color: @whatsAppHoverColor;
589
+ color: @white;
590
+ }
591
+ .ui.whatsapp.button:active {
592
+ background-color: @whatsAppDownColor;
593
+ color: @white;
594
+ }
595
+
596
+ /* Telegram */
597
+ .ui.telegram.button {
598
+ background-color: @telegramColor;
599
+ color: @white;
600
+ background-image: @coloredBackgroundImage;
601
+ box-shadow: @coloredBoxShadow;
602
+ }
603
+ .ui.telegram.button:hover {
604
+ background-color: @telegramHoverColor;
605
+ color: @white;
606
+ }
607
+ .ui.telegram.button:active {
608
+ background-color: @telegramDownColor;
609
+ color: @white;
610
+ }
621
611
  }
622
612
 
623
- /*--------------
613
+ /* --------------
624
614
  Icon
625
- ---------------*/
615
+ --------------- */
626
616
 
627
617
  .ui.button > .icon:not(.button) {
628
- height: @iconHeight;
629
- opacity: @iconOpacity;
630
- transition: @iconTransition;
631
- color: @iconColor;
618
+ height: @iconHeight;
619
+ opacity: @iconOpacity;
620
+ transition: @iconTransition;
621
+ color: @iconColor;
632
622
  }
633
623
 
634
624
  .ui.button:not(.icon) > .icon:not(.button):not(.dropdown),
635
625
  .ui.button:not(.icon) > .icons:not(.button):not(.dropdown) {
636
- margin: @iconMargin;
637
- vertical-align: @iconVerticalAlign;
626
+ margin: @iconMargin;
627
+ vertical-align: @iconVerticalAlign;
638
628
  }
639
629
  .ui.button:not(.icon) > .icons:not(.button):not(.dropdown) > .icon {
640
- vertical-align: @iconVerticalAlign;
630
+ vertical-align: @iconVerticalAlign;
641
631
  }
642
632
  .ui.button:not(.icon) > .right.icon:not(.button):not(.dropdown) {
643
- margin: @rightIconMargin;
633
+ margin: @rightIconMargin;
644
634
  }
645
635
 
646
636
  /*******************************
@@ -648,1395 +638,1371 @@
648
638
  *******************************/
649
639
 
650
640
  & when (@variationButtonStackable) {
651
- /*--------------
652
- Stackable
653
- ---------------*/
654
-
655
- /* Tablet Or Below */
656
- @media only screen and (max-width: @largestMobileScreen) {
657
-
658
- .ui.stackable.buttons {
659
- flex-direction: column;
660
- width: 100%;
661
- & .button:first-child {
662
- border-bottom-left-radius: 0;
663
- border-top-right-radius: @borderRadius;
664
- }
665
- & .button:last-child {
666
- border-bottom-left-radius: @borderRadius;
667
- border-top-right-radius: 0;
668
- }
669
- & .button:only-child {
670
- border-radius: @borderRadius;
671
- }
641
+ /* --------------
642
+ Stackable
643
+ --------------- */
644
+
645
+ /* Tablet Or Below */
646
+ @media only screen and (max-width: @largestMobileScreen) {
647
+ .ui.stackable.buttons {
648
+ flex-direction: column;
649
+ width: 100%;
650
+ & .button:first-child {
651
+ border-bottom-left-radius: 0;
652
+ border-top-right-radius: @borderRadius;
653
+ }
654
+ & .button:last-child {
655
+ border-bottom-left-radius: @borderRadius;
656
+ border-top-right-radius: 0;
657
+ }
658
+ & .button:only-child {
659
+ border-radius: @borderRadius;
660
+ }
661
+ }
672
662
  }
673
-
674
- }
675
663
  }
676
664
 
677
665
  & when (@variationButtonFloated) {
678
- /*-------------------
679
- Floated
680
- --------------------*/
681
-
682
- .ui[class*="left floated"].buttons,
683
- .ui[class*="left floated"].button {
684
- float: left;
685
- margin-left: 0;
686
- margin-right: @floatedMargin;
687
- }
688
-
689
- .ui[class*="right floated"].buttons,
690
- .ui[class*="right floated"].button {
691
- float: right;
692
- margin-right: 0;
693
- margin-left: @floatedMargin;
694
- }
666
+ /* -------------------
667
+ Floated
668
+ -------------------- */
669
+
670
+ .ui[class*="left floated"].buttons,
671
+ .ui[class*="left floated"].button {
672
+ float: left;
673
+ margin-left: 0;
674
+ margin-right: @floatedMargin;
675
+ }
676
+
677
+ .ui[class*="right floated"].buttons,
678
+ .ui[class*="right floated"].button {
679
+ float: right;
680
+ margin-right: 0;
681
+ margin-left: @floatedMargin;
682
+ }
695
683
  }
696
684
 
697
685
  & when (@variationButtonCompact) {
698
- /*-------------------
699
- Compact
700
- --------------------*/
701
-
702
- .ui.compact.buttons .button,
703
- .ui.compact.button {
704
- padding: @compactVerticalPadding @compactHorizontalPadding ( @compactVerticalPadding + @shadowOffset );
705
- }
706
-
707
- .ui.compact.icon.buttons .button,
708
- .ui.compact.icon.button {
709
- padding: @compactVerticalPadding @compactVerticalPadding ( @compactVerticalPadding + @shadowOffset );
710
- }
711
-
712
- .ui.compact.labeled.icon.buttons .button,
713
- .ui.compact.labeled.icon.button {
714
- padding: @compactVerticalPadding (@compactHorizontalPadding + @labeledIconWidth) ( @compactVerticalPadding + @shadowOffset );
715
- }
716
-
717
- .ui.compact.labeled.icon.buttons .button > .icon,
718
- .ui.compact.labeled.icon.button > .icon {
719
- padding: @compactVerticalPadding 0 @compactVerticalPadding 0;
720
- }
686
+ /* -------------------
687
+ Compact
688
+ -------------------- */
689
+
690
+ .ui.compact.buttons .button,
691
+ .ui.compact.button {
692
+ padding: @compactVerticalPadding @compactHorizontalPadding (@compactVerticalPadding + @shadowOffset);
693
+ }
694
+
695
+ .ui.compact.icon.buttons .button,
696
+ .ui.compact.icon.button {
697
+ padding: @compactVerticalPadding @compactVerticalPadding (@compactVerticalPadding + @shadowOffset);
698
+ }
699
+
700
+ .ui.compact.labeled.icon.buttons .button,
701
+ .ui.compact.labeled.icon.button {
702
+ padding: @compactVerticalPadding (@compactHorizontalPadding + @labeledIconWidth) (@compactVerticalPadding + @shadowOffset);
703
+ }
704
+
705
+ .ui.compact.labeled.icon.buttons .button > .icon,
706
+ .ui.compact.labeled.icon.button > .icon {
707
+ padding: @compactVerticalPadding 0;
708
+ }
721
709
  }
722
- /*-------------------
710
+
711
+ /* -------------------
723
712
  Sizes
724
- --------------------*/
713
+ -------------------- */
725
714
 
726
715
  .ui.buttons .button,
727
716
  .ui.buttons .or,
728
717
  .ui.button {
729
- font-size: @medium;
718
+ font-size: @medium;
730
719
  }
731
720
 
732
721
  & when not (@variationButtonSizes = false) {
733
- each(@variationButtonSizes, {
734
- @s: @@value;
735
- .ui.@{value}.buttons .dropdown,
736
- .ui.@{value}.buttons .dropdown .menu > .item,
737
- .ui.@{value}.buttons .button,
738
- .ui.@{value}.buttons .or,
739
- .ui.ui.ui.ui.@{value}.button {
740
- font-size: @s;
741
- }
742
- })
722
+ each(@variationButtonSizes, {
723
+ @s: @@value;
724
+ .ui.@{value}.buttons .dropdown,
725
+ .ui.@{value}.buttons .dropdown .menu > .item,
726
+ .ui.@{value}.buttons .button,
727
+ .ui.@{value}.buttons .or,
728
+ .ui.ui.ui.ui.@{value}.button {
729
+ font-size: @s;
730
+ }
731
+ });
743
732
  }
744
733
 
745
734
  & when (@variationButtonIcon) {
746
- /*--------------
747
- Icon Only
748
- ---------------*/
749
-
750
- .ui.icon.buttons .button,
751
- .ui.icon.button:not(.animated):not(.compact):not(.labeled) {
752
- padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
753
- }
754
- .ui.animated.icon.button > .content > .icon,
755
- .ui.icon.buttons .button > .icon,
756
- .ui.icon.button > .icon {
757
- opacity: @iconButtonOpacity;
758
- margin: 0 !important;
759
- vertical-align: top;
760
- }
735
+ /* --------------
736
+ Icon Only
737
+ --------------- */
738
+
739
+ .ui.icon.buttons .button,
740
+ .ui.icon.button:not(.animated):not(.compact):not(.labeled) {
741
+ padding: @verticalPadding @verticalPadding (@verticalPadding + @shadowOffset);
742
+ }
743
+ .ui.animated.icon.button > .content > .icon,
744
+ .ui.icon.buttons .button > .icon,
745
+ .ui.icon.button > .icon {
746
+ opacity: @iconButtonOpacity;
747
+ margin: 0 !important;
748
+ vertical-align: top;
749
+ }
761
750
  }
762
751
  & when (@variationButtonAnimated) {
763
- .ui.animated.button > .content > .icon {
764
- vertical-align: top;
765
- }
752
+ .ui.animated.button > .content > .icon {
753
+ vertical-align: top;
754
+ }
766
755
  }
767
756
 
768
757
  & when (@variationButtonBasic) {
769
- /*-------------------
770
- Basic
771
- --------------------*/
772
-
773
- .ui.basic.buttons .button,
774
- .ui.basic.button {
775
- background: @basicBackground;
776
- color: @basicTextColor;
777
- font-weight: @basicFontWeight;
778
- border-radius: @basicBorderRadius;
779
- text-transform: @basicTextTransform;
780
- text-shadow: none !important;
781
- box-shadow: @basicBoxShadow;
782
- }
783
- & when (@variationButtonGroups) {
784
- .ui.basic.buttons {
785
- box-shadow: @basicGroupBoxShadow;
786
- border: @basicGroupBorder;
787
- border-radius: @borderRadius;
788
- border-right: none;
789
- }
790
-
791
- .ui.basic.buttons .button {
792
- border-radius: 0;
793
- }
794
- }
795
-
796
- .ui.basic.buttons .button:hover,
797
- .ui.basic.button:hover {
798
- background: @basicHoverBackground;
799
- color: @basicHoverTextColor;
800
- box-shadow: @basicHoverBoxShadow;
801
- }
802
-
803
- .ui.basic.buttons .button:focus,
804
- .ui.basic.button:focus {
805
- background: @basicFocusBackground;
806
- color: @basicFocusTextColor;
807
- box-shadow: @basicFocusBoxShadow;
808
- }
809
-
810
- .ui.basic.buttons .button:active,
811
- .ui.basic.button:active {
812
- background: @basicDownBackground;
813
- color: @basicDownTextColor;
814
- box-shadow: @basicDownBoxShadow;
815
- }
816
-
817
- .ui.basic.buttons .active.button,
818
- .ui.basic.active.button {
819
- background: @basicActiveBackground;
820
- box-shadow: @basicActiveBoxShadow;
821
- color: @basicActiveTextColor;
822
- }
823
-
824
- .ui.basic.buttons .active.button:hover,
825
- .ui.basic.active.button:hover {
826
- background-color: @transparentBlack;
827
- }
828
- & when (@variationButtonGroups) {
829
-
830
- .ui.basic.buttons .button:hover {
831
- box-shadow: @basicHoverBoxShadow inset;
832
- }
833
-
834
- .ui.basic.buttons .button:active {
835
- box-shadow: @basicDownBoxShadow inset;
836
- }
837
-
838
- .ui.basic.buttons .active.button {
839
- box-shadow: @basicActiveBoxShadow;
840
- }
841
- }
842
- & when (@variationButtonInverted) {
843
- /* Standard Basic Inverted */
844
-
845
- .ui.basic.inverted.buttons .button,
846
- .ui.basic.inverted.button {
847
- background-color: transparent;
848
- color: @offWhite;
849
- box-shadow: @basicInvertedBoxShadow;
850
- }
851
-
852
- .ui.basic.inverted.buttons .button:hover,
853
- .ui.basic.inverted.button:hover {
854
- color: @white;
855
- box-shadow: @basicInvertedHoverBoxShadow;
856
- }
857
-
858
- .ui.basic.inverted.buttons .button:focus,
859
- .ui.basic.inverted.button:focus {
860
- color: @white;
861
- box-shadow: @basicInvertedFocusBoxShadow;
862
- }
863
-
864
- .ui.basic.inverted.buttons .button:active,
865
- .ui.basic.inverted.button:active {
866
- background-color: @transparentWhite;
867
- color: @white;
868
- box-shadow: @basicInvertedDownBoxShadow;
869
- }
758
+ /* -------------------
759
+ Basic
760
+ -------------------- */
761
+
762
+ .ui.basic.buttons .button,
763
+ .ui.basic.button {
764
+ background: @basicBackground;
765
+ color: @basicTextColor;
766
+ font-weight: @basicFontWeight;
767
+ border-radius: @basicBorderRadius;
768
+ text-transform: @basicTextTransform;
769
+ text-shadow: none !important;
770
+ box-shadow: @basicBoxShadow;
771
+ }
772
+ & when (@variationButtonGroups) {
773
+ .ui.basic.buttons {
774
+ box-shadow: @basicGroupBoxShadow;
775
+ border: @basicGroupBorder;
776
+ border-radius: @borderRadius;
777
+ border-right: none;
778
+ }
870
779
 
871
- .ui.basic.inverted.buttons .active.button,
872
- .ui.basic.inverted.active.button {
873
- background-color: @transparentWhite;
874
- color: @invertedTextColor;
875
- text-shadow: @invertedTextShadow;
876
- box-shadow: @basicInvertedActiveBoxShadow;
780
+ .ui.basic.buttons .button {
781
+ border-radius: 0;
782
+ }
877
783
  }
878
784
 
879
- .ui.basic.inverted.buttons .active.button:hover,
880
- .ui.basic.inverted.active.button:hover {
881
- background-color: @strongTransparentWhite;
882
- box-shadow: @basicInvertedHoverBoxShadow;
785
+ .ui.basic.buttons .button:hover,
786
+ .ui.basic.button:hover {
787
+ background: @basicHoverBackground;
788
+ color: @basicHoverTextColor;
789
+ box-shadow: @basicHoverBoxShadow;
883
790
  }
884
- }
885
791
 
886
- & when (@variationButtonGroups) {
887
- /* Basic Group */
888
- .ui.basic.buttons:not(.inverted) .button:not(.basic) {
889
- border-right: @basicGroupBorder;
890
- box-shadow: none;
792
+ .ui.basic.buttons .button:focus,
793
+ .ui.basic.button:focus {
794
+ background: @basicFocusBackground;
795
+ color: @basicFocusTextColor;
796
+ box-shadow: @basicFocusBoxShadow;
891
797
  }
892
798
 
893
- & when (@variationButtonVertical) {
894
- .ui.basic.vertical.buttons .button {
895
- border-left: none;
896
- border-left-width: 0;
897
- border-top: @basicGroupBorder;
898
- }
799
+ .ui.basic.buttons .button:active,
800
+ .ui.basic.button:active {
801
+ background: @basicDownBackground;
802
+ color: @basicDownTextColor;
803
+ box-shadow: @basicDownBoxShadow;
804
+ }
899
805
 
900
- .ui.basic.vertical.buttons:not(.spaced) .button:first-child {
901
- border-top: none;
902
- }
806
+ .ui.basic.buttons .active.button,
807
+ .ui.basic.active.button {
808
+ background: @basicActiveBackground;
809
+ box-shadow: @basicActiveBoxShadow;
810
+ color: @basicActiveTextColor;
903
811
  }
904
- }
905
- }
906
812
 
907
- & when (@variationButtonTertiary) {
908
- /*-------------------
909
- Tertiary
910
- --------------------*/
813
+ .ui.basic.buttons .active.button:hover,
814
+ .ui.basic.active.button:hover {
815
+ background-color: @transparentBlack;
816
+ }
817
+ & when (@variationButtonGroups) {
818
+ .ui.basic.buttons .button:hover {
819
+ box-shadow: @basicHoverBoxShadow;
820
+ }
911
821
 
912
- /* Overline Mixin */
913
- .ui.tertiary.button {
914
- transition: color @defaultDuration @defaultEasing !important;
915
- border-radius: 0;
916
- margin: (@verticalPadding - @tertiaryVerticalPadding)
917
- (@horizontalMargin)
918
- (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
919
- 0 !important;
920
- padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;
822
+ .ui.basic.buttons .button:active {
823
+ box-shadow: @basicDownBoxShadow;
824
+ }
921
825
 
922
- & when (@tertiaryWithUnderline = true) {
923
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
826
+ .ui.basic.buttons .active.button {
827
+ box-shadow: @basicActiveBoxShadow;
828
+ }
924
829
  }
830
+ & when (@variationButtonInverted) {
831
+ /* Standard Basic Inverted */
925
832
 
926
- & when (@tertiaryWithOverline = true) {
927
- box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryLineColor;
928
- }
833
+ .ui.basic.inverted.buttons .button,
834
+ .ui.basic.inverted.button {
835
+ background-color: transparent;
836
+ color: @offWhite;
837
+ box-shadow: @basicInvertedBoxShadow;
838
+ }
929
839
 
930
- & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
931
- box-shadow: none;
932
- }
840
+ .ui.basic.inverted.buttons .button:hover,
841
+ .ui.basic.inverted.button:hover {
842
+ color: @white;
843
+ box-shadow: @basicInvertedHoverBoxShadow;
844
+ }
933
845
 
934
- color: @tertiaryTextColor;
935
- background: @tertiaryBackgroundColor;
936
- }
846
+ .ui.basic.inverted.buttons .button:focus,
847
+ .ui.basic.inverted.button:focus {
848
+ color: @white;
849
+ box-shadow: @basicInvertedFocusBoxShadow;
850
+ }
937
851
 
938
- .ui.tertiary.button:hover {
852
+ .ui.basic.inverted.buttons .button:active,
853
+ .ui.basic.inverted.button:active {
854
+ background-color: @transparentWhite;
855
+ color: @white;
856
+ box-shadow: @basicInvertedDownBoxShadow;
857
+ }
939
858
 
940
- & when (@tertiaryHoverWithUnderline = true) {
941
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryHoverLineColor;
942
- }
859
+ .ui.basic.inverted.buttons .active.button,
860
+ .ui.basic.inverted.active.button {
861
+ background-color: @transparentWhite;
862
+ color: @invertedTextColor;
863
+ text-shadow: @invertedTextShadow;
864
+ box-shadow: @basicInvertedActiveBoxShadow;
865
+ }
943
866
 
944
- & when (@tertiaryHoverWithOverline = true) {
945
- box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryHoverLineColor;
867
+ .ui.basic.inverted.buttons .active.button:hover,
868
+ .ui.basic.inverted.active.button:hover {
869
+ background-color: @strongTransparentWhite;
870
+ box-shadow: @basicInvertedHoverBoxShadow;
871
+ }
946
872
  }
947
873
 
948
- & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
949
- box-shadow: none;
874
+ & when (@variationButtonGroups) {
875
+ /* Basic Group */
876
+ .ui.basic.buttons:not(.inverted) .button:not(.basic) {
877
+ border-right: @basicGroupBorder;
878
+ box-shadow: none;
879
+ }
880
+
881
+ & when (@variationButtonVertical) {
882
+ .ui.basic.vertical.buttons .button {
883
+ border-left: none;
884
+ border-left-width: 0;
885
+ border-top: @basicGroupBorder;
886
+ }
887
+
888
+ .ui.basic.vertical.buttons:not(.spaced) .button:first-child {
889
+ border-top: none;
890
+ }
891
+ }
950
892
  }
893
+ }
894
+
895
+ & when (@variationButtonTertiary) {
896
+ /* -------------------
897
+ Tertiary
898
+ -------------------- */
899
+
900
+ /* Overline Mixin */
901
+ .ui.tertiary.button {
902
+ transition: color @defaultDuration @defaultEasing !important;
903
+ border-radius: 0;
904
+ // prettier-ignore
905
+ margin:
906
+ (@verticalPadding - @tertiaryVerticalPadding)
907
+ (@horizontalMargin)
908
+ (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
909
+ 0 !important;
910
+ padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;
951
911
 
952
- color: @tertiaryHoverColor;
953
- background: @tertiaryHoverBackgroundColor;
954
- }
912
+ & when (@tertiaryWithUnderline = true) {
913
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
914
+ }
955
915
 
956
- .ui.tertiary.button:focus {
957
- & when (@tertiaryFocusWithUnderline = true) {
958
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryFocusLineColor;
916
+ & when (@tertiaryWithOverline = true) {
917
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryLineColor;
918
+ }
919
+
920
+ & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false) {
921
+ box-shadow: none;
922
+ }
923
+
924
+ color: @tertiaryTextColor;
925
+ background: @tertiaryBackgroundColor;
959
926
  }
960
927
 
961
- & when (@tertiaryFocusWithOverline = true) {
962
- box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryFocusLineColor;
928
+ .ui.tertiary.button:hover {
929
+ & when (@tertiaryHoverWithUnderline = true) {
930
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryHoverLineColor;
931
+ }
932
+
933
+ & when (@tertiaryHoverWithOverline = true) {
934
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryHoverLineColor;
935
+ }
936
+
937
+ & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
938
+ box-shadow: none;
939
+ }
940
+
941
+ color: @tertiaryHoverColor;
942
+ background: @tertiaryHoverBackgroundColor;
963
943
  }
964
944
 
965
- & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false){
966
- box-shadow: none;
945
+ .ui.tertiary.button:focus {
946
+ & when (@tertiaryFocusWithUnderline = true) {
947
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryFocusLineColor;
948
+ }
949
+
950
+ & when (@tertiaryFocusWithOverline = true) {
951
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryFocusLineColor;
952
+ }
953
+
954
+ & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
955
+ box-shadow: none;
956
+ }
957
+
958
+ color: @tertiaryFocusColor;
959
+ background: @tertiaryFocusBackgroundColor;
967
960
  }
968
961
 
969
- color: @tertiaryFocusColor;
970
- background: @tertiaryFocusBackgroundColor;
971
- }
962
+ .ui.tertiary.button:active {
963
+ & when (@tertiaryActiveWithUnderline = true) {
964
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryActiveLineColor;
965
+ border-radius: @borderRadius @borderRadius 0 0;
966
+ }
967
+
968
+ & when (@tertiaryActiveWithOverline = true) {
969
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryActiveLineColor;
970
+ border-radius: 0 0 @borderRadius @borderRadius;
971
+ }
972
+
973
+ & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
974
+ box-shadow: none;
975
+ border-radius: 0;
976
+ }
972
977
 
973
- .ui.tertiary.button:active {
974
- & when (@tertiaryActiveWithUnderline = true) {
975
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryActiveLineColor;
976
- border-radius: @borderRadius @borderRadius 0 0;
978
+ color: @tertiaryActiveColor;
979
+ background: @tertiaryActiveBackgroundColor;
977
980
  }
981
+ }
978
982
 
979
- & when (@tertiaryActiveWithOverline = true) {
980
- box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryActiveLineColor;
981
- border-radius: 0 0 @borderRadius @borderRadius;
983
+ & when (@variationButtonLabeledIcon) {
984
+ /* --------------
985
+ Labeled Icon
986
+ --------------- */
987
+
988
+ .ui.labeled.icon.buttons .button,
989
+ .ui.labeled.icon.button {
990
+ position: relative;
991
+ padding-left: @labeledIconPadding !important;
992
+ padding-right: @horizontalPadding !important;
993
+ }
994
+
995
+ /* Left Labeled */
996
+ .ui.labeled.icon.buttons > .button > .icon,
997
+ .ui.labeled.icon.button > .icon {
998
+ position: absolute;
999
+ top: 0;
1000
+ left: 0;
1001
+ height: 100%;
1002
+ line-height: 1;
1003
+ border-radius: 0;
1004
+ border-top-left-radius: inherit;
1005
+ border-bottom-left-radius: inherit;
1006
+ text-align: center;
1007
+ animation: none;
1008
+ padding: @verticalPadding 0;
1009
+ margin: @labeledIconMargin;
1010
+ width: @labeledIconWidth;
1011
+ background-color: @labeledIconBackgroundColor;
1012
+ color: @labeledIconColor;
1013
+ box-shadow: @labeledIconLeftShadow;
1014
+ }
1015
+
1016
+ /* Right Labeled */
1017
+ .ui[class*="right labeled"].icon.button {
1018
+ padding-right: @labeledIconPadding !important;
1019
+ padding-left: @horizontalPadding !important;
1020
+ }
1021
+
1022
+ .ui[class*="right labeled"].icon.button > .icon {
1023
+ left: auto;
1024
+ right: 0;
1025
+ border-radius: 0;
1026
+ border-top-right-radius: inherit;
1027
+ border-bottom-right-radius: inherit;
1028
+ box-shadow: @labeledIconRightShadow;
1029
+ }
1030
+
1031
+ .ui.labeled.icon.buttons > .button > .icon::before,
1032
+ .ui.labeled.icon.button > .icon::before,
1033
+ .ui.labeled.icon.buttons > .button > .icon::after,
1034
+ .ui.labeled.icon.button > .icon::after {
1035
+ display: block;
1036
+ position: relative;
1037
+ width: 100%;
1038
+ top: 0;
1039
+ text-align: center;
1040
+ }
1041
+
1042
+ .ui.labeled.icon.buttons .button > .icon {
1043
+ border-radius: 0;
1044
+ }
1045
+
1046
+ .ui.labeled.icon.buttons .button:first-child > .icon {
1047
+ border-top-left-radius: @borderRadius;
1048
+ border-bottom-left-radius: @borderRadius;
982
1049
  }
983
1050
 
984
- & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false){
985
- box-shadow: none;
986
- border-radius: 0;
1051
+ .ui.labeled.icon.buttons .button:last-child > .icon {
1052
+ border-top-right-radius: @borderRadius;
1053
+ border-bottom-right-radius: @borderRadius;
987
1054
  }
988
1055
 
989
- color: @tertiaryActiveColor;
990
- background: @tertiaryActiveBackgroundColor;
991
- }
992
- }
1056
+ .ui.vertical.labeled.icon.buttons .button:first-child > .icon {
1057
+ border-radius: 0;
1058
+ border-top-left-radius: @borderRadius;
1059
+ }
993
1060
 
994
- & when (@variationButtonLabeledIcon) {
995
- /*--------------
996
- Labeled Icon
997
- ---------------*/
998
-
999
- .ui.labeled.icon.buttons .button,
1000
- .ui.labeled.icon.button {
1001
- position: relative;
1002
- padding-left: @labeledIconPadding !important;
1003
- padding-right: @horizontalPadding !important;
1004
- }
1005
-
1006
- /* Left Labeled */
1007
- .ui.labeled.icon.buttons > .button > .icon,
1008
- .ui.labeled.icon.button > .icon {
1009
- position: absolute;
1010
- top: 0;
1011
- left: 0;
1012
- height: 100%;
1013
- line-height: 1;
1014
- border-radius: 0;
1015
- border-top-left-radius: inherit;
1016
- border-bottom-left-radius: inherit;
1017
- text-align: center;
1018
- animation: none;
1019
- padding: @verticalPadding 0 @verticalPadding 0;
1020
-
1021
- margin: @labeledIconMargin;
1022
- width: @labeledIconWidth;
1023
- background-color: @labeledIconBackgroundColor;
1024
- color: @labeledIconColor;
1025
- box-shadow: @labeledIconLeftShadow;
1026
- }
1027
-
1028
- /* Right Labeled */
1029
- .ui[class*="right labeled"].icon.button {
1030
- padding-right: @labeledIconPadding !important;
1031
- padding-left: @horizontalPadding !important;
1032
- }
1033
-
1034
- .ui[class*="right labeled"].icon.button > .icon {
1035
- left: auto;
1036
- right: 0;
1037
- border-radius: 0;
1038
- border-top-right-radius: inherit;
1039
- border-bottom-right-radius: inherit;
1040
- box-shadow: @labeledIconRightShadow;
1041
- }
1042
-
1043
-
1044
- .ui.labeled.icon.buttons > .button > .icon::before,
1045
- .ui.labeled.icon.button > .icon::before,
1046
- .ui.labeled.icon.buttons > .button > .icon::after,
1047
- .ui.labeled.icon.button > .icon::after {
1048
- display: block;
1049
- position: relative;
1050
- width: 100%;
1051
- top: 0;
1052
- text-align: center;
1053
- }
1054
-
1055
- .ui.labeled.icon.buttons .button > .icon {
1056
- border-radius: 0;
1057
- }
1058
-
1059
- .ui.labeled.icon.buttons .button:first-child > .icon {
1060
- border-top-left-radius: @borderRadius;
1061
- border-bottom-left-radius: @borderRadius;
1062
- }
1063
-
1064
- .ui.labeled.icon.buttons .button:last-child > .icon {
1065
- border-top-right-radius: @borderRadius;
1066
- border-bottom-right-radius: @borderRadius;
1067
- }
1068
-
1069
- .ui.vertical.labeled.icon.buttons .button:first-child > .icon {
1070
- border-radius: 0;
1071
- border-top-left-radius: @borderRadius;
1072
- }
1073
-
1074
- .ui.vertical.labeled.icon.buttons .button:last-child > .icon {
1075
- border-radius: 0;
1076
- border-bottom-left-radius: @borderRadius;
1077
- }
1078
-
1079
- /* Loading Icon in Labeled Button */
1080
- .ui.labeled.icon.button > .loading.icon::before {
1081
- animation: loader 2s linear infinite;
1082
- }
1061
+ .ui.vertical.labeled.icon.buttons .button:last-child > .icon {
1062
+ border-radius: 0;
1063
+ border-bottom-left-radius: @borderRadius;
1064
+ }
1065
+
1066
+ /* Loading Icon in Labeled Button */
1067
+ .ui.labeled.icon.button > .loading.icon::before {
1068
+ animation: loader 2s linear infinite;
1069
+ }
1083
1070
  }
1084
1071
 
1085
1072
  & when (@variationButtonToggle) {
1086
- /*--------------
1087
- Toggle
1088
- ---------------*/
1089
-
1090
- /* Toggle (Modifies active state to give affordances) */
1091
- .ui.toggle.buttons .active.button,
1092
- .ui.buttons .button.toggle.active,
1093
- .ui.button.toggle.active {
1094
- background-color: @toggleBackgroundColor;
1095
- box-shadow: none;
1096
- text-shadow: @toggleTextShadow;
1097
- color: @toggleColor;
1098
- }
1099
-
1100
- .ui.button.toggle.active:hover {
1101
- background-color: @toggleHoverBackgroundColor;
1102
- text-shadow: @toggleHoverTextShadow;
1103
- color: @toggleHoverColor;
1104
- }
1073
+ /* --------------
1074
+ Toggle
1075
+ --------------- */
1076
+
1077
+ /* Toggle (Modifies active state to give affordances) */
1078
+ .ui.toggle.buttons .active.button,
1079
+ .ui.buttons .button.toggle.active,
1080
+ .ui.button.toggle.active {
1081
+ background-color: @toggleBackgroundColor;
1082
+ box-shadow: none;
1083
+ text-shadow: @toggleTextShadow;
1084
+ color: @toggleColor;
1085
+ }
1086
+
1087
+ .ui.button.toggle.active:hover {
1088
+ background-color: @toggleHoverBackgroundColor;
1089
+ text-shadow: @toggleHoverTextShadow;
1090
+ color: @toggleHoverColor;
1091
+ }
1105
1092
  }
1106
1093
 
1107
1094
  & when (@variationButtonCircular) {
1108
- /*--------------
1109
- Circular
1110
- ---------------*/
1111
-
1112
- .ui.circular.button {
1113
- border-radius: @circularBorderRadius;
1114
- }
1115
-
1116
- .ui.circular.button > .icon {
1117
- width: @circularIconWidth;
1118
- vertical-align: baseline;
1119
- }
1095
+ /* --------------
1096
+ Circular
1097
+ --------------- */
1098
+
1099
+ .ui.circular.button {
1100
+ border-radius: @circularBorderRadius;
1101
+ }
1102
+
1103
+ .ui.circular.button > .icon {
1104
+ width: @circularIconWidth;
1105
+ vertical-align: baseline;
1106
+ }
1120
1107
  }
1121
1108
 
1122
1109
  & when (@variationButtonOr) {
1123
- /*-------------------
1124
- Or Buttons
1125
- --------------------*/
1126
-
1127
- .ui.buttons .or {
1128
- position: relative;
1129
- width: @orGap;
1130
- height: @orHeight;
1131
- z-index: @orZIndex;
1132
- }
1133
-
1134
- .ui.buttons .or::before {
1135
- position: absolute;
1136
- text-align: center;
1137
- border-radius: @circularRadius;
1110
+ /* -------------------
1111
+ Or Buttons
1112
+ -------------------- */
1138
1113
 
1139
- content: @orText;
1140
- top: 50%;
1141
- left: 50%;
1142
- background-color: @orBackgroundColor;
1143
- text-shadow: @orTextShadow;
1114
+ .ui.buttons .or {
1115
+ position: relative;
1116
+ width: @orGap;
1117
+ height: @orHeight;
1118
+ z-index: @orZIndex;
1119
+ }
1144
1120
 
1145
- margin-top: @orVerticalOffset;
1146
- margin-left: @orHorizontalOffset;
1121
+ .ui.buttons .or::before {
1122
+ position: absolute;
1123
+ text-align: center;
1124
+ border-radius: @circularRadius;
1125
+ content: @orText;
1126
+ top: 50%;
1127
+ left: 50%;
1128
+ background-color: @orBackgroundColor;
1129
+ text-shadow: @orTextShadow;
1130
+ margin-top: @orVerticalOffset;
1131
+ margin-left: @orHorizontalOffset;
1132
+ width: @orCircleSize;
1133
+ height: @orCircleSize;
1134
+ line-height: @orLineHeight;
1135
+ color: @orTextColor;
1136
+ font-style: @orTextStyle;
1137
+ font-weight: @orTextWeight;
1138
+ box-shadow: @orBoxShadow;
1139
+ }
1147
1140
 
1148
- width: @orCircleSize;
1149
- height: @orCircleSize;
1141
+ .ui.buttons .or[data-text]::before {
1142
+ content: attr(data-text);
1143
+ }
1150
1144
 
1151
- line-height: @orLineHeight;
1152
- color: @orTextColor;
1145
+ /* Fluid Or */
1146
+ .ui.fluid.buttons .or {
1147
+ width: 0 !important;
1148
+ }
1153
1149
 
1154
- font-style: @orTextStyle;
1155
- font-weight: @orTextWeight;
1150
+ .ui.fluid.buttons .or::after {
1151
+ display: none;
1152
+ }
1153
+ }
1156
1154
 
1157
- box-shadow: @orBoxShadow;
1158
- }
1155
+ & when (@variationButtonAttached) {
1156
+ /* -------------------
1157
+ Attached
1158
+ -------------------- */
1159
1159
 
1160
- .ui.buttons .or[data-text]::before {
1161
- content: attr(data-text);
1162
- }
1160
+ /* Singular */
1161
+ .ui.attached.button {
1162
+ position: relative;
1163
+ display: block;
1164
+ margin: 0;
1165
+ border-radius: 0;
1166
+ box-shadow: @attachedBoxShadow;
1167
+ }
1163
1168
 
1164
- /* Fluid Or */
1165
- .ui.fluid.buttons .or {
1166
- width: 0 !important;
1167
- }
1169
+ /* Top / Bottom */
1170
+ .ui.attached.top.button {
1171
+ border-radius: @borderRadius @borderRadius 0 0;
1172
+ }
1168
1173
 
1169
- .ui.fluid.buttons .or::after {
1170
- display: none;
1171
- }
1174
+ .ui.attached.bottom.button {
1175
+ border-radius: 0 0 @borderRadius @borderRadius;
1176
+ }
1172
1177
 
1173
- }
1178
+ /* Left / Right */
1179
+ .ui.left.attached.button {
1180
+ display: inline-block;
1181
+ border-left: none;
1182
+ text-align: right;
1183
+ padding-right: @attachedHorizontalPadding;
1184
+ border-radius: @borderRadius 0 0 @borderRadius;
1185
+ }
1174
1186
 
1175
- & when (@variationButtonAttached) {
1176
- /*-------------------
1177
- Attached
1178
- --------------------*/
1179
-
1180
-
1181
- /* Singular */
1182
- .ui.attached.button {
1183
- position: relative;
1184
- display: block;
1185
- margin: 0;
1186
- border-radius: 0;
1187
- box-shadow: @attachedBoxShadow;
1188
- }
1189
-
1190
- /* Top / Bottom */
1191
- .ui.attached.top.button {
1192
- border-radius: @borderRadius @borderRadius 0 0;
1193
- }
1194
-
1195
- .ui.attached.bottom.button {
1196
- border-radius: 0 0 @borderRadius @borderRadius;
1197
- }
1198
-
1199
- /* Left / Right */
1200
- .ui.left.attached.button {
1201
- display: inline-block;
1202
- border-left: none;
1203
- text-align: right;
1187
+ .ui.right.attached.button {
1188
+ display: inline-block;
1189
+ text-align: left;
1190
+ padding-left: @attachedHorizontalPadding;
1191
+ border-radius: 0 @borderRadius @borderRadius 0;
1192
+ }
1204
1193
 
1205
- padding-right: @attachedHorizontalPadding;
1206
- border-radius: @borderRadius 0 0 @borderRadius;
1207
- }
1194
+ /* Plural */
1195
+ .ui.attached.buttons {
1196
+ position: relative;
1197
+ display: flex;
1198
+ border-radius: 0;
1199
+ width: auto !important;
1200
+ z-index: @attachedZIndex;
1201
+ margin-left: @attachedOffset;
1202
+ margin-right: @attachedOffset;
1203
+ }
1208
1204
 
1209
- .ui.right.attached.button {
1210
- display: inline-block;
1211
- text-align: left;
1212
- padding-left: @attachedHorizontalPadding;
1213
- border-radius: 0 @borderRadius @borderRadius 0;
1214
- }
1215
-
1216
- /* Plural */
1217
- .ui.attached.buttons {
1218
- position: relative;
1219
- display: flex;
1220
- border-radius: 0;
1221
- width: auto !important;
1222
- z-index: @attachedZIndex;
1223
- margin-left: @attachedOffset;
1224
- margin-right: @attachedOffset;
1225
- }
1226
-
1227
- .ui.attached.buttons .button {
1228
- margin: 0;
1229
- }
1230
-
1231
- .ui.attached.buttons .button:first-child {
1232
- border-radius: 0;
1233
- }
1234
-
1235
- .ui.attached.buttons .button:last-child {
1236
- border-radius: 0;
1237
- }
1238
-
1239
- /* Top / Bottom */
1240
- .ui[class*="top attached"].buttons {
1241
- margin-bottom: @topAttachedOffset;
1242
- border-radius: @borderRadius @borderRadius 0 0;
1243
- }
1244
-
1245
- .ui[class*="top attached"].buttons .button:first-child {
1246
- border-radius: @borderRadius 0 0 0;
1247
- }
1248
-
1249
- .ui[class*="top attached"].buttons .button:last-child {
1250
- border-radius: 0 @borderRadius 0 0;
1251
- }
1252
-
1253
- .ui[class*="bottom attached"].buttons {
1254
- margin-top: @bottomAttachedOffset;
1255
- border-radius: 0 0 @borderRadius @borderRadius;
1256
- }
1257
-
1258
- .ui[class*="bottom attached"].buttons .button:first-child {
1259
- border-radius: 0 0 0 @borderRadius;
1260
- }
1261
-
1262
- .ui[class*="bottom attached"].buttons .button:last-child {
1263
- border-radius: 0 0 @borderRadius 0;
1264
- }
1265
-
1266
- /* Left / Right */
1267
- .ui[class*="left attached"].buttons {
1268
- display: inline-flex;
1269
- margin-right: 0;
1270
- margin-left: @attachedOffset;
1271
- border-radius: 0 @borderRadius @borderRadius 0;
1272
- }
1273
-
1274
- .ui[class*="left attached"].buttons .button:first-child {
1275
- margin-left: @attachedOffset;
1276
- border-radius: 0 @borderRadius 0 0;
1277
- }
1278
-
1279
- .ui[class*="left attached"].buttons .button:last-child {
1280
- margin-left: @attachedOffset;
1281
- border-radius: 0 0 @borderRadius 0;
1282
- }
1283
-
1284
- .ui[class*="right attached"].buttons {
1285
- display: inline-flex;
1286
- margin-left: 0;
1287
- margin-right: @attachedOffset;
1288
- border-radius: @borderRadius 0 0 @borderRadius;
1289
- }
1290
-
1291
- .ui[class*="right attached"].buttons .button:first-child {
1292
- margin-left: @attachedOffset;
1293
- border-radius: @borderRadius 0 0 0;
1294
- }
1295
-
1296
- .ui[class*="right attached"].buttons .button:last-child {
1297
- margin-left: @attachedOffset;
1298
- border-radius: 0 0 0 @borderRadius;
1299
- }
1300
- }
1205
+ .ui.attached.buttons .button {
1206
+ margin: 0;
1207
+ }
1301
1208
 
1302
- & when (@variationButtonFluid) {
1303
- /*-------------------
1304
- Fluid
1305
- --------------------*/
1306
-
1307
- .ui.fluid.buttons,
1308
- .ui.fluid.button {
1309
- width: 100%;
1310
- }
1311
-
1312
- .ui.fluid.button {
1313
- display: block;
1314
- }
1315
- }
1316
- & when (@variationButtonEqualWidth) {
1317
- .ui.two.buttons {
1318
- width: 100%;
1319
- }
1209
+ .ui.attached.buttons .button:first-child {
1210
+ border-radius: 0;
1211
+ }
1320
1212
 
1321
- .ui.two.buttons > .button {
1322
- width: 50%;
1323
- }
1213
+ .ui.attached.buttons .button:last-child {
1214
+ border-radius: 0;
1215
+ }
1324
1216
 
1325
- .ui.three.buttons {
1326
- width: 100%;
1327
- }
1217
+ /* Top / Bottom */
1218
+ .ui[class*="top attached"].buttons {
1219
+ margin-bottom: @topAttachedOffset;
1220
+ border-radius: @borderRadius @borderRadius 0 0;
1221
+ }
1328
1222
 
1329
- .ui.three.buttons > .button {
1330
- width: 33.333%;
1331
- }
1223
+ .ui[class*="top attached"].buttons .button:first-child {
1224
+ border-radius: @borderRadius 0 0 0;
1225
+ }
1332
1226
 
1333
- .ui.four.buttons {
1334
- width: 100%;
1335
- }
1227
+ .ui[class*="top attached"].buttons .button:last-child {
1228
+ border-radius: 0 @borderRadius 0 0;
1229
+ }
1336
1230
 
1337
- .ui.four.buttons > .button {
1338
- width: 25%;
1339
- }
1231
+ .ui[class*="bottom attached"].buttons {
1232
+ margin-top: @bottomAttachedOffset;
1233
+ border-radius: 0 0 @borderRadius @borderRadius;
1234
+ }
1340
1235
 
1341
- .ui.five.buttons {
1342
- width: 100%;
1343
- }
1236
+ .ui[class*="bottom attached"].buttons .button:first-child {
1237
+ border-radius: 0 0 0 @borderRadius;
1238
+ }
1344
1239
 
1345
- .ui.five.buttons > .button {
1346
- width: 20%;
1347
- }
1240
+ .ui[class*="bottom attached"].buttons .button:last-child {
1241
+ border-radius: 0 0 @borderRadius 0;
1242
+ }
1348
1243
 
1349
- .ui.six.buttons {
1350
- width: 100%;
1351
- }
1244
+ /* Left / Right */
1245
+ .ui[class*="left attached"].buttons {
1246
+ display: inline-flex;
1247
+ margin-right: 0;
1248
+ margin-left: @attachedOffset;
1249
+ border-radius: 0 @borderRadius @borderRadius 0;
1250
+ }
1352
1251
 
1353
- .ui.six.buttons > .button {
1354
- width: 16.666%;
1355
- }
1252
+ .ui[class*="left attached"].buttons .button:first-child {
1253
+ margin-left: @attachedOffset;
1254
+ border-radius: 0 @borderRadius 0 0;
1255
+ }
1356
1256
 
1357
- .ui.seven.buttons {
1358
- width: 100%;
1359
- }
1257
+ .ui[class*="left attached"].buttons .button:last-child {
1258
+ margin-left: @attachedOffset;
1259
+ border-radius: 0 0 @borderRadius 0;
1260
+ }
1360
1261
 
1361
- .ui.seven.buttons > .button {
1362
- width: 14.285%;
1363
- }
1262
+ .ui[class*="right attached"].buttons {
1263
+ display: inline-flex;
1264
+ margin-left: 0;
1265
+ margin-right: @attachedOffset;
1266
+ border-radius: @borderRadius 0 0 @borderRadius;
1267
+ }
1364
1268
 
1365
- .ui.eight.buttons {
1366
- width: 100%;
1367
- }
1269
+ .ui[class*="right attached"].buttons .button:first-child {
1270
+ margin-left: @attachedOffset;
1271
+ border-radius: @borderRadius 0 0 0;
1272
+ }
1368
1273
 
1369
- .ui.eight.buttons > .button {
1370
- width: 12.500%;
1371
- }
1274
+ .ui[class*="right attached"].buttons .button:last-child {
1275
+ margin-left: @attachedOffset;
1276
+ border-radius: 0 0 0 @borderRadius;
1277
+ }
1278
+ }
1372
1279
 
1373
- .ui.nine.buttons {
1374
- width: 100%;
1375
- }
1280
+ & when (@variationButtonFluid) {
1281
+ /* -------------------
1282
+ Fluid
1283
+ -------------------- */
1376
1284
 
1377
- .ui.nine.buttons > .button {
1378
- width: 11.11%;
1379
- }
1285
+ .ui.fluid.buttons,
1286
+ .ui.fluid.button {
1287
+ width: 100%;
1288
+ }
1380
1289
 
1381
- .ui.ten.buttons {
1382
- width: 100%;
1383
- }
1290
+ .ui.fluid.button {
1291
+ display: block;
1292
+ }
1293
+ }
1294
+ & when (@variationButtonEqualWidth) {
1295
+ .ui.two.buttons {
1296
+ width: 100%;
1297
+ }
1384
1298
 
1385
- .ui.ten.buttons > .button {
1386
- width: 10%;
1387
- }
1299
+ .ui.two.buttons > .button {
1300
+ width: 50%;
1301
+ }
1388
1302
 
1389
- .ui.eleven.buttons {
1390
- width: 100%;
1391
- }
1303
+ .ui.three.buttons {
1304
+ width: 100%;
1305
+ }
1392
1306
 
1393
- .ui.eleven.buttons > .button {
1394
- width: 9.09%;
1395
- }
1307
+ .ui.three.buttons > .button {
1308
+ width: 33.333%;
1309
+ }
1396
1310
 
1397
- .ui.twelve.buttons {
1398
- width: 100%;
1399
- }
1311
+ .ui.four.buttons {
1312
+ width: 100%;
1313
+ }
1400
1314
 
1401
- .ui.twelve.buttons > .button {
1402
- width: 8.3333%;
1403
- }
1404
- }
1315
+ .ui.four.buttons > .button {
1316
+ width: 25%;
1317
+ }
1405
1318
 
1406
- & when (@variationButtonVertical) {
1407
- & when (@variationButtonFluid) {
1408
- /* Fluid Vertical Buttons */
1409
- .ui.fluid.vertical.buttons,
1410
- .ui.fluid.vertical.buttons > .button {
1411
- display: flex;
1412
- width: auto;
1413
- justify-content: center;
1319
+ .ui.five.buttons {
1320
+ width: 100%;
1414
1321
  }
1415
- }
1416
1322
 
1417
- & when (@variationButtonEqualWidth) {
1418
- .ui.two.vertical.buttons > .button {
1419
- height: 50%;
1323
+ .ui.five.buttons > .button {
1324
+ width: 20%;
1420
1325
  }
1421
1326
 
1422
- .ui.three.vertical.buttons > .button {
1423
- height: 33.333%;
1327
+ .ui.six.buttons {
1328
+ width: 100%;
1424
1329
  }
1425
1330
 
1426
- .ui.four.vertical.buttons > .button {
1427
- height: 25%;
1331
+ .ui.six.buttons > .button {
1332
+ width: 16.666%;
1428
1333
  }
1429
1334
 
1430
- .ui.five.vertical.buttons > .button {
1431
- height: 20%;
1335
+ .ui.seven.buttons {
1336
+ width: 100%;
1432
1337
  }
1433
1338
 
1434
- .ui.six.vertical.buttons > .button {
1435
- height: 16.666%;
1339
+ .ui.seven.buttons > .button {
1340
+ width: 14.285%;
1436
1341
  }
1437
1342
 
1438
- .ui.seven.vertical.buttons > .button {
1439
- height: 14.285%;
1343
+ .ui.eight.buttons {
1344
+ width: 100%;
1440
1345
  }
1441
1346
 
1442
- .ui.eight.vertical.buttons > .button {
1443
- height: 12.500%;
1347
+ .ui.eight.buttons > .button {
1348
+ width: 12.5%;
1444
1349
  }
1445
1350
 
1446
- .ui.nine.vertical.buttons > .button {
1447
- height: 11.11%;
1351
+ .ui.nine.buttons {
1352
+ width: 100%;
1448
1353
  }
1449
1354
 
1450
- .ui.ten.vertical.buttons > .button {
1451
- height: 10%;
1355
+ .ui.nine.buttons > .button {
1356
+ width: 11.11%;
1452
1357
  }
1453
1358
 
1454
- .ui.eleven.vertical.buttons > .button {
1455
- height: 9.09%;
1359
+ .ui.ten.buttons {
1360
+ width: 100%;
1456
1361
  }
1457
1362
 
1458
- .ui.twelve.vertical.buttons > .button {
1459
- height: 8.3333%;
1363
+ .ui.ten.buttons > .button {
1364
+ width: 10%;
1460
1365
  }
1461
- }
1462
- }
1463
1366
 
1464
- /*-------------------
1465
- Colors
1466
- --------------------*/
1367
+ .ui.eleven.buttons {
1368
+ width: 100%;
1369
+ }
1467
1370
 
1468
- & when not (@variationButtonColors = false) {
1469
- each(@variationButtonColors, {
1470
- @color: @value;
1471
- @c: @colors[@@color][color];
1472
- @h: @colors[@@color][hover];
1473
- @f: @colors[@@color][focus];
1474
- @d: @colors[@@color][down];
1475
- @a: @colors[@@color][active];
1476
- @t: @colors[@@color][text];
1477
- @s: @colors[@@color][shadow];
1478
- @l: @colors[@@color][light];
1479
- @lh: @colors[@@color][lightHover];
1480
- @lf: @colors[@@color][lightFocus];
1481
- @ld: @colors[@@color][lightDown];
1482
- @la: @colors[@@color][lightActive];
1483
- @lt: @colors[@@color][lightText];
1484
- @ls: @colors[@@color][lightShadow];
1485
- @ty: @colors[@@color][tertiary];
1486
- @tyh: @colors[@@color][tertiaryHover];
1487
- @tyf: @colors[@@color][tertiaryFocus];
1488
- @tya: @colors[@@color][tertiaryActive];
1489
- @isDark: @colors[@@color][isDark];
1490
- @isVeryDark: @colors[@@color][isVeryDark];
1491
-
1492
- .ui.@{color}.buttons .button,
1493
- .ui.@{color}.button {
1494
- background-color: @c;
1495
- color: @t;
1496
- text-shadow: @s;
1497
- background-image: @coloredBackgroundImage;
1498
- }
1499
- .ui.@{color}.button {
1500
- box-shadow: @coloredBoxShadow;
1501
- }
1502
- .ui.@{color}.buttons .button:hover,
1503
- .ui.@{color}.button:hover {
1504
- background-color: @h;
1505
- color: @t;
1506
- text-shadow: @s;
1507
- }
1508
- .ui.@{color}.buttons .button:focus,
1509
- .ui.@{color}.button:focus {
1510
- background-color: @f;
1511
- color: @t;
1512
- text-shadow: @s;
1513
- }
1514
- .ui.@{color}.buttons .button:active,
1515
- .ui.@{color}.button:active {
1516
- background-color: @d;
1517
- color: @t;
1518
- text-shadow: @s;
1519
- }
1520
- .ui.@{color}.buttons .active.button,
1521
- .ui.@{color}.buttons .active.button:active,
1522
- .ui.@{color}.active.button,
1523
- .ui.@{color}.button .active.button:active {
1524
- background-color: @a;
1525
- color: @t;
1526
- text-shadow: @s;
1371
+ .ui.eleven.buttons > .button {
1372
+ width: 9.09%;
1527
1373
  }
1528
1374
 
1529
- & when (@variationButtonBasic) {
1530
- /* Basic */
1531
- .ui.basic.@{color}.buttons .button,
1532
- .ui.basic.@{color}.button {
1533
- background: transparent;
1534
- box-shadow: 0 0 0 @basicBorderSize @c inset;
1535
- color: @c;
1536
- }
1537
- .ui.basic.@{color}.buttons .button:hover,
1538
- .ui.basic.@{color}.button:hover {
1539
- background: transparent;
1540
- box-shadow: 0 0 0 @basicColoredBorderSize @h inset;
1541
- color: @h;
1542
- }
1543
- .ui.basic.@{color}.buttons .button:focus,
1544
- .ui.basic.@{color}.button:focus {
1545
- background: transparent;
1546
- box-shadow: 0 0 0 @basicColoredBorderSize @f inset;
1547
- color: @h;
1548
- }
1549
- .ui.basic.@{color}.buttons .active.button,
1550
- .ui.basic.@{color}.active.button {
1551
- background: transparent;
1552
- box-shadow: 0 0 0 @basicColoredBorderSize @a inset;
1553
- color: @d;
1554
- }
1555
- .ui.basic.@{color}.buttons .button:active,
1556
- .ui.basic.@{color}.button:active {
1557
- box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
1558
- color: @d;
1559
- }
1375
+ .ui.twelve.buttons {
1376
+ width: 100%;
1560
1377
  }
1561
- & when (@variationButtonInverted) {
1562
- /* Inverted */
1563
- .ui.inverted.@{color}.buttons .button,
1564
- .ui.inverted.@{color}.button {
1565
- background-color: transparent;
1566
1378
 
1567
- & when (@isDark) {
1568
- box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset;
1569
- color: @invertedTextColor;
1570
- }
1379
+ .ui.twelve.buttons > .button {
1380
+ width: 8.3333%;
1381
+ }
1382
+ }
1571
1383
 
1572
- & when not (@isDark) {
1573
- box-shadow: 0 0 0 @invertedBorderSize @l inset;
1574
- color: @l;
1384
+ & when (@variationButtonVertical) {
1385
+ & when (@variationButtonFluid) {
1386
+ /* Fluid Vertical Buttons */
1387
+ .ui.fluid.vertical.buttons,
1388
+ .ui.fluid.vertical.buttons > .button {
1389
+ display: flex;
1390
+ width: auto;
1391
+ justify-content: center;
1575
1392
  }
1576
- }
1577
- .ui.inverted.@{color}.buttons .button:hover,
1578
- .ui.inverted.@{color}.button:hover,
1579
- .ui.inverted.@{color}.buttons .button:focus,
1580
- .ui.inverted.@{color}.button:focus,
1581
- .ui.inverted.@{color}.buttons .button.active,
1582
- .ui.inverted.@{color}.button.active,
1583
- .ui.inverted.@{color}.buttons .button:active,
1584
- .ui.inverted.@{color}.button:active {
1585
- box-shadow: none;
1586
- color: @lt;
1587
- }
1588
- .ui.inverted.@{color}.buttons .button:hover,
1589
- .ui.inverted.@{color}.button:hover {
1590
- background-color: @lh;
1591
- }
1592
- .ui.inverted.@{color}.buttons .button:focus,
1593
- .ui.inverted.@{color}.button:focus {
1594
- background-color: @lf;
1595
- }
1596
- .ui.inverted.@{color}.buttons .active.button,
1597
- .ui.inverted.@{color}.active.button {
1598
- background-color: @la;
1599
- }
1600
- .ui.inverted.@{color}.buttons .button:active,
1601
- .ui.inverted.@{color}.button:active {
1602
- background-color: @ld;
1603
- }
1604
-
1605
- /* Inverted Basic */
1606
- .ui.inverted.@{color}.basic.buttons .button,
1607
- .ui.inverted.@{color}.buttons .basic.button,
1608
- .ui.inverted.@{color}.basic.button {
1609
- background-color: transparent;
1610
- box-shadow: @basicInvertedBoxShadow;
1611
- color: @white;
1612
- }
1613
- .ui.inverted.@{color}.basic.buttons .button:hover,
1614
- .ui.inverted.@{color}.buttons .basic.button:hover,
1615
- .ui.inverted.@{color}.basic.button:hover {
1616
- box-shadow: 0 0 0 @invertedBorderSize @lh inset;
1617
-
1618
- & when (@isDark) {
1619
- color: @white;
1620
- }
1621
-
1622
- & when not (@isDark) {
1623
- color: @l;
1624
- }
1625
- }
1626
- .ui.inverted.@{color}.basic.buttons .button:focus,
1627
- .ui.inverted.@{color}.basic.buttons .button:focus,
1628
- .ui.inverted.@{color}.basic.button:focus {
1629
- box-shadow: 0 0 0 @invertedBorderSize @lf inset;
1630
- color: @l;
1631
- }
1632
- .ui.inverted.@{color}.basic.buttons .active.button,
1633
- .ui.inverted.@{color}.buttons .basic.active.button,
1634
- .ui.inverted.@{color}.basic.active.button {
1635
- box-shadow: 0 0 0 @invertedBorderSize @la inset;
1636
-
1637
- & when (@isDark) {
1638
- color: @white;
1639
- }
1640
-
1641
- & when not (@isDark) {
1642
- color: @l;
1643
- }
1644
- }
1645
- & when (@variationButtonBasic) {
1646
- .ui.inverted.@{color}.basic.buttons .button:active,
1647
- .ui.inverted.@{color}.buttons .basic.button:active,
1648
- .ui.inverted.@{color}.basic.button:active {
1649
- box-shadow: 0 0 0 @invertedBorderSize @ld inset;
1650
-
1651
- & when (@isDark) {
1652
- color: @white;
1653
- }
1393
+ }
1654
1394
 
1655
- & when not (@isDark) {
1656
- color: @l;
1657
- }
1395
+ & when (@variationButtonEqualWidth) {
1396
+ .ui.two.vertical.buttons > .button {
1397
+ height: 50%;
1658
1398
  }
1659
- }
1660
- }
1661
1399
 
1662
- & when (@variationButtonTertiary) {
1663
- /* Tertiary */
1400
+ .ui.three.vertical.buttons > .button {
1401
+ height: 33.333%;
1402
+ }
1664
1403
 
1665
- .ui.tertiary.@{color}.buttons .button,
1666
- .ui.tertiary.@{color}.buttons .tertiary.button,
1667
- .ui.tertiary.@{color}.button {
1668
- background: transparent;
1404
+ .ui.four.vertical.buttons > .button {
1405
+ height: 25%;
1406
+ }
1669
1407
 
1408
+ .ui.five.vertical.buttons > .button {
1409
+ height: 20%;
1410
+ }
1670
1411
 
1412
+ .ui.six.vertical.buttons > .button {
1413
+ height: 16.666%;
1414
+ }
1671
1415
 
1672
- & when (@tertiaryWithUnderline = true) {
1673
- box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
1416
+ .ui.seven.vertical.buttons > .button {
1417
+ height: 14.285%;
1674
1418
  }
1675
1419
 
1676
- & when (@tertiaryWithOverline = true) {
1677
- box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
1420
+ .ui.eight.vertical.buttons > .button {
1421
+ height: 12.5%;
1678
1422
  }
1679
1423
 
1680
- & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
1681
- box-shadow: none;
1424
+ .ui.nine.vertical.buttons > .button {
1425
+ height: 11.11%;
1682
1426
  }
1683
1427
 
1684
- color: @c;
1685
- }
1428
+ .ui.ten.vertical.buttons > .button {
1429
+ height: 10%;
1430
+ }
1686
1431
 
1687
- .ui.tertiary.@{color}.buttons .button:hover,
1688
- .ui.tertiary.@{color}.buttons button:hover,
1689
- .ui.tertiary.@{color}.button:hover {
1432
+ .ui.eleven.vertical.buttons > .button {
1433
+ height: 9.09%;
1434
+ }
1690
1435
 
1436
+ .ui.twelve.vertical.buttons > .button {
1437
+ height: 8.3333%;
1438
+ }
1439
+ }
1440
+ }
1691
1441
 
1442
+ /* -------------------
1443
+ Colors
1444
+ -------------------- */
1692
1445
 
1693
- & when (@tertiaryHoverWithUnderline = true) {
1694
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
1446
+ & when not (@variationButtonColors = false) {
1447
+ each(@variationButtonColors, {
1448
+ @color: @value;
1449
+ @c: @colors[@@color][color];
1450
+ @h: @colors[@@color][hover];
1451
+ @f: @colors[@@color][focus];
1452
+ @d: @colors[@@color][down];
1453
+ @a: @colors[@@color][active];
1454
+ @t: @colors[@@color][text];
1455
+ @s: @colors[@@color][shadow];
1456
+ @l: @colors[@@color][light];
1457
+ @lh: @colors[@@color][lightHover];
1458
+ @lf: @colors[@@color][lightFocus];
1459
+ @ld: @colors[@@color][lightDown];
1460
+ @la: @colors[@@color][lightActive];
1461
+ @lt: @colors[@@color][lightText];
1462
+ @ls: @colors[@@color][lightShadow];
1463
+ @ty: @colors[@@color][tertiary];
1464
+ @tyh: @colors[@@color][tertiaryHover];
1465
+ @tyf: @colors[@@color][tertiaryFocus];
1466
+ @tya: @colors[@@color][tertiaryActive];
1467
+ @isDark: @colors[@@color][isDark];
1468
+ @isVeryDark: @colors[@@color][isVeryDark];
1469
+
1470
+ .ui.@{color}.buttons .button,
1471
+ .ui.@{color}.button {
1472
+ background-color: @c;
1473
+ color: @t;
1474
+ text-shadow: @s;
1475
+ background-image: @coloredBackgroundImage;
1695
1476
  }
1696
-
1697
- & when (@tertiaryHoverWithOverline = true) {
1698
- box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
1477
+ .ui.@{color}.button {
1478
+ box-shadow: @coloredBoxShadow;
1479
+ }
1480
+ .ui.@{color}.buttons .button:hover,
1481
+ .ui.@{color}.button:hover {
1482
+ background-color: @h;
1483
+ color: @t;
1484
+ text-shadow: @s;
1485
+ }
1486
+ .ui.@{color}.buttons .button:focus,
1487
+ .ui.@{color}.button:focus {
1488
+ background-color: @f;
1489
+ color: @t;
1490
+ text-shadow: @s;
1491
+ }
1492
+ .ui.@{color}.buttons .button:active,
1493
+ .ui.@{color}.button:active {
1494
+ background-color: @d;
1495
+ color: @t;
1496
+ text-shadow: @s;
1497
+ }
1498
+ .ui.@{color}.buttons .active.button,
1499
+ .ui.@{color}.buttons .active.button:active,
1500
+ .ui.@{color}.active.button,
1501
+ .ui.@{color}.button .active.button:active {
1502
+ background-color: @a;
1503
+ color: @t;
1504
+ text-shadow: @s;
1699
1505
  }
1700
1506
 
1701
- & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
1702
- box-shadow: none;
1507
+ & when (@variationButtonBasic) {
1508
+ /* Basic */
1509
+ .ui.basic.@{color}.buttons .button,
1510
+ .ui.basic.@{color}.button {
1511
+ background: transparent;
1512
+ box-shadow: 0 0 0 @basicBorderSize @c inset;
1513
+ color: @c;
1514
+ }
1515
+ .ui.basic.@{color}.buttons .button:hover,
1516
+ .ui.basic.@{color}.button:hover {
1517
+ background: transparent;
1518
+ box-shadow: 0 0 0 @basicColoredBorderSize @h inset;
1519
+ color: @h;
1520
+ }
1521
+ .ui.basic.@{color}.buttons .button:focus,
1522
+ .ui.basic.@{color}.button:focus {
1523
+ background: transparent;
1524
+ box-shadow: 0 0 0 @basicColoredBorderSize @f inset;
1525
+ color: @h;
1526
+ }
1527
+ .ui.basic.@{color}.buttons .active.button,
1528
+ .ui.basic.@{color}.active.button {
1529
+ background: transparent;
1530
+ box-shadow: 0 0 0 @basicColoredBorderSize @a inset;
1531
+ color: @d;
1532
+ }
1533
+ .ui.basic.@{color}.buttons .button:active,
1534
+ .ui.basic.@{color}.button:active {
1535
+ box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
1536
+ color: @d;
1537
+ }
1538
+ }
1539
+ & when (@variationButtonInverted) {
1540
+ /* Inverted */
1541
+ .ui.inverted.@{color}.buttons .button,
1542
+ .ui.inverted.@{color}.button {
1543
+ background-color: transparent;
1544
+
1545
+ & when (@isDark) {
1546
+ box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset;
1547
+ color: @invertedTextColor;
1548
+ }
1549
+
1550
+ & when not (@isDark) {
1551
+ box-shadow: 0 0 0 @invertedBorderSize @l inset;
1552
+ color: @l;
1553
+ }
1554
+ }
1555
+ .ui.inverted.@{color}.buttons .button:hover,
1556
+ .ui.inverted.@{color}.button:hover,
1557
+ .ui.inverted.@{color}.buttons .button:focus,
1558
+ .ui.inverted.@{color}.button:focus,
1559
+ .ui.inverted.@{color}.buttons .button.active,
1560
+ .ui.inverted.@{color}.button.active,
1561
+ .ui.inverted.@{color}.buttons .button:active,
1562
+ .ui.inverted.@{color}.button:active {
1563
+ box-shadow: none;
1564
+ color: @lt;
1565
+ }
1566
+ .ui.inverted.@{color}.buttons .button:hover,
1567
+ .ui.inverted.@{color}.button:hover {
1568
+ background-color: @lh;
1569
+ }
1570
+ .ui.inverted.@{color}.buttons .button:focus,
1571
+ .ui.inverted.@{color}.button:focus {
1572
+ background-color: @lf;
1573
+ }
1574
+ .ui.inverted.@{color}.buttons .active.button,
1575
+ .ui.inverted.@{color}.active.button {
1576
+ background-color: @la;
1577
+ }
1578
+ .ui.inverted.@{color}.buttons .button:active,
1579
+ .ui.inverted.@{color}.button:active {
1580
+ background-color: @ld;
1581
+ }
1582
+
1583
+ /* Inverted Basic */
1584
+ .ui.inverted.@{color}.basic.buttons .button,
1585
+ .ui.inverted.@{color}.buttons .basic.button,
1586
+ .ui.inverted.@{color}.basic.button {
1587
+ background-color: transparent;
1588
+ box-shadow: @basicInvertedBoxShadow;
1589
+ color: @white;
1590
+ }
1591
+ .ui.inverted.@{color}.basic.buttons .button:hover,
1592
+ .ui.inverted.@{color}.buttons .basic.button:hover,
1593
+ .ui.inverted.@{color}.basic.button:hover {
1594
+ box-shadow: 0 0 0 @invertedBorderSize @lh inset;
1595
+
1596
+ & when (@isDark) {
1597
+ color: @white;
1598
+ }
1599
+
1600
+ & when not (@isDark) {
1601
+ color: @l;
1602
+ }
1603
+ }
1604
+ .ui.inverted.@{color}.basic.buttons .button:focus,
1605
+ .ui.inverted.@{color}.basic.buttons .button:focus,
1606
+ .ui.inverted.@{color}.basic.button:focus {
1607
+ box-shadow: 0 0 0 @invertedBorderSize @lf inset;
1608
+ color: @l;
1609
+ }
1610
+ .ui.inverted.@{color}.basic.buttons .active.button,
1611
+ .ui.inverted.@{color}.buttons .basic.active.button,
1612
+ .ui.inverted.@{color}.basic.active.button {
1613
+ box-shadow: 0 0 0 @invertedBorderSize @la inset;
1614
+
1615
+ & when (@isDark) {
1616
+ color: @white;
1617
+ }
1618
+
1619
+ & when not (@isDark) {
1620
+ color: @l;
1621
+ }
1622
+ }
1623
+ & when (@variationButtonBasic) {
1624
+ .ui.inverted.@{color}.basic.buttons .button:active,
1625
+ .ui.inverted.@{color}.buttons .basic.button:active,
1626
+ .ui.inverted.@{color}.basic.button:active {
1627
+ box-shadow: 0 0 0 @invertedBorderSize @ld inset;
1628
+
1629
+ & when (@isDark) {
1630
+ color: @white;
1631
+ }
1632
+
1633
+ & when not (@isDark) {
1634
+ color: @l;
1635
+ }
1636
+ }
1637
+ }
1703
1638
  }
1704
1639
 
1640
+ & when (@variationButtonTertiary) {
1641
+ /* Tertiary */
1705
1642
 
1706
- color: @tyh;
1707
- }
1643
+ .ui.tertiary.@{color}.buttons .button,
1644
+ .ui.tertiary.@{color}.buttons .tertiary.button,
1645
+ .ui.tertiary.@{color}.button {
1646
+ background: transparent;
1708
1647
 
1709
- .ui.tertiary.@{color}.buttons .button:focus,
1710
- .ui.tertiary.@{color}.buttons .tertiary.button:focus,
1711
- .ui.tertiary.@{color}.button:focus {
1648
+ & when (@tertiaryWithUnderline = true) {
1649
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
1650
+ }
1712
1651
 
1652
+ & when (@tertiaryWithOverline = true) {
1653
+ box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
1654
+ }
1713
1655
 
1656
+ & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
1657
+ box-shadow: none;
1658
+ }
1714
1659
 
1660
+ color: @c;
1661
+ }
1715
1662
 
1716
- & when (@tertiaryFocusWithUnderline = true) {
1717
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
1718
- }
1663
+ .ui.tertiary.@{color}.buttons .button:hover,
1664
+ .ui.tertiary.@{color}.buttons button:hover,
1665
+ .ui.tertiary.@{color}.button:hover {
1719
1666
 
1720
- & when (@tertiaryFocusWithOverline = true) {
1721
- box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
1722
- }
1667
+ & when (@tertiaryHoverWithUnderline = true) {
1668
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
1669
+ }
1723
1670
 
1724
- & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
1725
- box-shadow: none;
1726
- }
1671
+ & when (@tertiaryHoverWithOverline = true) {
1672
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
1673
+ }
1727
1674
 
1675
+ & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
1676
+ box-shadow: none;
1677
+ }
1728
1678
 
1729
- color: @tyf;
1730
- }
1679
+ color: @tyh;
1680
+ }
1731
1681
 
1732
- .ui.tertiary.@{color}.buttons .active.button,
1733
- .ui.tertiary.@{color}.buttons .tertiary.active.button,
1734
- .ui.tertiary.@{color}.active.button,
1735
- .ui.tertiary.@{color}.buttons .button:active,
1736
- .ui.tertiary.@{color}.buttons .tertiary.button:active,
1737
- .ui.tertiary.@{color}.button:active {
1682
+ .ui.tertiary.@{color}.buttons .button:focus,
1683
+ .ui.tertiary.@{color}.buttons .tertiary.button:focus,
1684
+ .ui.tertiary.@{color}.button:focus {
1738
1685
 
1686
+ & when (@tertiaryFocusWithUnderline = true) {
1687
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
1688
+ }
1739
1689
 
1690
+ & when (@tertiaryFocusWithOverline = true) {
1691
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
1692
+ }
1740
1693
 
1741
- & when (@tertiaryActiveWithUnderline = true) {
1742
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
1743
- }
1694
+ & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
1695
+ box-shadow: none;
1696
+ }
1744
1697
 
1745
- & when (@tertiaryActiveWithOverline = true) {
1746
- box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
1698
+ color: @tyf;
1699
+ }
1700
+
1701
+ .ui.tertiary.@{color}.buttons .active.button,
1702
+ .ui.tertiary.@{color}.buttons .tertiary.active.button,
1703
+ .ui.tertiary.@{color}.active.button,
1704
+ .ui.tertiary.@{color}.buttons .button:active,
1705
+ .ui.tertiary.@{color}.buttons .tertiary.button:active,
1706
+ .ui.tertiary.@{color}.button:active {
1707
+
1708
+ & when (@tertiaryActiveWithUnderline = true) {
1709
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
1710
+ }
1711
+
1712
+ & when (@tertiaryActiveWithOverline = true) {
1713
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
1714
+ }
1715
+
1716
+ & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
1717
+ box-shadow: none;
1718
+ }
1719
+
1720
+ color: @a;
1721
+ }
1747
1722
  }
1723
+ });
1724
+ }
1748
1725
 
1749
- & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
1750
- box-shadow: none;
1726
+ & when not (@variationButtonConsequences = false) {
1727
+ each(@variationButtonConsequences, {
1728
+ @consequence: @value;
1729
+
1730
+ @_backgroundColor: "@{consequence}Color";
1731
+ @_backgroundColorHover: "@{consequence}ColorHover";
1732
+ @_backgroundColorFocus: "@{consequence}ColorFocus";
1733
+ @_backgroundColorDown: "@{consequence}ColorDown";
1734
+ @_backgroundColorActive: "@{consequence}ColorActive";
1735
+ @_textColor: "@{consequence}TextColor";
1736
+ @_textShadow: "@{consequence}TextShadow";
1737
+
1738
+ /* Standard */
1739
+ .ui.@{consequence}.buttons .button,
1740
+ .ui.@{consequence}.button {
1741
+ background-color: @@_backgroundColor;
1742
+ color: @@_textColor;
1743
+ text-shadow: @@_textShadow;
1744
+ background-image: @coloredBackgroundImage;
1745
+ }
1746
+ .ui.@{consequence}.button {
1747
+ box-shadow: @coloredBoxShadow;
1748
+ }
1749
+ .ui.@{consequence}.buttons .button:hover,
1750
+ .ui.@{consequence}.button:hover {
1751
+ background-color: @@_backgroundColorHover;
1752
+ color: @@_textColor;
1753
+ text-shadow: @@_textShadow;
1754
+ }
1755
+ .ui.@{consequence}.buttons .button:focus,
1756
+ .ui.@{consequence}.button:focus {
1757
+ background-color: @@_backgroundColorFocus;
1758
+ color: @@_textColor;
1759
+ text-shadow: @@_textShadow;
1760
+ }
1761
+ .ui.@{consequence}.buttons .button:active,
1762
+ .ui.@{consequence}.button:active {
1763
+ background-color: @@_backgroundColorDown;
1764
+ color: @@_textColor;
1765
+ text-shadow: @@_textShadow;
1766
+ }
1767
+ .ui.@{consequence}.buttons .active.button,
1768
+ .ui.@{consequence}.buttons .active.button:active,
1769
+ .ui.@{consequence}.active.button,
1770
+ .ui.@{consequence}.button .active.button:active {
1771
+ background-color: @@_backgroundColorActive;
1772
+ color: @@_textColor;
1773
+ text-shadow: @@_textShadow;
1751
1774
  }
1775
+ & when (@variationButtonBasic) {
1776
+ /* Basic */
1777
+ .ui.basic.@{consequence}.buttons .button,
1778
+ .ui.basic.@{consequence}.button {
1779
+ background: transparent;
1780
+ box-shadow: 0 0 0 @basicBorderSize @@_backgroundColor inset;
1781
+ color: @@_backgroundColor;
1782
+ }
1783
+ .ui.basic.@{consequence}.buttons .button:hover,
1784
+ .ui.basic.@{consequence}.button:hover {
1785
+ background: transparent;
1786
+ box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorHover inset;
1787
+ color: @@_backgroundColorHover;
1788
+ }
1789
+ .ui.basic.@{consequence}.buttons .button:focus,
1790
+ .ui.basic.@{consequence}.button:focus {
1791
+ background: transparent;
1792
+ box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorFocus inset;
1793
+ color: @@_backgroundColorHover;
1794
+ }
1795
+ .ui.basic.@{consequence}.buttons .active.button,
1796
+ .ui.basic.@{consequence}.active.button {
1797
+ background: transparent;
1798
+ box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorActive inset;
1799
+ color: @@_backgroundColorDown;
1800
+ }
1801
+ .ui.basic.@{consequence}.buttons .button:active,
1802
+ .ui.basic.@{consequence}.button:active {
1803
+ box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorDown inset;
1804
+ color: @@_backgroundColorDown;
1805
+ }
1806
+ .ui.buttons:not(.vertical) > .basic.@{consequence}.button:not(:first-child) {
1807
+ margin-left: -@basicColoredBorderSize;
1808
+ }
1809
+ }
1810
+ });
1811
+ }
1812
+
1813
+ & when (@variationButtonGroups) {
1814
+ /*******************************
1815
+ Groups
1816
+ *******************************/
1752
1817
 
1753
- color: @a;
1754
- }
1818
+ .ui.buttons {
1819
+ display: inline-flex;
1820
+ flex-direction: row;
1821
+ font-size: 0;
1822
+ vertical-align: baseline;
1823
+ margin: @verticalMargin @horizontalMargin 0 0;
1755
1824
  }
1756
- })
1757
- }
1758
1825
 
1759
- & when not (@variationButtonConsequences = false) {
1760
- each(@variationButtonConsequences, {
1761
- @consequence: @value;
1762
-
1763
- @_backgroundColor: "@{consequence}Color";
1764
- @_backgroundColorHover: "@{consequence}ColorHover";
1765
- @_backgroundColorFocus: "@{consequence}ColorFocus";
1766
- @_backgroundColorDown: "@{consequence}ColorDown";
1767
- @_backgroundColorActive: "@{consequence}ColorActive";
1768
- @_textColor: "@{consequence}TextColor";
1769
- @_textShadow: "@{consequence}TextShadow";
1770
-
1771
- /* Standard */
1772
- .ui.@{consequence}.buttons .button,
1773
- .ui.@{consequence}.button {
1774
- background-color: @@_backgroundColor;
1775
- color: @@_textColor;
1776
- text-shadow: @@_textShadow;
1777
- background-image: @coloredBackgroundImage;
1778
- }
1779
- .ui.@{consequence}.button {
1780
- box-shadow: @coloredBoxShadow;
1781
- }
1782
- .ui.@{consequence}.buttons .button:hover,
1783
- .ui.@{consequence}.button:hover {
1784
- background-color: @@_backgroundColorHover;
1785
- color: @@_textColor;
1786
- text-shadow: @@_textShadow;
1787
- }
1788
- .ui.@{consequence}.buttons .button:focus,
1789
- .ui.@{consequence}.button:focus {
1790
- background-color: @@_backgroundColorFocus;
1791
- color: @@_textColor;
1792
- text-shadow: @@_textShadow;
1793
- }
1794
- .ui.@{consequence}.buttons .button:active,
1795
- .ui.@{consequence}.button:active {
1796
- background-color: @@_backgroundColorDown;
1797
- color: @@_textColor;
1798
- text-shadow: @@_textShadow;
1799
- }
1800
- .ui.@{consequence}.buttons .active.button,
1801
- .ui.@{consequence}.buttons .active.button:active,
1802
- .ui.@{consequence}.active.button,
1803
- .ui.@{consequence}.button .active.button:active {
1804
- background-color: @@_backgroundColorActive;
1805
- color: @@_textColor;
1806
- text-shadow: @@_textShadow;
1826
+ .ui.buttons:not(.basic):not(.inverted) {
1827
+ box-shadow: @groupBoxShadow;
1807
1828
  }
1808
- & when (@variationButtonBasic) {
1809
- /* Basic */
1810
- .ui.basic.@{consequence}.buttons .button,
1811
- .ui.basic.@{consequence}.button {
1812
- background: transparent;
1813
- box-shadow: 0 0 0 @basicBorderSize @@_backgroundColor inset;
1814
- color: @@_backgroundColor;
1815
- }
1816
- .ui.basic.@{consequence}.buttons .button:hover,
1817
- .ui.basic.@{consequence}.button:hover {
1818
- background: transparent;
1819
- box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorHover inset;
1820
- color: @@_backgroundColorHover;
1821
- }
1822
- .ui.basic.@{consequence}.buttons .button:focus,
1823
- .ui.basic.@{consequence}.button:focus {
1824
- background: transparent;
1825
- box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorFocus inset;
1826
- color: @@_backgroundColorHover;
1827
- }
1828
- .ui.basic.@{consequence}.buttons .active.button,
1829
- .ui.basic.@{consequence}.active.button {
1830
- background: transparent;
1831
- box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorActive inset;
1832
- color: @@_backgroundColorDown;
1833
- }
1834
- .ui.basic.@{consequence}.buttons .button:active,
1835
- .ui.basic.@{consequence}.button:active {
1836
- box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorDown inset;
1837
- color: @@_backgroundColorDown;
1838
- }
1839
- .ui.buttons:not(.vertical) > .basic.@{consequence}.button:not(:first-child) {
1840
- margin-left: -@basicColoredBorderSize;
1841
- }
1842
- }
1843
- })
1844
- }
1845
1829
 
1830
+ /* Clearfix */
1831
+ .ui.buttons::after {
1832
+ content: ".";
1833
+ display: block;
1834
+ height: 0;
1835
+ clear: both;
1836
+ visibility: hidden;
1837
+ }
1846
1838
 
1847
- & when (@variationButtonGroups) {
1848
- /*******************************
1849
- Groups
1850
- *******************************/
1851
-
1852
- .ui.buttons {
1853
- display: inline-flex;
1854
- flex-direction: row;
1855
- font-size: 0;
1856
- vertical-align: baseline;
1857
- margin: @verticalMargin @horizontalMargin 0 0;
1858
- }
1859
-
1860
- .ui.buttons:not(.basic):not(.inverted) {
1861
- box-shadow: @groupBoxShadow;
1862
- }
1863
-
1864
- /* Clearfix */
1865
- .ui.buttons::after {
1866
- content: ".";
1867
- display: block;
1868
- height: 0;
1869
- clear: both;
1870
- visibility: hidden;
1871
- }
1872
-
1873
- /* Standard Group */
1874
- .ui.buttons .button {
1875
- flex: 1 0 auto;
1876
- border-radius: 0;
1877
- margin: @groupButtonOffset;
1878
- }
1879
-
1880
- .ui.buttons:not(.basic):not(.inverted) > .button:not(.basic):not(.inverted) {
1881
- box-shadow: @groupButtonBoxShadow;
1882
- }
1883
-
1884
- .ui.buttons .button:first-child {
1885
- border-left: none;
1886
- margin-left: 0;
1887
- border-top-left-radius: @borderRadius;
1888
- border-bottom-left-radius: @borderRadius;
1889
- }
1890
-
1891
- .ui.buttons .button:last-child {
1892
- border-top-right-radius: @borderRadius;
1893
- border-bottom-right-radius: @borderRadius;
1894
- }
1895
- & when (@variationButtonVertical) {
1896
- /* Vertical Style */
1897
- .ui.vertical.buttons {
1898
- display: inline-flex;
1899
- flex-direction: column;
1900
- }
1901
-
1902
- .ui.vertical.buttons .button {
1903
- display: block;
1904
- float: none;
1905
- width: 100%;
1906
- margin: @verticalGroupOffset;
1907
- border-radius: 0;
1908
- &:not(.basic) {
1909
- box-shadow: @verticalBoxShadow;
1910
- }
1911
- }
1912
-
1913
- .ui.vertical.buttons .button:first-child {
1914
- border-top-left-radius: @borderRadius;
1915
- border-top-right-radius: @borderRadius;
1916
- }
1917
-
1918
- .ui.vertical.buttons .button:last-child {
1919
- margin-bottom: 0;
1920
- border-bottom-left-radius: @borderRadius;
1921
- border-bottom-right-radius: @borderRadius;
1922
- }
1923
-
1924
- .ui.vertical.buttons .button:only-child {
1925
- border-radius: @borderRadius;
1839
+ /* Standard Group */
1840
+ .ui.buttons .button {
1841
+ flex: 1 0 auto;
1842
+ border-radius: 0;
1843
+ margin: @groupButtonOffset;
1926
1844
  }
1927
- & when (@variationButtonBasic) {
1928
- .ui.vertical.buttons .basic.button:not(:first-child) {
1929
- border-top: none;
1930
- }
1845
+
1846
+ .ui.buttons:not(.basic):not(.inverted) > .button:not(.basic):not(.inverted) {
1847
+ box-shadow: @groupButtonBoxShadow;
1931
1848
  }
1932
- }
1933
1849
 
1934
- & when (@variationButtonWrapping) {
1935
- .ui.wrapping.buttons {
1936
- flex-wrap: wrap;
1850
+ .ui.buttons .button:first-child {
1851
+ border-left: none;
1852
+ margin-left: 0;
1853
+ border-top-left-radius: @borderRadius;
1854
+ border-bottom-left-radius: @borderRadius;
1937
1855
  }
1938
- & when (@variationButtonBasic) {
1939
- .ui.wrapping.basic.buttons {
1940
- border-bottom: none;
1941
- & .button {
1942
- border-bottom: @basicGroupBorder;
1943
- &:hover {
1944
- background: transparent !important;
1945
- }
1946
- }
1947
- }
1948
- }
1949
- & when (@variationButtonCompact) {
1950
- .ui.compact.wrapping.buttons .button {
1951
- flex: none;
1952
- }
1953
- }
1954
- }
1955
- & when (@variationButtonWrapped) {
1956
- .ui.wrapped.buttons:not(.spaced) {
1957
- border-top-right-radius: 0;
1958
- & .button {
1959
- &:first-child {
1960
- border-radius: @basicBorderRadius 0 0 0;
1961
- }
1962
- &:last-child {
1963
- border-radius: 0 0 @basicBorderRadius 0;
1964
- }
1965
- }
1966
- }
1967
- & when (@variationButtonAttached) {
1968
- .ui.wrapped[class*="top attached"].buttons {
1969
- border-radius: @basicBorderRadius 0 0 0;
1970
- & .button:last-child {
1971
- border-radius: 0;
1972
- }
1973
- }
1974
- .ui.wrapped[class*="bottom attached"].buttons {
1975
- border-radius: 0 0 0 @basicBorderRadius;
1976
- & .button:first-child {
1977
- border-radius: 0;
1978
- }
1979
- }
1980
- }
1981
- }
1982
- & when (@variationButtonSpaced) {
1983
- .ui.spaced.buttons .ui.button {
1984
- margin-bottom: @spacedMargin;
1985
- margin-right: @spacedMargin;
1986
- border-radius: @basicBorderRadius;
1856
+
1857
+ .ui.buttons .button:last-child {
1858
+ border-top-right-radius: @borderRadius;
1859
+ border-bottom-right-radius: @borderRadius;
1987
1860
  }
1861
+ & when (@variationButtonVertical) {
1862
+ /* Vertical Style */
1863
+ .ui.vertical.buttons {
1864
+ display: inline-flex;
1865
+ flex-direction: column;
1866
+ }
1867
+
1868
+ .ui.vertical.buttons .button {
1869
+ display: block;
1870
+ float: none;
1871
+ width: 100%;
1872
+ margin: @verticalGroupOffset;
1873
+ border-radius: 0;
1874
+ &:not(.basic) {
1875
+ box-shadow: @verticalBoxShadow;
1876
+ }
1877
+ }
1878
+
1879
+ .ui.vertical.buttons .button:first-child {
1880
+ border-top-left-radius: @borderRadius;
1881
+ border-top-right-radius: @borderRadius;
1882
+ }
1883
+
1884
+ .ui.vertical.buttons .button:last-child {
1885
+ margin-bottom: 0;
1886
+ border-bottom-left-radius: @borderRadius;
1887
+ border-bottom-right-radius: @borderRadius;
1888
+ }
1889
+
1890
+ .ui.vertical.buttons .button:only-child {
1891
+ border-radius: @borderRadius;
1892
+ }
1893
+ & when (@variationButtonBasic) {
1894
+ .ui.vertical.buttons .basic.button:not(:first-child) {
1895
+ border-top: none;
1896
+ }
1897
+ }
1898
+ }
1899
+
1900
+ & when (@variationButtonWrapping) {
1901
+ .ui.wrapping.buttons {
1902
+ flex-wrap: wrap;
1903
+ }
1904
+ & when (@variationButtonBasic) {
1905
+ .ui.wrapping.basic.buttons {
1906
+ border-bottom: none;
1907
+ & .button {
1908
+ border-bottom: @basicGroupBorder;
1909
+ &:hover {
1910
+ background: transparent !important;
1911
+ }
1912
+ }
1913
+ }
1914
+ }
1915
+ & when (@variationButtonCompact) {
1916
+ .ui.compact.wrapping.buttons .button {
1917
+ flex: none;
1918
+ }
1919
+ }
1920
+ }
1921
+ & when (@variationButtonWrapped) {
1922
+ .ui.wrapped.buttons:not(.spaced) {
1923
+ border-top-right-radius: 0;
1924
+ & .button {
1925
+ &:first-child {
1926
+ border-radius: @basicBorderRadius 0 0 0;
1927
+ }
1928
+ &:last-child {
1929
+ border-radius: 0 0 @basicBorderRadius 0;
1930
+ }
1931
+ }
1932
+ }
1933
+ & when (@variationButtonAttached) {
1934
+ .ui.wrapped[class*="top attached"].buttons {
1935
+ border-radius: @basicBorderRadius 0 0 0;
1936
+ & .button:last-child {
1937
+ border-radius: 0;
1938
+ }
1939
+ }
1940
+ .ui.wrapped[class*="bottom attached"].buttons {
1941
+ border-radius: 0 0 0 @basicBorderRadius;
1942
+ & .button:first-child {
1943
+ border-radius: 0;
1944
+ }
1945
+ }
1946
+ }
1947
+ }
1948
+ & when (@variationButtonSpaced) {
1949
+ .ui.spaced.buttons .ui.button {
1950
+ margin-bottom: @spacedMargin;
1951
+ margin-right: @spacedMargin;
1952
+ border-radius: @basicBorderRadius;
1953
+ }
1954
+ & when (@variationButtonBasic) {
1955
+ .ui.spaced.basic.buttons {
1956
+ border: none;
1957
+ & .button {
1958
+ border: @basicGroupBorder;
1959
+ &.basic {
1960
+ border: none;
1961
+ }
1962
+ }
1963
+ }
1964
+ & when (@variationButtonVertical) {
1965
+ .ui.spaced.basic.vertical.buttons .button:first-child {
1966
+ border-top: @basicGroupBorder;
1967
+ }
1968
+ }
1969
+ & when (@variationButtonWrapping) {
1970
+ .ui.spaced.basic.wrapping.buttons .button:not(.basic) {
1971
+ border-top: @basicGroupBorder;
1972
+ border-right: @basicGroupBorder;
1973
+ &:first-child {
1974
+ border-left: @basicGroupBorder;
1975
+ }
1976
+ }
1977
+ }
1978
+ & when (@variationButtonInverted) {
1979
+ .ui.spaced.basic.inverted.buttons .basic.button {
1980
+ margin-bottom: e(%("calc(%d + %d)", @spacedMargin, @basicColoredBorderSize));
1981
+ margin-top: @basicColoredBorderSize;
1982
+ }
1983
+ }
1984
+ }
1985
+ }
1986
+
1988
1987
  & when (@variationButtonBasic) {
1989
- .ui.spaced.basic.buttons {
1990
- border: none;
1991
- & .button {
1992
- border: @basicGroupBorder;
1993
- &.basic {
1994
- border: none;
1995
- }
1996
- }
1997
- }
1998
- & when (@variationButtonVertical) {
1999
- .ui.spaced.basic.vertical.buttons .button:first-child {
2000
- border-top: @basicGroupBorder;
2001
- }
2002
- }
2003
- & when (@variationButtonWrapping) {
2004
- .ui.spaced.basic.wrapping.buttons .button:not(.basic) {
2005
- border-top: @basicGroupBorder;
2006
- border-right: @basicGroupBorder;
2007
- &:first-child {
2008
- border-left: @basicGroupBorder;
2009
- }
2010
- }
2011
- }
2012
- & when (@variationButtonInverted) {
2013
- .ui.spaced.basic.inverted.buttons .basic.button {
2014
- margin-bottom: e(%("calc(%d + %d)", @spacedMargin, @basicColoredBorderSize));
2015
- margin-top: @basicColoredBorderSize;
2016
- }
2017
- }
2018
- }
2019
- }
2020
-
2021
- & when (@variationButtonBasic) {
2022
- .ui.basic.buttons:not(.vertical).inverted .button,
2023
- .ui.basic.buttons:not(.vertical) .basic.button {
2024
- margin-left: -@basicColoredBorderSize;
2025
- border-right: none;
2026
- }
2027
- .ui.basic.buttons:not(.vertical):not(.spaced):not(.inverted) .basic.button {
2028
- margin-top: -@basicColoredBorderSize;
2029
- border-bottom: none;
2030
- }
2031
- & when (@variationButtonAttached) or (@variationButtonInverted) {
2032
- .ui.inverted.basic.buttons:not(.spaced) .button,
2033
- .ui.attached.basic.buttons:not(.wrapping):not(.inverted) .basic.button {
2034
- margin-bottom: @attachedOffset;
2035
- }
2036
- }
2037
- .ui.basic.buttons:not(.vertical):not(.attached):not(.spaced):not(.wrapping):not(.inverted) .basic.button {
2038
- margin-bottom: -@basicColoredBorderSize;
2039
- }
2040
- }
1988
+ .ui.basic.buttons:not(.vertical).inverted .button,
1989
+ .ui.basic.buttons:not(.vertical) .basic.button {
1990
+ margin-left: -@basicColoredBorderSize;
1991
+ border-right: none;
1992
+ }
1993
+ .ui.basic.buttons:not(.vertical):not(.spaced):not(.inverted) .basic.button {
1994
+ margin-top: -@basicColoredBorderSize;
1995
+ border-bottom: none;
1996
+ }
1997
+ & when (@variationButtonAttached) or (@variationButtonInverted) {
1998
+ .ui.inverted.basic.buttons:not(.spaced) .button,
1999
+ .ui.attached.basic.buttons:not(.wrapping):not(.inverted) .basic.button {
2000
+ margin-bottom: @attachedOffset;
2001
+ }
2002
+ }
2003
+ .ui.basic.buttons:not(.vertical):not(.attached):not(.spaced):not(.wrapping):not(.inverted) .basic.button {
2004
+ margin-bottom: -@basicColoredBorderSize;
2005
+ }
2006
+ }
2041
2007
  }
2042
2008
  .loadUIOverrides();