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

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 (339) hide show
  1. package/.eslintrc.js +110 -0
  2. package/.github/workflows/ci.yml +14 -4
  3. package/.stylelintrc.js +46 -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 +1161 -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 +1895 -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 +150 -3
  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 +2529 -1778
  156. package/dist/semantic.js +28928 -29383
  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/definitions/behaviors/api.js +1162 -1180
  180. package/src/definitions/behaviors/form.js +1978 -2003
  181. package/src/definitions/behaviors/state.js +645 -663
  182. package/src/definitions/behaviors/visibility.js +1219 -1243
  183. package/src/definitions/collections/breadcrumb.less +41 -44
  184. package/src/definitions/collections/form.less +869 -879
  185. package/src/definitions/collections/grid.less +1690 -1695
  186. package/src/definitions/collections/menu.less +1493 -1503
  187. package/src/definitions/collections/message.less +292 -295
  188. package/src/definitions/collections/table.less +1616 -1620
  189. package/src/definitions/elements/button.less +1721 -1743
  190. package/src/definitions/elements/container.less +209 -209
  191. package/src/definitions/elements/divider.less +205 -206
  192. package/src/definitions/elements/emoji.less +38 -44
  193. package/src/definitions/elements/flag.less +44 -46
  194. package/src/definitions/elements/header.less +337 -345
  195. package/src/definitions/elements/icon.less +516 -443
  196. package/src/definitions/elements/image.less +221 -225
  197. package/src/definitions/elements/input.less +663 -659
  198. package/src/definitions/elements/label.less +803 -793
  199. package/src/definitions/elements/list.less +809 -809
  200. package/src/definitions/elements/loader.less +272 -266
  201. package/src/definitions/elements/placeholder.less +171 -168
  202. package/src/definitions/elements/rail.less +91 -91
  203. package/src/definitions/elements/reveal.less +192 -196
  204. package/src/definitions/elements/segment.less +743 -746
  205. package/src/definitions/elements/step.less +425 -433
  206. package/src/definitions/elements/text.less +32 -34
  207. package/src/definitions/globals/reset.less +9 -6
  208. package/src/definitions/globals/site.js +461 -475
  209. package/src/definitions/globals/site.less +106 -108
  210. package/src/definitions/modules/accordion.js +567 -594
  211. package/src/definitions/modules/accordion.less +242 -246
  212. package/src/definitions/modules/calendar.js +1894 -1808
  213. package/src/definitions/modules/calendar.less +98 -95
  214. package/src/definitions/modules/checkbox.js +841 -840
  215. package/src/definitions/modules/checkbox.less +536 -542
  216. package/src/definitions/modules/dimmer.js +707 -736
  217. package/src/definitions/modules/dimmer.less +300 -297
  218. package/src/definitions/modules/dropdown.js +4160 -4233
  219. package/src/definitions/modules/dropdown.less +1577 -1589
  220. package/src/definitions/modules/embed.js +650 -674
  221. package/src/definitions/modules/embed.less +81 -82
  222. package/src/definitions/modules/flyout.js +1463 -1464
  223. package/src/definitions/modules/flyout.less +445 -451
  224. package/src/definitions/modules/modal.js +1490 -1484
  225. package/src/definitions/modules/modal.less +459 -459
  226. package/src/definitions/modules/nag.js +517 -525
  227. package/src/definitions/modules/nag.less +134 -138
  228. package/src/definitions/modules/popup.js +1436 -1455
  229. package/src/definitions/modules/popup.less +742 -687
  230. package/src/definitions/modules/progress.js +968 -996
  231. package/src/definitions/modules/progress.less +521 -494
  232. package/src/definitions/modules/rating.js +504 -522
  233. package/src/definitions/modules/rating.less +94 -101
  234. package/src/definitions/modules/search.js +1497 -1533
  235. package/src/definitions/modules/search.less +375 -382
  236. package/src/definitions/modules/shape.js +791 -808
  237. package/src/definitions/modules/shape.less +71 -76
  238. package/src/definitions/modules/sidebar.js +1070 -1097
  239. package/src/definitions/modules/sidebar.less +463 -472
  240. package/src/definitions/modules/slider.js +1286 -1305
  241. package/src/definitions/modules/slider.less +307 -308
  242. package/src/definitions/modules/sticky.js +873 -918
  243. package/src/definitions/modules/sticky.less +21 -23
  244. package/src/definitions/modules/tab.js +921 -962
  245. package/src/definitions/modules/tab.less +51 -52
  246. package/src/definitions/modules/toast.js +885 -886
  247. package/src/definitions/modules/toast.less +584 -586
  248. package/src/definitions/modules/transition.js +1040 -1076
  249. package/src/definitions/modules/transition.less +62 -28
  250. package/src/definitions/views/ad.less +206 -206
  251. package/src/definitions/views/card.less +968 -970
  252. package/src/definitions/views/comment.less +190 -198
  253. package/src/definitions/views/feed.less +220 -224
  254. package/src/definitions/views/item.less +436 -446
  255. package/src/definitions/views/statistic.less +271 -277
  256. package/src/theme.less +29 -32
  257. package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  258. package/src/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  259. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  260. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  261. package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  262. package/src/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  263. package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  264. package/src/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  265. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  266. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  267. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  268. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  269. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  270. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  271. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  272. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  273. package/src/themes/default/elements/container.variables +0 -7
  274. package/src/themes/default/elements/icon.variables +18 -0
  275. package/src/themes/default/elements/segment.variables +0 -7
  276. package/src/themes/default/globals/colors.less +589 -589
  277. package/src/themes/default/globals/site.variables +8 -0
  278. package/src/themes/default/globals/variation.variables +13 -1
  279. package/src/themes/default/modules/calendar.variables +2 -0
  280. package/src/themes/default/modules/nag.variables +1 -1
  281. package/src/themes/default/modules/popup.variables +2 -0
  282. package/src/themes/default/modules/transition.variables +8 -1
  283. package/tasks/admin/components/create.js +274 -276
  284. package/tasks/admin/components/init.js +123 -130
  285. package/tasks/admin/components/update.js +149 -157
  286. package/tasks/admin/distributions/create.js +184 -187
  287. package/tasks/admin/distributions/init.js +123 -130
  288. package/tasks/admin/distributions/update.js +145 -152
  289. package/tasks/admin/publish.js +5 -7
  290. package/tasks/admin/register.js +36 -38
  291. package/tasks/admin/release.js +8 -10
  292. package/tasks/build/assets.js +42 -39
  293. package/tasks/build/css.js +225 -216
  294. package/tasks/build/javascript.js +118 -113
  295. package/tasks/build.js +10 -10
  296. package/tasks/check-install.js +14 -16
  297. package/tasks/clean.js +5 -5
  298. package/tasks/collections/admin.js +34 -36
  299. package/tasks/collections/build.js +18 -20
  300. package/tasks/collections/docs.js +9 -11
  301. package/tasks/collections/install.js +9 -11
  302. package/tasks/collections/rtl.js +9 -11
  303. package/tasks/collections/various.js +8 -10
  304. package/tasks/config/admin/github.js +17 -17
  305. package/tasks/config/admin/oauth.example.js +4 -4
  306. package/tasks/config/admin/release.js +98 -98
  307. package/tasks/config/admin/templates/component-package.js +9 -10
  308. package/tasks/config/admin/templates/css-package.js +18 -20
  309. package/tasks/config/admin/templates/less-package.js +11 -13
  310. package/tasks/config/defaults.js +116 -114
  311. package/tasks/config/docs.js +23 -23
  312. package/tasks/config/npm/gulpfile.js +8 -9
  313. package/tasks/config/project/config.js +127 -134
  314. package/tasks/config/project/install.js +715 -713
  315. package/tasks/config/project/release.js +32 -38
  316. package/tasks/config/tasks.js +165 -156
  317. package/tasks/config/user.js +23 -26
  318. package/tasks/docs/build.js +97 -95
  319. package/tasks/docs/metadata.js +90 -96
  320. package/tasks/docs/serve.js +80 -81
  321. package/tasks/install.js +370 -378
  322. package/tasks/rtl/build.js +2 -2
  323. package/tasks/rtl/watch.js +2 -2
  324. package/tasks/version.js +4 -4
  325. package/tasks/watch.js +28 -30
  326. package/test/meteor/assets.js +10 -13
  327. package/test/meteor/fonts.js +12 -13
  328. package/test/modules/accordion.spec.js +6 -8
  329. package/test/modules/checkbox.spec.js +5 -7
  330. package/test/modules/dropdown.spec.js +5 -7
  331. package/test/modules/modal.spec.js +6 -8
  332. package/test/modules/module.spec.js +158 -178
  333. package/test/modules/popup.spec.js +5 -7
  334. package/test/modules/search.spec.js +5 -7
  335. package/test/modules/shape.spec.js +5 -7
  336. package/test/modules/sidebar.spec.js +5 -7
  337. package/test/modules/tab.spec.js +6 -8
  338. package/test/modules/transition.spec.js +5 -7
  339. 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,625 @@
22
22
  *******************************/
23
23
 
24
24
  .ui.button {
25
- cursor: pointer;
26
- display: inline-block;
25
+ cursor: pointer;
26
+ display: inline-block;
27
27
 
28
- min-height: 1em;
28
+ min-height: 1em;
29
29
 
30
- outline: none;
31
- border: none;
32
- vertical-align: @verticalAlign;
33
- background: @background;
34
- color: @textColor;
30
+ outline: none;
31
+ border: none;
32
+ vertical-align: @verticalAlign;
33
+ background: @background;
34
+ color: @textColor;
35
35
 
36
- font-family: @fontFamily;
36
+ font-family: @fontFamily;
37
37
 
38
- margin: 0 @horizontalMargin @verticalMargin 0;
39
- padding: @verticalPadding @horizontalPadding (@verticalPadding + @shadowOffset);
38
+ margin: 0 @horizontalMargin @verticalMargin 0;
39
+ padding: @verticalPadding @horizontalPadding (@verticalPadding + @shadowOffset);
40
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;
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
48
 
49
- border-radius: @borderRadius;
50
- box-shadow: @boxShadow;
49
+ border-radius: @borderRadius;
50
+ box-shadow: @boxShadow;
51
51
 
52
- user-select: none;
53
- transition: @transition;
54
- will-change: @willChange;
52
+ user-select: none;
53
+ transition: @transition;
54
+ will-change: @willChange;
55
55
 
56
- -webkit-tap-highlight-color: @tapColor;
56
+ -webkit-tap-highlight-color: @tapColor;
57
57
  }
