fomantic-ui 2.9.0-beta.25 → 2.9.0-beta.252

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 (284) hide show
  1. package/.all-contributorsrc +206 -3
  2. package/.github/workflows/ci.yml +4 -4
  3. package/.github/workflows/nightly.yml +4 -4
  4. package/.github/workflows/release.yml +30 -0
  5. package/CONTRIBUTORS.md +75 -37
  6. package/README.md +8 -8
  7. package/dist/components/accordion.css +162 -26
  8. package/dist/components/accordion.js +1 -1
  9. package/dist/components/accordion.min.css +2 -2
  10. package/dist/components/accordion.min.js +2 -2
  11. package/dist/components/ad.css +1 -1
  12. package/dist/components/ad.min.css +1 -1
  13. package/dist/components/api.js +34 -30
  14. package/dist/components/api.min.js +3 -3
  15. package/dist/components/breadcrumb.css +1 -1
  16. package/dist/components/breadcrumb.min.css +1 -1
  17. package/dist/components/button.css +176 -134
  18. package/dist/components/button.min.css +2 -2
  19. package/dist/components/calendar.css +18 -1
  20. package/dist/components/calendar.js +10 -9
  21. package/dist/components/calendar.min.css +2 -2
  22. package/dist/components/calendar.min.js +3 -3
  23. package/dist/components/card.css +26 -19
  24. package/dist/components/card.min.css +2 -2
  25. package/dist/components/checkbox.css +2 -1
  26. package/dist/components/checkbox.js +17 -11
  27. package/dist/components/checkbox.min.css +2 -2
  28. package/dist/components/checkbox.min.js +3 -3
  29. package/dist/components/comment.css +11 -11
  30. package/dist/components/comment.min.css +1 -1
  31. package/dist/components/container.css +94 -1
  32. package/dist/components/container.min.css +2 -2
  33. package/dist/components/dimmer.css +28 -14
  34. package/dist/components/dimmer.js +11 -5
  35. package/dist/components/dimmer.min.css +2 -2
  36. package/dist/components/dimmer.min.js +3 -3
  37. package/dist/components/divider.css +1 -1
  38. package/dist/components/divider.min.css +1 -1
  39. package/dist/components/dropdown.css +49 -13
  40. package/dist/components/dropdown.js +62 -38
  41. package/dist/components/dropdown.min.css +2 -2
  42. package/dist/components/dropdown.min.js +3 -3
  43. package/dist/components/embed.css +1 -1
  44. package/dist/components/embed.js +1 -1
  45. package/dist/components/embed.min.css +1 -1
  46. package/dist/components/embed.min.js +2 -2
  47. package/dist/components/emoji.css +10147 -8139
  48. package/dist/components/emoji.min.css +1 -1
  49. package/dist/components/feed.css +28 -28
  50. package/dist/components/feed.min.css +2 -2
  51. package/dist/components/flag.css +734 -625
  52. package/dist/components/flag.min.css +2 -2
  53. package/dist/components/form.css +118 -55
  54. package/dist/components/form.js +30 -28
  55. package/dist/components/form.min.css +2 -2
  56. package/dist/components/form.min.js +3 -3
  57. package/dist/components/grid.css +11 -8
  58. package/dist/components/grid.min.css +2 -2
  59. package/dist/components/header.css +3 -1
  60. package/dist/components/header.min.css +2 -2
  61. package/dist/components/icon.css +126 -47
  62. package/dist/components/icon.min.css +2 -2
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +742 -17
  66. package/dist/components/input.min.css +2 -2
  67. package/dist/components/item.css +13 -13
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +1 -1
  70. package/dist/components/label.min.css +1 -1
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/menu.css +29 -5
  76. package/dist/components/menu.min.css +1 -1
  77. package/dist/components/message.css +41 -41
  78. package/dist/components/message.min.css +2 -2
  79. package/dist/components/modal.css +13 -1
  80. package/dist/components/modal.js +127 -49
  81. package/dist/components/modal.min.css +2 -2
  82. package/dist/components/modal.min.js +3 -3
  83. package/dist/components/nag.css +1 -1
  84. package/dist/components/nag.js +1 -1
  85. package/dist/components/nag.min.css +1 -1
  86. package/dist/components/nag.min.js +2 -2
  87. package/dist/components/placeholder.css +1 -1
  88. package/dist/components/placeholder.min.css +1 -1
  89. package/dist/components/popup.css +1 -1
  90. package/dist/components/popup.js +2 -2
  91. package/dist/components/popup.min.css +1 -1
  92. package/dist/components/popup.min.js +3 -3
  93. package/dist/components/progress.css +1 -1
  94. package/dist/components/progress.js +4 -1
  95. package/dist/components/progress.min.css +1 -1
  96. package/dist/components/progress.min.js +3 -3
  97. package/dist/components/rail.css +1 -1
  98. package/dist/components/rail.min.css +1 -1
  99. package/dist/components/rating.css +1 -1
  100. package/dist/components/rating.js +1 -1
  101. package/dist/components/rating.min.css +1 -1
  102. package/dist/components/rating.min.js +2 -2
  103. package/dist/components/reset.css +1 -1
  104. package/dist/components/reset.min.css +1 -1
  105. package/dist/components/reveal.css +1 -1
  106. package/dist/components/reveal.min.css +1 -1
  107. package/dist/components/search.css +1 -1
  108. package/dist/components/search.js +2 -2
  109. package/dist/components/search.min.css +1 -1
  110. package/dist/components/search.min.js +3 -3
  111. package/dist/components/segment.css +91 -7
  112. package/dist/components/segment.min.css +2 -2
  113. package/dist/components/shape.css +1 -1
  114. package/dist/components/shape.js +3 -3
  115. package/dist/components/shape.min.css +1 -1
  116. package/dist/components/shape.min.js +3 -3
  117. package/dist/components/sidebar.css +4 -2
  118. package/dist/components/sidebar.js +8 -6
  119. package/dist/components/sidebar.min.css +2 -2
  120. package/dist/components/sidebar.min.js +3 -3
  121. package/dist/components/site.css +61 -39
  122. package/dist/components/site.js +1 -1
  123. package/dist/components/site.min.css +2 -2
  124. package/dist/components/site.min.js +2 -2
  125. package/dist/components/slider.js +1 -1
  126. package/dist/components/slider.min.js +2 -2
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +2 -2
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +4 -4
  132. package/dist/components/step.min.css +2 -2
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +2 -2
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +23 -5
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +3 -3
  141. package/dist/components/table.css +1168 -26
  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 +39 -1
  146. package/dist/components/toast.js +56 -28
  147. package/dist/components/toast.min.css +2 -2
  148. package/dist/components/toast.min.js +3 -3
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +21 -16
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +3 -3
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +2 -2
  155. package/dist/semantic.css +21916 -16238
  156. package/dist/semantic.js +421 -244
  157. package/dist/semantic.min.css +3 -3
  158. package/dist/semantic.min.js +3 -3
  159. package/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
  160. package/dist/themes/default/assets/fonts/brand-icons.svg +801 -654
  161. package/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
  162. package/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
  163. package/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  164. package/dist/themes/default/assets/fonts/icons.eot +0 -0
  165. package/dist/themes/default/assets/fonts/icons.svg +1175 -1079
  166. package/dist/themes/default/assets/fonts/icons.ttf +0 -0
  167. package/dist/themes/default/assets/fonts/icons.woff +0 -0
  168. package/dist/themes/default/assets/fonts/icons.woff2 +0 -0
  169. package/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
  170. package/dist/themes/default/assets/fonts/outline-icons.svg +93 -95
  171. package/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
  172. package/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
  173. package/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  174. package/examples/assets/library/iframe-content.js +8 -8
  175. package/examples/assets/library/iframe.js +3 -3
  176. package/package.json +10 -9
  177. package/src/definitions/behaviors/api.js +33 -29
  178. package/src/definitions/behaviors/form.js +29 -27
  179. package/src/definitions/collections/form.less +204 -140
  180. package/src/definitions/collections/grid.less +716 -680
  181. package/src/definitions/collections/menu.less +173 -126
  182. package/src/definitions/collections/message.less +48 -46
  183. package/src/definitions/collections/table.less +849 -262
  184. package/src/definitions/elements/button.less +586 -449
  185. package/src/definitions/elements/container.less +145 -8
  186. package/src/definitions/elements/emoji.less +15 -9
  187. package/src/definitions/elements/flag.less +7 -17
  188. package/src/definitions/elements/header.less +44 -35
  189. package/src/definitions/elements/icon.less +38 -31
  190. package/src/definitions/elements/input.less +264 -22
  191. package/src/definitions/elements/label.less +92 -91
  192. package/src/definitions/elements/list.less +55 -45
  193. package/src/definitions/elements/loader.less +30 -29
  194. package/src/definitions/elements/segment.less +147 -28
  195. package/src/definitions/elements/step.less +52 -48
  196. package/src/definitions/elements/text.less +17 -15
  197. package/src/definitions/globals/site.less +23 -2
  198. package/src/definitions/modules/accordion.less +175 -24
  199. package/src/definitions/modules/calendar.js +9 -8
  200. package/src/definitions/modules/calendar.less +20 -0
  201. package/src/definitions/modules/checkbox.js +16 -10
  202. package/src/definitions/modules/checkbox.less +34 -178
  203. package/src/definitions/modules/dimmer.js +10 -4
  204. package/src/definitions/modules/dimmer.less +21 -8
  205. package/src/definitions/modules/dropdown.js +61 -37
  206. package/src/definitions/modules/dropdown.less +145 -94
  207. package/src/definitions/modules/modal.js +126 -48
  208. package/src/definitions/modules/modal.less +12 -0
  209. package/src/definitions/modules/nag.less +20 -19
  210. package/src/definitions/modules/popup.js +1 -1
  211. package/src/definitions/modules/progress.js +3 -0
  212. package/src/definitions/modules/progress.less +19 -18
  213. package/src/definitions/modules/rating.less +35 -34
  214. package/src/definitions/modules/search.js +1 -1
  215. package/src/definitions/modules/search.less +32 -16
  216. package/src/definitions/modules/shape.js +2 -2
  217. package/src/definitions/modules/sidebar.js +7 -5
  218. package/src/definitions/modules/sidebar.less +33 -19
  219. package/src/definitions/modules/slider.less +39 -38
  220. package/src/definitions/modules/tab.js +22 -4
  221. package/src/definitions/modules/toast.js +55 -27
  222. package/src/definitions/modules/toast.less +48 -16
  223. package/src/definitions/modules/transition.js +20 -15
  224. package/src/definitions/views/card.less +402 -361
  225. package/src/definitions/views/comment.less +92 -81
  226. package/src/definitions/views/feed.less +164 -144
  227. package/src/definitions/views/item.less +249 -196
  228. package/src/definitions/views/statistic.less +90 -88
  229. package/src/themes/bookish/elements/header.overrides +1 -1
  230. package/src/themes/chubby/elements/button.overrides +1 -1
  231. package/src/themes/chubby/elements/header.overrides +1 -1
  232. package/src/themes/default/assets/fonts/brand-icons.eot +0 -0
  233. package/src/themes/default/assets/fonts/brand-icons.svg +801 -654
  234. package/src/themes/default/assets/fonts/brand-icons.ttf +0 -0
  235. package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
  236. package/src/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  237. package/src/themes/default/assets/fonts/icons.eot +0 -0
  238. package/src/themes/default/assets/fonts/icons.svg +1175 -1079
  239. package/src/themes/default/assets/fonts/icons.ttf +0 -0
  240. package/src/themes/default/assets/fonts/icons.woff +0 -0
  241. package/src/themes/default/assets/fonts/icons.woff2 +0 -0
  242. package/src/themes/default/assets/fonts/outline-icons.eot +0 -0
  243. package/src/themes/default/assets/fonts/outline-icons.svg +93 -95
  244. package/src/themes/default/assets/fonts/outline-icons.ttf +0 -0
  245. package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
  246. package/src/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  247. package/src/themes/default/collections/form.variables +4 -0
  248. package/src/themes/default/collections/menu.variables +6 -0
  249. package/src/themes/default/collections/table.variables +52 -0
  250. package/src/themes/default/elements/button.variables +7 -1
  251. package/src/themes/default/elements/container.variables +12 -0
  252. package/src/themes/default/elements/emoji.overrides +1734 -1232
  253. package/src/themes/default/elements/flag.overrides +1641 -986
  254. package/src/themes/default/elements/flag.variables +7 -5
  255. package/src/themes/default/elements/icon.overrides +75 -48
  256. package/src/themes/default/elements/icon.variables +1 -0
  257. package/src/themes/default/elements/input.variables +15 -0
  258. package/src/themes/default/elements/segment.variables +8 -0
  259. package/src/themes/default/elements/step.overrides +1 -1
  260. package/src/themes/default/globals/site.variables +6 -0
  261. package/src/themes/default/globals/variation.variables +139 -6
  262. package/src/themes/default/modules/accordion.variables +49 -2
  263. package/src/themes/default/modules/calendar.variables +3 -0
  264. package/src/themes/default/modules/checkbox.variables +5 -5
  265. package/src/themes/default/modules/dimmer.variables +1 -1
  266. package/src/themes/default/modules/dropdown.variables +4 -10
  267. package/src/themes/default/modules/modal.variables +13 -0
  268. package/src/themes/default/modules/toast.variables +3 -0
  269. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  270. package/src/themes/famfamfam/elements/flag.variables +13 -0
  271. package/src/themes/instagram/views/card.overrides +1 -1
  272. package/src/themes/joypixels/elements/emoji.overrides +1759 -1257
  273. package/src/themes/joypixels/elements/emoji.variables +1 -1
  274. package/src/themes/material/collections/menu.overrides +1 -1
  275. package/src/themes/material/elements/button.overrides +1 -1
  276. package/src/themes/material/elements/header.overrides +1 -1
  277. package/src/themes/material/modules/dropdown.overrides +1 -1
  278. package/src/themes/material/modules/modal.overrides +1 -1
  279. package/src/themes/rtl/globals/site.overrides +1 -1
  280. package/src/themes/twitter/elements/emoji.overrides +1734 -1232
  281. package/tasks/build/css.js +6 -1
  282. package/tasks/config/project/install.js +11 -5
  283. package/tasks/install.js +1 -0
  284. package/test/helpers/sinon.js +2 -2
