fomantic-ui 2.9.1-beta.2 → 2.9.1-beta.21

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