fomantic-ui 2.9.0-beta.26 → 2.9.0-beta.260

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 (285) 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 +66 -39
  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 +38 -29
  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 +433 -246
  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 +37 -28
  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 +65 -38
  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/globals/site.variables +0 -1
  278. package/src/themes/material/modules/dropdown.overrides +1 -1
  279. package/src/themes/material/modules/modal.overrides +1 -1
  280. package/src/themes/rtl/globals/site.overrides +1 -1
  281. package/src/themes/twitter/elements/emoji.overrides +1734 -1232
  282. package/tasks/build/css.js +6 -1
  283. package/tasks/config/project/install.js +11 -5
  284. package/tasks/install.js +1 -0
  285. package/test/helpers/sinon.js +2 -2
@@ -271,9 +271,9 @@
271
271
  }
272
272
  }
273
273
 
274
- /* Pointing */
275
- .ui.menu .pointing.dropdown.item .menu {
276
- margin-top: @pointingDropdownMenuDistance;
274
+ /* Pointing */
275
+ .ui.menu .pointing.dropdown.item .menu {
276
+ margin-top: @pointingDropdownMenuDistance;
277
277
  }
278
278
 
279
279
  & when (@variationMenuInverted) {
@@ -679,11 +679,13 @@ Floated Menu / Item
679
679
  margin-bottom: -@tabularBorderWidth;
680
680
  box-shadow: @tabularActiveBoxShadow;
681
681
  border-radius: @tabularBorderRadius @tabularBorderRadius 0 0 !important;
682
+ &:hover {
683
+ cursor: default;
684
+ }
682
685
  }
683
686
 
684
687
  /* Coupling with segment for attachment */
685
- .ui.tabular.menu + .attached:not(.top).segment,
686
- .ui.tabular.menu + .attached:not(.top).segment + .attached:not(.top).segment {
688
+ .ui.tabular.menu ~ .attached:not(.top).segment {
687
689
  border-top: none;
688
690
  margin-left: 0;
689
691
  margin-top: 0;
@@ -774,6 +776,18 @@ Floated Menu / Item
774
776
  border-top: @tabularOppositeBorderWidth solid transparent;
775
777
  border-bottom: none;
776
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
+ }
777
791
  }
778
792
 
779
793
 
@@ -939,10 +953,11 @@ Floated Menu / Item
939
953
  .ui.vertical.secondary.menu .item > .menu .item {
940
954
  background-color: transparent;
941
955
  }
942
-
943
- /* Inverted */
944
- .ui.secondary.inverted.menu {
945
- background-color: transparent;
956
+ & when (@variationMenuInverted) {
957
+ /* Inverted */
958
+ .ui.secondary.inverted.menu {
959
+ background-color: transparent;
960
+ }
946
961
  }
947
962
  }
948
963
 
@@ -1209,51 +1224,59 @@ Floated Menu / Item
1209
1224
  }
1210
1225
  }
1211
1226
 