@@ -123,51 +123,52 @@
123
123
  background-image: @activeBackgroundImage;
124
124
  }
125
125
 
126
+ & when (@variationButtonLoading) {
127
+ /*--------------
128
+ Loading
129
+ ---------------*/
126
130
 
127
- /*--------------
128
- Loading
129
- ---------------*/
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%;
130
146
 
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%;
147
+ margin: @loaderMargin;
148
+ width: @loaderSize;
149
+ height: @loaderSize;
159
150
 
160
- margin: @loaderMargin;
161
- width: @loaderSize;
162
- height: @loaderSize;
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
163
 
164
- border-radius: @circularRadius;
164
+ border-radius: @circularRadius;
165
165
 
166
- animation: loader @loaderSpeed infinite linear;
167
- border: @loaderLineWidth solid currentColor;
168
- color: @invertedLoaderLineColor;
166
+ animation: loader @loaderSpeed infinite linear;
167
+ border: @loaderLineWidth solid currentColor;
168
+ color: @invertedLoaderLineColor;
169
169
 
170
- box-shadow: 0 0 0 1px transparent;
170
+ box-shadow: 0 0 0 1px transparent;
171
+ }
171
172
  }
172
173
  & when (@variationButtonLabeledIcon){
173
174
  .ui.labeled.icon.loading.button .icon {
@@ -261,61 +262,64 @@
261
262
  right: 0;
262
263
  }
263
264
 
264
- /* Vertical */
265
- .ui.vertical.animated.button .visible.content,
266
- .ui.vertical.animated.button .hidden.content {
267
- transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
268
- }
269
- .ui.vertical.animated.button .visible.content {
270
- transform: translateY(0%);
271
- right: auto;
272
- }
273
- .ui.vertical.animated.button .hidden.content {
274
- top: -50%;
275
- left: 0;
276
- right: auto;
277
- }
278
- .ui.vertical.animated.button:focus .visible.content,
279
- .ui.vertical.animated.button:hover .visible.content {
280
- transform: translateY(200%);
281
- right: auto;
282
- }
283
- .ui.vertical.animated.button:focus .hidden.content,
284
- .ui.vertical.animated.button:hover .hidden.content {
285
- top: 50%;
286
- right: auto;
287
- }
288
-
289
- /* Fade */
290
- .ui.fade.animated.button .visible.content,
291
- .ui.fade.animated.button .hidden.content {
292
- transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
293
- }
294
- .ui.fade.animated.button .visible.content {
295
- left: auto;
296
- right: auto;
297
- opacity: 1;
298
- transform: scale(1);
299
- }
300
- .ui.fade.animated.button .hidden.content {
301
- opacity: 0;
302
- left: 0;
303
- right: auto;
304
- transform: scale(@fadeScaleHigh);
305
- }
306
- .ui.fade.animated.button:focus .visible.content,
307
- .ui.fade.animated.button:hover .visible.content {
308
- left: auto;
309
- right: auto;
310
- opacity: 0;
311
- transform: scale(@fadeScaleLow);
265
+ & when (@variationButtonVertical) {
266
+ /* Vertical */
267
+ .ui.vertical.animated.button .visible.content,
268
+ .ui.vertical.animated.button .hidden.content {
269
+ transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
270
+ }
271
+ .ui.vertical.animated.button .visible.content {
272
+ transform: translateY(0%);
273
+ right: auto;
274
+ }
275
+ .ui.vertical.animated.button .hidden.content {
276
+ top: -50%;
277
+ left: 0;
278
+ right: auto;
279
+ }
280
+ .ui.vertical.animated.button:focus .visible.content,
281
+ .ui.vertical.animated.button:hover .visible.content {
282
+ transform: translateY(200%);
283
+ right: auto;
284
+ }
285
+ .ui.vertical.animated.button:focus .hidden.content,
286
+ .ui.vertical.animated.button:hover .hidden.content {
287
+ top: 50%;
288
+ right: auto;
289
+ }
312
290
  }
313
- .ui.fade.animated.button:focus .hidden.content,
314
- .ui.fade.animated.button:hover .hidden.content {
315
- left: 0;
316
- right: auto;
317
- opacity: 1;
318
- transform: scale(1);
291
+ & when (@variationButtonAnimatedFade) {
292
+ /* Fade */
293
+ .ui.fade.animated.button .visible.content,
294
+ .ui.fade.animated.button .hidden.content {
295
+ transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
296
+ }
297
+ .ui.fade.animated.button .visible.content {
298
+ left: auto;
299
+ right: auto;
300
+ opacity: 1;
301
+ transform: scale(1);
302
+ }
303
+ .ui.fade.animated.button .hidden.content {
304
+ opacity: 0;
305
+ left: 0;
306
+ right: auto;
307
+ transform: scale(@fadeScaleHigh);
308
+ }
309
+ .ui.fade.animated.button:focus .visible.content,
310
+ .ui.fade.animated.button:hover .visible.content {
311
+ left: auto;
312
+ right: auto;
313
+ opacity: 0;
314
+ transform: scale(@fadeScaleLow);
315
+ }
316
+ .ui.fade.animated.button:focus .hidden.content,
317
+ .ui.fade.animated.button:hover .hidden.content {
318
+ left: 0;
319
+ right: auto;
320
+ opacity: 1;
321
+ transform: scale(1);
322
+ }
319
323
  }
320
324
  }
321
325
 
@@ -331,20 +335,23 @@
331
335
  text-shadow: none !important;
332
336
  }
333
337
 
334
- /* Group */
335
- .ui.inverted.buttons .button {
336
- margin: @invertedGroupButtonOffset;
337
- }
338
- .ui.inverted.buttons .button:first-child {
339
- margin-left: 0;
340
- }
341
- .ui.inverted.vertical.buttons .button {
342
- margin: @invertedVerticalGroupButtonOffset;
343
- }
344
- .ui.inverted.vertical.buttons .button:first-child {
345
- margin-top: 0;
338
+ & when (@variationButtonGroups) {
339
+ /* Group */
340
+ .ui.inverted.buttons .button {
341
+ margin: @invertedGroupButtonOffset;
342
+ }
343
+ .ui.inverted.buttons .button:first-child {
344
+ margin-left: 0;
345
+ }
346
+ & when (@variationButtonVertical) {
347
+ .ui.inverted.vertical.buttons .button {
348
+ margin: @invertedVerticalGroupButtonOffset;
349
+ }
350
+ .ui.inverted.vertical.buttons .button:first-child {
351
+ margin-top: 0;
352
+ }
353
+ }
346
354
  }
347
-
348
355
  /* States */
349
356
 
350
357
  /* Hover */
@@ -730,23 +737,27 @@
730
737
  })