58
58
 
59
-
60
59
  /*******************************
61
60
  States
62
61
  *******************************/
63
62
 
64
- /*--------------
63
+ /* --------------
65
64
  Hover
66
- ---------------*/
65
+ --------------- */
67
66
 
68
67
  .ui.button:hover {
69
- background-color: @hoverBackgroundColor;
70
- background-image: @hoverBackgroundImage;
71
- box-shadow: @hoverBoxShadow;
72
- color: @hoverColor;
68
+ background-color: @hoverBackgroundColor;
69
+ background-image: @hoverBackgroundImage;
70
+ box-shadow: @hoverBoxShadow;
71
+ color: @hoverColor;
73
72
  }
74
73
 
75
74
  .ui.button:hover .icon {
76
- opacity: @iconHoverOpacity;
75
+ opacity: @iconHoverOpacity;
77
76
  }
78
77
 
79
- /*--------------
78
+ /* --------------
80
79
  Focus
81
- ---------------*/
80
+ --------------- */
82
81
 
83
82
  .ui.button:focus {
84
- background-color: @focusBackgroundColor;
85
- color: @focusColor;
86
- background-image: @focusBackgroundImage;
87
- box-shadow: @focusBoxShadow;
83
+ background-color: @focusBackgroundColor;
84
+ color: @focusColor;
85
+ background-image: @focusBackgroundImage;
86
+ box-shadow: @focusBoxShadow;
88
87
  }
89
88
 
90
89
  .ui.button:focus .icon {
91
- opacity: @iconFocusOpacity;
90
+ opacity: @iconFocusOpacity;
92
91
  }
93
92
 
94
- /*--------------
93
+ /* --------------
95
94
  Down
96
- ---------------*/
95
+ --------------- */
97
96
 
98
97
  .ui.button:active,
99
98
  .ui.active.button:active {
100
- background-color: @downBackgroundColor;
101
- background-image: @downBackgroundImage;
102
- color: @downColor;
103
- box-shadow: @downBoxShadow;
99
+ background-color: @downBackgroundColor;
100
+ background-image: @downBackgroundImage;
101
+ color: @downColor;
102
+ box-shadow: @downBoxShadow;
104
103
  }
105
104
 
106
- /*--------------
105
+ /* --------------
107
106
  Active
108
- ---------------*/
107
+ --------------- */
109
108
 
110
109
  .ui.active.button {
111
- background-color: @activeBackgroundColor;
112
- background-image: @activeBackgroundImage;
113
- box-shadow: @activeBoxShadow;
114
- color: @activeColor;
110
+ background-color: @activeBackgroundColor;
111
+ background-image: @activeBackgroundImage;
112
+ box-shadow: @activeBoxShadow;
113
+ color: @activeColor;
115
114
  }
116
115
  .ui.active.button:hover {
117
- background-color: @activeHoverBackgroundColor;
118
- background-image: @activeHoverBackgroundImage;
119
- color: @activeHoverColor;
116
+ background-color: @activeHoverBackgroundColor;
117
+ background-image: @activeHoverBackgroundImage;
118
+ color: @activeHoverColor;
120
119
  }
121
120
  .ui.active.button:active {
122
- background-color: @activeBackgroundColor;
123
- background-image: @activeBackgroundImage;
121
+ background-color: @activeBackgroundColor;
122
+ background-image: @activeBackgroundImage;
124
123
  }
125
124
 
126
125
  & 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
- }
126
+ /* --------------
127
+ Loading
128
+ --------------- */
129
+
130
+ /* Specificity hack */
131
+ .ui.loading.loading.loading.loading.loading.loading.button {
132
+ position: relative;
133
+ cursor: default;
134
+ text-shadow: none !important;
135
+ color: transparent;
136
+ opacity: @loadingOpacity;
137
+ pointer-events: @loadingPointerEvents;
138
+ transition: @loadingTransition;
139
+ }
140
+ .ui.loading.button::before {
141
+ position: absolute;
142
+ content: '';
143
+ top: 50%;
144
+ left: 50%;
145
+
146
+ margin: @loaderMargin;
147
+ width: @loaderSize;
148
+ height: @loaderSize;
149
+
150
+ border-radius: @circularRadius;
151
+ border: @loaderLineWidth solid @invertedLoaderFillColor;
152
+ }
153
+ .ui.loading.button::after {
154
+ position: absolute;
155
+ content: '';
156
+ top: 50%;
157
+ left: 50%;
158
+
159
+ margin: @loaderMargin;
160
+ width: @loaderSize;
161
+ height: @loaderSize;
162
+
163
+ border-radius: @circularRadius;
164
+
165
+ animation: loader @loaderSpeed infinite linear;
166
+ border: @loaderLineWidth solid currentColor;
167
+ color: @invertedLoaderLineColor;
168
+
169
+ box-shadow: 0 0 0 1px transparent;
170
+ }
171
+ .ui.ui.ui.loading.button .label {
172
+ background-color: transparent;
173
+ border-color: transparent;
174
+ color: transparent;
175
+ }
176
+ & when (@variationButtonLabeledIcon) {
177
+ .ui.labeled.icon.loading.button .icon {
178
+ background-color: transparent;
179
+ box-shadow: none;
180
+ }
181
+ }
182
+ & when (@variationButtonBasic) {
183
+ .ui.basic.loading.button:not(.inverted)::before {
184
+ border-color: @loaderFillColor;
185
+ }
186
+ .ui.basic.loading.button:not(.inverted)::after {
187
+ border-color: @loaderLineColor;
188
+ }
189
+ }
191
190
  }
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
- }
191
+ & when (@variationButtonDisabled) {
192
+ /* -------------------
193
+ Disabled
194
+ -------------------- */
195
+
196
+ .ui.buttons .disabled.button:not(.basic),
197
+ .ui.disabled.button,
198
+ .ui.button:disabled,
199
+ .ui.disabled.button:hover,
200
+ .ui.disabled.active.button {
201
+ cursor: default;
202
+ opacity: @disabledOpacity !important;
203
+ background-image: none;
204
+ box-shadow: none;
205
+ pointer-events: none !important;
206
+ }
207
+ & when (@variationButtonBasic) {
208
+ /* Basic Group With Disabled */
209
+ .ui.basic.buttons .ui.disabled.button {
210
+ border-color: @disabledBorderColor;
211
+ }
212
+ }
214
213
  }
215
214
 
216
215
  /*******************************
217
216
  Types
218
217
  *******************************/
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
- }
218
+ & when (@variationButtonAnimated) {
219
+ /* -------------------
220
+ Animated
221
+ -------------------- */
222
+
223
+ .ui.animated.button {
224
+ position: relative;
225
+ overflow: hidden;
226
+ padding-right: 0 !important;
227
+ vertical-align: @animatedVerticalAlign;
228
+ z-index: @animatedZIndex;
229
+ }
230
+
231
+ .ui.animated.button .content {
232
+ will-change: transform, opacity;
233
+ }
234
+ .ui.animated.button .visible.content {
235
+ position: relative;
236
+ margin-right: @horizontalPadding;
237
+ }
238
+ .ui.animated.button .hidden.content {
239
+ position: absolute;
240
+ width: 100%;
241
+ }
242
+
243
+ /* Horizontal */
244
+ .ui.animated.button .visible.content,
245
+ .ui.animated.button .hidden.content {
246
+ transition: right @animationDuration @animationEasing 0s;
247
+ }
248
+ .ui.animated.button .visible.content {
249
+ left: auto;
250
+ right: 0;
251
+ }
252
+ .ui.animated.button .hidden.content {
253
+ top: 50%;
254
+ left: auto;
255
+ right: -100%;
256
+ margin-top: -(@lineHeight / 2);
257
+ }
258
+ .ui.animated.button:focus .visible.content,
259
+ .ui.animated.button:hover .visible.content {
260
+ left: auto;
261
+ right: 200%;
262
+ }
263
+ .ui.animated.button:focus .hidden.content,
264
+ .ui.animated.button:hover .hidden.content {
265
+ left: auto;
266
+ right: 0;
267
+ }
268
+
269
+ & when (@variationButtonVertical) {
270
+ /* Vertical */
271
+ .ui.vertical.animated.button .visible.content,
272
+ .ui.vertical.animated.button .hidden.content {
273
+ transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
274
+ }
275
+ .ui.vertical.animated.button .visible.content {
276
+ transform: translateY(0%);
277
+ right: auto;
278
+ }
279
+ .ui.vertical.animated.button .hidden.content {
280
+ top: -50%;
281
+ left: 0;
282
+ right: auto;
283
+ }
284
+ .ui.vertical.animated.button:focus .visible.content,
285
+ .ui.vertical.animated.button:hover .visible.content {
286
+ transform: translateY(200%);
287
+ right: auto;
288
+ }
289
+ .ui.vertical.animated.button:focus .hidden.content,
290
+ .ui.vertical.animated.button:hover .hidden.content {
291
+ top: 50%;
292
+ right: auto;
293
+ }
294
+ }
295
+ & when (@variationButtonAnimatedFade) {
296
+ /* Fade */
297
+ .ui.fade.animated.button .visible.content,
298
+ .ui.fade.animated.button .hidden.content {
299
+ transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
300
+ }
301
+ .ui.fade.animated.button .visible.content {
302
+ left: auto;
303
+ right: auto;
304
+ opacity: 1;
305
+ transform: scale(1);
306
+ }
307
+ .ui.fade.animated.button .hidden.content {
308
+ opacity: 0;
309
+ left: 0;
310
+ right: auto;
311
+ transform: scale(@fadeScaleHigh);
312
+ }
313
+ .ui.fade.animated.button:focus .visible.content,
314
+ .ui.fade.animated.button:hover .visible.content {
315
+ left: auto;
316
+ right: auto;
317
+ opacity: 0;
318
+ transform: scale(@fadeScaleLow);
319
+ }
320
+ .ui.fade.animated.button:focus .hidden.content,
321
+ .ui.fade.animated.button:hover .hidden.content {
322
+ left: 0;
323
+ right: auto;
324
+ opacity: 1;
325
+ transform: scale(1);
326
+ }
327
+ }
329
328
  }
330
329
 