1212
- /*--------------
1213
- Icon Only
1214
- ---------------*/
1227
+ & when (@variationMenuIcon) {
1228
+ /*--------------
1229
+ Icon Only
1230
+ ---------------*/
1215
1231
 
1216
- /* Vertical Menu */
1217
- .ui.vertical.icon.menu {
1218
- display: inline-block;
1219
- width: auto;
1220
- }
1232
+ & when (@variationMenuVertical) {
1233
+ /* Vertical Menu */
1234
+ .ui.vertical.icon.menu {
1235
+ display: inline-block;
1236
+ width: auto;
1237
+ }
1238
+ }
1221
1239
 
1222
- /* Item */
1223
- .ui.icon.menu .item {
1224
- height: auto;
1225
- text-align: @iconMenuTextAlign;
1226
- color: @iconMenuItemColor;
1227
- }
1240
+ /* Item */
1241
+ .ui.icon.menu .item {
1242
+ height: auto;
1243
+ text-align: @iconMenuTextAlign;
1244
+ color: @iconMenuItemColor;
1245
+ }
1228
1246
 
1229
- /* Icon */
1230
- .ui.icon.menu .item > i.icon:not(.dropdown) {
1231
- margin: 0;
1232
- opacity: 1;
1233
- }
1247
+ /* Icon */
1248
+ .ui.icon.menu .item > i.icon:not(.dropdown) {
1249
+ margin: 0;
1250
+ opacity: 1;
1251
+ }
1234
1252
 
1235
- /* Icon Glyph */
1236
- .ui.icon.menu i.icon:before {
1237
- opacity: 1;
1238
- }
1253
+ /* Icon Glyph */
1254
+ .ui.icon.menu i.icon:before {
1255
+ opacity: 1;
1256
+ }
1239
1257
 
1240
- /* (x) Item Icon */
1241
- .ui.menu .icon.item > i.icon {
1242
- width: auto;
1243
- margin: 0 auto;
1244
- }
1258
+ /* (x) Item Icon */
1259
+ .ui.menu .icon.item > i.icon {
1260
+ width: auto;
1261
+ margin: 0 auto;
1262
+ }
1245
1263
 
1246
- /* Vertical Icon */
1247
- .ui.vertical.icon.menu .item > i.icon:not(.dropdown) {
1248
- display: block;
1249
- opacity: 1;
1250
- margin: 0 auto;
1251
- float: none;
1252
- }
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
+ }
1253
1273
 
1254
- /* Inverted */
1255
- .ui.inverted.icon.menu .item {
1256
- color: @iconMenuInvertedItemColor;
1274
+ /* Inverted */
1275
+ & when (@variationMenuInverted) {
1276
+ .ui.inverted.icon.menu .item {
1277
+ color: @iconMenuInvertedItemColor;
1278
+ }
1279
+ }
1257
1280
  }
1258
1281
 
1259
1282
  & when (@variationMenuLabeled) {
@@ -1340,22 +1363,23 @@ Floated Menu / Item
1340
1363
  /*--------------
1341
1364
  Colors
1342
1365
  ---------------*/
1366
+ & when not (@variationMenuColors = false) {
1367
+ each(@variationMenuColors, {
1368
+ @color: @value;
1369
+ @c: @colors[@@color][color];
1343
1370
 
1344
- each(@colors, {
1345
- @color: replace(@key, '@', '');
1346
- @c: @colors[@@color][color];
1347
-
1348
- & when not (@color=secondary) {
1349
- .ui.ui.ui.menu .@{color}.active.item,
1350
- .ui.ui.@{color}.menu .active.item:hover,
1351
- .ui.ui.@{color}.menu .active.item {
1352
- & when not (@secondaryPointingActiveBorderColor = currentColor) {
1353
- 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;
1354
1379
  }
1355
- color: @c;
1356
1380
  }
1357
- }
1358
- })
1381
+ })
1382
+ }
1359
1383
 
1360
1384
  & when (@variationMenuInverted) {
1361
1385
  /*--------------
@@ -1477,34 +1501,44 @@ each(@colors, {
1477
1501
  }
1478
1502
  }
1479
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
+
1480
1513
  & when (@variationMenuInverted) {
1481
1514
  /*--------------
1482
1515
  Inverted
1483
1516
  ---------------*/
1484
-
1485
- each(@colors, {
1486
- @color: replace(@key, '@', '');
1487
- @c: @colors[@@color][color];
1488
- @h: @colors[@@color][hover];
1489
-
1490
- & when not (@color=secondary) {
1491
- .ui.ui.ui.inverted.menu .@{color}.active.item,
1492
- .ui.ui.inverted.@{color}.menu {
1493
- background-color: @c;
1494
- }
1495
- .ui.inverted.@{color}.menu .item:before {
1496
- background-color: @invertedColoredDividerBackground;
1497
- }
1498
- .ui.ui.inverted.@{color}.menu .active.item {
1499
- background-color: @invertedColoredActiveBackground;
1500
- }
1501
- & when (@variationMenuPointing) {
1502
- .ui.inverted.pointing.@{color}.menu .active.item {
1503
- 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
+ }
1504
1538
  }
1505
1539
  }
1506
- }
1507
- })
1540
+ })
1541
+ }
1508
1542
 