731
738
  }
732
739
 
733
- /*--------------
734
- Icon Only
735
- ---------------*/
740
+ & when (@variationButtonIcon) {
741
+ /*--------------
742
+ Icon Only
743
+ ---------------*/
736
744
 
737
- .ui.icon.buttons .button,
738
- .ui.icon.button:not(.animated):not(.compact):not(.labeled) {
739
- padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
740
- }
741
- .ui.animated.icon.button > .content > .icon,
742
- .ui.icon.buttons .button > .icon,
743
- .ui.icon.button > .icon {
744
- opacity: @iconButtonOpacity;
745
- margin: 0 !important;
746
- vertical-align: top;
745
+ .ui.icon.buttons .button,
746
+ .ui.icon.button:not(.animated):not(.compact):not(.labeled) {
747
+ padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
748
+ }
749
+ .ui.animated.icon.button > .content > .icon,
750
+ .ui.icon.buttons .button > .icon,
751
+ .ui.icon.button > .icon {
752
+ opacity: @iconButtonOpacity;
753
+ margin: 0 !important;
754
+ vertical-align: top;
755
+ }
747
756
  }
748
- .ui.animated.button > .content > .icon {
749
- vertical-align: top;
757
+ & when (@variationButtonAnimated) {
758
+ .ui.animated.button > .content > .icon {
759
+ vertical-align: top;
760
+ }
750
761
  }
751
762
 
752
763
  & when (@variationButtonBasic) {
@@ -764,15 +775,17 @@
764
775
  text-shadow: none !important;
765
776
  box-shadow: @basicBoxShadow;
766
777
  }
778
+ & when (@variationButtonGroups) {
779
+ .ui.basic.buttons {
780
+ box-shadow: @basicGroupBoxShadow;
781
+ border: @basicGroupBorder;
782
+ border-radius: @borderRadius;
783
+ border-right: none;
784
+ }
767
785
 
768
- .ui.basic.buttons {
769
- box-shadow: @basicGroupBoxShadow;
770
- border: @basicGroupBorder;
771
- border-radius: @borderRadius;
772
- }
773
-
774
- .ui.basic.buttons .button {
775
- border-radius: 0;
786
+ .ui.basic.buttons .button {
787
+ border-radius: 0;
788
+ }
776
789
  }
777
790
 
778
791
  .ui.basic.buttons .button:hover,
@@ -807,18 +820,19 @@
807
820
  .ui.basic.active.button:hover {
808
821
  background-color: @transparentBlack;
809
822
  }
823
+ & when (@variationButtonGroups) {
810
824
 
811
- /* Vertical */
812
- .ui.basic.buttons .button:hover {
813
- box-shadow: @basicHoverBoxShadow inset;
814
- }
825
+ .ui.basic.buttons .button:hover {
826
+ box-shadow: @basicHoverBoxShadow inset;
827
+ }
815
828
 
816
- .ui.basic.buttons .button:active {
817
- box-shadow: @basicDownBoxShadow inset;
818
- }
829
+ .ui.basic.buttons .button:active {
830
+ box-shadow: @basicDownBoxShadow inset;
831
+ }
819
832
 
820
- .ui.basic.buttons .active.button {
821
- box-shadow: @basicActiveBoxShadow;
833
+ .ui.basic.buttons .active.button {
834
+ box-shadow: @basicActiveBoxShadow;
835
+ }
822
836
  }
823
837
  & when (@variationButtonInverted) {
824
838
  /* Standard Basic Inverted */
@@ -864,21 +878,23 @@
864
878
  }
865
879
  }
866
880
 
867
- & when (@variationButtonBasic) {
881
+ & when (@variationButtonGroups) {
868
882
  /* Basic Group */
869
- .ui.basic.buttons .button {
870
- border-left: @basicGroupBorder;
883
+ .ui.basic.buttons:not(.inverted) .button:not(.basic) {
884
+ border-right: @basicGroupBorder;
871
885
  box-shadow: none;
872
886
  }
873
887
 
874
- .ui.basic.vertical.buttons .button {
875
- border-left: none;
876
- border-left-width: 0;
877
- border-top: @basicGroupBorder;
878
- }
888
+ & when (@variationButtonVertical) {
889
+ .ui.basic.vertical.buttons .button {
890
+ border-left: none;
891
+ border-left-width: 0;
892
+ border-top: @basicGroupBorder;
893
+ }
879
894
 
880
- .ui.basic.vertical.buttons .button:first-child {
881
- border-top-width: 0;
895
+ .ui.basic.vertical.buttons:not(.spaced) .button:first-child {
896
+ border-top: none;
897
+ }
882
898
  }
883
899
  }
884
900
  }
@@ -892,11 +908,11 @@
892
908
  .ui.tertiary.button {
893
909
  transition: color @defaultDuration @defaultEasing !important;
894
910
  border-radius: 0;
895
- margin: (@verticalPadding - @tertiaryLinePadding)
911
+ margin: (@verticalPadding - @tertiaryVerticalPadding)
896
912
  (@horizontalMargin)
897
- (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryLinePadding)
913
+ (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
898
914
  0 !important;
899
- padding: @tertiaryLinePadding !important;
915
+ padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;
900
916
 
901
917
  & when (@tertiaryWithUnderline = true) {
902
918
  box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
@@ -1217,7 +1233,7 @@
1217
1233
 
1218
1234
  /* Top / Bottom */
1219
1235
  .ui[class*="top attached"].buttons {
1220
- margin-bottom: @attachedOffset;
1236
+ margin-bottom: @topAttachedOffset;
1221
1237
  border-radius: @borderRadius @borderRadius 0 0;
1222
1238
  }
1223
1239
 
@@ -1230,7 +1246,7 @@
1230
1246
  }
1231
1247
 
1232
1248
  .ui[class*="bottom attached"].buttons {
1233
- margin-top: @attachedOffset;
1249
+ margin-top: @bottomAttachedOffset;
1234
1250
  border-radius: 0 0 @borderRadius @borderRadius;
1235
1251
  }
1236
1252
 
@@ -1291,7 +1307,8 @@
1291
1307
  .ui.fluid.button {
1292
1308
  display: block;
1293
1309
  }
1294
-
1310
+ }
1311
+ & when (@variationButtonEqualWidth) {
1295
1312
  .ui.two.buttons {
1296
1313
  width: 100%;
1297
1314
  }
@@ -1379,57 +1396,63 @@
1379
1396
  .ui.twelve.buttons > .button {
1380
1397
  width: 8.3333%;
1381
1398
  }
1399
+ }
1382
1400
 
1383
- /* Fluid Vertical Buttons */
1384
- .ui.fluid.vertical.buttons,
1385
- .ui.fluid.vertical.buttons > .button {
1386
- display: flex;
1387
- width: auto;
1388
- justify-content: center;
1401
+ & when (@variationButtonVertical) {
1402
+ & when (@variationButtonFluid) {
1403
+ /* Fluid Vertical Buttons */
1404
+ .ui.fluid.vertical.buttons,
1405
+ .ui.fluid.vertical.buttons > .button {
1406
+ display: flex;
1407
+ width: auto;
1408
+ justify-content: center;
1409
+ }
1389
1410
  }
1390
1411
 
1391
- .ui.two.vertical.buttons > .button {
1392
- height: 50%;
1393
- }
1412
+ & when (@variationButtonEqualWidth) {
1413
+ .ui.two.vertical.buttons > .button {
1414
+ height: 50%;
1415
+ }
1394
1416
 
1395
- .ui.three.vertical.buttons > .button {
1396
- height: 33.333%;
1397
- }
1417
+ .ui.three.vertical.buttons > .button {
1418
+ height: 33.333%;
1419
+ }
1398
1420
 
1399
- .ui.four.vertical.buttons > .button {
1400
- height: 25%;
1401
- }
1421
+ .ui.four.vertical.buttons > .button {
1422
+ height: 25%;
1423
+ }
1402
1424
 
1403
- .ui.five.vertical.buttons > .button {
1404
- height: 20%;
1405
- }
1425
+ .ui.five.vertical.buttons > .button {
1426
+ height: 20%;
1427
+ }
1406
1428
 
1407
- .ui.six.vertical.buttons > .button {
1408
- height: 16.666%;
1409
- }
1429
+ .ui.six.vertical.buttons > .button {
1430
+ height: 16.666%;
1431
+ }
1410
1432
 
1411
- .ui.seven.vertical.buttons > .button {
1412
- height: 14.285%;
1413
- }
1433
+ .ui.seven.vertical.buttons > .button {
1434
+ height: 14.285%;
1435
+ }
1414
1436
 
1415
- .ui.eight.vertical.buttons > .button {
1416
- height: 12.500%;
1417
- }
1437
+ .ui.eight.vertical.buttons > .button {
1438
+ height: 12.500%;
1439
+ }
1418
1440
 
1419
- .ui.nine.vertical.buttons > .button {
1420
- height: 11.11%;
1421
- }
1441
+ .ui.nine.vertical.buttons > .button {
1442
+ height: 11.11%;
1443
+ }
1422
1444
 
1423
- .ui.ten.vertical.buttons > .button {
1424
- height: 10%;
1425
- }
1445
+ .ui.ten.vertical.buttons > .button {
1446
+ height: 10%;
1447
+ }
1426
1448
 
1427
- .ui.eleven.vertical.buttons > .button {
1428
- height: 9.09%;
1429
- }
1449
+ .ui.eleven.vertical.buttons > .button {
1450
+ height: 9.09%;
1451
+ }
1430
1452
 
1431
- .ui.twelve.vertical.buttons > .button {
1432
- height: 8.3333%;
1453
+ .ui.twelve.vertical.buttons > .button {
1454
+ height: 8.3333%;
1455
+ }
1433
1456
  }
1434
1457
  }
1435
1458
 
@@ -1437,191 +1460,174 @@
1437
1460
  Colors
1438
1461
  --------------------*/
1439
1462
 
1440
- each(@colors, {
1441
- @color: replace(@key, '@', '');
1442
- @c: @colors[@@color][color];
1443
- @h: @colors[@@color][hover];
1444
- @f: @colors[@@color][focus];
1445
- @d: @colors[@@color][down];
1446
- @a: @colors[@@color][active];
1447
- @t: @colors[@@color][text];
1448
- @s: @colors[@@color][shadow];
1449
- @l: @colors[@@color][light];
1450
- @lh: @colors[@@color][lightHover];
1451
- @lf: @colors[@@color][lightFocus];
1452
- @ld: @colors[@@color][lightDown];
1453
- @la: @colors[@@color][lightActive];
1454
- @lt: @colors[@@color][lightText];
1455
- @ls: @colors[@@color][lightShadow];
1456
- @ty: @colors[@@color][tertiary];
1457
- @tyh: @colors[@@color][tertiaryHover];
1458
- @tyf: @colors[@@color][tertiaryFocus];
1459
- @tya: @colors[@@color][tertiaryActive];
1460
- @isDark: @colors[@@color][isDark];
1461
- @isVeryDark: @colors[@@color][isVeryDark];
1462
-
1463
- .ui.@{color}.buttons .button,
1464
- .ui.@{color}.button {
1465
- background-color: @c;
1466
- color: @t;
1467
- text-shadow: @s;
1468
- background-image: @coloredBackgroundImage;
1469
- }
1470
- .ui.@{color}.button {
1471
- box-shadow: @coloredBoxShadow;
1472
- }
1473
- .ui.@{color}.buttons .button:hover,
1474
- .ui.@{color}.button:hover {
1475
- background-color: @h;
1476
- color: @t;
1477
- text-shadow: @s;
1478
- }
1479
- .ui.@{color}.buttons .button:focus,
1480
- .ui.@{color}.button:focus {
1481
- background-color: @f;
1482
- color: @t;
1483
- text-shadow: @s;
1484
- }
1485
- .ui.@{color}.buttons .button:active,
1486
- .ui.@{color}.button:active {
1487
- background-color: @d;
1488
- color: @t;
1489
- text-shadow: @s;
1490
- }
1491
- .ui.@{color}.buttons .active.button,
1492
- .ui.@{color}.buttons .active.button:active,
1493
- .ui.@{color}.active.button,
1494
- .ui.@{color}.button .active.button:active {
1495
- background-color: @a;
1496
- color: @t;
1497
- text-shadow: @s;
1498
- }
1499
-
1500
- & when (@variationButtonBasic) {
1501
- /* Basic */
1502
- .ui.basic.@{color}.buttons .button,
1503
- .ui.basic.@{color}.button {
1504
- background: transparent;
1505
- box-shadow: 0 0 0 @basicBorderSize @c inset ;
1506
- color: @c ;
1507
- }
1508
- .ui.basic.@{color}.buttons .button:hover,
1509
- .ui.basic.@{color}.button:hover {
1510
- background: transparent ;
1511
- box-shadow: 0 0 0 @basicColoredBorderSize @h inset ;
1512
- color: @h ;
1513
- }
1514
- .ui.basic.@{color}.buttons .button:focus,
1515
- .ui.basic.@{color}.button:focus {
1516
- background: transparent ;
1517
- box-shadow: 0 0 0 @basicColoredBorderSize @f inset ;
1518
- color: @h ;
1519
- }
1520
- .ui.basic.@{color}.buttons .active.button,
1521
- .ui.basic.@{color}.active.button {
1522
- background: transparent ;
1523
- box-shadow: 0 0 0 @basicColoredBorderSize @a inset ;
1524
- color: @d ;
1525
- }
1526
- .ui.basic.@{color}.buttons .button:active,
1527
- .ui.basic.@{color}.button:active {
1528
- box-shadow: 0 0 0 @basicColoredBorderSize @d inset ;
1529
- color: @d ;
1530
- }
1531
-
1532
- .ui.buttons:not(.vertical) > .basic.@{color}.button:not(:first-child) {
1533
- margin-left: -@basicColoredBorderSize;
1463
+ & when not (@variationButtonColors = false) {
1464
+ each(@variationButtonColors, {
1465
+ @color: @value;
1466
+ @c: @colors[@@color][color];
1467
+ @h: @colors[@@color][hover];
1468
+ @f: @colors[@@color][focus];
1469
+ @d: @colors[@@color][down];
1470
+ @a: @colors[@@color][active];
1471
+ @t: @colors[@@color][text];
1472
+ @s: @colors[@@color][shadow];
1473
+ @l: @colors[@@color][light];
1474
+ @lh: @colors[@@color][lightHover];
1475
+ @lf: @colors[@@color][lightFocus];
1476
+ @ld: @colors[@@color][lightDown];
1477
+ @la: @colors[@@color][lightActive];
1478
+ @lt: @colors[@@color][lightText];
1479
+ @ls: @colors[@@color][lightShadow];
1480
+ @ty: @colors[@@color][tertiary];
1481
+ @tyh: @colors[@@color][tertiaryHover];
1482
+ @tyf: @colors[@@color][tertiaryFocus];
1483
+ @tya: @colors[@@color][tertiaryActive];
1484
+ @isDark: @colors[@@color][isDark];
1485
+ @isVeryDark: @colors[@@color][isVeryDark];
1486
+
1487
+ .ui.@{color}.buttons .button,
1488
+ .ui.@{color}.button {
1489
+ background-color: @c;
1490
+ color: @t;
1491
+ text-shadow: @s;
1492
+ background-image: @coloredBackgroundImage;
1493
+ }
1494
+ .ui.@{color}.button {
1495
+ box-shadow: @coloredBoxShadow;
1496
+ }
1497
+ .ui.@{color}.buttons .button:hover,
1498
+ .ui.@{color}.button:hover {
1499
+ background-color: @h;
1500
+ color: @t;
1501
+ text-shadow: @s;
1502
+ }
1503
+ .ui.@{color}.buttons .button:focus,
1504
+ .ui.@{color}.button:focus {
1505
+ background-color: @f;
1506
+ color: @t;
1507
+ text-shadow: @s;
1508
+ }
1509
+ .ui.@{color}.buttons .button:active,
1510
+ .ui.@{color}.button:active {
1511
+ background-color: @d;
1512
+ color: @t;
1513
+ text-shadow: @s;
1514
+ }
1515
+ .ui.@{color}.buttons .active.button,
1516
+ .ui.@{color}.buttons .active.button:active,
1517
+ .ui.@{color}.active.button,
1518
+ .ui.@{color}.button .active.button:active {
1519
+ background-color: @a;
1520
+ color: @t;
1521
+ text-shadow: @s;
1534
1522
  }
1535
- }
1536
- & when (@variationButtonInverted) {
1537
- /* Inverted */
1538
- .ui.inverted.@{color}.buttons .button,
1539
- .ui.inverted.@{color}.button {
1540
- background-color: transparent;
1541
1523
 
1542
- & when (@isDark) {
1543
- box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset ;
1544
- color: @invertedTextColor;
1524
+ & when (@variationButtonBasic) {
1525
+ /* Basic */
1526
+ .ui.basic.@{color}.buttons .button,
1527
+ .ui.basic.@{color}.button {
1528
+ background: transparent;
1529
+ box-shadow: 0 0 0 @basicBorderSize @c inset;
1530
+ color: @c;
1545
1531
  }
1546
-
1547
- & when not (@isDark) {
1548
- box-shadow: 0 0 0 @invertedBorderSize @l inset ;
1549
- color: @l;
1532
+ .ui.basic.@{color}.buttons .button:hover,
1533
+ .ui.basic.@{color}.button:hover {
1534
+ background: transparent;
1535
+ box-shadow: 0 0 0 @basicColoredBorderSize @h inset;
1536
+ color: @h;
1537
+ }
1538
+ .ui.basic.@{color}.buttons .button:focus,
1539
+ .ui.basic.@{color}.button:focus {
1540
+ background: transparent;
1541
+ box-shadow: 0 0 0 @basicColoredBorderSize @f inset;
1542
+ color: @h;
1543
+ }
1544
+ .ui.basic.@{color}.buttons .active.button,
1545
+ .ui.basic.@{color}.active.button {
1546
+ background: transparent;
1547
+ box-shadow: 0 0 0 @basicColoredBorderSize @a inset;
1548
+ color: @d;
1549
+ }
1550
+ .ui.basic.@{color}.buttons .button:active,
1551
+ .ui.basic.@{color}.button:active {
1552
+ box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
1553
+ color: @d;
1550
1554
  }
1551
1555
  }
1552
- .ui.inverted.@{color}.buttons .button:hover,
1553
- .ui.inverted.@{color}.button:hover,
1554
- .ui.inverted.@{color}.buttons .button:focus,
1555
- .ui.inverted.@{color}.button:focus,
1556
- .ui.inverted.@{color}.buttons .button.active,
1557
- .ui.inverted.@{color}.button.active,
1558
- .ui.inverted.@{color}.buttons .button:active,
1559
- .ui.inverted.@{color}.button:active {
1560
- box-shadow: none ;
1561
- color: @lt;
1562
- }
1563
- .ui.inverted.@{color}.buttons .button:hover,
1564
- .ui.inverted.@{color}.button:hover {
1565
- background-color: @lh;
1566
- }
1567
- .ui.inverted.@{color}.buttons .button:focus,
1568
- .ui.inverted.@{color}.button:focus {
1569
- background-color: @lf;
1570
- }
1571
- .ui.inverted.@{color}.buttons .active.button,
1572
- .ui.inverted.@{color}.active.button {
1573
- background-color: @la;
1574
- }
1575
- .ui.inverted.@{color}.buttons .button:active,
1576
- .ui.inverted.@{color}.button:active {
1577
- background-color: @ld;
1578
- }
1579
-
1580
- /* Inverted Basic */
1581
- .ui.inverted.@{color}.basic.buttons .button,
1582
- .ui.inverted.@{color}.buttons .basic.button,
1583
- .ui.inverted.@{color}.basic.button {
1584
- background-color: transparent;
1585
- box-shadow: @basicInvertedBoxShadow ;
1586
- color: @white ;
1587
- }
1588
- .ui.inverted.@{color}.basic.buttons .button:hover,
1589
- .ui.inverted.@{color}.buttons .basic.button:hover,
1590
- .ui.inverted.@{color}.basic.button:hover {
1591
- box-shadow: 0 0 0 @invertedBorderSize @lh inset ;
1556
+ & when (@variationButtonInverted) {
1557
+ /* Inverted */
1558
+ .ui.inverted.@{color}.buttons .button,
1559
+ .ui.inverted.@{color}.button {
1560
+ background-color: transparent;
1592
1561
 
1593
- & when (@isDark) {
1594
- color: @white ;
1595
- }
1562
+ & when (@isDark) {
1563
+ box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset;
1564
+ color: @invertedTextColor;
1565
+ }
1596
1566
 
1597
- & when not (@isDark) {
1598
- color: @l ;
1567
+ & when not (@isDark) {
1568
+ box-shadow: 0 0 0 @invertedBorderSize @l inset;
1569
+ color: @l;
1570
+ }
1571
+ }
1572
+ .ui.inverted.@{color}.buttons .button:hover,
1573
+ .ui.inverted.@{color}.button:hover,
1574
+ .ui.inverted.@{color}.buttons .button:focus,
1575
+ .ui.inverted.@{color}.button:focus,
1576
+ .ui.inverted.@{color}.buttons .button.active,
1577
+ .ui.inverted.@{color}.button.active,
1578
+ .ui.inverted.@{color}.buttons .button:active,
1579
+ .ui.inverted.@{color}.button:active {
1580
+ box-shadow: none;
1581
+ color: @lt;
1582
+ }
1583
+ .ui.inverted.@{color}.buttons .button:hover,
1584
+ .ui.inverted.@{color}.button:hover {
1585
+ background-color: @lh;
1586
+ }
1587
+ .ui.inverted.@{color}.buttons .button:focus,
1588
+ .ui.inverted.@{color}.button:focus {
1589
+ background-color: @lf;
1590
+ }
1591
+ .ui.inverted.@{color}.buttons .active.button,
1592
+ .ui.inverted.@{color}.active.button {
1593
+ background-color: @la;
1594
+ }
1595
+ .ui.inverted.@{color}.buttons .button:active,
1596
+ .ui.inverted.@{color}.button:active {
1597
+ background-color: @ld;
1599
1598
  }
1600
- }
1601
- .ui.inverted.@{color}.basic.buttons .button:focus,
1602
- .ui.inverted.@{color}.basic.buttons .button:focus,
1603
- .ui.inverted.@{color}.basic.button:focus {
1604
- box-shadow: 0 0 0 @invertedBorderSize @lf inset ;
1605
- color: @l ;
1606
- }
1607
- .ui.inverted.@{color}.basic.buttons .active.button,
1608
- .ui.inverted.@{color}.buttons .basic.active.button,
1609
- .ui.inverted.@{color}.basic.active.button {
1610
- box-shadow: 0 0 0 @invertedBorderSize @la inset ;
1611
1599
 
1612
- & when (@isDark) {
1613
- color: @white ;
1600
+ /* Inverted Basic */
1601
+ .ui.inverted.@{color}.basic.buttons .button,
1602
+ .ui.inverted.@{color}.buttons .basic.button,
1603
+ .ui.inverted.@{color}.basic.button {
1604
+ background-color: transparent;
1605
+ box-shadow: @basicInvertedBoxShadow;
1606
+ color: @white;
1614
1607
  }
1608
+ .ui.inverted.@{color}.basic.buttons .button:hover,
1609
+ .ui.inverted.@{color}.buttons .basic.button:hover,
1610
+ .ui.inverted.@{color}.basic.button:hover {
1611
+ box-shadow: 0 0 0 @invertedBorderSize @lh inset;
1612
+
1613
+ & when (@isDark) {
1614
+ color: @white;
1615
+ }
1615
1616
 
1616
- & when not (@isDark) {
1617
- color: @l ;
1617
+ & when not (@isDark) {
1618
+ color: @l;
1619
+ }
1618
1620
  }
1619
- }
1620
- & when (@variationButtonBasic) {
1621
- .ui.inverted.@{color}.basic.buttons .button:active,
1622
- .ui.inverted.@{color}.buttons .basic.button:active,
1623
- .ui.inverted.@{color}.basic.button:active {
1624
- box-shadow: 0 0 0 @invertedBorderSize @ld inset;
1621
+ .ui.inverted.@{color}.basic.buttons .button:focus,
1622
+ .ui.inverted.@{color}.basic.buttons .button:focus,
1623
+ .ui.inverted.@{color}.basic.button:focus {
1624
+ box-shadow: 0 0 0 @invertedBorderSize @lf inset;
1625
+ color: @l;
1626
+ }
1627
+ .ui.inverted.@{color}.basic.buttons .active.button,
1628
+ .ui.inverted.@{color}.buttons .basic.active.button,
1629
+ .ui.inverted.@{color}.basic.active.button {
1630
+ box-shadow: 0 0 0 @invertedBorderSize @la inset;
1625
1631
 
1626
1632
  & when (@isDark) {
1627
1633
  color: @white;
@@ -1631,104 +1637,119 @@ each(@colors, {
1631
1637
  color: @l;
1632
1638
  }
1633
1639
  }
1640
+ & when (@variationButtonBasic) {
1641
+ .ui.inverted.@{color}.basic.buttons .button:active,
1642
+ .ui.inverted.@{color}.buttons .basic.button:active,
1643
+ .ui.inverted.@{color}.basic.button:active {
1644
+ box-shadow: 0 0 0 @invertedBorderSize @ld inset;
1645
+
1646
+ & when (@isDark) {
1647
+ color: @white;
1648
+ }
1649
+
1650
+ & when not (@isDark) {
1651
+ color: @l;
1652
+ }
1653
+ }
1654
+ }
1634
1655
  }
1635
- }
1636
1656
 
1637
- & when (@variationButtonTertiary) {
1638
- /* Tertiary */
1657
+ & when (@variationButtonTertiary) {
1658
+ /* Tertiary */
1639
1659
 
1640
- .ui.tertiary.@{color}.buttons .button,
1641
- .ui.tertiary.@{color}.buttons .tertiary.button,
1642
- .ui.tertiary.@{color}.button {
1643
- background: transparent;
1660
+ .ui.tertiary.@{color}.buttons .button,
1661
+ .ui.tertiary.@{color}.buttons .tertiary.button,
1662
+ .ui.tertiary.@{color}.button {
1663
+ background: transparent;
1644
1664
 
1645
1665
 
1646
1666
 
1647
- & when (@tertiaryWithUnderline = true) {
1648
- box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
1649
- }
1667
+ & when (@tertiaryWithUnderline = true) {
1668
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
1669
+ }
1650
1670
 
1651
- & when (@tertiaryWithOverline = true) {
1652
- box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
1653
- }
1671
+ & when (@tertiaryWithOverline = true) {
1672
+ box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
1673
+ }
1654
1674
 
1655
- & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
1656
- box-shadow: none;
1657
- }
1675
+ & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
1676
+ box-shadow: none;
1677
+ }
1658
1678
 
1659
- color: @c;
1660
- }
1679
+ color: @c;
1680
+ }
1661
1681
 
1662
- .ui.tertiary.@{color}.buttons .button:hover,
1663
- .ui.tertiary.@{color}.buttons button:hover,
1664
- .ui.tertiary.@{color}.button:hover {
1682
+ .ui.tertiary.@{color}.buttons .button:hover,
1683
+ .ui.tertiary.@{color}.buttons button:hover,
1684
+ .ui.tertiary.@{color}.button:hover {
1665
1685
 
1666
1686
 
1667
1687
 
1668
- & when (@tertiaryHoverWithUnderline = true) {
1669
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
1670
- }
1688
+ & when (@tertiaryHoverWithUnderline = true) {
1689
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
1690
+ }
1671
1691
 
1672
- & when (@tertiaryHoverWithOverline = true) {
1673
- box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
1674
- }
1692
+ & when (@tertiaryHoverWithOverline = true) {
1693
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
1694
+ }
1675
1695
 
1676
- & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
1677
- box-shadow: none;
1678
- }
1696
+ & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
1697
+ box-shadow: none;
1698
+ }
1679
1699
 
1680
1700
 
1681
1701
  color: @tyh;
1682
- }
1702
+ }
1683
1703
 
1684
- .ui.tertiary.@{color}.buttons .button:focus,
1685
- .ui.tertiary.@{color}.buttons .tertiary.button:focus,
1686
- .ui.tertiary.@{color}.button:focus {
1704
+ .ui.tertiary.@{color}.buttons .button:focus,
1705
+ .ui.tertiary.@{color}.buttons .tertiary.button:focus,
1706
+ .ui.tertiary.@{color}.button:focus {
1687
1707
 
1688
1708
 
1689
1709
 
1690
1710
 
1691
- & when (@tertiaryFocusWithUnderline = true) {
1692
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
1693
- }
1711
+ & when (@tertiaryFocusWithUnderline = true) {
1712
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
1713
+ }
1694
1714
 
1695
- & when (@tertiaryFocusWithOverline = true) {
1696
- box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
1697
- }
1715
+ & when (@tertiaryFocusWithOverline = true) {
1716
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
1717
+ }
1698
1718
 
1699
- & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
1700
- box-shadow: none;
1701
- }
1719
+ & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
1720
+ box-shadow: none;
1721
+ }
1702
1722
 
1703
1723
 
1704
1724
  color: @tyf;
1705
- }
1725
+ }
1706
1726
 
1707
- .ui.tertiary.@{color}.buttons .active.button,
1708
- .ui.tertiary.@{color}.buttons .tertiary.active.button,
1709
- .ui.tertiary.@{color}.active.button,
1710
- .ui.tertiary.@{color}.buttons .button:active,
1711
- .ui.tertiary.@{color}.buttons .tertiary.button:active,
1712
- .ui.tertiary.@{color}.button:active {
1727
+ .ui.tertiary.@{color}.buttons .active.button,
1728
+ .ui.tertiary.@{color}.buttons .tertiary.active.button,
1729
+ .ui.tertiary.@{color}.active.button,
1730
+ .ui.tertiary.@{color}.buttons .button:active,
1731
+ .ui.tertiary.@{color}.buttons .tertiary.button:active,
1732
+ .ui.tertiary.@{color}.button:active {
1713
1733
 
1714
1734
 
1715
1735
 
1716
- & when (@tertiaryActiveWithUnderline = true) {
1717
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
1718
- }
1736
+ & when (@tertiaryActiveWithUnderline = true) {
1737
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
1738
+ }
1719
1739
 
1720
- & when (@tertiaryActiveWithOverline = true) {
1721
- box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
1722
- }
1740
+ & when (@tertiaryActiveWithOverline = true) {
1741
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
1742
+ }
1723
1743
 
1724
- & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
1725
- box-shadow: none;
1726
- }
1744
+ & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
1745
+ box-shadow: none;
1746
+ }
1727
1747
 
1728
- color: @a;
1748
+ color: @a;
1749
+ }
1729
1750
  }
1730
- }
1731
- })
1751
+ })
1752
+ }
1732
1753
 
1733
1754
  .addConsequence(@consequence) {
1734
1755
 
@@ -1874,35 +1895,151 @@ each(@colors, {
1874
1895
  border-top-right-radius: @borderRadius;
1875
1896
  border-bottom-right-radius: @borderRadius;
1876
1897
  }
1898
+ & when (@variationButtonVertical) {
1899
+ /* Vertical Style */
1900
+ .ui.vertical.buttons {
1901
+ display: inline-flex;
1902
+ flex-direction: column;
1903
+ }
1877
1904
 
1878
- /* Vertical Style */
1879
- .ui.vertical.buttons {
1880
- display: inline-flex;
1881
- flex-direction: column;
1882
- }
1905
+ .ui.vertical.buttons .button {
1906
+ display: block;
1907
+ float: none;
1908
+ width: 100%;
1909
+ margin: @verticalGroupOffset;
1910
+ border-radius: 0;
1911
+ &:not(.basic) {
1912
+ box-shadow: @verticalBoxShadow;
1913
+ }
1914
+ }
1883
1915
 
1884
- .ui.vertical.buttons .button {
1885
- display: block;
1886
- float: none;
1887
- width: 100%;
1888
- margin: @verticalGroupOffset;
1889
- box-shadow: @verticalBoxShadow;
1890
- border-radius: 0;
1891
- }
1916
+ .ui.vertical.buttons .button:first-child {
1917
+ border-top-left-radius: @borderRadius;
1918
+ border-top-right-radius: @borderRadius;
1919
+ }
1892
1920
 
1893
- .ui.vertical.buttons .button:first-child {
1894
- border-top-left-radius: @borderRadius;
1895
- border-top-right-radius: @borderRadius;
1921
+ .ui.vertical.buttons .button:last-child {
1922
+ margin-bottom: 0;
1923
+ border-bottom-left-radius: @borderRadius;
1924
+ border-bottom-right-radius: @borderRadius;
1925
+ }
1926
+
1927
+ .ui.vertical.buttons .button:only-child {
1928
+ border-radius: @borderRadius;
1929
+ }
1930
+ & when (@variationButtonBasic) {
1931
+ .ui.vertical.buttons .basic.button:not(:first-child) {
1932
+ border-top: none;
1933
+ }
1934
+ }
1896
1935
  }
1897
1936
 
1898
- .ui.vertical.buttons .button:last-child {
1899
- margin-bottom: 0;
1900
- border-bottom-left-radius: @borderRadius;
1901
- border-bottom-right-radius: @borderRadius;
1937
+ & when (@variationButtonWrapping) {
1938
+ .ui.wrapping.buttons {
1939
+ flex-wrap: wrap;
1940
+ }
1941
+ & when (@variationButtonBasic) {
1942
+ .ui.wrapping.basic.buttons {
1943
+ border-bottom: none;
1944
+ & .button {
1945
+ border-bottom: @basicGroupBorder;
1946
+ &:hover {
1947
+ background: transparent !important;
1948
+ }
1949
+ }
1950
+ }
1951
+ }
1952
+ & when (@variationButtonCompact) {
1953
+ .ui.compact.wrapping.buttons .button {
1954
+ flex: none;
1955
+ }
1956
+ }
1957
+ }
1958
+ & when (@variationButtonWrapped) {
1959
+ .ui.wrapped.buttons:not(.spaced) {
1960
+ border-top-right-radius: 0;
1961
+ & .button {
1962
+ &:first-child {
1963
+ border-radius: @basicBorderRadius 0 0 0;
1964
+ }
1965
+ &:last-child {
1966
+ border-radius: 0 0 @basicBorderRadius 0;
1967
+ }
1968
+ }
1969
+ }
1970
+ & when (@variationButtonAttached) {
1971
+ .ui.wrapped[class*="top attached"].buttons {
1972
+ border-radius: @basicBorderRadius 0 0 0;
1973
+ & .button:last-child {
1974
+ border-radius: 0;
1975
+ }
1976
+ }
1977
+ .ui.wrapped[class*="bottom attached"].buttons {
1978
+ border-radius: 0 0 0 @basicBorderRadius;
1979
+ & .button:first-child {
1980
+ border-radius: 0;
1981
+ }
1982
+ }
1983
+ }
1984
+ }
1985
+ & when (@variationButtonSpaced) {
1986
+ .ui.spaced.buttons .ui.button {
1987
+ margin-bottom: @spacedMargin;
1988
+ margin-right: @spacedMargin;
1989
+ border-radius: @basicBorderRadius;
1990
+ }
1991
+ & when (@variationButtonBasic) {
1992
+ .ui.spaced.basic.buttons {
1993
+ border: none;
1994
+ & .button {
1995
+ border: @basicGroupBorder;
1996
+ &.basic {
1997
+ border: none;
1998
+ }
1999
+ }
2000
+ }
2001
+ & when (@variationButtonVertical) {
2002
+ .ui.spaced.basic.vertical.buttons .button:first-child {
2003
+ border-top: @basicGroupBorder;
2004
+ }
2005
+ }
2006
+ & when (@variationButtonWrapping) {
2007
+ .ui.spaced.basic.wrapping.buttons .button:not(.basic) {
2008
+ border-top: @basicGroupBorder;
2009
+ border-right: @basicGroupBorder;
2010
+ &:first-child {
2011
+ border-left: @basicGroupBorder;
2012
+ }
2013
+ }
2014
+ }
2015
+ & when (@variationButtonInverted) {
2016
+ .ui.spaced.basic.inverted.buttons .basic.button {
2017
+ margin-bottom: e(%("calc(%d + %d)", @spacedMargin, @basicColoredBorderSize));
2018
+ margin-top: @basicColoredBorderSize;
2019
+ }
2020
+ }
2021
+ }
1902
2022
  }
1903
2023
 
1904
- .ui.vertical.buttons .button:only-child {
1905
- border-radius: @borderRadius;
2024
+ & when (@variationButtonBasic) {
2025
+ .ui.basic.buttons:not(.vertical).inverted .button,
2026
+ .ui.basic.buttons:not(.vertical) .basic.button {
2027
+ margin-left: -@basicColoredBorderSize;
2028
+ border-right: none;
2029
+ }
2030
+ .ui.basic.buttons:not(.vertical):not(.spaced):not(.inverted) .basic.button {
2031
+ margin-top: -@basicColoredBorderSize;
2032
+ border-bottom: none;
2033
+ }
2034
+ & when (@variationButtonAttached) or (@variationButtonInverted) {
2035
+ .ui.inverted.basic.buttons:not(.spaced) .button,
2036
+ .ui.attached.basic.buttons:not(.wrapping):not(.inverted) .basic.button {
2037
+ margin-bottom: @attachedOffset;
2038
+ }
2039
+ }
2040
+ .ui.basic.buttons:not(.vertical):not(.attached):not(.spaced):not(.wrapping):not(.inverted) .basic.button {
2041
+ margin-bottom: -@basicColoredBorderSize;
2042
+ }
1906
2043
  }
1907
2044
  }
1908
2045
  .loadUIOverrides();