fomantic-ui 2.8.8-beta.99 → 2.9.0-beta.100

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 (244) hide show
  1. package/.all-contributorsrc +188 -3
  2. package/.github/dependabot.yml +17 -0
  3. package/.github/workflows/ci.yml +1 -1
  4. package/CHANGELOG.md +139 -0
  5. package/CONTRIBUTING.md +1 -1
  6. package/CONTRIBUTORS.md +71 -37
  7. package/README.md +3 -3
  8. package/dist/components/accordion.css +50 -6
  9. package/dist/components/accordion.js +1 -1
  10. package/dist/components/accordion.min.css +2 -2
  11. package/dist/components/accordion.min.js +3 -3
  12. package/dist/components/ad.css +1 -1
  13. package/dist/components/ad.min.css +1 -1
  14. package/dist/components/api.js +26 -24
  15. package/dist/components/api.min.js +4 -4
  16. package/dist/components/breadcrumb.css +1 -1
  17. package/dist/components/breadcrumb.min.css +1 -1
  18. package/dist/components/button.css +81 -81
  19. package/dist/components/button.min.css +2 -2
  20. package/dist/components/calendar.css +1 -1
  21. package/dist/components/calendar.js +110 -11
  22. package/dist/components/calendar.min.css +1 -1
  23. package/dist/components/calendar.min.js +4 -4
  24. package/dist/components/card.css +26 -19
  25. package/dist/components/card.min.css +2 -2
  26. package/dist/components/checkbox.css +6 -4
  27. package/dist/components/checkbox.js +17 -11
  28. package/dist/components/checkbox.min.css +2 -2
  29. package/dist/components/checkbox.min.js +4 -4
  30. package/dist/components/comment.css +11 -11
  31. package/dist/components/comment.min.css +1 -1
  32. package/dist/components/container.css +3 -4
  33. package/dist/components/container.min.css +2 -2
  34. package/dist/components/dimmer.css +28 -14
  35. package/dist/components/dimmer.js +15 -12
  36. package/dist/components/dimmer.min.css +2 -2
  37. package/dist/components/dimmer.min.js +4 -4
  38. package/dist/components/divider.css +1 -1
  39. package/dist/components/divider.min.css +1 -1
  40. package/dist/components/dropdown.css +54 -7
  41. package/dist/components/dropdown.js +107 -77
  42. package/dist/components/dropdown.min.css +2 -2
  43. package/dist/components/dropdown.min.js +4 -4
  44. package/dist/components/embed.css +1 -1
  45. package/dist/components/embed.js +1 -1
  46. package/dist/components/embed.min.css +1 -1
  47. package/dist/components/embed.min.js +3 -3
  48. package/dist/components/emoji.css +2 -2
  49. package/dist/components/feed.css +28 -28
  50. package/dist/components/feed.min.css +2 -2
  51. package/dist/components/flag.css +731 -625
  52. package/dist/components/flag.min.css +2 -2
  53. package/dist/components/form.css +119 -54
  54. package/dist/components/form.js +51 -70
  55. package/dist/components/form.min.css +2 -2
  56. package/dist/components/form.min.js +4 -4
  57. package/dist/components/grid.css +13 -11
  58. package/dist/components/grid.min.css +2 -2
  59. package/dist/components/header.css +3 -3
  60. package/dist/components/header.min.css +2 -2
  61. package/dist/components/icon.css +86 -5
  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 +17 -2
  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 +39 -37
  74. package/dist/components/loader.min.css +2 -2
  75. package/dist/components/menu.css +37 -11
  76. package/dist/components/menu.min.css +1 -1
  77. package/dist/components/message.css +78 -34
  78. package/dist/components/message.min.css +2 -2
  79. package/dist/components/modal.css +7 -5
  80. package/dist/components/modal.js +237 -41
  81. package/dist/components/modal.min.css +2 -2
  82. package/dist/components/modal.min.js +4 -4
  83. package/dist/components/nag.css +168 -16
  84. package/dist/components/nag.js +131 -65
  85. package/dist/components/nag.min.css +2 -2
  86. package/dist/components/nag.min.js +4 -4
  87. package/dist/components/placeholder.css +1 -1
  88. package/dist/components/placeholder.min.css +1 -1
  89. package/dist/components/popup.css +5 -3
  90. package/dist/components/popup.js +5 -5
  91. package/dist/components/popup.min.css +2 -2
  92. package/dist/components/popup.min.js +4 -4
  93. package/dist/components/progress.css +2 -1
  94. package/dist/components/progress.js +3 -3
  95. package/dist/components/progress.min.css +2 -2
  96. package/dist/components/progress.min.js +4 -4
  97. package/dist/components/rail.css +1 -1
  98. package/dist/components/rail.min.css +1 -1
  99. package/dist/components/rating.css +8 -62
  100. package/dist/components/rating.js +1 -1
  101. package/dist/components/rating.min.css +2 -2
  102. package/dist/components/rating.min.js +3 -3
  103. package/dist/components/reset.css +2 -3
  104. package/dist/components/reset.min.css +2 -2
  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 +15 -13
  109. package/dist/components/search.min.css +1 -1
  110. package/dist/components/search.min.js +4 -4
  111. package/dist/components/segment.css +36 -6
  112. package/dist/components/segment.min.css +2 -2
  113. package/dist/components/shape.css +1 -1
  114. package/dist/components/shape.js +1 -1
  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 +1 -1
  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 +3 -3
  125. package/dist/components/slider.js +1 -1
  126. package/dist/components/slider.min.js +3 -3
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +3 -3
  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 -2
  134. package/dist/components/sticky.js +2 -2
  135. package/dist/components/sticky.min.css +2 -2
  136. package/dist/components/sticky.min.js +4 -4
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +3 -3
  141. package/dist/components/table.css +5 -3
  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 +123 -10
  146. package/dist/components/toast.js +54 -27
  147. package/dist/components/toast.min.css +2 -2
  148. package/dist/components/toast.min.js +4 -4
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +2 -2
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +4 -4
  153. package/dist/components/visibility.js +2 -2
  154. package/dist/components/visibility.min.js +3 -3
  155. package/dist/semantic.css +2004 -1124
  156. package/dist/semantic.js +789 -377
  157. package/dist/semantic.min.css +4 -397
  158. package/dist/semantic.min.js +4 -4
  159. package/examples/assets/library/iframe-content.js +8 -8
  160. package/examples/assets/library/iframe.js +3 -3
  161. package/package.json +5 -5
  162. package/scripts/nightly-version.js +23 -8
  163. package/src/definitions/behaviors/api.js +25 -23
  164. package/src/definitions/behaviors/form.js +50 -69
  165. package/src/definitions/behaviors/visibility.js +1 -1
  166. package/src/definitions/collections/form.less +200 -142
  167. package/src/definitions/collections/grid.less +717 -681
  168. package/src/definitions/collections/menu.less +177 -128
  169. package/src/definitions/collections/message.less +77 -44
  170. package/src/definitions/collections/table.less +255 -242
  171. package/src/definitions/elements/button.less +360 -347
  172. package/src/definitions/elements/container.less +16 -8
  173. package/src/definitions/elements/emoji.less +15 -9
  174. package/src/definitions/elements/flag.less +7 -17
  175. package/src/definitions/elements/header.less +44 -37
  176. package/src/definitions/elements/icon.less +121 -43
  177. package/src/definitions/elements/input.less +23 -7
  178. package/src/definitions/elements/label.less +92 -91
  179. package/src/definitions/elements/list.less +55 -45
  180. package/src/definitions/elements/loader.less +38 -35
  181. package/src/definitions/elements/segment.less +51 -23
  182. package/src/definitions/elements/step.less +52 -48
  183. package/src/definitions/elements/text.less +17 -15
  184. package/src/definitions/globals/site.less +23 -2
  185. package/src/definitions/modules/accordion.less +55 -5
  186. package/src/definitions/modules/calendar.js +109 -10
  187. package/src/definitions/modules/checkbox.js +16 -10
  188. package/src/definitions/modules/checkbox.less +44 -186
  189. package/src/definitions/modules/dimmer.js +14 -11
  190. package/src/definitions/modules/dimmer.less +21 -8
  191. package/src/definitions/modules/dropdown.js +106 -76
  192. package/src/definitions/modules/dropdown.less +148 -89
  193. package/src/definitions/modules/modal.js +236 -40
  194. package/src/definitions/modules/modal.less +6 -4
  195. package/src/definitions/modules/nag.js +130 -64
  196. package/src/definitions/modules/nag.less +105 -40
  197. package/src/definitions/modules/popup.js +4 -4
  198. package/src/definitions/modules/popup.less +5 -1
  199. package/src/definitions/modules/progress.js +2 -2
  200. package/src/definitions/modules/progress.less +20 -18
  201. package/src/definitions/modules/rating.less +50 -42
  202. package/src/definitions/modules/search.js +14 -12
  203. package/src/definitions/modules/search.less +32 -16
  204. package/src/definitions/modules/sidebar.less +33 -19
  205. package/src/definitions/modules/slider.less +43 -42
  206. package/src/definitions/modules/sticky.js +1 -1
  207. package/src/definitions/modules/toast.js +53 -26
  208. package/src/definitions/modules/toast.less +139 -25
  209. package/src/definitions/modules/transition.js +1 -1
  210. package/src/definitions/views/card.less +402 -361
  211. package/src/definitions/views/comment.less +92 -81
  212. package/src/definitions/views/feed.less +164 -144
  213. package/src/definitions/views/item.less +249 -196
  214. package/src/definitions/views/statistic.less +90 -88
  215. package/src/themes/default/collections/grid.variables +8 -8
  216. package/src/themes/default/collections/menu.variables +6 -0
  217. package/src/themes/default/collections/table.variables +1 -1
  218. package/src/themes/default/elements/button.variables +2 -1
  219. package/src/themes/default/elements/flag.overrides +1635 -986
  220. package/src/themes/default/elements/flag.variables +7 -5
  221. package/src/themes/default/elements/header.variables +2 -2
  222. package/src/themes/default/elements/icon.overrides +35 -28
  223. package/src/themes/default/elements/icon.variables +4 -0
  224. package/src/themes/default/elements/list.variables +1 -1
  225. package/src/themes/default/elements/step.overrides +1 -1
  226. package/src/themes/default/globals/colors.less +7 -7
  227. package/src/themes/default/globals/site.variables +19 -9
  228. package/src/themes/default/globals/variation.variables +119 -6
  229. package/src/themes/default/modules/accordion.variables +15 -0
  230. package/src/themes/default/modules/checkbox.variables +16 -16
  231. package/src/themes/default/modules/dimmer.variables +1 -1
  232. package/src/themes/default/modules/dropdown.variables +12 -5
  233. package/src/themes/default/modules/modal.variables +2 -2
  234. package/src/themes/default/modules/nag.variables +3 -1
  235. package/src/themes/default/modules/toast.variables +5 -1
  236. package/src/themes/default/views/card.variables +1 -1
  237. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  238. package/src/themes/famfamfam/elements/flag.variables +13 -0
  239. package/tasks/admin/components/init.js +2 -2
  240. package/tasks/admin/distributions/init.js +2 -2
  241. package/tasks/build/css.js +6 -1
  242. package/tasks/config/project/release.js +2 -2
  243. package/tasks/config/tasks.js +13 -9
  244. package/test/helpers/sinon.js +1 -1
