fomantic-ui 2.9.0-beta.9 → 2.9.0-beta.90

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 (216) hide show
  1. package/.all-contributorsrc +188 -3
  2. package/CONTRIBUTORS.md +71 -37
  3. package/README.md +1 -1
  4. package/dist/components/accordion.css +50 -6
  5. package/dist/components/accordion.js +1 -1
  6. package/dist/components/accordion.min.css +2 -2
  7. package/dist/components/accordion.min.js +1 -1
  8. package/dist/components/ad.css +1 -1
  9. package/dist/components/ad.min.css +1 -1
  10. package/dist/components/api.js +25 -23
  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 +81 -81
  15. package/dist/components/button.min.css +2 -2
  16. package/dist/components/calendar.css +1 -1
  17. package/dist/components/calendar.js +106 -10
  18. package/dist/components/calendar.min.css +1 -1
  19. package/dist/components/calendar.min.js +2 -2
  20. package/dist/components/card.css +26 -19
  21. package/dist/components/card.min.css +2 -2
  22. package/dist/components/checkbox.css +2 -1
  23. package/dist/components/checkbox.js +17 -11
  24. package/dist/components/checkbox.min.css +2 -2
  25. package/dist/components/checkbox.min.js +2 -2
  26. package/dist/components/comment.css +11 -11
  27. package/dist/components/comment.min.css +1 -1
  28. package/dist/components/container.css +1 -1
  29. package/dist/components/container.min.css +1 -1
  30. package/dist/components/dimmer.css +28 -14
  31. package/dist/components/dimmer.js +1 -1
  32. package/dist/components/dimmer.min.css +2 -2
  33. package/dist/components/dimmer.min.js +1 -1
  34. package/dist/components/divider.css +1 -1
  35. package/dist/components/divider.min.css +1 -1
  36. package/dist/components/dropdown.css +28 -5
  37. package/dist/components/dropdown.js +14 -18
  38. package/dist/components/dropdown.min.css +2 -2
  39. package/dist/components/dropdown.min.js +2 -2
  40. package/dist/components/embed.css +1 -1
  41. package/dist/components/embed.js +1 -1
  42. package/dist/components/embed.min.css +1 -1
  43. package/dist/components/embed.min.js +1 -1
  44. package/dist/components/emoji.css +2 -2
  45. package/dist/components/feed.css +28 -28
  46. package/dist/components/feed.min.css +2 -2
  47. package/dist/components/flag.css +731 -625
  48. package/dist/components/flag.min.css +2 -2
  49. package/dist/components/form.css +103 -54
  50. package/dist/components/form.js +24 -22
  51. package/dist/components/form.min.css +2 -2
  52. package/dist/components/form.min.js +2 -2
  53. package/dist/components/grid.css +11 -8
  54. package/dist/components/grid.min.css +2 -2
  55. package/dist/components/header.css +1 -1
  56. package/dist/components/header.min.css +1 -1
  57. package/dist/components/icon.css +6 -1
  58. package/dist/components/icon.min.css +2 -2
  59. package/dist/components/image.css +1 -1
  60. package/dist/components/image.min.css +1 -1
  61. package/dist/components/input.css +17 -2
  62. package/dist/components/input.min.css +2 -2
  63. package/dist/components/item.css +13 -13
  64. package/dist/components/item.min.css +1 -1
  65. package/dist/components/label.css +1 -1
  66. package/dist/components/label.min.css +1 -1
  67. package/dist/components/list.css +1 -1
  68. package/dist/components/list.min.css +1 -1
  69. package/dist/components/loader.css +1 -1
  70. package/dist/components/loader.min.css +1 -1
  71. package/dist/components/menu.css +29 -5
  72. package/dist/components/menu.min.css +1 -1
  73. package/dist/components/message.css +41 -41
  74. package/dist/components/message.min.css +2 -2
  75. package/dist/components/modal.css +3 -1
  76. package/dist/components/modal.js +94 -30
  77. package/dist/components/modal.min.css +2 -2
  78. package/dist/components/modal.min.js +2 -2
  79. package/dist/components/nag.css +1 -1
  80. package/dist/components/nag.js +1 -1
  81. package/dist/components/nag.min.css +1 -1
  82. package/dist/components/nag.min.js +1 -1
  83. package/dist/components/placeholder.css +1 -1
  84. package/dist/components/placeholder.min.css +1 -1
  85. package/dist/components/popup.css +5 -3
  86. package/dist/components/popup.js +1 -1
  87. package/dist/components/popup.min.css +2 -2
  88. package/dist/components/popup.min.js +1 -1
  89. package/dist/components/progress.css +1 -1
  90. package/dist/components/progress.js +1 -1
  91. package/dist/components/progress.min.css +1 -1
  92. package/dist/components/progress.min.js +1 -1
  93. package/dist/components/rail.css +1 -1
  94. package/dist/components/rail.min.css +1 -1
  95. package/dist/components/rating.css +7 -46
  96. package/dist/components/rating.js +1 -1
  97. package/dist/components/rating.min.css +2 -2
  98. package/dist/components/rating.min.js +1 -1
  99. package/dist/components/reset.css +1 -1
  100. package/dist/components/reset.min.css +1 -1
  101. package/dist/components/reveal.css +1 -1
  102. package/dist/components/reveal.min.css +1 -1
  103. package/dist/components/search.css +1 -1
  104. package/dist/components/search.js +1 -1
  105. package/dist/components/search.min.css +1 -1
  106. package/dist/components/search.min.js +1 -1
  107. package/dist/components/segment.css +12 -6
  108. package/dist/components/segment.min.css +2 -2
  109. package/dist/components/shape.css +1 -1
  110. package/dist/components/shape.js +1 -1
  111. package/dist/components/shape.min.css +1 -1
  112. package/dist/components/shape.min.js +1 -1
  113. package/dist/components/sidebar.css +4 -2
  114. package/dist/components/sidebar.js +1 -1
  115. package/dist/components/sidebar.min.css +2 -2
  116. package/dist/components/sidebar.min.js +1 -1
  117. package/dist/components/site.css +61 -39
  118. package/dist/components/site.js +1 -1
  119. package/dist/components/site.min.css +2 -2
  120. package/dist/components/site.min.js +1 -1
  121. package/dist/components/slider.js +1 -1
  122. package/dist/components/slider.min.js +1 -1
  123. package/dist/components/state.js +1 -1
  124. package/dist/components/state.min.js +1 -1
  125. package/dist/components/statistic.css +1 -1
  126. package/dist/components/statistic.min.css +1 -1
  127. package/dist/components/step.css +4 -4
  128. package/dist/components/step.min.css +2 -2
  129. package/dist/components/sticky.css +1 -1
  130. package/dist/components/sticky.js +1 -1
  131. package/dist/components/sticky.min.css +1 -1
  132. package/dist/components/sticky.min.js +1 -1
  133. package/dist/components/tab.css +1 -1
  134. package/dist/components/tab.js +1 -1
  135. package/dist/components/tab.min.css +1 -1
  136. package/dist/components/tab.min.js +1 -1
  137. package/dist/components/table.css +5 -3
  138. package/dist/components/table.min.css +2 -2
  139. package/dist/components/text.css +1 -1
  140. package/dist/components/text.min.css +1 -1
  141. package/dist/components/toast.css +7 -1
  142. package/dist/components/toast.js +5 -4
  143. package/dist/components/toast.min.css +2 -2
  144. package/dist/components/toast.min.js +2 -2
  145. package/dist/components/transition.css +1 -1
  146. package/dist/components/transition.js +1 -1
  147. package/dist/components/transition.min.css +1 -1
  148. package/dist/components/transition.min.js +1 -1
  149. package/dist/components/visibility.js +1 -1
  150. package/dist/components/visibility.min.js +1 -1
  151. package/dist/semantic.css +1375 -1030
  152. package/dist/semantic.js +303 -136
  153. package/dist/semantic.min.css +2 -2
  154. package/dist/semantic.min.js +2 -2
  155. package/examples/assets/library/iframe-content.js +5 -5
  156. package/package.json +2 -2
  157. package/src/definitions/behaviors/api.js +24 -22
  158. package/src/definitions/behaviors/form.js +23 -21
  159. package/src/definitions/collections/form.less +190 -139
  160. package/src/definitions/collections/grid.less +716 -680
  161. package/src/definitions/collections/menu.less +173 -126
  162. package/src/definitions/collections/message.less +48 -46
  163. package/src/definitions/collections/table.less +255 -242
  164. package/src/definitions/elements/button.less +360 -347
  165. package/src/definitions/elements/container.less +16 -8
  166. package/src/definitions/elements/emoji.less +15 -9
  167. package/src/definitions/elements/flag.less +7 -17
  168. package/src/definitions/elements/header.less +42 -35
  169. package/src/definitions/elements/icon.less +38 -31
  170. package/src/definitions/elements/input.less +23 -7
  171. package/src/definitions/elements/label.less +92 -91
  172. package/src/definitions/elements/list.less +55 -45
  173. package/src/definitions/elements/loader.less +30 -29
  174. package/src/definitions/elements/segment.less +30 -22
  175. package/src/definitions/elements/step.less +52 -48
  176. package/src/definitions/elements/text.less +17 -15
  177. package/src/definitions/globals/site.less +23 -2
  178. package/src/definitions/modules/accordion.less +55 -5
  179. package/src/definitions/modules/calendar.js +105 -9
  180. package/src/definitions/modules/checkbox.js +16 -10
  181. package/src/definitions/modules/checkbox.less +34 -178
  182. package/src/definitions/modules/dimmer.less +21 -8
  183. package/src/definitions/modules/dropdown.js +13 -17
  184. package/src/definitions/modules/dropdown.less +99 -67
  185. package/src/definitions/modules/modal.js +93 -29
  186. package/src/definitions/modules/modal.less +2 -0
  187. package/src/definitions/modules/nag.less +20 -19
  188. package/src/definitions/modules/popup.less +5 -1
  189. package/src/definitions/modules/progress.less +19 -18
  190. package/src/definitions/modules/rating.less +49 -42
  191. package/src/definitions/modules/search.less +32 -16
  192. package/src/definitions/modules/sidebar.less +33 -19
  193. package/src/definitions/modules/slider.less +39 -38
  194. package/src/definitions/modules/toast.js +4 -3
  195. package/src/definitions/modules/toast.less +22 -16
  196. package/src/definitions/views/card.less +402 -361
  197. package/src/definitions/views/comment.less +92 -81
  198. package/src/definitions/views/feed.less +164 -144
  199. package/src/definitions/views/item.less +249 -196
  200. package/src/definitions/views/statistic.less +90 -88
  201. package/src/themes/default/collections/menu.variables +6 -0
  202. package/src/themes/default/elements/button.variables +2 -1
  203. package/src/themes/default/elements/flag.overrides +1635 -986
  204. package/src/themes/default/elements/flag.variables +7 -5
  205. package/src/themes/default/elements/icon.overrides +35 -28
  206. package/src/themes/default/elements/icon.variables +1 -0
  207. package/src/themes/default/elements/step.overrides +1 -1
  208. package/src/themes/default/globals/site.variables +6 -0
  209. package/src/themes/default/globals/variation.variables +104 -6
  210. package/src/themes/default/modules/accordion.variables +15 -0
  211. package/src/themes/default/modules/dimmer.variables +1 -1
  212. package/src/themes/default/modules/dropdown.variables +1 -1
  213. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  214. package/src/themes/famfamfam/elements/flag.variables +13 -0
  215. package/tasks/build/css.js +6 -1
  216. package/test/helpers/sinon.js +1 -1
