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

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
@@ -238,9 +238,9 @@
238
238
  .ui.definition.table:not(.unstackable) > thead > tr > th:first-child {
239
239
  box-shadow: none !important;
240
240
  }
241
- & when (@variationTableMarked) {
242
- each(@colors, {
243
- @color: replace(@key, '@', '');
241
+ & when (@variationTableMarked) and not (@variationTableColors = false) {
242
+ each(@variationTableColors, {
243
+ @color: @value;
244
244
  @c: @colors[@@color][color];
245
245
  @l: @colors[@@color][light];
246
246
  .ui.ui.ui.ui.table:not(.unstackable) tr.marked.@{color} {
@@ -263,6 +263,312 @@
263
263
  }
264
264
  })
265
265
  }
266
+ & when (@variationTableScrolling) {
267
+ & when (@variationTableScrollingShort) {
268
+ .ui.scrolling.table.short > tbody {
269
+ max-height: @scrollingMobileMaxBodyHeight * 0.75;
270
+ }
271
+ }
272
+ & when (@variationTableScrollingVeryShort) {
273
+ .ui.scrolling.table[class*="very short"] > tbody {
274
+ max-height: @scrollingMobileMaxBodyHeight * 0.5;
275
+ }
276
+ }
277
+ .ui.scrolling.table > tbody {
278
+ max-height: @scrollingMobileMaxBodyHeight;
279
+ }
280
+ & when (@variationTableScrollingLong) {
281
+ .ui.scrolling.table.long > tbody {
282
+ max-height: @scrollingMobileMaxBodyHeight * 2;
283
+ }
284
+ }
285
+ & when (@variationTableScrollingVeryLong) {
286
+ .ui.scrolling.table[class*="very long"] > tbody {
287
+ max-height: @scrollingMobileMaxBodyHeight * 3;
288
+ }
289
+ }
290
+ }
291
+ & when (@variationTableOverflowing) {
292
+ & when (@variationTableOverflowingShort) {
293
+ .ui.overflowing.table.short {
294
+ max-height: @overflowingMobileMaxHeight * 0.75;
295
+ }
296
+ }
297
+ & when (@variationTableOverflowingVeryShort) {
298
+ .ui.overflowing.table[class*="very short"] {
299
+ max-height: @overflowingMobileMaxHeight * 0.5;
300
+ }
301
+ }
302
+ .ui.overflowing.table {
303
+ max-height: @overflowingMobileMaxHeight;
304
+ }
305
+ & when (@variationTableOverflowingLong) {
306
+ .ui.overflowing.table.long {
307
+ max-height: @overflowingMobileMaxHeight * 2;
308
+ }
309
+ }
310
+ & when (@variationTableOverflowingVeryLong) {
311
+ .ui.overflowing.table[class*="very long"] {
312
+ max-height: @overflowingMobileMaxHeight * 3;
313
+ }
314
+ }
315
+ }
316
+ }
317
+ & when (@variationTableScrolling) {
318
+ /*--------------
319
+ Scrolling
320
+ ---------------*/
321
+ @media only screen and (min-width: @tabletBreakpoint) {
322
+ & when (@variationTableScrollingShort) {
323
+ .ui.scrolling.table.short > tbody {
324
+ max-height: @scrollingTabletMaxBodyHeight * 0.75;
325
+ }
326
+ }
327
+ & when (@variationTableScrollingVeryShort) {
328
+ .ui.scrolling.table[class*="very short"] > tbody {
329
+ max-height: @scrollingTabletMaxBodyHeight * 0.5;
330
+ }
331
+ }
332
+ .ui.scrolling.table > tbody {
333
+ max-height: @scrollingTabletMaxBodyHeight;
334
+ }
335
+ & when (@variationTableScrollingLong) {
336
+ .ui.scrolling.table.long > tbody {
337
+ max-height: @scrollingTabletMaxBodyHeight * 2;
338
+ }
339
+ }
340
+ & when (@variationTableScrollingVeryLong) {
341
+ .ui.scrolling.table[class*="very long"] > tbody {
342
+ max-height: @scrollingTabletMaxBodyHeight * 3;
343
+ }
344
+ }
345
+ }
346
+ @media only screen and (min-width: @computerBreakpoint) {
347
+ & when (@variationTableScrollingShort) {
348
+ .ui.scrolling.table.short > tbody {
349
+ max-height: @scrollingComputerMaxBodyHeight * 0.75;
350
+ }
351
+ }
352
+ & when (@variationTableScrollingVeryShort) {
353
+ .ui.scrolling.table[class*="very short"] > tbody {
354
+ max-height: @scrollingComputerMaxBodyHeight * 0.5;
355
+ }
356
+ }
357
+ .ui.scrolling.table > tbody {
358
+ max-height: @scrollingComputerMaxBodyHeight;
359
+ }
360
+ & when (@variationTableScrollingLong) {
361
+ .ui.scrolling.table.long > tbody {
362
+ max-height: @scrollingComputerMaxBodyHeight * 2;
363
+ }
364
+ }
365
+ & when (@variationTableScrollingVeryLong) {
366
+ .ui.scrolling.table[class*="very long"] > tbody {
367
+ max-height: @scrollingComputerMaxBodyHeight * 3;
368
+ }
369
+ }
370
+ }
371
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
372
+ & when (@variationTableScrollingShort) {
373
+ .ui.scrolling.table.short > tbody {
374
+ max-height: @scrollingWidescreenMaxBodyHeight * 0.75;
375
+ }
376
+ }
377
+ & when (@variationTableScrollingVeryShort) {
378
+ .ui.scrolling.table[class*="very short"] > tbody {
379
+ max-height: @scrollingWidescreenMaxBodyHeight * 0.5;
380
+ }
381
+ }
382
+ .ui.scrolling.table > tbody {
383
+ max-height: @scrollingWidescreenMaxBodyHeight;
384
+ }
385
+ & when (@variationTableScrollingLong) {
386
+ .ui.scrolling.table.long > tbody {
387
+ max-height: @scrollingWidescreenMaxBodyHeight * 2;
388
+ }
389
+ }
390
+ & when (@variationTableScrollingVeryLong) {
391
+ .ui.scrolling.table[class*="very long"] > tbody {
392
+ max-height: @scrollingWidescreenMaxBodyHeight * 3;
393
+ }
394
+ }
395
+ }
396
+
397
+ .ui.scrolling.table > thead,
398
+ .ui.scrolling.table > tfoot,
399
+ .ui.scrolling.table > tbody {
400
+ display: block;
401
+ overflow-y: scroll;
402
+ scrollbar-width: thin; /* Firefox */
403
+ & > tr {
404
+ display: table;
405
+ table-layout: fixed;
406
+ width: 100%;
407
+ }
408
+ }
409
+
410
+ /* Camouflage scrollbars, we need them only to gain the same width as tbody */
411
+ .ui.scrolling.table > thead {
412
+ background: @headerBackground;
413
+ color: @headerBackground;
414
+ border-radius: @borderRadius @borderRadius 0 0;
415
+ }
416
+ .ui.scrolling.table > tfoot {
417
+ background: @footerBackground;
418
+ color: @footerBackground;
419
+ border-radius: 0 0 @borderRadius @borderRadius;
420
+ }
421
+ & when (@variationTableInverted) {
422
+ .ui.inverted.scrolling.table > thead {
423
+ background: @invertedHeaderBackground;
424
+ color: @invertedHeaderBackground;
425
+ }
426
+ .ui.inverted.scrolling.table > tfoot {
427
+ background: @invertedFooterBackground;
428
+ color: @invertedFooterBackground;
429
+ }
430
+ }
431
+ .ui.scrolling.table > thead::-webkit-scrollbar-track,
432
+ .ui.scrolling.table > tfoot::-webkit-scrollbar-track {
433
+ background: inherit;
434
+ border-radius: @borderRadius;
435
+ }
436
+
437
+ /* Firefox & IE */
438
+ .ui.scrolling.table > thead,
439
+ .ui.scrolling.table > tfoot {
440
+ scrollbar-color: currentColor currentColor;
441
+ scrollbar-face-color: currentColor;
442
+ scrollbar-shadow-color: currentColor;
443
+ scrollbar-track-color: currentColor;
444
+ scrollbar-arrow-color: currentColor;
445
+ }
446
+ /* IE scrollbar color needs hex values */
447
+ @media all and (-ms-high-contrast:none) {
448
+ .ui.scrolling.table > thead {
449
+ color: @headerBackgroundHex;
450
+ }
451
+ .ui.scrolling.table > tfoot {
452
+ color: @footerBackgroundHex;
453
+ }
454
+ & when (@variationTableInverted) {
455
+ .ui.inverted.scrolling.table > thead {
456
+ color: @invertedHeaderBackgroundHex;
457
+ }
458
+ .ui.inverted.scrolling.table > tfoot {
459
+ color: @invertedFooterBackgroundHex;
460
+ }
461
+ }
462
+ }
463
+ & when (@variationTableInverted) {
464
+ .ui.inverted.scrolling.table > tbody::-webkit-scrollbar-track {
465
+ background: @trackInvertedBackground;
466
+ }
467
+ .ui.inverted.scrolling.table > tbody::-webkit-scrollbar-thumb {
468
+ background: @thumbInvertedBackground;
469
+ }
470
+ .ui.inverted.scrolling.table > tbody::-webkit-scrollbar-thumb:window-inactive {
471
+ background: @thumbInvertedInactiveBackground;
472
+ }
473
+ .ui.inverted.scrolling.table > tbody::-webkit-scrollbar-thumb:hover {
474
+ background: @thumbInvertedHoverBackground;
475
+ }
476
+ .ui.inverted.scrolling.table > tbody {
477
+ /* IE11 */
478
+ scrollbar-face-color: @thumbInvertedBackgroundHex;
479
+ scrollbar-shadow-color: @thumbInvertedBackgroundHex;
480
+ scrollbar-track-color: @trackInvertedBackgroundHex;
481
+ scrollbar-arrow-color: @trackInvertedBackgroundHex;
482
+
483
+ /* firefox : first color thumb, second track */
484
+ scrollbar-color: @thumbInvertedBackground @trackInvertedBackground;
485
+ }
486
+ }
487
+
488
+ }
489
+ & when (@variationTableOverflowing) {
490
+ /*--------------
491
+ Overflowing
492
+ ---------------*/
493
+ .ui.overflowing.table {
494
+ display: block;
495
+ overflow: auto;
496
+ }
497
+ @media only screen and (min-width: @tabletBreakpoint) {
498
+ & when (@variationTableOverflowingShort) {
499
+ .ui.overflowing.table.short {
500
+ max-height: @overflowingTabletMaxHeight * 0.75;
501
+ }
502
+ }
503
+ & when (@variationTableOverflowingVeryShort) {
504
+ .ui.overflowing.table[class*="very short"] {
505
+ max-height: @overflowingTabletMaxHeight * 0.5;
506
+ }
507
+ }
508
+ .ui.overflowing.table {
509
+ max-height: @overflowingTabletMaxHeight;
510
+ }
511
+ & when (@variationTableOverflowingLong) {
512
+ .ui.overflowing.table.long {
513
+ max-height: @overflowingTabletMaxHeight * 2;
514
+ }
515
+ }
516
+ & when (@variationTableOverflowingVeryLong) {
517
+ .ui.overflowing.table[class*="very long"] {
518
+ max-height: @overflowingTabletMaxHeight * 3;
519
+ }
520
+ }
521
+ }
522
+ @media only screen and (min-width: @computerBreakpoint) {
523
+ & when (@variationTableOverflowingShort) {
524
+ .ui.overflowing.table.short {
525
+ max-height: @overflowingComputerMaxHeight * 0.75;
526
+ }
527
+ }
528
+ & when (@variationTableOverflowingVeryShort) {
529
+ .ui.overflowing.table[class*="very short"] {
530
+ max-height: @overflowingComputerMaxHeight * 0.5;
531
+ }
532
+ }
533
+ .ui.overflowing.table {
534
+ max-height: @overflowingComputerMaxHeight;
535
+ }
536
+ & when (@variationTableOverflowingLong) {
537
+ .ui.overflowing.table.long {
538
+ max-height: @overflowingComputerMaxHeight * 2;
539
+ }
540
+ }
541
+ & when (@variationTableOverflowingVeryLong) {
542
+ .ui.overflowing.table[class*="very long"]{
543
+ max-height: @overflowingComputerMaxHeight * 3;
544
+ }
545
+ }
546
+ }
547
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
548
+ & when (@variationTableOverflowingShort) {
549
+ .ui.overflowing.table.short {
550
+ max-height: @overflowingWidescreenMaxHeight * 0.75;
551
+ }
552
+ }
553
+ & when (@variationTableOverflowingVeryShort) {
554
+ .ui.overflowing.table[class*="very short"] {
555
+ max-height: @overflowingWidescreenMaxHeight * 0.5;
556
+ }
557
+ }
558
+ .ui.overflowing.table {
559
+ max-height: @overflowingWidescreenMaxHeight;
560
+ }
561
+ & when (@variationTableOverflowingLong) {
562
+ .ui.overflowing.table.long {
563
+ max-height: @overflowingWidescreenMaxHeight * 2;
564
+ }
565
+ }
566
+ & when (@variationTableOverflowingVeryLong) {
567
+ .ui.overflowing.table[class*="very long"] {
568
+ max-height: @overflowingWidescreenMaxHeight * 3;
569
+ }
570
+ }
571
+ }
266
572
  }