@@ -218,7 +218,9 @@
218
218
  background: @dropdownBackground;
219
219
  margin: @dropdownMenuDistance 0 0;
220
220
  box-shadow: @dropdownMenuBoxShadow;
221
- flex-direction: column !important;
221
+ }
222
+ .ui.menu .dropdown.item:not(.column) .menu {
223
+ flex-direction: column;
222
224
  }
223
225
 
224
226
 
@@ -269,9 +271,9 @@
269
271
  }
270
272
  }
271
273
 
272
- /* Pointing */
273
- .ui.menu .pointing.dropdown.item .menu {
274
- margin-top: @pointingDropdownMenuDistance;
274
+ /* Pointing */
275
+ .ui.menu .pointing.dropdown.item .menu {
276
+ margin-top: @pointingDropdownMenuDistance;
275
277
  }
276
278
 
277
279
  & when (@variationMenuInverted) {
@@ -370,7 +372,7 @@
370
372
  List
371
373
  ---------------*/
372
374
 
373
- /* Menu divider shouldnt apply */
375
+ /* Menu divider shouldn't apply */
374
376
  .ui.menu .list .item:before {
375
377
  background: none !important;
376
378
  }
@@ -677,11 +679,13 @@ Floated Menu / Item
677
679
  margin-bottom: -@tabularBorderWidth;
678
680
  box-shadow: @tabularActiveBoxShadow;
679
681
  border-radius: @tabularBorderRadius @tabularBorderRadius 0 0 !important;
682
+ &:hover {
683
+ cursor: default;
684
+ }
680
685
  }
681
686
 
682
687
  /* Coupling with segment for attachment */
683
- .ui.tabular.menu + .attached:not(.top).segment,
684
- .ui.tabular.menu + .attached:not(.top).segment + .attached:not(.top).segment {
688
+ .ui.tabular.menu ~ .attached:not(.top).segment {
685
689
  border-top: none;
686
690
  margin-left: 0;
687
691
  margin-top: 0;
@@ -772,6 +776,18 @@ Floated Menu / Item
772
776
  border-top: @tabularOppositeBorderWidth solid transparent;
773
777
  border-bottom: none;
774
778
  }
779
+ & when (@variationMenuInverted) {
780
+ .ui.inverted.tabular.menu .active.item,
781
+ .ui.inverted.tabular.menu .active.item:hover {
782
+ background: @invertedTabularActiveBackground;
783
+ border-color: @invertedTabularBorderColor;
784
+ }
785
+ .ui.inverted.tabular.menu .item:not(.active):hover {
786
+ color: @invertedTabularHoveredTextColor;
787
+ background: transparent;
788
+ cursor: pointer;
789
+ }
790
+ }
775
791
  }
776
792
 
777
793
 
@@ -937,10 +953,11 @@ Floated Menu / Item
937
953
  .ui.vertical.secondary.menu .item > .menu .item {
938
954
  background-color: transparent;
939
955
  }
940
-
941
- /* Inverted */
942
- .ui.secondary.inverted.menu {
943
- background-color: transparent;
956
+ & when (@variationMenuInverted) {
957
+ /* Inverted */
958
+ .ui.secondary.inverted.menu {
959
+ background-color: transparent;
960
+ }
944
961
  }
945
962
  }
946
963
 
@@ -1207,51 +1224,59 @@ Floated Menu / Item
1207
1224
  }