331
330
  & when (@variationButtonInverted) {
332
- /*-------------------
333
- Inverted
334
- --------------------*/
331
+ /* -------------------
332
+ Inverted
333
+ -------------------- */
335
334
 
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
- }
335
+ .ui.inverted.button {
336
+ box-shadow: 0 0 0 @invertedBorderSize @white inset;
337
+ background: transparent none;
338
+ color: @white;
339
+ text-shadow: none !important;
340
+ }
342
341
 
343
- & when (@variationButtonGroups) {
344
- /* Group */
345
- .ui.inverted.buttons .button {
346
- margin: @invertedGroupButtonOffset;
342
+ & when (@variationButtonGroups) {
343
+ /* Group */
344
+ .ui.inverted.buttons .button {
345
+ margin: @invertedGroupButtonOffset;
346
+ }
347
+ .ui.inverted.buttons .button:first-child {
348
+ margin-left: 0;
349
+ }
350
+ & when (@variationButtonVertical) {
351
+ .ui.inverted.vertical.buttons .button {
352
+ margin: @invertedVerticalGroupButtonOffset;
353
+ }
354
+ .ui.inverted.vertical.buttons .button:first-child {
355
+ margin-top: 0;
356
+ }
357
+ }
347
358
  }
348
- .ui.inverted.buttons .button:first-child {
349
- margin-left: 0;
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;
350
367
  }
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
368
 
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
- }
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
+ }
376
376
 
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
- }
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
+ }
383
383
  }
384
384
 
385
- & when (@variationButtonLabeled) or (@variationButtonLabeledIcon){
386
- /*-------------------
387
- Labeled Button
388
- --------------------*/
385
+ & when (@variationButtonLabeled) or (@variationButtonLabeledIcon) {
386
+ /* -------------------
387
+ Labeled Button
388
+ -------------------- */
389
389
 
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
- }
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
+ }
436
436
  }
437
437
 
438
438
  & 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
- }
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
+ }
621
621
  }
622
622
 
623
- /*--------------
623
+ /* --------------
624
624
  Icon
625
- ---------------*/
625
+ --------------- */
626
626
 
627
627
  .ui.button > .icon:not(.button) {
628
- height: @iconHeight;
629
- opacity: @iconOpacity;
630
- transition: @iconTransition;
631
- color: @iconColor;
628
+ height: @iconHeight;
629
+ opacity: @iconOpacity;
630
+ transition: @iconTransition;
631
+ color: @iconColor;
632
632
  }
633
633
 
634
634
  .ui.button:not(.icon) > .icon:not(.button):not(.dropdown),
635
635
  .ui.button:not(.icon) > .icons:not(.button):not(.dropdown) {
636
- margin: @iconMargin;
637
- vertical-align: @iconVerticalAlign;
636
+ margin: @iconMargin;
637
+ vertical-align: @iconVerticalAlign;
638
638
  }
639
639
  .ui.button:not(.icon) > .icons:not(.button):not(.dropdown) > .icon {
640
- vertical-align: @iconVerticalAlign;
640
+ vertical-align: @iconVerticalAlign;
641
641
  }
642
642
  .ui.button:not(.icon) > .right.icon:not(.button):not(.dropdown) {
643
- margin: @rightIconMargin;
643
+ margin: @rightIconMargin;
644
644
  }
645
645
 
646
646
  /*******************************
@@ -648,1403 +648,1381 @@
648
648
  *******************************/
649
649
 
650
650
  & 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
- }
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
+ }
672
+ }
672
673
  }
673
-
674
- }
675
674
  }
676
675
 
677
676
  & 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
- }
677
+ /* -------------------
678
+ Floated
679
+ -------------------- */
680
+
681
+ .ui[class*="left floated"].buttons,
682
+ .ui[class*="left floated"].button {
683
+ float: left;
684
+ margin-left: 0;
685
+ margin-right: @floatedMargin;
686
+ }
687
+
688
+ .ui[class*="right floated"].buttons,
689
+ .ui[class*="right floated"].button {
690
+ float: right;
691
+ margin-right: 0;
692
+ margin-left: @floatedMargin;
693
+ }
695
694
  }
696
695
 
697
696
  & 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
- }
697
+ /* -------------------
698
+ Compact
699
+ -------------------- */
700
+
701
+ .ui.compact.buttons .button,
702
+ .ui.compact.button {
703
+ padding: @compactVerticalPadding @compactHorizontalPadding ( @compactVerticalPadding + @shadowOffset );
704
+ }
705
+
706
+ .ui.compact.icon.buttons .button,
707
+ .ui.compact.icon.button {
708
+ padding: @compactVerticalPadding @compactVerticalPadding ( @compactVerticalPadding + @shadowOffset );
709
+ }
710
+
711
+ .ui.compact.labeled.icon.buttons .button,
712
+ .ui.compact.labeled.icon.button {
713
+ padding: @compactVerticalPadding (@compactHorizontalPadding + @labeledIconWidth) ( @compactVerticalPadding + @shadowOffset );
714
+ }
715
+
716
+ .ui.compact.labeled.icon.buttons .button > .icon,
717
+ .ui.compact.labeled.icon.button > .icon {
718
+ padding: @compactVerticalPadding 0 @compactVerticalPadding 0;
719
+ }
721
720
  }
722
- /*-------------------
721
+
722
+ /* -------------------
723
723
  Sizes
724
- --------------------*/
724
+ -------------------- */
725
725
 
726
726
  .ui.buttons .button,
727
727
  .ui.buttons .or,
728
728
  .ui.button {
729
- font-size: @medium;
729
+ font-size: @medium;
730
730
  }
731
731
 
732
732
  & 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
- })
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
+ })
743
743
  }
744
744
 
745
745
  & 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
- }
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
+ }
761
761
  }
762
762
  & when (@variationButtonAnimated) {
763
- .ui.animated.button > .content > .icon {
764
- vertical-align: top;
765
- }
763
+ .ui.animated.button > .content > .icon {
764
+ vertical-align: top;
765
+ }
766
766
  }
767
767
 
768
768
  & 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
- }
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
+ }
870
790
 
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;
791
+ .ui.basic.buttons .button {
792
+ border-radius: 0;
793
+ }
877
794
  }
878
795
 
879
- .ui.basic.inverted.buttons .active.button:hover,
880
- .ui.basic.inverted.active.button:hover {
881
- background-color: @strongTransparentWhite;
882
- box-shadow: @basicInvertedHoverBoxShadow;
796
+ .ui.basic.buttons .button:hover,
797
+ .ui.basic.button:hover {
798
+ background: @basicHoverBackground;
799
+ color: @basicHoverTextColor;
800
+ box-shadow: @basicHoverBoxShadow;
883
801
  }
884
- }
885
802
 