267
573
 
268
574
 
@@ -392,6 +698,13 @@
392
698
  background: @positiveBackgroundColor;
393
699
  color: @positiveColor;
394
700
  }
701
+ & when (@variationTableInverted) {
702
+ .ui.ui.ui.ui.inverted.table tr.positive,
703
+ .ui.ui.inverted.table td.positive {
704
+ background: @invertedPositiveBackgroundColor;
705
+ color: @invertedPositiveColor;
706
+ }
707
+ }
395
708
  }
396
709
 
397
710
  & when (@variationTableNegative) {
@@ -405,6 +718,13 @@
405
718
  background: @negativeBackgroundColor;
406
719
  color: @negativeColor;
407
720
  }
721
+ & when (@variationTableInverted) {
722
+ .ui.ui.ui.ui.inverted.table tr.negative,
723
+ .ui.ui.inverted.table td.negative {
724
+ background: @invertedNegativeBackgroundColor;
725
+ color: @invertedNegativeColor;
726
+ }
727
+ }
408
728
  }
409
729
 
410
730
  & when (@variationTableError) {
@@ -418,6 +738,13 @@
418
738
  background: @errorBackgroundColor;
419
739
  color: @errorColor;
420
740
  }
741
+ & when (@variationTableInverted) {
742
+ .ui.ui.ui.ui.inverted.table tr.error,
743
+ .ui.ui.inverted.table td.error {
744
+ background: @invertedErrorBackgroundColor;
745
+ color: @invertedErrorColor;
746
+ }
747
+ }
421
748
  }