@@ -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 {
@@ -730,20 +731,22 @@
730
731
  })
731
732
  }
732
733
 
733
- /*--------------
734
- Icon Only
735
- ---------------*/
734
+ & when (@variationButtonIcon) {
735
+ /*--------------
736
+ Icon Only
737
+ ---------------*/
736
738
 
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;
739
+ .ui.icon.buttons .button,
740
+ .ui.icon.button:not(.animated):not(.compact):not(.labeled) {
741
+ padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
742
+ }
743
+ .ui.animated.icon.button > .content > .icon,
744
+ .ui.icon.buttons .button > .icon,
745
+ .ui.icon.button > .icon {
746
+ opacity: @iconButtonOpacity;
747
+ margin: 0 !important;
748
+ vertical-align: top;
749
+ }
747
750
  }
748
751
  .ui.animated.button > .content > .icon {
749
752
  vertical-align: top;
@@ -892,11 +895,11 @@
892
895
  .ui.tertiary.button {
893
896
  transition: color @defaultDuration @defaultEasing !important;
894
897
  border-radius: 0;
895
- margin: (@verticalPadding - @tertiaryLinePadding)
898
+ margin: (@verticalPadding - @tertiaryVerticalPadding)
896
899
  (@horizontalMargin)
897
- (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryLinePadding)
900
+ (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
898
901
  0 !important;
899
- padding: @tertiaryLinePadding !important;
902
+ padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;
900
903
 
901
904
  & when (@tertiaryWithUnderline = true) {
902
905
  box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
@@ -1291,7 +1294,8 @@
1291
1294
  .ui.fluid.button {
1292
1295
  display: block;
1293
1296
  }
1294
-
1297
+ }
1298
+ & when (@variationButtonEqualWidth) {
1295
1299
  .ui.two.buttons {
1296
1300
  width: 100%;
1297
1301
  }
@@ -1379,57 +1383,63 @@
1379
1383
  .ui.twelve.buttons > .button {
1380
1384
  width: 8.3333%;
1381
1385
  }
1386
+ }
1382
1387
 
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;
1388
+ & when (@variationButtonVertical) {
1389
+ & when (@variationButtonFluid) {
1390
+ /* Fluid Vertical Buttons */
1391
+ .ui.fluid.vertical.buttons,
1392
+ .ui.fluid.vertical.buttons > .button {
1393
+ display: flex;
1394
+ width: auto;
1395
+ justify-content: center;
1396
+ }
1389
1397
  }
1390
1398
 
1391
- .ui.two.vertical.buttons > .button {
1392
- height: 50%;
1393
- }
1399
+ & when (@variationButtonEqualWidth) {
1400
+ .ui.two.vertical.buttons > .button {
1401
+ height: 50%;
1402
+ }
1394
1403
 
1395
- .ui.three.vertical.buttons > .button {
1396
- height: 33.333%;
1397
- }
1404
+ .ui.three.vertical.buttons > .button {
1405
+ height: 33.333%;
1406
+ }
1398
1407
 
1399
- .ui.four.vertical.buttons > .button {
1400
- height: 25%;
1401
- }
1408
+ .ui.four.vertical.buttons > .button {
1409
+ height: 25%;
1410
+ }
1402
1411
 
1403
- .ui.five.vertical.buttons > .button {
1404
- height: 20%;
1405
- }
1412
+ .ui.five.vertical.buttons > .button {
1413
+ height: 20%;
1414
+ }
1406
1415
 
1407
- .ui.six.vertical.buttons > .button {
1408
- height: 16.666%;
1409
- }
1416
+ .ui.six.vertical.buttons > .button {
1417
+ height: 16.666%;
1418
+ }
1410
1419
 
1411
- .ui.seven.vertical.buttons > .button {
1412
- height: 14.285%;
1413
- }
1420
+ .ui.seven.vertical.buttons > .button {
1421
+ height: 14.285%;
1422
+ }
1414
1423
 
1415
- .ui.eight.vertical.buttons > .button {
1416
- height: 12.500%;
1417
- }
1424
+ .ui.eight.vertical.buttons > .button {
1425
+ height: 12.500%;
1426
+ }
1418
1427
 
1419
- .ui.nine.vertical.buttons > .button {
1420
- height: 11.11%;
1421
- }
1428
+ .ui.nine.vertical.buttons > .button {
1429
+ height: 11.11%;
1430
+ }
1422
1431
 
1423
- .ui.ten.vertical.buttons > .button {
1424
- height: 10%;
1425
- }
1432
+ .ui.ten.vertical.buttons > .button {
1433
+ height: 10%;
1434
+ }
1426
1435
 
1427
- .ui.eleven.vertical.buttons > .button {
1428
- height: 9.09%;
1429
- }
1436
+ .ui.eleven.vertical.buttons > .button {
1437
+ height: 9.09%;
1438
+ }
1430
1439
 
1431
- .ui.twelve.vertical.buttons > .button {
1432
- height: 8.3333%;
1440
+ .ui.twelve.vertical.buttons > .button {
1441
+ height: 8.3333%;
1442
+ }
1433
1443
  }
1434
1444
  }
1435
1445
 
@@ -1437,191 +1447,178 @@
1437
1447
  Colors
1438
1448
  --------------------*/
1439
1449
 
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 ;
1450
+ & when not (@variationButtonColors = false) {
1451
+ each(@variationButtonColors, {
1452
+ @color: @value;
1453
+ @c: @colors[@@color][color];
1454
+ @h: @colors[@@color][hover];
1455
+ @f: @colors[@@color][focus];
1456
+ @d: @colors[@@color][down];
1457
+ @a: @colors[@@color][active];
1458
+ @t: @colors[@@color][text];
1459
+ @s: @colors[@@color][shadow];
1460
+ @l: @colors[@@color][light];
1461
+ @lh: @colors[@@color][lightHover];
1462
+ @lf: @colors[@@color][lightFocus];
1463
+ @ld: @colors[@@color][lightDown];
1464
+ @la: @colors[@@color][lightActive];
1465
+ @lt: @colors[@@color][lightText];
1466
+ @ls: @colors[@@color][lightShadow];
1467
+ @ty: @colors[@@color][tertiary];
1468
+ @tyh: @colors[@@color][tertiaryHover];
1469
+ @tyf: @colors[@@color][tertiaryFocus];
1470
+ @tya: @colors[@@color][tertiaryActive];
1471
+ @isDark: @colors[@@color][isDark];
1472
+ @isVeryDark: @colors[@@color][isVeryDark];
1473
+
1474
+ .ui.@{color}.buttons .button,
1475
+ .ui.@{color}.button {
1476
+ background-color: @c;
1477
+ color: @t;
1478
+ text-shadow: @s;
1479
+ background-image: @coloredBackgroundImage;
1507
1480
  }
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 ;
1481
+ .ui.@{color}.button {
1482
+ box-shadow: @coloredBoxShadow;
1513
1483
  }
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 ;
1484
+ .ui.@{color}.buttons .button:hover,
1485
+ .ui.@{color}.button:hover {
1486
+ background-color: @h;
1487
+ color: @t;
1488
+ text-shadow: @s;
1519
1489
  }
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 ;
1490
+ .ui.@{color}.buttons .button:focus,
1491
+ .ui.@{color}.button:focus {
1492
+ background-color: @f;
1493
+ color: @t;
1494
+ text-shadow: @s;
1525
1495
  }
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 ;
1496
+ .ui.@{color}.buttons .button:active,
1497
+ .ui.@{color}.button:active {
1498
+ background-color: @d;
1499
+ color: @t;
1500
+ text-shadow: @s;
1530
1501
  }
1531
-
1532
- .ui.buttons:not(.vertical) > .basic.@{color}.button:not(:first-child) {
1533
- margin-left: -@basicColoredBorderSize;
1502
+ .ui.@{color}.buttons .active.button,
1503
+ .ui.@{color}.buttons .active.button:active,
1504
+ .ui.@{color}.active.button,
1505
+ .ui.@{color}.button .active.button:active {
1506
+ background-color: @a;
1507
+ color: @t;
1508
+ text-shadow: @s;
1534
1509
  }
1535
- }
1536
- & when (@variationButtonInverted) {
1537
- /* Inverted */
1538
- .ui.inverted.@{color}.buttons .button,
1539
- .ui.inverted.@{color}.button {
1540
- background-color: transparent;
1541
1510
 
1542
- & when (@isDark) {
1543
- box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset ;
1544
- color: @invertedTextColor;
1511
+ & when (@variationButtonBasic) {
1512
+ /* Basic */
1513
+ .ui.basic.@{color}.buttons .button,
1514
+ .ui.basic.@{color}.button {
1515
+ background: transparent;
1516
+ box-shadow: 0 0 0 @basicBorderSize @c inset;
1517
+ color: @c;
1518
+ }
1519
+ .ui.basic.@{color}.buttons .button:hover,
1520
+ .ui.basic.@{color}.button:hover {
1521
+ background: transparent;
1522
+ box-shadow: 0 0 0 @basicColoredBorderSize @h inset;
1523
+ color: @h;
1524
+ }
1525
+ .ui.basic.@{color}.buttons .button:focus,
1526
+ .ui.basic.@{color}.button:focus {
1527
+ background: transparent;
1528
+ box-shadow: 0 0 0 @basicColoredBorderSize @f inset;
1529
+ color: @h;
1530
+ }
1531
+ .ui.basic.@{color}.buttons .active.button,
1532
+ .ui.basic.@{color}.active.button {
1533
+ background: transparent;
1534
+ box-shadow: 0 0 0 @basicColoredBorderSize @a inset;
1535
+ color: @d;
1536
+ }
1537
+ .ui.basic.@{color}.buttons .button:active,
1538
+ .ui.basic.@{color}.button:active {
1539
+ box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
1540
+ color: @d;
1545
1541
  }
1546
1542
 
1547
- & when not (@isDark) {
1548
- box-shadow: 0 0 0 @invertedBorderSize @l inset ;
1549
- color: @l;
1543
+ .ui.buttons:not(.vertical) > .basic.@{color}.button:not(:first-child) {
1544
+ margin-left: -@basicColoredBorderSize;
1550
1545
  }
1551
1546
  }
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
- }
1547
+ & when (@variationButtonInverted) {
1548
+ /* Inverted */
1549
+ .ui.inverted.@{color}.buttons .button,
1550
+ .ui.inverted.@{color}.button {
1551
+ background-color: transparent;
1579
1552
 
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 ;
1553
+ & when (@isDark) {
1554
+ box-shadow: 0 0 0 @invertedBorderSize @solidBorderColor inset;
1555
+ color: @invertedTextColor;
1556
+ }
1592
1557
 
1593
- & when (@isDark) {
1594
- color: @white ;
1558
+ & when not (@isDark) {
1559
+ box-shadow: 0 0 0 @invertedBorderSize @l inset;
1560
+ color: @l;
1561
+ }
1595
1562
  }
1596
-
1597
- & when not (@isDark) {
1598
- color: @l ;
1563
+ .ui.inverted.@{color}.buttons .button:hover,
1564
+ .ui.inverted.@{color}.button:hover,
1565
+ .ui.inverted.@{color}.buttons .button:focus,
1566
+ .ui.inverted.@{color}.button:focus,
1567
+ .ui.inverted.@{color}.buttons .button.active,
1568
+ .ui.inverted.@{color}.button.active,
1569
+ .ui.inverted.@{color}.buttons .button:active,
1570
+ .ui.inverted.@{color}.button:active {
1571
+ box-shadow: none;
1572
+ color: @lt;
1573
+ }
1574
+ .ui.inverted.@{color}.buttons .button:hover,
1575
+ .ui.inverted.@{color}.button:hover {
1576
+ background-color: @lh;
1577
+ }
1578
+ .ui.inverted.@{color}.buttons .button:focus,
1579
+ .ui.inverted.@{color}.button:focus {
1580
+ background-color: @lf;
1581
+ }
1582
+ .ui.inverted.@{color}.buttons .active.button,
1583
+ .ui.inverted.@{color}.active.button {
1584
+ background-color: @la;
1585
+ }
1586
+ .ui.inverted.@{color}.buttons .button:active,
1587
+ .ui.inverted.@{color}.button:active {
1588
+ background-color: @ld;
1599
1589
  }
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
1590
 
1612
- & when (@isDark) {
1613
- color: @white ;
1591
+ /* Inverted Basic */
1592
+ .ui.inverted.@{color}.basic.buttons .button,
1593
+ .ui.inverted.@{color}.buttons .basic.button,
1594
+ .ui.inverted.@{color}.basic.button {
1595
+ background-color: transparent;
1596
+ box-shadow: @basicInvertedBoxShadow;
1597
+ color: @white;
1614
1598
  }
1599
+ .ui.inverted.@{color}.basic.buttons .button:hover,
1600
+ .ui.inverted.@{color}.buttons .basic.button:hover,
1601
+ .ui.inverted.@{color}.basic.button:hover {
1602
+ box-shadow: 0 0 0 @invertedBorderSize @lh inset;
1603
+
1604
+ & when (@isDark) {
1605
+ color: @white;
1606
+ }
1615
1607
 
1616
- & when not (@isDark) {
1617
- color: @l ;
1608
+ & when not (@isDark) {
1609
+ color: @l;
1610
+ }
1618
1611
  }
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;
1612
+ .ui.inverted.@{color}.basic.buttons .button:focus,
1613
+ .ui.inverted.@{color}.basic.buttons .button:focus,
1614
+ .ui.inverted.@{color}.basic.button:focus {
1615
+ box-shadow: 0 0 0 @invertedBorderSize @lf inset;
1616
+ color: @l;
1617
+ }
1618
+ .ui.inverted.@{color}.basic.buttons .active.button,
1619
+ .ui.inverted.@{color}.buttons .basic.active.button,
1620
+ .ui.inverted.@{color}.basic.active.button {
1621
+ box-shadow: 0 0 0 @invertedBorderSize @la inset;
1625
1622
 
1626
1623
  & when (@isDark) {
1627
1624
  color: @white;
@@ -1631,104 +1628,119 @@ each(@colors, {
1631
1628
  color: @l;
1632
1629
  }
1633
1630
  }
1631
+ & when (@variationButtonBasic) {
1632
+ .ui.inverted.@{color}.basic.buttons .button:active,
1633
+ .ui.inverted.@{color}.buttons .basic.button:active,
1634
+ .ui.inverted.@{color}.basic.button:active {
1635
+ box-shadow: 0 0 0 @invertedBorderSize @ld inset;
1636
+
1637
+ & when (@isDark) {
1638
+ color: @white;
1639
+ }
1640
+
1641
+ & when not (@isDark) {
1642
+ color: @l;
1643
+ }
1644
+ }
1645
+ }
1634
1646
  }
1635
- }
1636
1647
 
1637
- & when (@variationButtonTertiary) {
1638
- /* Tertiary */
1648
+ & when (@variationButtonTertiary) {
1649
+ /* Tertiary */
1639
1650
 
1640
- .ui.tertiary.@{color}.buttons .button,
1641
- .ui.tertiary.@{color}.buttons .tertiary.button,
1642
- .ui.tertiary.@{color}.button {
1643
- background: transparent;
1651
+ .ui.tertiary.@{color}.buttons .button,
1652
+ .ui.tertiary.@{color}.buttons .tertiary.button,
1653
+ .ui.tertiary.@{color}.button {
1654
+ background: transparent;
1644
1655
 
1645
1656
 
1646
1657
 
1647
- & when (@tertiaryWithUnderline = true) {
1648
- box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
1649
- }
1658
+ & when (@tertiaryWithUnderline = true) {
1659
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
1660
+ }
1650
1661
 
1651
- & when (@tertiaryWithOverline = true) {
1652
- box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
1653
- }
1662
+ & when (@tertiaryWithOverline = true) {
1663
+ box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
1664
+ }
1654
1665
 
1655
- & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
1656
- box-shadow: none;
1657
- }
1666
+ & when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
1667
+ box-shadow: none;
1668
+ }
1658
1669
 
1659
- color: @c;
1660
- }
1670
+ color: @c;
1671
+ }
1661
1672
 
1662
- .ui.tertiary.@{color}.buttons .button:hover,
1663
- .ui.tertiary.@{color}.buttons button:hover,
1664
- .ui.tertiary.@{color}.button:hover {
1673
+ .ui.tertiary.@{color}.buttons .button:hover,
1674
+ .ui.tertiary.@{color}.buttons button:hover,
1675
+ .ui.tertiary.@{color}.button:hover {
1665
1676
 
1666
1677
 
1667
1678
 
1668
- & when (@tertiaryHoverWithUnderline = true) {
1669
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
1670
- }
1679
+ & when (@tertiaryHoverWithUnderline = true) {
1680
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
1681
+ }
1671
1682
 
1672
- & when (@tertiaryHoverWithOverline = true) {
1673
- box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
1674
- }
1683
+ & when (@tertiaryHoverWithOverline = true) {
1684
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
1685
+ }
1675
1686
 
1676
- & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
1677
- box-shadow: none;
1678
- }
1687
+ & when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
1688
+ box-shadow: none;
1689
+ }
1679
1690
 
1680
1691
 
1681
1692
  color: @tyh;
1682
- }
1693
+ }
1683
1694
 
1684
- .ui.tertiary.@{color}.buttons .button:focus,
1685
- .ui.tertiary.@{color}.buttons .tertiary.button:focus,
1686
- .ui.tertiary.@{color}.button:focus {
1695
+ .ui.tertiary.@{color}.buttons .button:focus,
1696
+ .ui.tertiary.@{color}.buttons .tertiary.button:focus,
1697
+ .ui.tertiary.@{color}.button:focus {
1687
1698
 
1688
1699
 
1689
1700
 
1690
1701
 
1691
- & when (@tertiaryFocusWithUnderline = true) {
1692
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
1693
- }
1702
+ & when (@tertiaryFocusWithUnderline = true) {
1703
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
1704
+ }
1694
1705
 
1695
- & when (@tertiaryFocusWithOverline = true) {
1696
- box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
1697
- }
1706
+ & when (@tertiaryFocusWithOverline = true) {
1707
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
1708
+ }
1698
1709
 
1699
- & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
1700
- box-shadow: none;
1701
- }
1710
+ & when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
1711
+ box-shadow: none;
1712
+ }
1702
1713
 
1703
1714
 
1704
1715
  color: @tyf;
1705
- }
1716
+ }
1706
1717
 
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 {
1718
+ .ui.tertiary.@{color}.buttons .active.button,
1719
+ .ui.tertiary.@{color}.buttons .tertiary.active.button,
1720
+ .ui.tertiary.@{color}.active.button,
1721
+ .ui.tertiary.@{color}.buttons .button:active,
1722
+ .ui.tertiary.@{color}.buttons .tertiary.button:active,
1723
+ .ui.tertiary.@{color}.button:active {
1713
1724
 
1714
1725
 
1715
1726
 
1716
- & when (@tertiaryActiveWithUnderline = true) {
1717
- box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
1718
- }
1727
+ & when (@tertiaryActiveWithUnderline = true) {
1728
+ box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
1729
+ }
1719
1730
 
1720
- & when (@tertiaryActiveWithOverline = true) {
1721
- box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
1722
- }
1731
+ & when (@tertiaryActiveWithOverline = true) {
1732
+ box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
1733
+ }
1723
1734
 
1724
- & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
1725
- box-shadow: none;
1726
- }
1735
+ & when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
1736
+ box-shadow: none;
1737
+ }
1727
1738
 
1728
- color: @a;
1739
+ color: @a;
1740
+ }
1729
1741
  }
1730
- }
1731
- })
1742
+ })
1743
+ }
1732
1744
 
1733
1745
  .addConsequence(@consequence) {
1734
1746
 
@@ -1874,35 +1886,36 @@ each(@colors, {
1874
1886
  border-top-right-radius: @borderRadius;
1875
1887
  border-bottom-right-radius: @borderRadius;
1876
1888
  }
1889
+ & when (@variationButtonVertical) {
1890
+ /* Vertical Style */
1891
+ .ui.vertical.buttons {
1892
+ display: inline-flex;
1893
+ flex-direction: column;
1894
+ }
1877
1895
 
1878
- /* Vertical Style */
1879
- .ui.vertical.buttons {
1880
- display: inline-flex;
1881
- flex-direction: column;
1882
- }
1883
-
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
- }
1896
+ .ui.vertical.buttons .button {
1897
+ display: block;
1898
+ float: none;
1899
+ width: 100%;
1900
+ margin: @verticalGroupOffset;
1901
+ box-shadow: @verticalBoxShadow;
1902
+ border-radius: 0;
1903
+ }
1892
1904
 
1893
- .ui.vertical.buttons .button:first-child {
1894
- border-top-left-radius: @borderRadius;
1895
- border-top-right-radius: @borderRadius;
1896
- }
1905
+ .ui.vertical.buttons .button:first-child {
1906
+ border-top-left-radius: @borderRadius;
1907
+ border-top-right-radius: @borderRadius;
1908
+ }
1897
1909
 
1898
- .ui.vertical.buttons .button:last-child {
1899
- margin-bottom: 0;
1900
- border-bottom-left-radius: @borderRadius;
1901
- border-bottom-right-radius: @borderRadius;
1902
- }
1910
+ .ui.vertical.buttons .button:last-child {
1911
+ margin-bottom: 0;
1912
+ border-bottom-left-radius: @borderRadius;
1913
+ border-bottom-right-radius: @borderRadius;
1914
+ }
1903
1915
 
1904
- .ui.vertical.buttons .button:only-child {
1905
- border-radius: @borderRadius;
1916
+ .ui.vertical.buttons .button:only-child {
1917
+ border-radius: @borderRadius;
1918
+ }
1906
1919
  }
1907
1920
  }
1908
1921
  .loadUIOverrides();