886
- & when (@variationButtonGroups) {
887
- /* Basic Group */
888
- .ui.basic.buttons:not(.inverted) .button:not(.basic) {
889
- border-right: @basicGroupBorder;
890
- box-shadow: none;
803
+ .ui.basic.buttons .button:focus,
804
+ .ui.basic.button:focus {
805
+ background: @basicFocusBackground;
806
+ color: @basicFocusTextColor;
807
+ box-shadow: @basicFocusBoxShadow;
891
808
  }
892
809
 
893
- & when (@variationButtonVertical) {
894
- .ui.basic.vertical.buttons .button {
895
- border-left: none;
896
- border-left-width: 0;
897
- border-top: @basicGroupBorder;
898
- }
810
+ .ui.basic.buttons .button:active,
811
+ .ui.basic.button:active {
812
+ background: @basicDownBackground;
813
+ color: @basicDownTextColor;
814
+ box-shadow: @basicDownBoxShadow;
815
+ }
899
816
 
900
- .ui.basic.vertical.buttons:not(.spaced) .button:first-child {
901
- border-top: none;
902
- }
817
+ .ui.basic.buttons .active.button,
818
+ .ui.basic.active.button {
819
+ background: @basicActiveBackground;
820
+ box-shadow: @basicActiveBoxShadow;
821
+ color: @basicActiveTextColor;
903
822
  }
904
- }
905
- }
906
823
 
907
- & when (@variationButtonTertiary) {
908
- /*-------------------
909
- Tertiary
910
- --------------------*/
824
+ .ui.basic.buttons .active.button:hover,
825
+ .ui.basic.active.button:hover {
826
+ background-color: @transparentBlack;
827
+ }
828
+ & when (@variationButtonGroups) {
911
829
 
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;
830
+ .ui.basic.buttons .button:hover {
831
+ box-shadow: @basicHoverBoxShadow inset;
832
+ }
921
833
 
922
- & when (@tertiaryWithUnderline = true) {
923
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
924
- }
834
+ .ui.basic.buttons .button:active {
835
+ box-shadow: @basicDownBoxShadow inset;
836
+ }
925
837
 
926
- & when (@tertiaryWithOverline = true) {
927
- box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryLineColor;
838
+ .ui.basic.buttons .active.button {
839
+ box-shadow: @basicActiveBoxShadow;
840
+ }
928
841
  }
842
+ & when (@variationButtonInverted) {
843
+ /* Standard Basic Inverted */
929
844
 
930
- & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
931
- box-shadow: none;
932
- }
845
+ .ui.basic.inverted.buttons .button,
846
+ .ui.basic.inverted.button {
847
+ background-color: transparent;
848
+ color: @offWhite;
849
+ box-shadow: @basicInvertedBoxShadow;
850
+ }
933
851
 
934
- color: @tertiaryTextColor;
935
- background: @tertiaryBackgroundColor;
936
- }
852
+ .ui.basic.inverted.buttons .button:hover,
853
+ .ui.basic.inverted.button:hover {
854
+ color: @white;
855
+ box-shadow: @basicInvertedHoverBoxShadow;
856
+ }
937
857
 
938
- .ui.tertiary.button:hover {
858
+ .ui.basic.inverted.buttons .button:focus,
859
+ .ui.basic.inverted.button:focus {
860
+ color: @white;
861
+ box-shadow: @basicInvertedFocusBoxShadow;
862
+ }
939
863
 
940
- & when (@tertiaryHoverWithUnderline = true) {
941
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryHoverLineColor;
942
- }
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
+ }
870
+
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;
877
+ }
943
878
 
944
- & when (@tertiaryHoverWithOverline = true) {
945
- box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryHoverLineColor;
879
+ .ui.basic.inverted.buttons .active.button:hover,
880
+ .ui.basic.inverted.active.button:hover {
881
+ background-color: @strongTransparentWhite;
882
+ box-shadow: @basicInvertedHoverBoxShadow;
883
+ }
946
884
  }
947
885
 
948
- & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
949
- box-shadow: none;
886
+ & when (@variationButtonGroups) {
887
+ /* Basic Group */
888
+ .ui.basic.buttons:not(.inverted) .button:not(.basic) {
889
+ border-right: @basicGroupBorder;
890
+ box-shadow: none;
891
+ }
892
+
893
+ & when (@variationButtonVertical) {
894
+ .ui.basic.vertical.buttons .button {
895
+ border-left: none;
896
+ border-left-width: 0;
897
+ border-top: @basicGroupBorder;
898
+ }
899
+
900
+ .ui.basic.vertical.buttons:not(.spaced) .button:first-child {
901
+ border-top: none;
902
+ }
903
+ }
950
904
  }
905
+ }
906
+
907
+ & when (@variationButtonTertiary) {
908
+ /* -------------------
909
+ Tertiary
910
+ -------------------- */
911
+
912
+ /* Overline Mixin */
913
+ .ui.tertiary.button {
914
+ transition: color @defaultDuration @defaultEasing !important;
915
+ border-radius: 0;
916
+ margin:
917
+ (@verticalPadding - @tertiaryVerticalPadding)
918
+ (@horizontalMargin)
919
+ (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
920
+ 0 !important;
921
+ padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;
922
+
923
+ & when (@tertiaryWithUnderline = true) {
924
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
925
+ }
926
+
927
+ & when (@tertiaryWithOverline = true) {
928
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryLineColor;
929
+ }
951
930
 
952
- color: @tertiaryHoverColor;
953
- background: @tertiaryHoverBackgroundColor;
954
- }
931
+ & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false) {
932
+ box-shadow: none;
933
+ }
955
934
 
956
- .ui.tertiary.button:focus {
957
- & when (@tertiaryFocusWithUnderline = true) {
958
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryFocusLineColor;
935
+ color: @tertiaryTextColor;
936
+ background: @tertiaryBackgroundColor;
959
937
  }
960
938
 
961
- & when (@tertiaryFocusWithOverline = true) {
962
- box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryFocusLineColor;
939
+ .ui.tertiary.button:hover {
940
+
941
+ & when (@tertiaryHoverWithUnderline = true) {
942
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryHoverLineColor;
943
+ }
944
+
945
+ & when (@tertiaryHoverWithOverline = true) {
946
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryHoverLineColor;
947
+ }
948
+
949
+ & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
950
+ box-shadow: none;
951
+ }
952
+
953
+ color: @tertiaryHoverColor;
954
+ background: @tertiaryHoverBackgroundColor;
963
955
  }
964
956
 
965
- & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false){
966
- box-shadow: none;
957
+ .ui.tertiary.button:focus {
958
+ & when (@tertiaryFocusWithUnderline = true) {
959
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryFocusLineColor;
960
+ }
961
+
962
+ & when (@tertiaryFocusWithOverline = true) {
963
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryFocusLineColor;
964
+ }
965
+
966
+ & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
967
+ box-shadow: none;
968
+ }
969
+
970
+ color: @tertiaryFocusColor;
971
+ background: @tertiaryFocusBackgroundColor;
967
972
  }
968
973
 
969
- color: @tertiaryFocusColor;
970
- background: @tertiaryFocusBackgroundColor;
971
- }
974
+ .ui.tertiary.button:active {
975
+ & when (@tertiaryActiveWithUnderline = true) {
976
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryActiveLineColor;
977
+ border-radius: @borderRadius @borderRadius 0 0;
978
+ }
972
979
 
973
- .ui.tertiary.button:active {
974
- & when (@tertiaryActiveWithUnderline = true) {
975
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryActiveLineColor;
976
- border-radius: @borderRadius @borderRadius 0 0;
980
+ & when (@tertiaryActiveWithOverline = true) {
981
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryActiveLineColor;
982
+ border-radius: 0 0 @borderRadius @borderRadius;
983
+ }
984
+
985
+ & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
986
+ box-shadow: none;
987
+ border-radius: 0;
988
+ }
989
+
990
+ color: @tertiaryActiveColor;
991
+ background: @tertiaryActiveBackgroundColor;
977
992
  }
993
+ }
978
994
 
979
- & when (@tertiaryActiveWithOverline = true) {
980
- box-shadow: inset 0 @tertiaryLineHeight 0 @tertiaryActiveLineColor;
981
- border-radius: 0 0 @borderRadius @borderRadius;
995
+ & when (@variationButtonLabeledIcon) {
996
+ /* --------------
997
+ Labeled Icon
998
+ --------------- */
999
+
1000
+ .ui.labeled.icon.buttons .button,
1001
+ .ui.labeled.icon.button {
1002
+ position: relative;
1003
+ padding-left: @labeledIconPadding !important;
1004
+ padding-right: @horizontalPadding !important;
1005
+ }
1006
+
1007
+ /* Left Labeled */
1008
+ .ui.labeled.icon.buttons > .button > .icon,
1009
+ .ui.labeled.icon.button > .icon {
1010
+ position: absolute;
1011
+ top: 0;
1012
+ left: 0;
1013
+ height: 100%;
1014
+ line-height: 1;
1015
+ border-radius: 0;
1016
+ border-top-left-radius: inherit;
1017
+ border-bottom-left-radius: inherit;
1018
+ text-align: center;
1019
+ animation: none;
1020
+ padding: @verticalPadding 0 @verticalPadding 0;
1021
+
1022
+ margin: @labeledIconMargin;
1023
+ width: @labeledIconWidth;
1024
+ background-color: @labeledIconBackgroundColor;
1025
+ color: @labeledIconColor;
1026
+ box-shadow: @labeledIconLeftShadow;
1027
+ }
1028
+
1029
+ /* Right Labeled */
1030
+ .ui[class*="right labeled"].icon.button {
1031
+ padding-right: @labeledIconPadding !important;
1032
+ padding-left: @horizontalPadding !important;
1033
+ }
1034
+
1035
+ .ui[class*="right labeled"].icon.button > .icon {
1036
+ left: auto;
1037
+ right: 0;
1038
+ border-radius: 0;
1039
+ border-top-right-radius: inherit;
1040
+ border-bottom-right-radius: inherit;
1041
+ box-shadow: @labeledIconRightShadow;
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;
982
1062
  }
983
1063
 
984
- & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false){
985
- box-shadow: none;
986
- border-radius: 0;
1064
+ .ui.labeled.icon.buttons .button:last-child > .icon {
1065
+ border-top-right-radius: @borderRadius;
1066
+ border-bottom-right-radius: @borderRadius;
987
1067
  }
988
1068
 
989
- color: @tertiaryActiveColor;
990
- background: @tertiaryActiveBackgroundColor;
991
- }
992
- }
1069
+ .ui.vertical.labeled.icon.buttons .button:first-child > .icon {
1070
+ border-radius: 0;
1071
+ border-top-left-radius: @borderRadius;
1072
+ }
993
1073
 
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
- }
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
+ }
1083
1083
  }
1084
1084
 
1085
1085
  & 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
- }
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
+ }
1105
1105
  }
1106
1106
 
1107
1107
  & 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
- }
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
+ }
1120
1120
  }
1121
1121
 
1122
1122
  & 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;
1123
+ /* -------------------
1124
+ Or Buttons
1125
+ -------------------- */
1126
+
1127
+ .ui.buttons .or {
1128
+ position: relative;
1129
+ width: @orGap;
1130
+ height: @orHeight;
1131
+ z-index: @orZIndex;
1132
+ }
1138
1133
 
1139
- content: @orText;
1140
- top: 50%;
1141
- left: 50%;
1142
- background-color: @orBackgroundColor;
1143
- text-shadow: @orTextShadow;
1134
+ .ui.buttons .or::before {
1135
+ position: absolute;
1136
+ text-align: center;
1137
+ border-radius: @circularRadius;
1144
1138
 
1145
- margin-top: @orVerticalOffset;
1146
- margin-left: @orHorizontalOffset;
1139
+ content: @orText;
1140
+ top: 50%;
1141
+ left: 50%;
1142
+ background-color: @orBackgroundColor;
1143
+ text-shadow: @orTextShadow;
1147
1144
 
1148
- width: @orCircleSize;
1149
- height: @orCircleSize;
1145
+ margin-top: @orVerticalOffset;
1146
+ margin-left: @orHorizontalOffset;
1150
1147
 
1151
- line-height: @orLineHeight;
1152
- color: @orTextColor;
1148
+ width: @orCircleSize;
1149
+ height: @orCircleSize;
1153
1150
 
1154
- font-style: @orTextStyle;
1155
- font-weight: @orTextWeight;
1151
+ line-height: @orLineHeight;
1152
+ color: @orTextColor;
1156
1153
 
1157
- box-shadow: @orBoxShadow;
1158
- }
1154
+ font-style: @orTextStyle;
1155
+ font-weight: @orTextWeight;
1159
1156
 
1160
- .ui.buttons .or[data-text]::before {
1161
- content: attr(data-text);
1162
- }
1157
+ box-shadow: @orBoxShadow;
1158
+ }
1163
1159
 
1164
- /* Fluid Or */
1165
- .ui.fluid.buttons .or {
1166
- width: 0 !important;
1167
- }
1160
+ .ui.buttons .or[data-text]::before {
1161
+ content: attr(data-text);
1162
+ }
1168
1163
 
1169
- .ui.fluid.buttons .or::after {
1170
- display: none;
1171
- }
1164
+ /* Fluid Or */
1165
+ .ui.fluid.buttons .or {
1166
+ width: 0 !important;
1167
+ }
1172
1168
 
1169
+ .ui.fluid.buttons .or::after {
1170
+ display: none;
1171
+ }
1173
1172
  }
1174
1173
 
1175
1174
  & 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;
1175
+ /* -------------------
1176
+ Attached
1177
+ -------------------- */
1204
1178
 
1205
- padding-right: @attachedHorizontalPadding;
1206
- border-radius: @borderRadius 0 0 @borderRadius;
1207
- }
1179
+ /* Singular */
1180
+ .ui.attached.button {
1181
+ position: relative;
1182
+ display: block;
1183
+ margin: 0;
1184
+ border-radius: 0;
1185
+ box-shadow: @attachedBoxShadow;
1186
+ }
1208
1187
 
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
- }
1188
+ /* Top / Bottom */
1189
+ .ui.attached.top.button {
1190
+ border-radius: @borderRadius @borderRadius 0 0;
1191
+ }
1301
1192
 
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
- }
1193
+ .ui.attached.bottom.button {
1194
+ border-radius: 0 0 @borderRadius @borderRadius;
1195
+ }
1320
1196
 