422
749
 
423
750
  & when (@variationTableWarning) {
@@ -431,6 +758,13 @@
431
758
  background: @warningBackgroundColor;
432
759
  color: @warningColor;
433
760
  }
761
+ & when (@variationTableInverted) {
762
+ .ui.ui.ui.ui.inverted.table tr.warning,
763
+ .ui.ui.inverted.table td.warning {
764
+ background: @invertedWarningBackgroundColor;
765
+ color: @invertedWarningColor;
766
+ }
767
+ }
434
768
  }
435
769
 
436
770
  & when (@variationTableActive) {
@@ -444,6 +778,13 @@
444
778
  background: @activeBackgroundColor;
445
779
  color: @activeColor;
446
780
  }
781
+ & when (@variationTableInverted) {
782
+ .ui.ui.ui.ui.inverted.table tr.active,
783
+ .ui.ui.inverted.table td.active {
784
+ background: @invertedActiveBackgroundColor;
785
+ color: @invertedActiveColor;
786
+ }
787
+ }
447
788
  }
448
789
 
449
790
 
@@ -452,8 +793,8 @@
452
793
  Disabled
453
794
  ---------------*/
454
795
 
455
- .ui.table tr.disabled td,
456
- .ui.table tr td.disabled,
796
+ .ui.ui.ui.table tr.disabled td,
797
+ .ui.ui.ui.table tr td.disabled,
457
798
  .ui.table tr.disabled:hover,
458
799
  .ui.table tr:hover td.disabled {
459
800
  pointer-events: none;
@@ -526,9 +867,9 @@
526
867
  }
527
868
  }
528
869
  }