1509
1543
  & when (@variationMenuPointing) {
1510
1544
  .ui.ui.ui.inverted.pointing.menu .active.item:after {
@@ -1616,38 +1650,40 @@ each(@colors, {
1616
1650
  display: none;
1617
1651
  }
1618
1652
 
1619
- .ui.menu.two.item .item {
1620
- width: 50%;
1621
- }
1622
- .ui.menu.three.item .item {
1623
- width: 33.333%;
1624
- }
1625
- .ui.menu.four.item .item {
1626
- width: 25%;
1627
- }
1628
- .ui.menu.five.item .item {
1629
- width: 20%;
1630
- }
1631
- .ui.menu.six.item .item {
1632
- width: 16.666%;
1633
- }
1634
- .ui.menu.seven.item .item {
1635
- width: 14.285%;
1636
- }
1637
- .ui.menu.eight.item .item {
1638
- width: 12.500%;
1639
- }
1640
- .ui.menu.nine.item .item {
1641
- width: 11.11%;
1642
- }
1643
- .ui.menu.ten.item .item {
1644
- width: 10.0%;
1645
- }
1646
- .ui.menu.eleven.item .item {
1647
- width: 9.09%;
1648
- }
1649
- .ui.menu.twelve.item .item {
1650
- 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
+ }
1651
1687
  }
1652
1688
 
1653
1689
  & when (@variationMenuFixed) {
@@ -1800,14 +1836,16 @@ each(@colors, {
1800
1836
  }
1801
1837
  }
1802
1838
 
1803
- each(@colors, {
1804
- @color: replace(@key, '@', '');
1805
- @c: @colors[@@color][color];
1839
+ & when not (@variationMenuColors = false) {
1840
+ each(@variationMenuColors, {
1841
+ @color: @value;
1842
+ @c: @colors[@@color][color];
1806
1843
 
1807
- .ui.inverted.pointing.menu .@{color}.active.item:after {
1808
- background-color: @c;
1809
- }
1810
- })
1844
+ .ui.inverted.pointing.menu .@{color}.active.item:after {
1845
+ background-color: @c;
1846
+ }
1847
+ })
1848
+ }
1811
1849
 
1812
1850
  & when (@variationMenuAttached) {
1813
1851
  /*--------------
@@ -1862,13 +1900,18 @@ each(@colors, {
1862
1900
  }
1863
1901
 
1864
1902
  /* Tabular Attached */
1865
- .ui.attached.menu:not(.tabular) {
1903
+ .ui.attached.menu:not(.tabular):not(.text) {
1866
1904
  border: @attachedBorder;
1867
1905
  }
1868
1906
  & when (@variationMenuInverted) {
1869
1907
  .ui.attached.inverted.menu {
1870
1908
  border: none;
1871
1909
  }
1910
+ & when (@variationMenuTabular) {
1911
+ .ui[class*="top attached"].inverted.tabular.menu {
1912
+ border-bottom: @invertedTabularBorder;
1913
+ }
1914
+ }
1872
1915
  }
1873
1916
  & when (@variationMenuTabular) {
1874
1917
  .ui.attached.tabular.menu {
@@ -1886,8 +1929,10 @@ each(@colors, {
1886
1929
  .ui.menu {
1887
1930
  font-size: @medium;
1888
1931
  }
1889
- .ui.vertical.menu {
1890
- width: @mediumWidth;
1932
+ & when (@variationMenuVertical) {
1933
+ .ui.vertical.menu {
1934
+ width: @mediumWidth;
1935
+ }
1891
1936
  }
1892
1937
  & when not (@variationMenuSizes = false) {
1893
1938
  each(@variationMenuSizes, {
@@ -1898,8 +1943,10 @@ each(@colors, {
1898
1943
  .ui.@{value}.menu .dropdown .menu > .item {
1899
1944
  font-size: @s;
1900
1945
  }
1901
- .ui.@{value}.vertical.menu:not(.icon) {
1902
- width: @@w;
1946
+ & when (@variationMenuVertical) {
1947
+ .ui.@{value}.vertical.menu:not(.icon) {
1948
+ width: @@w;
1949
+ }
1903
1950
  }
1904
1951
  })
1905
1952
  }
@@ -105,13 +105,14 @@
105
105
  margin-bottom: 0;
106
106
  }
107
107
 
108
-
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;
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
+ }
115
116
  }
116
117
  }
117
118
 
@@ -287,7 +288,7 @@
287
288
  /*--------------
288
289
  Types
289
290
  ---------------*/
290
- & when (@variationMessageConsequences) {
291
+ & when not (@variationMessageConsequences = false) {
291
292
 
292
293
  @consequences: {
293
294
  @positive: {
@@ -342,8 +343,8 @@
342
343
 
343
344
  /* Colors */
344
345
 
345
- each(@consequences, {
346
- @color: replace(@key, '@', '');
346
+ each(@variationMessageConsequences, {
347
+ @color: @value;
347
348
  @bg: @consequences[@@color][background];
348
349
  @hd: @consequences[@@color][header];
349
350
  @bs: @consequences[@@color][boxShadow];
@@ -376,50 +377,51 @@
376
377
  }
377
378
  })
378
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];
379
389
 
380
- each(@colors, {
381
- @color: replace(@key, '@', '');
382
- @bg: @colors[@@color][background];
383
- @hd: @colors[@@color][header];
384
- @bs: @colors[@@color][boxShadow];
385
- @bfs: @colors[@@color][boxFloatShadow];
386
- @t: @colors[@@color][text];
387
- @isVeryDark: @colors[@@color][isVeryDark];
388
-
389
- .ui.@{color}.message {
390
- & when not (@isVeryDark) {
391
- background-color: @bg;
392
- color: @t;
393
- }
394
- & when (@isVeryDark) {
395
- background-color: @black;
396
- 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
+ }
397
399
  }
398
- }
399
400
 
400
- .ui.@{color}.message,
401
- .ui.attached.@{color}.message {
402
- & when not (@isVeryDark) {
403
- box-shadow: @bs;
404
- }
405
- }
406
- & when (@variationMessageFloating) {
407
- .ui.floating.@{color}.message {
401
+ .ui.@{color}.message,
402
+ .ui.attached.@{color}.message {
408
403
  & when not (@isVeryDark) {
409
- box-shadow: @bfs;
404
+ box-shadow: @bs;
410
405
  }
411
406
  }
412
- }
413
-
414
- .ui.@{color}.message .header {
415
- & when not (@isVeryDark) {
416
- color: @hd;
407
+ & when (@variationMessageFloating) {
408
+ .ui.floating.@{color}.message {
409
+ & when not (@isVeryDark) {
410
+ box-shadow: @bfs;
411
+ }
412
+ }
417
413
  }
418
- & when (@isVeryDark) {
419
- color: @invertedTextColor;
414
+
415
+ .ui.@{color}.message .header {
416
+ & when not (@isVeryDark) {
417
+ color: @hd;
418
+ }
419
+ & when (@isVeryDark) {
420
+ color: @invertedTextColor;
421
+ }
420
422
  }
421
- }
422
- })
423
+ })
424
+ }
423
425
 
424
426
  & when (@variationMessageInverted) {
425
427
  .ui.inverted.message {