1321
- .ui.two.buttons > .button {
1322
- width: 50%;
1323
- }
1197
+ /* Left / Right */
1198
+ .ui.left.attached.button {
1199
+ display: inline-block;
1200
+ border-left: none;
1201
+ text-align: right;
1202
+
1203
+ padding-right: @attachedHorizontalPadding;
1204
+ border-radius: @borderRadius 0 0 @borderRadius;
1205
+ }
1324
1206
 
1325
- .ui.three.buttons {
1326
- width: 100%;
1327
- }
1207
+ .ui.right.attached.button {
1208
+ display: inline-block;
1209
+ text-align: left;
1210
+ padding-left: @attachedHorizontalPadding;
1211
+ border-radius: 0 @borderRadius @borderRadius 0;
1212
+ }
1328
1213
 
1329
- .ui.three.buttons > .button {
1330
- width: 33.333%;
1331
- }
1214
+ /* Plural */
1215
+ .ui.attached.buttons {
1216
+ position: relative;
1217
+ display: flex;
1218
+ border-radius: 0;
1219
+ width: auto !important;
1220
+ z-index: @attachedZIndex;
1221
+ margin-left: @attachedOffset;
1222
+ margin-right: @attachedOffset;
1223
+ }
1332
1224
 
1333
- .ui.four.buttons {
1334
- width: 100%;
1335
- }
1225
+ .ui.attached.buttons .button {
1226
+ margin: 0;
1227
+ }
1336
1228
 
1337
- .ui.four.buttons > .button {
1338
- width: 25%;
1339
- }
1229
+ .ui.attached.buttons .button:first-child {
1230
+ border-radius: 0;
1231
+ }
1340
1232
 
1341
- .ui.five.buttons {
1342
- width: 100%;
1343
- }
1233
+ .ui.attached.buttons .button:last-child {
1234
+ border-radius: 0;
1235
+ }
1344
1236
 
1345
- .ui.five.buttons > .button {
1346
- width: 20%;
1347
- }
1237
+ /* Top / Bottom */
1238
+ .ui[class*="top attached"].buttons {
1239
+ margin-bottom: @topAttachedOffset;
1240
+ border-radius: @borderRadius @borderRadius 0 0;
1241
+ }
1348
1242
 
1349
- .ui.six.buttons {
1350
- width: 100%;
1351
- }
1243
+ .ui[class*="top attached"].buttons .button:first-child {
1244
+ border-radius: @borderRadius 0 0 0;
1245
+ }
1352
1246
 
1353
- .ui.six.buttons > .button {
1354
- width: 16.666%;
1355
- }
1247
+ .ui[class*="top attached"].buttons .button:last-child {
1248
+ border-radius: 0 @borderRadius 0 0;
1249
+ }
1356
1250
 
1357
- .ui.seven.buttons {
1358
- width: 100%;
1359
- }
1251
+ .ui[class*="bottom attached"].buttons {
1252
+ margin-top: @bottomAttachedOffset;
1253
+ border-radius: 0 0 @borderRadius @borderRadius;
1254
+ }
1360
1255
 
1361
- .ui.seven.buttons > .button {
1362
- width: 14.285%;
1363
- }
1256
+ .ui[class*="bottom attached"].buttons .button:first-child {
1257
+ border-radius: 0 0 0 @borderRadius;
1258
+ }
1364
1259
 
1365
- .ui.eight.buttons {
1366
- width: 100%;
1367
- }
1260
+ .ui[class*="bottom attached"].buttons .button:last-child {
1261
+ border-radius: 0 0 @borderRadius 0;
1262
+ }
1368
1263
 
1369
- .ui.eight.buttons > .button {
1370
- width: 12.500%;
1371
- }
1264
+ /* Left / Right */
1265
+ .ui[class*="left attached"].buttons {
1266
+ display: inline-flex;
1267
+ margin-right: 0;
1268
+ margin-left: @attachedOffset;
1269
+ border-radius: 0 @borderRadius @borderRadius 0;
1270
+ }
1372
1271
 
1373
- .ui.nine.buttons {
1374
- width: 100%;
1375
- }
1272
+ .ui[class*="left attached"].buttons .button:first-child {
1273
+ margin-left: @attachedOffset;
1274
+ border-radius: 0 @borderRadius 0 0;
1275
+ }
1376
1276
 
1377
- .ui.nine.buttons > .button {
1378
- width: 11.11%;
1379
- }
1277
+ .ui[class*="left attached"].buttons .button:last-child {
1278
+ margin-left: @attachedOffset;
1279
+ border-radius: 0 0 @borderRadius 0;
1280
+ }
1380
1281
 
1381
- .ui.ten.buttons {
1382
- width: 100%;
1383
- }
1282
+ .ui[class*="right attached"].buttons {
1283
+ display: inline-flex;
1284
+ margin-left: 0;
1285
+ margin-right: @attachedOffset;
1286
+ border-radius: @borderRadius 0 0 @borderRadius;
1287
+ }
1384
1288
 
1385
- .ui.ten.buttons > .button {
1386
- width: 10%;
1387
- }
1289
+ .ui[class*="right attached"].buttons .button:first-child {
1290
+ margin-left: @attachedOffset;
1291
+ border-radius: @borderRadius 0 0 0;
1292
+ }
1388
1293
 
1389
- .ui.eleven.buttons {
1390
- width: 100%;
1391
- }
1294
+ .ui[class*="right attached"].buttons .button:last-child {
1295
+ margin-left: @attachedOffset;
1296
+ border-radius: 0 0 0 @borderRadius;
1297
+ }
1298
+ }
1392
1299
 
1393
- .ui.eleven.buttons > .button {
1394
- width: 9.09%;
1395
- }
1300
+ & when (@variationButtonFluid) {
1301
+ /* -------------------
1302
+ Fluid
1303
+ -------------------- */
1396
1304
 
1397
- .ui.twelve.buttons {
1398
- width: 100%;
1399
- }
1305
+ .ui.fluid.buttons,
1306
+ .ui.fluid.button {
1307
+ width: 100%;
1308
+ }
1400
1309
 
1401
- .ui.twelve.buttons > .button {
1402
- width: 8.3333%;
1403
- }
1310
+ .ui.fluid.button {
1311
+ display: block;
1312
+ }
1404
1313
  }