529
- & when (@variationTableMarked) {
530
- each(@colors, {
531
- @color: replace(@key, '@', '');
870
+ & when (@variationTableMarked) and not (@variationTableColors = false) {
871
+ each(@variationTableColors, {
872
+ @color: @value;
532
873
  @c: @colors[@@color][color];
533
874
  @l: @colors[@@color][light];
534
875
  .ui.ui.ui.ui[class*="tablet stackable"].table tr.marked.@{color} {
@@ -642,6 +983,8 @@
642
983
  .ui.table tbody tr td.selectable > a:not(.ui) {
643
984
  display: block;
644
985
  color: inherit;
986
+ }
987
+ .ui.table:not(.compact) tbody tr td.selectable > a:not(.ui) {
645
988
  padding: @cellVerticalPadding @cellHorizontalPadding;
646
989
  }
647
990
  .ui.table > tr > td.selectable,
@@ -778,208 +1121,294 @@
778
1121
  /*-------------------
779
1122
  Colors
780
1123
  --------------------*/
781
-
782
- each(@colors, {
783
- @color: replace(@key, '@', '');
784
- @c: @colors[@@color][color];
785
- @t: @colors[@@color][text];
786
- @ht: @colors[@@color][hoverText];
787
- @l: @colors[@@color][light];
788
- @lh: @colors[@@color][lightHover];
789
- @r: @colors[@@color][ribbon];
790
- @b: @colors[@@color][bright];
791
- @bh: @colors[@@color][brightHover];
792
- @isDark: @colors[@@color][isDark];
793
- @isVeryDark: @colors[@@color][isVeryDark];
794
-
795
- .ui.@{color}.table {
796
- border-top: @coloredBorderSize solid @c;
797
- }
798
- & when (@variationTableInverted) {
799
- .ui.inverted.@{color}.table {
800
- background-color: @c;
801
- color: @white;
802
- }
803
- }
804
- .ui.ui.ui.ui.table tr.@{color}:not(.marked),
805
- .ui.ui.table td.@{color}:not(.marked) {
806
- & when (@stateMarkerWidth > 0) {
807
- box-shadow: @stateMarkerWidth 0 0 @r inset;
1124
+ & when not (@variationTableColors = false) {
1125
+ each(@variationTableColors, {
1126
+ @color: @value;
1127
+ @c: @colors[@@color][color];
1128
+ @t: @colors[@@color][text];
1129
+ @ht: @colors[@@color][hoverText];
1130
+ @l: @colors[@@color][light];
1131
+ @lh: @colors[@@color][lightHover];
1132
+ @r: @colors[@@color][ribbon];
1133
+ @b: @colors[@@color][bright];
1134
+ @bh: @colors[@@color][brightHover];
1135
+ @isDark: @colors[@@color][isDark];
1136
+ @isVeryDark: @colors[@@color][isVeryDark];
1137
+
1138
+ .ui.@{color}.table {
1139
+ border-top: @coloredBorderSize solid @c;
808
1140
  }
809
- & when (@isDark) {
810
- background: @l;
811
- }
812
- & when not (@isDark) {
813
- background: @b;
814
- }
815
- & when (@isVeryDark) {
816
- color: @white;
1141
+ & when (@variationTableInverted) {
1142
+ .ui.inverted.@{color}.table {
1143
+ background: @c;
1144
+ color: @white;
1145
+ }
817
1146
  }
818
- & when not (@isVeryDark) {
819
- color: @t;
1147
+ /* Same color for background and color to camouflage the scrollbar */
1148
+ & when (@variationTableScrolling) {
1149
+ .ui.scrolling.table > thead.@{color},
1150
+ .ui.scrolling.table > tfoot.@{color} {
1151
+ & when (@isDark) {
1152
+ background: @l;
1153
+ color: @l;
1154
+ }
1155
+ & when not (@isDark) {
1156
+ background: @b;
1157
+ color: @b;
1158
+ }
1159
+ & > tr > th,
1160
+ > tr > td {
1161
+ background: inherit;
1162
+ & when (@isVeryDark) {
1163
+ color: @white;
1164
+ }
1165
+ & when not (@isVeryDark) {
1166
+ color: @t;
1167
+ }
1168
+ }
1169
+ }
1170
+ & when (@variationTableInverted) {
1171
+ .ui.inverted.scrolling.table > thead.@{color},
1172
+ .ui.inverted.scrolling.table > tfoot.@{color} {
1173
+ background: @c;
1174
+ color: @c;
1175
+ & > tr > th,
1176
+ > tr > td {
1177
+ background: inherit;
1178
+ color: @white;
1179
+ }
1180
+ }
1181
+ }
820
1182
  }
821
- }
822
- & when (@variationTableSelectable) {
823
- .ui.ui.selectable.table tr.@{color}:not(.marked):hover,
824
- .ui.table tr td.selectable.@{color}:not(.marked):hover,
825
- .ui.selectable.table tr:hover td.@{color}:not(.marked) {
1183
+ .ui.ui.ui.ui.table tr.@{color}:not(.marked),
1184
+ .ui.ui.table th.@{color}:not(.marked),
1185
+ .ui.ui.table td.@{color}:not(.marked) {
1186
+ & when (@stateMarkerWidth > 0) {
1187
+ box-shadow: @stateMarkerWidth 0 0 @r inset;
1188
+ }
826
1189
  & when (@isDark) {
827
- background: @lh;
1190
+ background: @l;
828
1191
  }
829
1192
  & when not (@isDark) {
830
- background: @bh;
1193
+ background: @b;
831
1194
  }
832
1195
  & when (@isVeryDark) {
833
1196
  color: @white;
834
1197
  }
835
1198
  & when not (@isVeryDark) {
836
- color: @ht;
1199
+ color: @t;
837
1200
  }
838
1201
  }
839
- }
840
- & when (@variationTableMarked) {
841
- .ui.table td.marked.@{color},
842
- .ui.table tr.marked.@{color} {
843
- &.left {
844
- box-shadow: @coloredBorderSize 0 0 0 @c inset;
1202
+ .ui.table > thead > tr.@{color}:not(.marked) > th,
1203
+ .ui.table > tfoot > tr.@{color}:not(.marked) > th,
1204
+ .ui.table > tfoot > tr.@{color}:not(.marked) > td {
1205
+ background: inherit;
1206
+ & when (@isVeryDark) {
1207
+ color: @white;
845
1208
  }
846
- &.right {
847
- box-shadow: -@coloredBorderSize 0 0 0 @c inset;
1209
+ & when not (@isVeryDark) {
1210
+ color: @t;
848
1211
  }
849
1212
  }
1213
+
850
1214
  & when (@variationTableInverted) {
851
- .ui.inverted.table td.marked.@{color},
852
- .ui.inverted.table tr.marked.@{color} {
1215
+ .ui.ui.ui.ui.inverted.table tr.@{color}:not(.marked),
1216
+ .ui.ui.inverted.table th.@{color}:not(.marked),
1217
+ .ui.ui.inverted.table td.@{color}:not(.marked) {
1218
+ background: @c;
1219
+ color: @white;
1220
+ }
1221
+ .ui.inverted.table > thead > tr.@{color}:not(.marked) > th,
1222
+ .ui.inverted.table > tfoot > tr.@{color}:not(.marked) > th,
1223
+ .ui.inverted.table > tfoot > tr.@{color}:not(.marked) > td {
1224
+ background: inherit;
1225
+ color: @white;
1226
+ }
1227
+ }
1228
+ & when (@variationTableSelectable) {
1229
+ .ui.ui.selectable.table tr.@{color}:not(.marked):hover,
1230
+ .ui.table tr td.selectable.@{color}:not(.marked):hover,
1231
+ .ui.selectable.table tr:hover td.@{color}:not(.marked) {
1232
+ & when (@isDark) {
1233
+ background: @lh;
1234
+ }
1235
+ & when not (@isDark) {
1236
+ background: @bh;
1237
+ }
1238
+ & when (@isVeryDark) {
1239
+ color: @white;
1240
+ }
1241
+ & when not (@isVeryDark) {
1242
+ color: @ht;
1243
+ }
1244
+ }
1245
+ & when (@variationTableInverted) {
1246
+ .ui.ui.inverted.selectable.table tr.@{color}:not(.marked):hover,
1247
+ .ui.inverted.table tr td.selectable.@{color}:not(.marked):hover,
1248
+ .ui.inverted.selectable.table tr:hover td.@{color}:not(.marked) {
1249
+ & when (@isDark) {
1250
+ background: @bh;
1251
+ }
1252
+ & when not (@isDark) {
1253
+ background: @lh;
1254
+ }
1255
+ & when (@isVeryDark) {
1256
+ color: @ht;
1257
+ }
1258
+ & when not (@isVeryDark) {
1259
+ color: @white;
1260
+ }
1261
+ }
1262
+ }
1263
+ }
1264
+ & when (@variationTableMarked) {
1265
+ .ui.table td.marked.@{color},
1266
+ .ui.table tr.marked.@{color} {
853
1267
  &.left {
854
- box-shadow: @coloredBorderSize 0 0 0 @l inset;
1268
+ box-shadow: @coloredBorderSize 0 0 0 @c inset;
855
1269
  }
856
1270
  &.right {
857
- box-shadow: -@coloredBorderSize 0 0 0 @l inset;
1271
+ box-shadow: -@coloredBorderSize 0 0 0 @c inset;
1272
+ }
1273
+ }
1274
+ & when (@variationTableInverted) {
1275
+ .ui.inverted.table td.marked.@{color},
1276
+ .ui.inverted.table tr.marked.@{color} {
1277
+ &.left {
1278
+ box-shadow: @coloredBorderSize 0 0 0 @l inset;
1279
+ }
1280
+ &.right {
1281
+ box-shadow: -@coloredBorderSize 0 0 0 @l inset;
1282
+ }
858
1283
  }
859
1284
  }
860
1285
  }
861
- }
862
1286
 
863
- })
1287
+ })
1288
+ }
864
1289
 
865
- /*--------------
866
- Column Count
867
- ---------------*/
1290
+ & when (@variationTableEqualWidth) {
1291
+ /*--------------
1292
+ Column Count
1293
+ ---------------*/
868
1294
 
869
- /* Grid Based */
870
- .ui.one.column.table td {
871
- width: @oneColumn;
872
- }
873
- .ui.two.column.table td {
874
- width: @twoColumn;
875
- }
876
- .ui.three.column.table td {
877
- width: @threeColumn;
878
- }
879
- .ui.four.column.table td {
880
- width: @fourColumn;
881
- }
882
- .ui.five.column.table td {
883
- width: @fiveColumn;
884
- }
885
- .ui.six.column.table td {
886
- width: @sixColumn;
887
- }
888
- .ui.seven.column.table td {
889
- width: @sevenColumn;
890
- }
891
- .ui.eight.column.table td {
892
- width: @eightColumn;
893
- }
894
- .ui.nine.column.table td {
895
- width: @nineColumn;
896
- }
897
- .ui.ten.column.table td {
898
- width: @tenColumn;
899
- }
900
- .ui.eleven.column.table td {
901
- width: @elevenColumn;
902
- }
903
- .ui.twelve.column.table td {
904
- width: @twelveColumn;
905
- }
906
- .ui.thirteen.column.table td {
907
- width: @thirteenColumn;
908
- }
909
- .ui.fourteen.column.table td {
910
- width: @fourteenColumn;
911
- }
912
- .ui.fifteen.column.table td {
913
- width: @fifteenColumn;
914
- }
915
- .ui.sixteen.column.table td {
916
- width: @sixteenColumn;
1295
+ /* Grid Based */
1296
+ .ui.one.column.table td {
1297
+ width: @oneColumn;
1298
+ }
1299
+ .ui.two.column.table td {
1300
+ width: @twoColumn;
1301
+ }
1302
+ .ui.three.column.table td {
1303
+ width: @threeColumn;
1304
+ }
1305
+ .ui.four.column.table td {
1306
+ width: @fourColumn;
1307
+ }
1308
+ .ui.five.column.table td {
1309
+ width: @fiveColumn;
1310
+ }
1311
+ .ui.six.column.table td {
1312
+ width: @sixColumn;
1313
+ }
1314
+ .ui.seven.column.table td {
1315
+ width: @sevenColumn;
1316
+ }
1317
+ .ui.eight.column.table td {
1318
+ width: @eightColumn;
1319
+ }
1320
+ .ui.nine.column.table td {
1321
+ width: @nineColumn;
1322
+ }
1323
+ .ui.ten.column.table td {
1324
+ width: @tenColumn;
1325
+ }
1326
+ .ui.eleven.column.table td {
1327
+ width: @elevenColumn;
1328
+ }
1329
+ .ui.twelve.column.table td {
1330
+ width: @twelveColumn;
1331
+ }
1332
+ .ui.thirteen.column.table td {
1333
+ width: @thirteenColumn;
1334
+ }
1335
+ .ui.fourteen.column.table td {
1336
+ width: @fourteenColumn;
1337
+ }
1338
+ .ui.fifteen.column.table td {
1339
+ width: @fifteenColumn;
1340
+ }
1341
+ .ui.sixteen.column.table td {
1342
+ width: @sixteenColumn;
1343
+ }
917
1344
  }
918
1345
 
919
- /* Column Width */
920
- .ui.table th.one.wide,
921
- .ui.table td.one.wide {
922
- width: @oneWide;
923
- }
924
- .ui.table th.two.wide,
925
- .ui.table td.two.wide {
926
- width: @twoWide;
927
- }
928
- .ui.table th.three.wide,
929
- .ui.table td.three.wide {
930
- width: @threeWide;
931
- }
932
- .ui.table th.four.wide,
933
- .ui.table td.four.wide {
934
- width: @fourWide;
935
- }
936
- .ui.table th.five.wide,
937
- .ui.table td.five.wide {
938
- width: @fiveWide;
939
- }
940
- .ui.table th.six.wide,
941
- .ui.table td.six.wide {
942
- width: @sixWide;
943
- }
944
- .ui.table th.seven.wide,
945
- .ui.table td.seven.wide {
946
- width: @sevenWide;
947
- }
948
- .ui.table th.eight.wide,
949
- .ui.table td.eight.wide {
950
- width: @eightWide;
951
- }
952
- .ui.table th.nine.wide,
953
- .ui.table td.nine.wide {
954
- width: @nineWide;
955
- }
956
- .ui.table th.ten.wide,
957
- .ui.table td.ten.wide {
958
- width: @tenWide;
959
- }
960
- .ui.table th.eleven.wide,
961
- .ui.table td.eleven.wide {
962
- width: @elevenWide;
963
- }
964
- .ui.table th.twelve.wide,
965
- .ui.table td.twelve.wide {
966
- width: @twelveWide;
967
- }
968
- .ui.table th.thirteen.wide,
969
- .ui.table td.thirteen.wide {
970
- width: @thirteenWide;
971
- }
972
- .ui.table th.fourteen.wide,
973
- .ui.table td.fourteen.wide {
974
- width: @fourteenWide;
975
- }
976
- .ui.table th.fifteen.wide,
977
- .ui.table td.fifteen.wide {
978
- width: @fifteenWide;
979
- }
980
- .ui.table th.sixteen.wide,
981
- .ui.table td.sixteen.wide {
982
- width: @sixteenWide;
1346
+ & when (@variationTableWide) {
1347
+ /* Column Width */
1348
+ .ui.table th.one.wide,
1349
+ .ui.table td.one.wide {
1350
+ width: @oneWide;
1351
+ }
1352
+ .ui.table th.two.wide,
1353
+ .ui.table td.two.wide {
1354
+ width: @twoWide;
1355
+ }
1356
+ .ui.table th.three.wide,
1357
+ .ui.table td.three.wide {
1358
+ width: @threeWide;
1359
+ }
1360
+ .ui.table th.four.wide,
1361
+ .ui.table td.four.wide {
1362
+ width: @fourWide;
1363
+ }
1364
+ .ui.table th.five.wide,
1365
+ .ui.table td.five.wide {
1366
+ width: @fiveWide;
1367
+ }
1368
+ .ui.table th.six.wide,
1369
+ .ui.table td.six.wide {
1370
+ width: @sixWide;
1371
+ }
1372
+ .ui.table th.seven.wide,
1373
+ .ui.table td.seven.wide {
1374
+ width: @sevenWide;
1375
+ }
1376
+ .ui.table th.eight.wide,
1377
+ .ui.table td.eight.wide {
1378
+ width: @eightWide;
1379
+ }
1380
+ .ui.table th.nine.wide,
1381
+ .ui.table td.nine.wide {
1382
+ width: @nineWide;
1383
+ }
1384
+ .ui.table th.ten.wide,
1385
+ .ui.table td.ten.wide {
1386
+ width: @tenWide;
1387
+ }
1388
+ .ui.table th.eleven.wide,
1389
+ .ui.table td.eleven.wide {
1390
+ width: @elevenWide;
1391
+ }
1392
+ .ui.table th.twelve.wide,
1393
+ .ui.table td.twelve.wide {
1394
+ width: @twelveWide;
1395
+ }
1396
+ .ui.table th.thirteen.wide,
1397
+ .ui.table td.thirteen.wide {
1398
+ width: @thirteenWide;
1399
+ }
1400
+ .ui.table th.fourteen.wide,
1401
+ .ui.table td.fourteen.wide {
1402
+ width: @fourteenWide;
1403
+ }
1404
+ .ui.table th.fifteen.wide,
1405
+ .ui.table td.fifteen.wide {
1406
+ width: @fifteenWide;
1407
+ }
1408
+ .ui.table th.sixteen.wide,
1409
+ .ui.table td.sixteen.wide {
1410
+ width: @sixteenWide;
1411
+ }
983
1412
  }
984
1413
 
985
1414
  & when (@variationTableSortable) {
@@ -990,11 +1419,12 @@ each(@colors, {
990
1419
  .ui.sortable.table > thead > tr > th {
991
1420
  cursor: pointer;
992
1421
  white-space: nowrap;
993
- border-left: @sortableBorder;
994
1422
  color: @sortableColor;
995
1423
  }
996
- .ui.sortable.table > thead > tr > th:first-child {
997
- border-left: none;
1424
+ & when (@variationTableCelled) {
1425
+ .ui.celled.sortable.table > thead > tr > th:not(:first-child) {
1426
+ border-left: @sortableBorder;
1427
+ }
998
1428
  }
999
1429
  .ui.sortable.table thead th.sorted,
1000
1430
  .ui.sortable.table thead th.sorted:hover {
@@ -1020,10 +1450,12 @@ each(@colors, {
1020
1450
  content: @sortableIconDescending;
1021
1451
  }
1022
1452
 
1023
- /* Hover */
1024
- .ui.sortable.table th.disabled:hover {
1025
- cursor: auto;
1026
- color: @sortableDisabledColor;
1453
+ & when (@variationTableDisabled) {
1454
+ /* Hover */
1455
+ .ui.sortable.table th.disabled:hover {
1456
+ cursor: auto;
1457
+ color: @sortableDisabledColor;
1458
+ }
1027
1459
  }
1028
1460
  .ui.sortable.table > thead > tr > th:hover {
1029
1461
  color: @sortableHoverColor;
@@ -1084,31 +1516,36 @@ each(@colors, {
1084
1516
  }
1085
1517
  .ui.ui.inverted.table > thead > tr > th,
1086
1518
  .ui.ui.inverted.table > tbody > tr > th,
1087
- .ui.ui.inverted.table > tfoot > tr > th,
1088
- .ui.ui.inverted.table > tfoot > tr > td,
1089
1519
  .ui.ui.inverted.table > tr > th {
1090
1520
  background-color: @invertedHeaderBackground;
1091
1521
  border-color: @invertedHeaderBorderColor;
1092
1522
  color: @invertedHeaderColor;
1093
1523
  }
1524
+ .ui.ui.inverted.table > tfoot > tr > th,
1525
+ .ui.ui.inverted.table > tfoot > tr > td {
1526
+ background-color: @invertedFooterBackground;
1527
+ border-color: @invertedFooterBorderColor;
1528
+ color: @invertedFooterColor;
1529
+ }
1094
1530
  .ui.inverted.table > tbody > tr > td,
1095
1531
  .ui.inverted.table > tfoot > tr > td,
1096
1532
  .ui.inverted.table > tr > td {
1097
1533
  border-color: @invertedCellBorderColor;
1098
1534
  }
1099
-
1100
- .ui.inverted.table tr.disabled td,
1101
- .ui.inverted.table tr td.disabled,
1102
- .ui.inverted.table tr.disabled:hover td,
1103
- .ui.inverted.table tr:hover td.disabled {
1104
- pointer-events: none;
1105
- color: @invertedDisabledTextColor;
1106
- }
1107
- .ui.inverted.table tr td.disabled:not([class="disabled"]),
1108
- .ui.inverted.table tr.disabled:not([class="disabled"]) td,
1109
- .ui.inverted.table tr.disabled td[class]:not(.disabled),
1110
- .ui.inverted.table tr:hover td.disabled:not([class="disabled"]) {
1111
- color: @disabledTextColor;
1535
+ & when (@variationTableDisabled) {
1536
+ .ui.inverted.table tr.disabled td,
1537
+ .ui.inverted.table tr td.disabled,
1538
+ .ui.inverted.table tr.disabled:hover td,
1539
+ .ui.inverted.table tr:hover td.disabled {
1540
+ pointer-events: none;
1541
+ color: @invertedDisabledTextColor;
1542
+ }
1543
+ .ui.ui.ui.inverted.table tr td.disabled:not([class="disabled"]),
1544
+ .ui.inverted.table tr.disabled:not([class="disabled"]) td,
1545
+ .ui.inverted.table tr.disabled td[class]:not(.disabled),
1546
+ .ui.inverted.table tr:hover td.disabled:not([class="disabled"]) {
1547
+ color: @disabledTextColor;
1548
+ }
1112
1549
  }
1113
1550
  & when (@variationTableDefinition) {
1114
1551
  /* Definition */
@@ -1135,7 +1572,7 @@ each(@colors, {
1135
1572
  }
1136
1573
  }
1137
1574
 
1138
- & when (@variationTableBasic) {
1575
+ & when (@variationTableBasic) or (@variationTableVeryBasic){
1139
1576
  /*--------------
1140
1577
  Basic
1141
1578
  ---------------*/
@@ -1169,38 +1606,40 @@ each(@colors, {
1169
1606
  background-color: @basicTableStripedBackground;
1170
1607
  }
1171
1608
  }
1172
- /* Very Basic */
1173
- .ui[class*="very basic"].table {
1174
- border: none;
1175
- }
1176
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > th,
1177
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > thead > tr > th,
1178
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > th,
1179
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > th,
1180
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > td,
1181
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > td {
1182
- padding: @basicTableCellPadding;
1183
- }
1184
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > th:first-child,
1185
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > thead > tr > th:first-child,
1186
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > th:first-child,
1187
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > th:first-child,
1188
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > td:first-child,
1189
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > td:first-child ,
1190
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > td:first-child {
1191
- padding-left: 0;
1192
- }
1193
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > th:last-child,
1194
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > thead > tr > th:last-child,
1195
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > th:last-child,
1196
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > th:last-child,
1197
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > td:last-child,
1198
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > td:last-child,
1199
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot >tr > td:last-child {
1200
- padding-right: 0;
1201
- }
1202
- .ui[class*="very basic"].table:not(.sortable):not(.striped) > thead > tr:first-child > th {
1203
- padding-top: 0;
1609
+ & when (@variationTableVeryBasic) {
1610
+ /* Very Basic */
1611
+ .ui[class*="very basic"].table {
1612
+ border: none;
1613
+ }
1614
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > th,
1615
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > thead > tr > th,
1616
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > th,
1617
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > th,
1618
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > td,
1619
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > td {
1620
+ padding: @basicTableCellPadding;
1621
+ }
1622
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > th:first-child,
1623
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > thead > tr > th:first-child,
1624
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > th:first-child,
1625
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > th:first-child,
1626
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > td:first-child,
1627
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > td:first-child,
1628
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > td:first-child {
1629
+ padding-left: 0;
1630
+ }
1631
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > th:last-child,
1632
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > thead > tr > th:last-child,
1633
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > th:last-child,
1634
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > th:last-child,
1635
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tr > td:last-child,
1636
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tbody > tr > td:last-child,
1637
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > tfoot > tr > td:last-child {
1638
+ padding-right: 0;
1639
+ }
1640
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) > thead > tr:first-child > th {
1641
+ padding-top: 0;
1642
+ }
1204
1643
  }
1205
1644
  }
1206
1645
 
@@ -1235,7 +1674,7 @@ each(@colors, {
1235
1674
  }
1236
1675
  }
1237
1676
 
1238
- & when (@variationTablePadded) {
1677
+ & when (@variationTablePadded) or (@variationTableVeryPadded) {
1239
1678
  /*--------------
1240
1679
  Padded
1241
1680
  ---------------*/
@@ -1257,22 +1696,24 @@ each(@colors, {
1257
1696
  padding: @paddedVerticalPadding @paddedHorizontalPadding;
1258
1697
  }
1259
1698
 
1260
- /* Very */
1261
- .ui[class*="very padded"].table > tr > th,
1262
- .ui[class*="very padded"].table > thead > tr > th,
1263
- .ui[class*="very padded"].table > tbody > tr > th,
1264
- .ui[class*="very padded"].table > tfoot > tr > th {
1265
- padding-left: @veryPaddedHorizontalPadding;
1266
- padding-right: @veryPaddedHorizontalPadding;
1267
- }
1268
- .ui[class*="very padded"].table > tr > td,
1269
- .ui[class*="very padded"].table > tbody > tr > td ,
1270
- .ui[class*="very padded"].table > tfoot > tr > td {
1271
- padding: @veryPaddedVerticalPadding @veryPaddedHorizontalPadding;
1699
+ & when (@variationTableVeryPadded) {
1700
+ /* Very */
1701
+ .ui[class*="very padded"].table > tr > th,
1702
+ .ui[class*="very padded"].table > thead > tr > th,
1703
+ .ui[class*="very padded"].table > tbody > tr > th,
1704
+ .ui[class*="very padded"].table > tfoot > tr > th {
1705
+ padding-left: @veryPaddedHorizontalPadding;
1706
+ padding-right: @veryPaddedHorizontalPadding;
1707
+ }
1708
+ .ui[class*="very padded"].table > tr > td,
1709
+ .ui[class*="very padded"].table > tbody > tr > td,
1710
+ .ui[class*="very padded"].table > tfoot > tr > td {
1711
+ padding: @veryPaddedVerticalPadding @veryPaddedHorizontalPadding;
1712
+ }
1272
1713
  }
1273
1714
  }
1274
1715
 
1275
- & when (@variationTableCompact) {
1716
+ & when (@variationTableCompact) or (@variationTableVeryCompact) {
1276
1717
  /*--------------
1277
1718
  Compact
1278
1719
  ---------------*/
@@ -1290,18 +1731,164 @@ each(@colors, {
1290
1731
  padding: @compactVerticalPadding @compactHorizontalPadding;
1291
1732
  }
1292
1733
 
1293
- /* Very */
1294
- .ui[class*="very compact"].table > tr > th,
1295
- .ui[class*="very compact"].table > thead > tr > th,
1296
- .ui[class*="very compact"].table > tbody > tr > th,
1297
- .ui[class*="very compact"].table > tfoot > tr > th {
1298
- padding-left: @veryCompactHorizontalPadding;
1299
- padding-right: @veryCompactHorizontalPadding;
1734
+ & when (@variationTableVeryCompact) {
1735
+ /* Very */
1736
+ .ui[class*="very compact"].table > tr > th,
1737
+ .ui[class*="very compact"].table > thead > tr > th,
1738
+ .ui[class*="very compact"].table > tbody > tr > th,
1739
+ .ui[class*="very compact"].table > tfoot > tr > th {
1740
+ padding-left: @veryCompactHorizontalPadding;
1741
+ padding-right: @veryCompactHorizontalPadding;
1742
+ }
1743
+ .ui[class*="very compact"].table > tr > td,
1744
+ .ui[class*="very compact"].table > tbody > tr > td,
1745
+ .ui[class*="very compact"].table > tfoot > tr > td {
1746
+ padding: @veryCompactVerticalPadding @veryCompactHorizontalPadding;
1747
+ }
1300
1748
  }
1301
- .ui[class*="very compact"].table > tr > td,
1302
- .ui[class*="very compact"].table > tbody > tr > td ,
1303
- .ui[class*="very compact"].table > tfoot > tr > td {
1304
- padding: @veryCompactVerticalPadding @veryCompactHorizontalPadding;
1749
+ }
1750
+
1751
+ & when (@variationTableStuck) {
1752
+ /*--------------
1753
+ Stuck
1754
+ ---------------*/
1755
+
1756
+ .ui.stuck.table:not(.inverted) {
1757
+ background: @stuckBackground;
1758
+ & > thead > tr {
1759
+ background: @stuckHeaderBackground;
1760
+ }
1761
+ & > tbody > tr {
1762
+ background: @stuckBackground;
1763
+ }
1764
+ & > tfoot > tr {
1765
+ background: @stuckFooterBackground;
1766
+ }
1767
+ &.basic when (@variationTableBasic) {
1768
+ & > thead > tr,
1769
+ > tfoot > tr {
1770
+ background: @stuckBackground;
1771
+ }
1772
+ }
1773
+ }
1774
+ .ui.inverted.stuck.table when (@variationTableInverted) {
1775
+ & > thead > tr {
1776
+ background: @invertedStuckHeaderBackground;
1777
+ }
1778
+ & > tbody > tr {
1779
+ background: @invertedStuckBackground;
1780
+ }
1781
+ & > tfoot > tr {
1782
+ background: @invertedStuckFooterBackground;
1783
+ }
1784
+ &.basic when (@variationTableBasic){
1785
+ & > thead > tr,
1786
+ > tfoot > tr {
1787
+ background: @invertedStuckBackground;
1788
+ }
1789
+ }
1790
+ }
1791
+ & when (@variationTableStuckHead) or (@variationTableStuckFoot) {
1792
+ .ui.head.stuck.table > thead,
1793
+ .ui.foot.stuck.table > tfoot {
1794
+ position: -webkit-sticky;
1795
+ position: sticky;
1796
+ z-index: @stuckZIndex;
1797
+ }
1798
+ }
1799
+ .ui.head.stuck.table when (@variationTableStuckHead) {
1800
+ border-top: 0;
1801
+ & > thead {
1802
+ top: 0;
1803
+ bottom: auto;
1804
+ & > tr:first-child > th {
1805
+ border-top: @cellBorder;
1806
+ }
1807
+ }
1808
+ &.inverted > thead > tr:first-child > th when (@variationTableInverted) {
1809
+ border-top: @invertedCellBorder;
1810
+ }
1811
+ }
1812
+ .ui.foot.stuck.table when (@variationTableStuckFoot) {
1813
+ border-bottom: 0;
1814
+ & > tfoot {
1815
+ top: auto;
1816
+ bottom: 0;
1817
+ & > tr:last-child > td,
1818
+ > tr:last-child > th {
1819
+ border-bottom: @cellBorder;
1820
+ }
1821
+ }
1822
+ & when (@variationTableInverted) {
1823
+ &.inverted > tfoot > tr:first-child > td,
1824
+ &.inverted > tfoot > tr:first-child > th {
1825
+ border-top: @invertedCellBorder;
1826
+ }
1827
+ }
1828
+ }
1829
+
1830
+ .ui.first.stuck.table when (@variationTableStuckFirst) {
1831
+ border-left: 0;
1832
+ & th:first-child,
1833
+ td:first-child {
1834
+ position: -webkit-sticky;
1835
+ position: sticky;
1836
+ left: 0;
1837
+ border-left: @cellBorder;
1838
+ background: inherit;
1839
+ }
1840
+ & when (@variationTableInverted) {
1841
+ &.inverted th:first-child,
1842
+ &.inverted td:first-child {
1843
+ border-left: @invertedCellBorder;
1844
+ }
1845
+ }
1846
+ }
1847
+
1848
+ .ui.last.stuck.table when (@variationTableStuckLast) {
1849
+ border-right: 0;
1850
+ & th:last-child,
1851
+ td:last-child {
1852
+ position: -webkit-sticky;
1853
+ position: sticky;
1854
+ right: 0;
1855
+ border-right: @cellBorder;
1856
+ background: inherit;
1857
+ }
1858
+ & when (@variationTableInverted) {
1859
+ &.inverted th:last-child,
1860
+ &.inverted td:last-child {
1861
+ border-right: @invertedCellBorder;
1862
+ }
1863
+ }
1864
+ }
1865
+ & when (@variationTableCelled) {
1866
+ & when (@variationTableStuckFirst) {
1867
+ .ui.celled.first.stuck.table th:first-child,
1868
+ .ui.celled.first.stuck.table td:first-child {
1869
+ border-right: @cellBorder;
1870
+ }
1871
+ }
1872
+ & when (@variationTableStuckLast) {
1873
+ .ui.celled.last.stuck.table th:last-child,
1874
+ .ui.celled.last.stuck.table td:last-child {
1875
+ border-left: @cellBorder;
1876
+ }
1877
+ }
1878
+ & when (@variationTableInverted) {
1879
+ & when (@variationTableStuckFirst) {
1880
+ .ui.inverted.celled.first.stuck.table th:first-child,
1881
+ .ui.inverted.celled.first.stuck.table td:first-child {
1882
+ border-right: @invertedCellBorder;
1883
+ }
1884
+ }
1885
+ & when (@variationTableStuckLast) {
1886
+ .ui.inverted.celled.last.stuck.table th:last-child,
1887
+ .ui.inverted.celled.last.stuck.table td:last-child {
1888
+ border-left: @invertedCellBorder;
1889
+ }
1890
+ }
1891
+ }
1305
1892
  }
1306
1893
  }
1307
1894