1208
1225
  }
1209
1226
 
1210
- /*--------------
1211
- Icon Only
1212
- ---------------*/
1227
+ & when (@variationMenuIcon) {
1228
+ /*--------------
1229
+ Icon Only
1230
+ ---------------*/
1213
1231
 
1214
- /* Vertical Menu */
1215
- .ui.vertical.icon.menu {
1216
- display: inline-block;
1217
- width: auto;
1218
- }
1232
+ & when (@variationMenuVertical) {
1233
+ /* Vertical Menu */
1234
+ .ui.vertical.icon.menu {
1235
+ display: inline-block;
1236
+ width: auto;
1237
+ }
1238
+ }
1219
1239
 
1220
- /* Item */
1221
- .ui.icon.menu .item {
1222
- height: auto;
1223
- text-align: @iconMenuTextAlign;
1224
- color: @iconMenuItemColor;
1225
- }
1240
+ /* Item */
1241
+ .ui.icon.menu .item {
1242
+ height: auto;
1243
+ text-align: @iconMenuTextAlign;
1244
+ color: @iconMenuItemColor;
1245
+ }
1226
1246
 
1227
- /* Icon */
1228
- .ui.icon.menu .item > i.icon:not(.dropdown) {
1229
- margin: 0;
1230
- opacity: 1;
1231
- }
1247
+ /* Icon */
1248
+ .ui.icon.menu .item > i.icon:not(.dropdown) {
1249
+ margin: 0;
1250
+ opacity: 1;
1251
+ }
1232
1252
 
1233
- /* Icon Gylph */
1234
- .ui.icon.menu i.icon:before {
1235
- opacity: 1;
1236
- }
1253
+ /* Icon Glyph */
1254
+ .ui.icon.menu i.icon:before {
1255
+ opacity: 1;
1256
+ }
1237
1257
 
1238
- /* (x) Item Icon */
1239
- .ui.menu .icon.item > i.icon {
1240
- width: auto;
1241
- margin: 0 auto;
1242
- }
1258
+ /* (x) Item Icon */
1259
+ .ui.menu .icon.item > i.icon {
1260
+ width: auto;
1261
+ margin: 0 auto;
1262
+ }
1243
1263
 
1244
- /* Vertical Icon */
1245
- .ui.vertical.icon.menu .item > i.icon:not(.dropdown) {
1246
- display: block;
1247
- opacity: 1;
1248
- margin: 0 auto;
1249
- float: none;
1250
- }
1264
+ /* Vertical Icon */
1265
+ & when (@variationMenuVertical) {
1266
+ .ui.vertical.icon.menu .item > i.icon:not(.dropdown) {
1267
+ display: block;
1268
+ opacity: 1;
1269
+ margin: 0 auto;
1270
+ float: none;
1271
+ }
1272
+ }
1251
1273
 
1252
- /* Inverted */
1253
- .ui.inverted.icon.menu .item {
1254
- color: @iconMenuInvertedItemColor;
1274
+ /* Inverted */
1275
+ & when (@variationMenuInverted) {
1276
+ .ui.inverted.icon.menu .item {
1277
+ color: @iconMenuInvertedItemColor;
1278
+ }
1279
+ }
1255
1280
  }
1256
1281
 
1257
1282
  & when (@variationMenuLabeled) {
@@ -1338,22 +1363,23 @@ Floated Menu / Item
1338
1363
  /*--------------
1339
1364
  Colors
1340
1365
  ---------------*/
1366
+ & when not (@variationMenuColors = false) {
1367
+ each(@variationMenuColors, {
1368
+ @color: @value;
1369
+ @c: @colors[@@color][color];
1341
1370
 
1342
- each(@colors, {
1343
- @color: replace(@key, '@', '');
1344
- @c: @colors[@@color][color];
1345
-
1346
- & when not (@color=secondary) {
1347
- .ui.ui.ui.menu .@{color}.active.item,
1348
- .ui.ui.@{color}.menu .active.item:hover,
1349
- .ui.ui.@{color}.menu .active.item {
1350
- & when not (@secondaryPointingActiveBorderColor = currentColor) {
1351
- border-color: @c;
1371
+ & when not (@color=secondary) {
1372
+ .ui.ui.ui.menu .@{color}.active.item,
1373
+ .ui.ui.@{color}.menu .active.item:hover,
1374
+ .ui.ui.@{color}.menu .active.item {
1375
+ & when not (@secondaryPointingActiveBorderColor = currentColor) {
1376
+ border-color: @c;
1377
+ }
1378
+ color: @c;
1352
1379
  }
1353
- color: @c;
1354
1380
  }
1355
- }
1356
- })
1381
+ })
1382
+ }
1357
1383
 
1358
1384
  & when (@variationMenuInverted) {
1359
1385
  /*--------------
@@ -1475,34 +1501,44 @@ each(@colors, {
1475
1501
  }
1476
1502
  }
1477
1503
 
1504
+ & when (@variationMenuCentered) {
1505
+ .ui.center.aligned.menu,
1506
+ .ui.centered.menu {
1507
+ display: inline-flex;
1508
+ transform: translateX(-50%);
1509
+ margin-left:50%;
1510
+ }
1511
+ }
1512
+
1478
1513
  & when (@variationMenuInverted) {
1479
1514
  /*--------------
1480
1515
  Inverted
1481
1516
  ---------------*/
1482
-
1483
- each(@colors, {
1484
- @color: replace(@key, '@', '');
1485
- @c: @colors[@@color][color];
1486
- @h: @colors[@@color][hover];
1487
-
1488
- & when not (@color=secondary) {
1489
- .ui.ui.ui.inverted.menu .@{color}.active.item,
1490
- .ui.ui.inverted.@{color}.menu {
1491
- background-color: @c;
1492
- }
1493
- .ui.inverted.@{color}.menu .item:before {
1494
- background-color: @invertedColoredDividerBackground;
1495
- }
1496
- .ui.ui.inverted.@{color}.menu .active.item {
1497
- background-color: @invertedColoredActiveBackground;
1498
- }
1499
- & when (@variationMenuPointing) {
1500
- .ui.inverted.pointing.@{color}.menu .active.item {
1501
- background-color: @h;
1517
+ & when not (@variationMenuColors = false) {
1518
+ each(@variationMenuColors, {
1519
+ @color: @value;
1520
+ @c: @colors[@@color][color];
1521
+ @h: @colors[@@color][hover];
1522
+
1523
+ & when not (@color=secondary) {
1524
+ .ui.ui.ui.inverted.menu .@{color}.active.item,
1525
+ .ui.ui.inverted.@{color}.menu {
1526
+ background-color: @c;
1527
+ }
1528
+ .ui.inverted.@{color}.menu .item:before {
1529
+ background-color: @invertedColoredDividerBackground;
1530
+ }
1531
+ .ui.ui.inverted.@{color}.menu .active.item {
1532
+ background-color: @invertedColoredActiveBackground;
1533
+ }
1534
+ & when (@variationMenuPointing) {
1535
+ .ui.inverted.pointing.@{color}.menu .active.item {
1536
+ background-color: @h;
1537
+ }
1502
1538
  }
1503
1539
  }
1504
- }
1505
- })
1540
+ })
1541
+ }
1506
1542
 
1507
1543
  & when (@variationMenuPointing) {
1508
1544
  .ui.ui.ui.inverted.pointing.menu .active.item:after {
@@ -1614,38 +1650,40 @@ each(@colors, {
1614
1650
  display: none;
1615
1651
  }
1616
1652
 
1617
- .ui.menu.two.item .item {
1618
- width: 50%;
1619
- }
1620
- .ui.menu.three.item .item {
1621
- width: 33.333%;
1622
- }
1623
- .ui.menu.four.item .item {
1624
- width: 25%;
1625
- }
1626
- .ui.menu.five.item .item {
1627
- width: 20%;
1628
- }
1629
- .ui.menu.six.item .item {
1630
- width: 16.666%;
1631
- }
1632
- .ui.menu.seven.item .item {
1633
- width: 14.285%;
1634
- }
1635
- .ui.menu.eight.item .item {
1636
- width: 12.500%;
1637
- }
1638
- .ui.menu.nine.item .item {
1639
- width: 11.11%;
1640
- }
1641
- .ui.menu.ten.item .item {
1642
- width: 10.0%;
1643
- }
1644
- .ui.menu.eleven.item .item {
1645
- width: 9.09%;
1646
- }
1647
- .ui.menu.twelve.item .item {
1648
- width: 8.333%;
1653
+ & when (@variationMenuEqualWidth) {
1654
+ .ui.menu.two.item .item {
1655
+ width: 50%;
1656
+ }
1657
+ .ui.menu.three.item .item {
1658
+ width: 33.333%;
1659
+ }
1660
+ .ui.menu.four.item .item {
1661
+ width: 25%;
1662
+ }
1663
+ .ui.menu.five.item .item {
1664
+ width: 20%;
1665
+ }
1666
+ .ui.menu.six.item .item {
1667
+ width: 16.666%;
1668
+ }
1669
+ .ui.menu.seven.item .item {
1670
+ width: 14.285%;
1671
+ }
1672
+ .ui.menu.eight.item .item {
1673
+ width: 12.500%;
1674
+ }
1675
+ .ui.menu.nine.item .item {
1676
+ width: 11.11%;
1677
+ }
1678
+ .ui.menu.ten.item .item {
1679
+ width: 10.0%;
1680
+ }
1681
+ .ui.menu.eleven.item .item {
1682
+ width: 9.09%;
1683
+ }
1684
+ .ui.menu.twelve.item .item {
1685
+ width: 8.333%;
1686
+ }
1649
1687
  }
1650
1688
 
1651
1689
  & when (@variationMenuFixed) {
@@ -1798,14 +1836,16 @@ each(@colors, {
1798
1836
  }
1799
1837
  }
1800
1838
 
1801
- each(@colors, {
1802
- @color: replace(@key, '@', '');
1803
- @c: @colors[@@color][color];
1839
+ & when not (@variationMenuColors = false) {
1840
+ each(@variationMenuColors, {
1841
+ @color: @value;
1842
+ @c: @colors[@@color][color];
1804
1843
 
1805
- .ui.inverted.pointing.menu .@{color}.active.item:after {
1806
- background-color: @c;
1807
- }
1808
- })
1844
+ .ui.inverted.pointing.menu .@{color}.active.item:after {
1845
+ background-color: @c;
1846
+ }
1847
+ })
1848
+ }
1809
1849
 
1810
1850
  & when (@variationMenuAttached) {
1811
1851
  /*--------------
@@ -1860,13 +1900,18 @@ each(@colors, {
1860
1900
  }
1861
1901
 
1862
1902
  /* Tabular Attached */
1863
- .ui.attached.menu:not(.tabular) {
1903
+ .ui.attached.menu:not(.tabular):not(.text) {
1864
1904
  border: @attachedBorder;
1865
1905
  }
1866
1906
  & when (@variationMenuInverted) {
1867
1907
  .ui.attached.inverted.menu {
1868
1908
  border: none;
1869
1909
  }
1910
+ & when (@variationMenuTabular) {
1911
+ .ui[class*="top attached"].inverted.tabular.menu {
1912
+ border-bottom: @invertedTabularBorder;
1913
+ }
1914
+ }
1870
1915
  }
1871
1916
  & when (@variationMenuTabular) {
1872
1917
  .ui.attached.tabular.menu {
@@ -1884,8 +1929,10 @@ each(@colors, {
1884
1929
  .ui.menu {
1885
1930
  font-size: @medium;
1886
1931
  }
1887
- .ui.vertical.menu {
1888
- width: @mediumWidth;
1932
+ & when (@variationMenuVertical) {
1933
+ .ui.vertical.menu {
1934
+ width: @mediumWidth;
1935
+ }
1889
1936
  }
1890
1937
  & when not (@variationMenuSizes = false) {
1891
1938
  each(@variationMenuSizes, {
@@ -1896,8 +1943,10 @@ each(@colors, {
1896
1943
  .ui.@{value}.menu .dropdown .menu > .item {
1897
1944
  font-size: @s;
1898
1945
  }
1899
- .ui.@{value}.vertical.menu:not(.icon) {
1900
- width: @@w;
1946
+ & when (@variationMenuVertical) {
1947
+ .ui.@{value}.vertical.menu:not(.icon) {
1948
+ width: @@w;
1949
+ }
1901
1950
  }
1902
1951
  })
1903
1952
  }
@@ -105,11 +105,15 @@
105
105
  margin-bottom: 0;
106
106
  }
107
107
 
108
-
109
- /* Icon */
110
- .ui.message > .icons,
111
- .ui.message > i.icon {
112
- margin-right: @iconDistance;
108
+ & when (@variationMessageIcon) {
109
+ /* Icon */
110
+ .ui.icon.message > .icons,
111
+ .ui.icon.message > i.icon {
112
+ margin-right: @iconDistance;
113
+ &:last-child {
114
+ margin: 0 0 0 @iconDistance;
115
+ }
116
+ }
113
117
  }
114
118
 
115
119
  /* Close Icon */
@@ -170,6 +174,21 @@
170
174
  /*******************************
171
175
  Variations
172
176
  *******************************/
177
+ & when (@variationMessageCentered) {
178
+ .ui.centered.message,
179
+ .ui.center.aligned.message {
180
+ text-align: center;
181
+ justify-content: center;
182
+ & > .content {
183
+ flex: 0 0 auto;
184
+ }
185
+ }
186
+ }
187
+ & when (@variationMessageRightAligned) {
188
+ .ui.right.aligned.message {
189
+ text-align: right;
190
+ }
191
+ }
173
192
 
174
193
  & when (@variationMessageCompact) {
175
194
  /*--------------
@@ -269,7 +288,7 @@
269
288
  /*--------------
270
289
  Types
271
290
  ---------------*/
272
- & when (@variationMessageConsequences) {
291
+ & when not (@variationMessageConsequences = false) {
273
292
 
274
293
  @consequences: {
275
294
  @positive: {
@@ -278,6 +297,7 @@
278
297
  boxShadow : @positiveBoxShadow;
279
298
  boxFloatShadow : @positiveBoxFloatingShadow;
280
299
  text : @positiveTextColor;
300
+ invertedText : @positiveBorderColor;
281
301
  };
282
302
  @negative: {
283
303
  background : @negativeBackgroundColor;
@@ -285,6 +305,7 @@
285
305
  boxShadow : @negativeBoxShadow;
286
306
  boxFloatShadow : @negativeBoxFloatingShadow;
287
307
  text : @negativeTextColor;
308
+ invertedText : @negativeBorderColor;
288
309
  };
289
310
  @info: {
290
311
  background : @infoBackgroundColor;
@@ -292,6 +313,7 @@
292
313
  boxShadow : @infoBoxShadow;
293
314
  boxFloatShadow : @infoBoxFloatingShadow;
294
315
  text : @infoTextColor;
316
+ invertedText : @formInfoLabelBackground;
295
317
  };
296
318
  @warning: {
297
319
  background : @warningBackgroundColor;
@@ -299,6 +321,7 @@
299
321
  boxShadow : @warningBoxShadow;
300
322
  boxFloatShadow : @warningBoxFloatingShadow;
301
323
  text : @warningTextColor;
324
+ invertedText : @formWarningLabelBackground;
302
325
  };
303
326
  @error: {
304
327
  background : @errorBackgroundColor;
@@ -306,6 +329,7 @@
306
329
  boxShadow : @errorBoxShadow;
307
330
  boxFloatShadow : @errorBoxFloatingShadow;
308
331
  text : @errorTextColor;
332
+ invertedText : @formErrorLabelBackground;
309
333
  };
310
334
  @success: {
311
335
  background : @successBackgroundColor;
@@ -313,18 +337,20 @@
313
337
  boxShadow : @successBoxShadow;
314
338
  boxFloatShadow : @successBoxFloatingShadow;
315
339
  text : @successTextColor;
340
+ invertedText : @formSuccessLabelBackground;
316
341
  };
317
342
  }
318
343
 
319
344
  /* Colors */
320
345
 
321
- each(@consequences, {
322
- @color: replace(@key, '@', '');
346
+ each(@variationMessageConsequences, {
347
+ @color: @value;
323
348
  @bg: @consequences[@@color][background];
324
349
  @hd: @consequences[@@color][header];
325
350
  @bs: @consequences[@@color][boxShadow];
326
351
  @bfs: @consequences[@@color][boxFloatShadow];
327
352
  @t: @consequences[@@color][text];
353
+ @it: @consequences[@@color][invertedText];
328
354
 
329
355
  .ui.@{color}.message {
330
356
  background-color: @bg;
@@ -343,52 +369,59 @@
343
369
  .ui.@{color}.message .header {
344
370
  color: @hd;
345
371
  }
372
+ & when (@variationMessageInverted) {
373
+ .ui.inverted.@{color}.message,
374
+ .ui.inverted.@{color}.message .header {
375
+ color: @it;
376
+ }
377
+ }
346
378
  })
347
379
  }
380
+ & when not (@variationMessageColors = false) {
381
+ each(@variationMessageColors, {
382
+ @color: @value;
383
+ @bg: @colors[@@color][background];
384
+ @hd: @colors[@@color][header];
385
+ @bs: @colors[@@color][boxShadow];
386
+ @bfs: @colors[@@color][boxFloatShadow];
387
+ @t: @colors[@@color][text];
388
+ @isVeryDark: @colors[@@color][isVeryDark];
348
389
 
349
- each(@colors, {
350
- @color: replace(@key, '@', '');
351
- @bg: @colors[@@color][background];
352
- @hd: @colors[@@color][header];
353
- @bs: @colors[@@color][boxShadow];
354
- @bfs: @colors[@@color][boxFloatShadow];
355
- @t: @colors[@@color][text];
356
- @isVeryDark: @colors[@@color][isVeryDark];
357
-
358
- .ui.@{color}.message {
359
- & when not (@isVeryDark) {
360
- background-color: @bg;
361
- color: @t;
362
- }
363
- & when (@isVeryDark) {
364
- background-color: @black;
365
- color: @invertedTextColor;
390
+ .ui.@{color}.message {
391
+ & when not (@isVeryDark) {
392
+ background-color: @bg;
393
+ color: @t;
394
+ }
395
+ & when (@isVeryDark) {
396
+ background-color: @black;
397
+ color: @invertedTextColor;
398
+ }
366
399
  }
367
- }
368
400
 
369
- .ui.@{color}.message,
370
- .ui.attached.@{color}.message {
371
- & when not (@isVeryDark) {
372
- box-shadow: @bs;
373
- }
374
- }
375
- & when (@variationMessageFloating) {
376
- .ui.floating.@{color}.message {
401
+ .ui.@{color}.message,
402
+ .ui.attached.@{color}.message {
377
403
  & when not (@isVeryDark) {
378
- box-shadow: @bfs;
404
+ box-shadow: @bs;
379
405
  }
380
406
  }
381
- }
382
-
383
- .ui.@{color}.message .header {
384
- & when not (@isVeryDark) {
385
- color: @hd;
407
+ & when (@variationMessageFloating) {
408
+ .ui.floating.@{color}.message {
409
+ & when not (@isVeryDark) {
410
+ box-shadow: @bfs;
411
+ }
412
+ }
386
413
  }
387
- & when (@isVeryDark) {
388
- color: @invertedTextColor;
414
+
415
+ .ui.@{color}.message .header {
416
+ & when not (@isVeryDark) {
417
+ color: @hd;
418
+ }
419
+ & when (@isVeryDark) {
420
+ color: @invertedTextColor;
421
+ }
389
422
  }
390
- }
391
- })
423
+ })
424
+ }
392
425
 
393
426
  & when (@variationMessageInverted) {
394
427
  .ui.inverted.message {