1314
+ & when (@variationButtonEqualWidth) {
1315
+ .ui.two.buttons {
1316
+ width: 100%;
1317
+ }
1405
1318
 
1406
- & when (@variationButtonVertical) {
1407
- & when (@variationButtonFluid) {
1408
- /* Fluid Vertical Buttons */
1409
- .ui.fluid.vertical.buttons,
1410
- .ui.fluid.vertical.buttons > .button {
1411
- display: flex;
1412
- width: auto;
1413
- justify-content: center;
1319
+ .ui.two.buttons > .button {
1320
+ width: 50%;
1414
1321
  }
1415
- }
1416
1322
 
1417
- & when (@variationButtonEqualWidth) {
1418
- .ui.two.vertical.buttons > .button {
1419
- height: 50%;
1323
+ .ui.three.buttons {
1324
+ width: 100%;
1420
1325
  }
1421
1326
 
1422
- .ui.three.vertical.buttons > .button {
1423
- height: 33.333%;
1327
+ .ui.three.buttons > .button {
1328
+ width: 33.333%;
1424
1329
  }
1425
1330
 
1426
- .ui.four.vertical.buttons > .button {
1427
- height: 25%;
1331
+ .ui.four.buttons {
1332
+ width: 100%;
1428
1333
  }
1429
1334
 
1430
- .ui.five.vertical.buttons > .button {
1431
- height: 20%;
1335
+ .ui.four.buttons > .button {
1336
+ width: 25%;
1432
1337
  }
1433
1338
 
1434
- .ui.six.vertical.buttons > .button {
1435
- height: 16.666%;
1339
+ .ui.five.buttons {
1340
+ width: 100%;
1436
1341
  }
1437
1342
 
1438
- .ui.seven.vertical.buttons > .button {
1439
- height: 14.285%;
1343
+ .ui.five.buttons > .button {
1344
+ width: 20%;
1440
1345
  }
1441
1346
 
1442
- .ui.eight.vertical.buttons > .button {
1443
- height: 12.500%;
1347
+ .ui.six.buttons {
1348
+ width: 100%;
1444
1349
  }
1445
1350
 
1446
- .ui.nine.vertical.buttons > .button {
1447
- height: 11.11%;
1351
+ .ui.six.buttons > .button {
1352
+ width: 16.666%;
1448
1353
  }
1449
1354
 
1450
- .ui.ten.vertical.buttons > .button {
1451
- height: 10%;
1355
+ .ui.seven.buttons {
1356
+ width: 100%;
1452
1357
  }
1453
1358
 
1454
- .ui.eleven.vertical.buttons > .button {
1455
- height: 9.09%;
1359
+ .ui.seven.buttons > .button {
1360
+ width: 14.285%;
1456
1361
  }
1457
1362
 
1458
- .ui.twelve.vertical.buttons > .button {
1459
- height: 8.3333%;
1363
+ .ui.eight.buttons {
1364
+ width: 100%;
1460
1365
  }
1461
- }
1462
- }
1463
1366
 
1464
- /*-------------------
1465
- Colors
1466
- --------------------*/
1367
+ .ui.eight.buttons > .button {
1368
+ width: 12.500%;
1369
+ }
1467
1370
 
1468
- & when not (@variationButtonColors = false) {
1469
- each(@variationButtonColors, {
1470
- @color: @value;
1471
- @c: @colors[@@color][color];
1472
- @h: @colors[@@color][hover];
1473
- @f: @colors[@@color][focus];
1474
- @d: @colors[@@color][down];
1475
- @a: @colors[@@color][active];
1476
- @t: @colors[@@color][text];
1477
- @s: @colors[@@color][shadow];
1478
- @l: @colors[@@color][light];
1479
- @lh: @colors[@@color][lightHover];
1480
- @lf: @colors[@@color][lightFocus];
1481
- @ld: @colors[@@color][lightDown];
1482
- @la: @colors[@@color][lightActive];
1483
- @lt: @colors[@@color][lightText];
1484
- @ls: @colors[@@color][lightShadow];
1485
- @ty: @colors[@@color][tertiary];
1486
- @tyh: @colors[@@color][tertiaryHover];
1487
- @tyf: @colors[@@color][tertiaryFocus];
1488
- @tya: @colors[@@color][tertiaryActive];
1489
- @isDark: @colors[@@color][isDark];
1490
- @isVeryDark: @colors[@@color][isVeryDark];
1491
-
1492
- .ui.@{color}.buttons .button,
1493
- .ui.@{color}.button {
1494
- background-color: @c;
1495
- color: @t;
1496
- text-shadow: @s;
1497
- background-image: @coloredBackgroundImage;
1498
- }
1499
- .ui.@{color}.button {
1500
- box-shadow: @coloredBoxShadow;
1501
- }
1502
- .ui.@{color}.buttons .button:hover,
1503
- .ui.@{color}.button:hover {
1504
- background-color: @h;
1505
- color: @t;
1506
- text-shadow: @s;
1507
- }
1508
- .ui.@{color}.buttons .button:focus,
1509
- .ui.@{color}.button:focus {
1510
- background-color: @f;
1511
- color: @t;
1512
- text-shadow: @s;
1513
- }
1514
- .ui.@{color}.buttons .button:active,
1515
- .ui.@{color}.button:active {
1516
- background-color: @d;
1517
- color: @t;
1518
- text-shadow: @s;
1519
- }
1520
- .ui.@{color}.buttons .active.button,
1521
- .ui.@{color}.buttons .active.button:active,
1522
- .ui.@{color}.active.button,
1523
- .ui.@{color}.button .active.button:active {
1524
- background-color: @a;
1525
- color: @t;
1526
- text-shadow: @s;
1371
+ .ui.nine.buttons {
1372
+ width: 100%;
1527
1373
  }
1528
1374
 
1529
- & when (@variationButtonBasic) {
1530
- /* Basic */
1531
- .ui.basic.@{color}.buttons .button,
1532
- .ui.basic.@{color}.button {
1533
- background: transparent;
1534
- box-shadow: 0 0 0 @basicBorderSize @c inset;
1535
- color: @c;
1536
- }
1537
- .ui.basic.@{color}.buttons .button:hover,
1538
- .ui.basic.@{color}.button:hover {
1539
- background: transparent;
1540
- box-shadow: 0 0 0 @basicColoredBorderSize @h inset;
1541
- color: @h;
1542
- }
1543
- .ui.basic.@{color}.buttons .button:focus,
1544
- .ui.basic.@{color}.button:focus {
1545
- background: transparent;
1546
- box-shadow: 0 0 0 @basicColoredBorderSize @f inset;
1547
- color: @h;
1548
- }
1549
- .ui.basic.@{color}.buttons .active.button,
1550
- .ui.basic.@{color}.active.button {
1551
- background: transparent;
1552
- box-shadow: 0 0 0 @basicColoredBorderSize @a inset;
1553
- color: @d;
1554
- }
1555
- .ui.basic.@{color}.buttons .button:active,
1556
- .ui.basic.@{color}.button:active {
1557
- box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
1558
- color: @d;
1559
- }
1375
+ .ui.nine.buttons > .button {
1376
+ width: 11.11%;
1560
1377
  }
1561
- & when (@variationButtonInverted) {
1562
- /* Inverted */
1563
- .ui.inverted.@{color}.buttons .button,
1564
- .ui.inverted.@{color}.button {
1565
- background-color: transparent;
1566
1378
 
1567
- & when (@isDark) {
1568
- box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset;
1569
- color: @invertedTextColor;
1570
- }
1379
+ .ui.ten.buttons {
1380
+ width: 100%;
1381
+ }
1571
1382
 
1572
- & when not (@isDark) {
1573
- box-shadow: 0 0 0 @invertedBorderSize @l inset;
1574
- color: @l;
1575
- }
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
- }
1383
+ .ui.ten.buttons > .button {
1384
+ width: 10%;
1385
+ }
1654
1386
 
1655
- & when not (@isDark) {
1656
- color: @l;
1657
- }
1658
- }
1659
- }
1387
+ .ui.eleven.buttons {
1388
+ width: 100%;
1660
1389
  }
1661
1390
 
1662
- & when (@variationButtonTertiary) {
1663
- /* Tertiary */
1391
+ .ui.eleven.buttons > .button {
1392
+ width: 9.09%;
1393
+ }
1664
1394
 
1665
- .ui.tertiary.@{color}.buttons .button,
1666
- .ui.tertiary.@{color}.buttons .tertiary.button,
1667
- .ui.tertiary.@{color}.button {
1668
- background: transparent;
1395
+ .ui.twelve.buttons {
1396
+ width: 100%;
1397
+ }
1669
1398
 
1399
+ .ui.twelve.buttons > .button {
1400
+ width: 8.3333%;
1401
+ }
1402
+ }
1670
1403
 
1404
+ & when (@variationButtonVertical) {
1405
+ & when (@variationButtonFluid) {
1406
+ /* Fluid Vertical Buttons */
1407
+ .ui.fluid.vertical.buttons,
1408
+ .ui.fluid.vertical.buttons > .button {
1409
+ display: flex;
1410
+ width: auto;
1411
+ justify-content: center;
1412
+ }
1413
+ }
1671
1414
 
1672
- & when (@tertiaryWithUnderline = true) {
1673
- box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
1415
+ & when (@variationButtonEqualWidth) {
1416
+ .ui.two.vertical.buttons > .button {
1417
+ height: 50%;
1674
1418
  }
1675
1419
 
1676
- & when (@tertiaryWithOverline = true) {
1677
- box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
1420
+ .ui.three.vertical.buttons > .button {
1421
+ height: 33.333%;
1678
1422
  }
1679
1423
 
1680
- & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
1681
- box-shadow: none;
1424
+ .ui.four.vertical.buttons > .button {
1425
+ height: 25%;
1682
1426
  }
1683
1427
 
1684
- color: @c;
1685
- }
1428
+ .ui.five.vertical.buttons > .button {
1429
+ height: 20%;
1430
+ }
1431
+
1432
+ .ui.six.vertical.buttons > .button {
1433
+ height: 16.666%;
1434
+ }
1686
1435
 
1687
- .ui.tertiary.@{color}.buttons .button:hover,
1688
- .ui.tertiary.@{color}.buttons button:hover,
1689
- .ui.tertiary.@{color}.button:hover {
1436
+ .ui.seven.vertical.buttons > .button {
1437
+ height: 14.285%;
1438
+ }
1690
1439
 
1440
+ .ui.eight.vertical.buttons > .button {
1441
+ height: 12.500%;
1442
+ }
1691
1443
 
1444
+ .ui.nine.vertical.buttons > .button {
1445
+ height: 11.11%;
1446
+ }
1692
1447
 
1693
- & when (@tertiaryHoverWithUnderline = true) {
1694
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
1448
+ .ui.ten.vertical.buttons > .button {
1449
+ height: 10%;
1695
1450
  }
1696
1451
 
1697
- & when (@tertiaryHoverWithOverline = true) {
1698
- box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
1452
+ .ui.eleven.vertical.buttons > .button {
1453
+ height: 9.09%;
1699
1454
  }
1700
1455
 
1701
- & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
1702
- box-shadow: none;
1456
+ .ui.twelve.vertical.buttons > .button {
1457
+ height: 8.3333%;
1458
+ }
1459
+ }
1460
+ }
1461
+
1462
+ /* -------------------
1463
+ Colors
1464
+ -------------------- */
1465
+
1466
+ & when not (@variationButtonColors = false) {
1467
+ each(@variationButtonColors, {
1468
+ @color: @value;
1469
+ @c: @colors[@@color][color];
1470
+ @h: @colors[@@color][hover];
1471
+ @f: @colors[@@color][focus];
1472
+ @d: @colors[@@color][down];
1473
+ @a: @colors[@@color][active];
1474
+ @t: @colors[@@color][text];
1475
+ @s: @colors[@@color][shadow];
1476
+ @l: @colors[@@color][light];
1477
+ @lh: @colors[@@color][lightHover];
1478
+ @lf: @colors[@@color][lightFocus];
1479
+ @ld: @colors[@@color][lightDown];
1480
+ @la: @colors[@@color][lightActive];
1481
+ @lt: @colors[@@color][lightText];
1482
+ @ls: @colors[@@color][lightShadow];
1483
+ @ty: @colors[@@color][tertiary];
1484
+ @tyh: @colors[@@color][tertiaryHover];
1485
+ @tyf: @colors[@@color][tertiaryFocus];
1486
+ @tya: @colors[@@color][tertiaryActive];
1487
+ @isDark: @colors[@@color][isDark];
1488
+ @isVeryDark: @colors[@@color][isVeryDark];
1489
+
1490
+ .ui.@{color}.buttons .button,
1491
+ .ui.@{color}.button {
1492
+ background-color: @c;
1493
+ color: @t;
1494
+ text-shadow: @s;
1495
+ background-image: @coloredBackgroundImage;
1496
+ }
1497
+ .ui.@{color}.button {
1498
+ box-shadow: @coloredBoxShadow;
1499
+ }
1500
+ .ui.@{color}.buttons .button:hover,
1501
+ .ui.@{color}.button:hover {
1502
+ background-color: @h;
1503
+ color: @t;
1504
+ text-shadow: @s;
1505
+ }
1506
+ .ui.@{color}.buttons .button:focus,
1507
+ .ui.@{color}.button:focus {
1508
+ background-color: @f;
1509
+ color: @t;
1510
+ text-shadow: @s;
1511
+ }
1512
+ .ui.@{color}.buttons .button:active,
1513
+ .ui.@{color}.button:active {
1514
+ background-color: @d;
1515
+ color: @t;
1516
+ text-shadow: @s;
1517
+ }
1518
+ .ui.@{color}.buttons .active.button,
1519
+ .ui.@{color}.buttons .active.button:active,
1520
+ .ui.@{color}.active.button,
1521
+ .ui.@{color}.button .active.button:active {
1522
+ background-color: @a;
1523
+ color: @t;
1524
+ text-shadow: @s;
1703
1525
  }
1704
1526
 
1527
+ & when (@variationButtonBasic) {
1528
+ /* Basic */
1529
+ .ui.basic.@{color}.buttons .button,
1530
+ .ui.basic.@{color}.button {
1531
+ background: transparent;
1532
+ box-shadow: 0 0 0 @basicBorderSize @c inset;
1533
+ color: @c;
1534
+ }
1535
+ .ui.basic.@{color}.buttons .button:hover,
1536
+ .ui.basic.@{color}.button:hover {
1537
+ background: transparent;
1538
+ box-shadow: 0 0 0 @basicColoredBorderSize @h inset;
1539
+ color: @h;
1540
+ }
1541
+ .ui.basic.@{color}.buttons .button:focus,
1542
+ .ui.basic.@{color}.button:focus {
1543
+ background: transparent;
1544
+ box-shadow: 0 0 0 @basicColoredBorderSize @f inset;
1545
+ color: @h;
1546
+ }
1547
+ .ui.basic.@{color}.buttons .active.button,
1548
+ .ui.basic.@{color}.active.button {
1549
+ background: transparent;
1550
+ box-shadow: 0 0 0 @basicColoredBorderSize @a inset;
1551
+ color: @d;
1552
+ }
1553
+ .ui.basic.@{color}.buttons .button:active,
1554
+ .ui.basic.@{color}.button:active {
1555
+ box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
1556
+ color: @d;
1557
+ }
1558
+ }
1559
+ & when (@variationButtonInverted) {
1560
+ /* Inverted */
1561
+ .ui.inverted.@{color}.buttons .button,
1562
+ .ui.inverted.@{color}.button {
1563
+ background-color: transparent;
1564
+
1565
+ & when (@isDark) {
1566
+ box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset;
1567
+ color: @invertedTextColor;
1568
+ }
1569
+
1570
+ & when not (@isDark) {
1571
+ box-shadow: 0 0 0 @invertedBorderSize @l inset;
1572
+ color: @l;
1573
+ }
1574
+ }
1575
+ .ui.inverted.@{color}.buttons .button:hover,
1576
+ .ui.inverted.@{color}.button:hover,
1577
+ .ui.inverted.@{color}.buttons .button:focus,
1578
+ .ui.inverted.@{color}.button:focus,
1579
+ .ui.inverted.@{color}.buttons .button.active,
1580
+ .ui.inverted.@{color}.button.active,
1581
+ .ui.inverted.@{color}.buttons .button:active,
1582
+ .ui.inverted.@{color}.button:active {
1583
+ box-shadow: none;
1584
+ color: @lt;
1585
+ }
1586
+ .ui.inverted.@{color}.buttons .button:hover,
1587
+ .ui.inverted.@{color}.button:hover {
1588
+ background-color: @lh;
1589
+ }
1590
+ .ui.inverted.@{color}.buttons .button:focus,
1591
+ .ui.inverted.@{color}.button:focus {
1592
+ background-color: @lf;
1593
+ }
1594
+ .ui.inverted.@{color}.buttons .active.button,
1595
+ .ui.inverted.@{color}.active.button {
1596
+ background-color: @la;
1597
+ }
1598
+ .ui.inverted.@{color}.buttons .button:active,
1599
+ .ui.inverted.@{color}.button:active {
1600
+ background-color: @ld;
1601
+ }
1602
+
1603
+ /* Inverted Basic */
1604
+ .ui.inverted.@{color}.basic.buttons .button,
1605
+ .ui.inverted.@{color}.buttons .basic.button,
1606
+ .ui.inverted.@{color}.basic.button {
1607
+ background-color: transparent;
1608
+ box-shadow: @basicInvertedBoxShadow;
1609
+ color: @white;
1610
+ }
1611
+ .ui.inverted.@{color}.basic.buttons .button:hover,
1612
+ .ui.inverted.@{color}.buttons .basic.button:hover,
1613
+ .ui.inverted.@{color}.basic.button:hover {
1614
+ box-shadow: 0 0 0 @invertedBorderSize @lh inset;
1615
+
1616
+ & when (@isDark) {
1617
+ color: @white;
1618
+ }
1619
+
1620
+ & when not (@isDark) {
1621
+ color: @l;
1622
+ }
1623
+ }
1624
+ .ui.inverted.@{color}.basic.buttons .button:focus,
1625
+ .ui.inverted.@{color}.basic.buttons .button:focus,
1626
+ .ui.inverted.@{color}.basic.button:focus {
1627
+ box-shadow: 0 0 0 @invertedBorderSize @lf inset;
1628
+ color: @l;
1629
+ }
1630
+ .ui.inverted.@{color}.basic.buttons .active.button,
1631
+ .ui.inverted.@{color}.buttons .basic.active.button,
1632
+ .ui.inverted.@{color}.basic.active.button {
1633
+ box-shadow: 0 0 0 @invertedBorderSize @la inset;
1634
+
1635
+ & when (@isDark) {
1636
+ color: @white;
1637
+ }
1638
+
1639
+ & when not (@isDark) {
1640
+ color: @l;
1641
+ }
1642
+ }
1643
+ & when (@variationButtonBasic) {
1644
+ .ui.inverted.@{color}.basic.buttons .button:active,
1645
+ .ui.inverted.@{color}.buttons .basic.button:active,
1646
+ .ui.inverted.@{color}.basic.button:active {
1647
+ box-shadow: 0 0 0 @invertedBorderSize @ld inset;
1648
+
1649
+ & when (@isDark) {
1650
+ color: @white;
1651
+ }
1652
+
1653
+ & when not (@isDark) {
1654
+ color: @l;
1655
+ }
1656
+ }
1657
+ }
1658
+ }
1705
1659
 
1706
- color: @tyh;
1707
- }
1660
+ & when (@variationButtonTertiary) {
1661
+ /* Tertiary */
1708
1662
 
1709
- .ui.tertiary.@{color}.buttons .button:focus,
1710
- .ui.tertiary.@{color}.buttons .tertiary.button:focus,
1711
- .ui.tertiary.@{color}.button:focus {
1663
+ .ui.tertiary.@{color}.buttons .button,
1664
+ .ui.tertiary.@{color}.buttons .tertiary.button,
1665
+ .ui.tertiary.@{color}.button {
1666
+ background: transparent;
1712
1667
 
1668
+ & when (@tertiaryWithUnderline = true) {
1669
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
1670
+ }
1713
1671
 
1672
+ & when (@tertiaryWithOverline = true) {
1673
+ box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
1674
+ }
1714
1675
 
1676
+ & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
1677
+ box-shadow: none;
1678
+ }
1715
1679
 
1716
- & when (@tertiaryFocusWithUnderline = true) {
1717
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
1718
- }
1680
+ color: @c;
1681
+ }
1719
1682
 
1720
- & when (@tertiaryFocusWithOverline = true) {
1721
- box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
1722
- }
1683
+ .ui.tertiary.@{color}.buttons .button:hover,
1684
+ .ui.tertiary.@{color}.buttons button:hover,
1685
+ .ui.tertiary.@{color}.button:hover {
1723
1686
 
1724
- & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
1725
- box-shadow: none;
1726
- }
1687
+ & when (@tertiaryHoverWithUnderline = true) {
1688
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
1689
+ }
1727
1690
 
1691
+ & when (@tertiaryHoverWithOverline = true) {
1692
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
1693
+ }
1728
1694
 
1729
- color: @tyf;
1730
- }
1695
+ & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
1696
+ box-shadow: none;
1697
+ }
1731
1698
 
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 {
1699
+ color: @tyh;
1700
+ }
1738
1701
 
1702
+ .ui.tertiary.@{color}.buttons .button:focus,
1703
+ .ui.tertiary.@{color}.buttons .tertiary.button:focus,
1704
+ .ui.tertiary.@{color}.button:focus {
1739
1705
 
1706
+ & when (@tertiaryFocusWithUnderline = true) {
1707
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
1708
+ }
1740
1709
 
1741
- & when (@tertiaryActiveWithUnderline = true) {
1742
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
1743
- }
1710
+ & when (@tertiaryFocusWithOverline = true) {
1711
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
1712
+ }
1744
1713
 
1745
- & when (@tertiaryActiveWithOverline = true) {
1746
- box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
1714
+ & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
1715
+ box-shadow: none;
1716
+ }
1717
+
1718
+ color: @tyf;
1719
+ }
1720
+
1721
+ .ui.tertiary.@{color}.buttons .active.button,
1722
+ .ui.tertiary.@{color}.buttons .tertiary.active.button,
1723
+ .ui.tertiary.@{color}.active.button,
1724
+ .ui.tertiary.@{color}.buttons .button:active,
1725
+ .ui.tertiary.@{color}.buttons .tertiary.button:active,
1726
+ .ui.tertiary.@{color}.button:active {
1727
+
1728
+ & when (@tertiaryActiveWithUnderline = true) {
1729
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
1730
+ }
1731
+
1732
+ & when (@tertiaryActiveWithOverline = true) {
1733
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
1734
+ }
1735
+
1736
+ & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
1737
+ box-shadow: none;
1738
+ }
1739
+
1740
+ color: @a;
1741
+ }
1747
1742
  }
1743
+ })
1744
+ }
1748
1745
 
1749
- & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
1750
- box-shadow: none;
1746
+ & when not (@variationButtonConsequences = false) {
1747
+ each(@variationButtonConsequences, {
1748
+ @consequence: @value;
1749
+
1750
+ @_backgroundColor: "@{consequence}Color";
1751
+ @_backgroundColorHover: "@{consequence}ColorHover";
1752
+ @_backgroundColorFocus: "@{consequence}ColorFocus";
1753
+ @_backgroundColorDown: "@{consequence}ColorDown";
1754
+ @_backgroundColorActive: "@{consequence}ColorActive";
1755
+ @_textColor: "@{consequence}TextColor";
1756
+ @_textShadow: "@{consequence}TextShadow";
1757
+
1758
+ /* Standard */
1759
+ .ui.@{consequence}.buttons .button,
1760
+ .ui.@{consequence}.button {
1761
+ background-color: @@_backgroundColor;
1762
+ color: @@_textColor;
1763
+ text-shadow: @@_textShadow;
1764
+ background-image: @coloredBackgroundImage;
1765
+ }
1766
+ .ui.@{consequence}.button {
1767
+ box-shadow: @coloredBoxShadow;
1768
+ }
1769
+ .ui.@{consequence}.buttons .button:hover,
1770
+ .ui.@{consequence}.button:hover {
1771
+ background-color: @@_backgroundColorHover;
1772
+ color: @@_textColor;
1773
+ text-shadow: @@_textShadow;
1774
+ }
1775
+ .ui.@{consequence}.buttons .button:focus,
1776
+ .ui.@{consequence}.button:focus {
1777
+ background-color: @@_backgroundColorFocus;
1778
+ color: @@_textColor;
1779
+ text-shadow: @@_textShadow;
1751
1780
  }
1781
+ .ui.@{consequence}.buttons .button:active,
1782
+ .ui.@{consequence}.button:active {
1783
+ background-color: @@_backgroundColorDown;
1784
+ color: @@_textColor;
1785
+ text-shadow: @@_textShadow;
1786
+ }
1787
+ .ui.@{consequence}.buttons .active.button,
1788
+ .ui.@{consequence}.buttons .active.button:active,
1789
+ .ui.@{consequence}.active.button,
1790
+ .ui.@{consequence}.button .active.button:active {
1791
+ background-color: @@_backgroundColorActive;
1792
+ color: @@_textColor;
1793
+ text-shadow: @@_textShadow;
1794
+ }
1795
+ & when (@variationButtonBasic) {
1796
+ /* Basic */
1797
+ .ui.basic.@{consequence}.buttons .button,
1798
+ .ui.basic.@{consequence}.button {
1799
+ background: transparent;
1800
+ box-shadow: 0 0 0 @basicBorderSize @@_backgroundColor inset;
1801
+ color: @@_backgroundColor;
1802
+ }
1803
+ .ui.basic.@{consequence}.buttons .button:hover,
1804
+ .ui.basic.@{consequence}.button:hover {
1805
+ background: transparent;
1806
+ box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorHover inset;
1807
+ color: @@_backgroundColorHover;
1808
+ }
1809
+ .ui.basic.@{consequence}.buttons .button:focus,
1810
+ .ui.basic.@{consequence}.button:focus {
1811
+ background: transparent;
1812
+ box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorFocus inset;
1813
+ color: @@_backgroundColorHover;
1814
+ }
1815
+ .ui.basic.@{consequence}.buttons .active.button,
1816
+ .ui.basic.@{consequence}.active.button {
1817
+ background: transparent;
1818
+ box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorActive inset;
1819
+ color: @@_backgroundColorDown;
1820
+ }
1821
+ .ui.basic.@{consequence}.buttons .button:active,
1822
+ .ui.basic.@{consequence}.button:active {
1823
+ box-shadow: 0 0 0 @basicColoredBorderSize @@_backgroundColorDown inset;
1824
+ color: @@_backgroundColorDown;
1825
+ }
1826
+ .ui.buttons:not(.vertical) > .basic.@{consequence}.button:not(:first-child) {
1827
+ margin-left: -@basicColoredBorderSize;
1828
+ }
1829
+ }
1830
+ })
1831
+ }
1832
+
1833
+ & when (@variationButtonGroups) {
1834
+ /*******************************
1835
+ Groups
1836
+ *******************************/
1752
1837
 
1753
- color: @a;
1754
- }
1838
+ .ui.buttons {
1839
+ display: inline-flex;
1840
+ flex-direction: row;
1841
+ font-size: 0;
1842
+ vertical-align: baseline;
1843
+ margin: @verticalMargin @horizontalMargin 0 0;
1755
1844
  }
1756
- })
1757
- }
1758
1845
 
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
- }
1846
+ .ui.buttons:not(.basic):not(.inverted) {
1847
+ box-shadow: @groupBoxShadow;
1848
+ }
1842
1849
 
1843
- /*---------------
1844
- Positive
1845
- ----------------*/
1850
+ /* Clearfix */
1851
+ .ui.buttons::after {
1852
+ content: ".";
1853
+ display: block;
1854
+ height: 0;
1855
+ clear: both;
1856
+ visibility: hidden;
1857
+ }
1846
1858
 
1847
- .addConsequence(positive);
1859
+ /* Standard Group */
1860
+ .ui.buttons .button {
1861
+ flex: 1 0 auto;
1862
+ border-radius: 0;
1863
+ margin: @groupButtonOffset;
1864
+ }
1848
1865
 
1849
- /*---------------
1850
- Negative
1851
- ----------------*/
1866
+ .ui.buttons:not(.basic):not(.inverted) > .button:not(.basic):not(.inverted) {
1867
+ box-shadow: @groupButtonBoxShadow;
1868
+ }
1852
1869
 
1853
- .addConsequence(negative);
1870
+ .ui.buttons .button:first-child {
1871
+ border-left: none;
1872
+ margin-left: 0;
1873
+ border-top-left-radius: @borderRadius;
1874
+ border-bottom-left-radius: @borderRadius;
1875
+ }
1854
1876
 
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;
1877
+ .ui.buttons .button:last-child {
1878
+ border-top-right-radius: @borderRadius;
1879
+ border-bottom-right-radius: @borderRadius;
1934
1880
  }
1935
- & when (@variationButtonBasic) {
1936
- .ui.vertical.buttons .basic.button:not(:first-child) {
1937
- border-top: none;
1938
- }
1881
+ & when (@variationButtonVertical) {
1882
+ /* Vertical Style */
1883
+ .ui.vertical.buttons {
1884
+ display: inline-flex;
1885
+ flex-direction: column;
1886
+ }
1887
+
1888
+ .ui.vertical.buttons .button {
1889
+ display: block;
1890
+ float: none;
1891
+ width: 100%;
1892
+ margin: @verticalGroupOffset;
1893
+ border-radius: 0;
1894
+ &:not(.basic) {
1895
+ box-shadow: @verticalBoxShadow;
1896
+ }
1897
+ }
1898
+
1899
+ .ui.vertical.buttons .button:first-child {
1900
+ border-top-left-radius: @borderRadius;
1901
+ border-top-right-radius: @borderRadius;
1902
+ }
1903
+
1904
+ .ui.vertical.buttons .button:last-child {
1905
+ margin-bottom: 0;
1906
+ border-bottom-left-radius: @borderRadius;
1907
+ border-bottom-right-radius: @borderRadius;
1908
+ }
1909
+
1910
+ .ui.vertical.buttons .button:only-child {
1911
+ border-radius: @borderRadius;
1912
+ }
1913
+ & when (@variationButtonBasic) {
1914
+ .ui.vertical.buttons .basic.button:not(:first-child) {
1915
+ border-top: none;
1916
+ }
1917
+ }
1939
1918
  }
1940
- }
1941
1919
 
1942
- & when (@variationButtonWrapping) {
1943
- .ui.wrapping.buttons {
1944
- flex-wrap: wrap;
1920
+ & when (@variationButtonWrapping) {
1921
+ .ui.wrapping.buttons {
1922
+ flex-wrap: wrap;
1923
+ }
1924
+ & when (@variationButtonBasic) {
1925
+ .ui.wrapping.basic.buttons {
1926
+ border-bottom: none;
1927
+ & .button {
1928
+ border-bottom: @basicGroupBorder;
1929
+ &:hover {
1930
+ background: transparent !important;
1931
+ }
1932
+ }
1933
+ }
1934
+ }
1935
+ & when (@variationButtonCompact) {
1936
+ .ui.compact.wrapping.buttons .button {
1937
+ flex: none;
1938
+ }
1939
+ }
1945
1940
  }
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;
1941
+ & when (@variationButtonWrapped) {
1942
+ .ui.wrapped.buttons:not(.spaced) {
1943
+ border-top-right-radius: 0;
1944
+ & .button {
1945
+ &:first-child {
1946
+ border-radius: @basicBorderRadius 0 0 0;
1947
+ }
1948
+ &:last-child {
1949
+ border-radius: 0 0 @basicBorderRadius 0;
1950
+ }
1951
+ }
1952
+ }
1953
+ & when (@variationButtonAttached) {
1954
+ .ui.wrapped[class*="top attached"].buttons {
1955
+ border-radius: @basicBorderRadius 0 0 0;
1956
+ & .button:last-child {
1957
+ border-radius: 0;
1958
+ }
1959
+ }
1960
+ .ui.wrapped[class*="bottom attached"].buttons {
1961
+ border-radius: 0 0 0 @basicBorderRadius;
1962
+ & .button:first-child {
1963
+ border-radius: 0;
1964
+ }
1965
+ }
1966
+ }
1967
+ }
1968
+ & when (@variationButtonSpaced) {
1969
+ .ui.spaced.buttons .ui.button {
1970
+ margin-bottom: @spacedMargin;
1971
+ margin-right: @spacedMargin;
1972
+ border-radius: @basicBorderRadius;
1973
+ }
1974
+ & when (@variationButtonBasic) {
1975
+ .ui.spaced.basic.buttons {
1976
+ border: none;
1977
+ & .button {
1978
+ border: @basicGroupBorder;
1979
+ &.basic {
1980
+ border: none;
1981
+ }
1982
+ }
1983
+ }
1984
+ & when (@variationButtonVertical) {
1985
+ .ui.spaced.basic.vertical.buttons .button:first-child {
1986
+ border-top: @basicGroupBorder;
1987
+ }
1988
+ }
1989
+ & when (@variationButtonWrapping) {
1990
+ .ui.spaced.basic.wrapping.buttons .button:not(.basic) {
1991
+ border-top: @basicGroupBorder;
1992
+ border-right: @basicGroupBorder;
1993
+ &:first-child {
1994
+ border-left: @basicGroupBorder;
1995
+ }
1996
+ }
1997
+ }
1998
+ & when (@variationButtonInverted) {
1999
+ .ui.spaced.basic.inverted.buttons .basic.button {
2000
+ margin-bottom: e(%("calc(%d + %d)", @spacedMargin, @basicColoredBorderSize));
2001
+ margin-top: @basicColoredBorderSize;
2002
+ }
2003
+ }
2004
+ }
1995
2005
  }
2006
+
1996
2007
  & 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
- }
2008
+ .ui.basic.buttons:not(.vertical).inverted .button,
2009
+ .ui.basic.buttons:not(.vertical) .basic.button {
2010
+ margin-left: -@basicColoredBorderSize;
2011
+ border-right: none;
2012
+ }
2013
+ .ui.basic.buttons:not(.vertical):not(.spaced):not(.inverted) .basic.button {
2014
+ margin-top: -@basicColoredBorderSize;
2015
+ border-bottom: none;
2016
+ }
2017
+ & when (@variationButtonAttached) or (@variationButtonInverted) {
2018
+ .ui.inverted.basic.buttons:not(.spaced) .button,
2019
+ .ui.attached.basic.buttons:not(.wrapping):not(.inverted) .basic.button {
2020
+ margin-bottom: @attachedOffset;
2021
+ }
2022
+ }
2023
+ .ui.basic.buttons:not(.vertical):not(.attached):not(.spaced):not(.wrapping):not(.inverted) .basic.button {
2024
+ margin-bottom: -@basicColoredBorderSize;
2025
+ }
2026
+ }
2049
2027
  }
2050
2028
  .loadUIOverrides();