fomantic-ui 2.9.0-beta.123 → 2.9.0-beta.127

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 (159) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +77 -1
  26. package/dist/components/container.min.css +2 -2
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +1 -1
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +1 -1
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/feed.css +1 -1
  42. package/dist/components/feed.min.css +1 -1
  43. package/dist/components/flag.css +1 -1
  44. package/dist/components/flag.min.css +1 -1
  45. package/dist/components/form.css +4 -2
  46. package/dist/components/form.js +1 -1
  47. package/dist/components/form.min.css +2 -2
  48. package/dist/components/form.min.js +1 -1
  49. package/dist/components/grid.css +1 -1
  50. package/dist/components/grid.min.css +1 -1
  51. package/dist/components/header.css +1 -1
  52. package/dist/components/header.min.css +1 -1
  53. package/dist/components/icon.css +1 -1
  54. package/dist/components/icon.min.css +1 -1
  55. package/dist/components/image.css +1 -1
  56. package/dist/components/image.min.css +1 -1
  57. package/dist/components/input.css +642 -1
  58. package/dist/components/input.min.css +2 -2
  59. package/dist/components/item.css +1 -1
  60. package/dist/components/item.min.css +1 -1
  61. package/dist/components/label.css +1 -1
  62. package/dist/components/label.min.css +1 -1
  63. package/dist/components/list.css +1 -1
  64. package/dist/components/list.min.css +1 -1
  65. package/dist/components/loader.css +1 -1
  66. package/dist/components/loader.min.css +1 -1
  67. package/dist/components/message.css +1 -1
  68. package/dist/components/message.min.css +1 -1
  69. package/dist/components/modal.css +1 -1
  70. package/dist/components/modal.js +1 -1
  71. package/dist/components/modal.min.css +1 -1
  72. package/dist/components/modal.min.js +1 -1
  73. package/dist/components/nag.css +1 -1
  74. package/dist/components/nag.js +1 -1
  75. package/dist/components/nag.min.css +1 -1
  76. package/dist/components/nag.min.js +1 -1
  77. package/dist/components/placeholder.css +1 -1
  78. package/dist/components/placeholder.min.css +1 -1
  79. package/dist/components/popup.css +1 -1
  80. package/dist/components/popup.js +1 -1
  81. package/dist/components/popup.min.css +1 -1
  82. package/dist/components/popup.min.js +1 -1
  83. package/dist/components/progress.css +1 -1
  84. package/dist/components/progress.js +1 -1
  85. package/dist/components/progress.min.css +1 -1
  86. package/dist/components/progress.min.js +1 -1
  87. package/dist/components/rail.css +1 -1
  88. package/dist/components/rail.min.css +1 -1
  89. package/dist/components/rating.css +1 -1
  90. package/dist/components/rating.js +1 -1
  91. package/dist/components/rating.min.css +1 -1
  92. package/dist/components/rating.min.js +1 -1
  93. package/dist/components/reset.css +1 -1
  94. package/dist/components/reset.min.css +1 -1
  95. package/dist/components/reveal.css +1 -1
  96. package/dist/components/reveal.min.css +1 -1
  97. package/dist/components/search.css +1 -1
  98. package/dist/components/search.js +1 -1
  99. package/dist/components/search.min.css +1 -1
  100. package/dist/components/search.min.js +1 -1
  101. package/dist/components/segment.css +77 -1
  102. package/dist/components/segment.min.css +2 -2
  103. package/dist/components/shape.css +1 -1
  104. package/dist/components/shape.js +1 -1
  105. package/dist/components/shape.min.css +1 -1
  106. package/dist/components/shape.min.js +1 -1
  107. package/dist/components/sidebar.css +1 -1
  108. package/dist/components/sidebar.js +1 -1
  109. package/dist/components/sidebar.min.css +1 -1
  110. package/dist/components/sidebar.min.js +1 -1
  111. package/dist/components/site.css +1 -1
  112. package/dist/components/site.js +1 -1
  113. package/dist/components/site.min.css +1 -1
  114. package/dist/components/site.min.js +1 -1
  115. package/dist/components/slider.js +1 -1
  116. package/dist/components/slider.min.js +1 -1
  117. package/dist/components/state.js +1 -1
  118. package/dist/components/state.min.js +1 -1
  119. package/dist/components/statistic.css +1 -1
  120. package/dist/components/statistic.min.css +1 -1
  121. package/dist/components/step.css +1 -1
  122. package/dist/components/step.min.css +1 -1
  123. package/dist/components/sticky.css +1 -1
  124. package/dist/components/sticky.js +1 -1
  125. package/dist/components/sticky.min.css +1 -1
  126. package/dist/components/sticky.min.js +1 -1
  127. package/dist/components/tab.css +1 -1
  128. package/dist/components/tab.js +1 -1
  129. package/dist/components/tab.min.css +1 -1
  130. package/dist/components/tab.min.js +1 -1
  131. package/dist/components/table.css +187 -1
  132. package/dist/components/table.min.css +2 -2
  133. package/dist/components/text.css +1 -1
  134. package/dist/components/text.min.css +1 -1
  135. package/dist/components/toast.css +1 -1
  136. package/dist/components/toast.js +1 -1
  137. package/dist/components/toast.min.css +1 -1
  138. package/dist/components/toast.min.js +1 -1
  139. package/dist/components/transition.css +1 -1
  140. package/dist/components/transition.js +1 -1
  141. package/dist/components/transition.min.css +1 -1
  142. package/dist/components/transition.min.js +1 -1
  143. package/dist/components/visibility.js +1 -1
  144. package/dist/components/visibility.min.js +1 -1
  145. package/dist/semantic.css +1255 -50
  146. package/dist/semantic.js +25 -25
  147. package/dist/semantic.min.css +2 -2
  148. package/dist/semantic.min.js +1 -1
  149. package/package.json +1 -1
  150. package/src/definitions/collections/form.less +3 -1
  151. package/src/definitions/collections/table.less +253 -0
  152. package/src/definitions/elements/container.less +110 -0
  153. package/src/definitions/elements/input.less +153 -0
  154. package/src/definitions/elements/segment.less +109 -0
  155. package/src/themes/default/collections/table.variables +23 -0
  156. package/src/themes/default/elements/container.variables +8 -0
  157. package/src/themes/default/elements/input.variables +12 -0
  158. package/src/themes/default/elements/segment.variables +8 -0
  159. package/src/themes/default/globals/variation.variables +22 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.123
2
+ * # Fomantic UI - 2.9.0-beta.127
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fomantic-ui",
3
- "version": "2.9.0-beta.123",
3
+ "version": "2.9.0-beta.127",
4
4
  "description": "Fomantic empowers designers and developers by creating a shared vocabulary for UI.",
5
5
  "keywords": [
6
6
  "fomantic-ui",
@@ -66,10 +66,12 @@
66
66
  .ui.form .field > label {
67
67
  display: block;
68
68
  margin: @labelMargin;
69
- color: @labelColor;
70
69
  font-size: @labelFontSize;
71
70
  font-weight: @labelFontWeight;
72
71
  text-transform: @labelTextTransform;
72
+ &:not(.button) {
73
+ color: @labelColor;
74
+ }
73
75
  }
74
76
 
75
77
  /*--------------------
@@ -288,6 +288,31 @@
288
288
  }
289
289
  }
290
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
+ }
291
316
  }
292
317
  & when (@variationTableScrolling) {
293
318
  /*--------------
@@ -461,6 +486,90 @@
461
486
  }
462
487
 
463
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
+ }
572
+ }
464
573
 
465
574
 
466
575
  /*******************************
@@ -1638,6 +1747,150 @@
1638
1747
  }
1639
1748
  }
1640
1749
 
1750
+ & when (@variationTableStuck) {
1751
+ /*--------------
1752
+ Stuck
1753
+ ---------------*/
1754
+
1755
+ .ui.stuck.table:not(.inverted) {
1756
+ background: @stuckBackground;
1757
+ & > thead > tr {
1758
+ background: @stuckHeaderBackground;
1759
+ }
1760
+ & > tbody > tr {
1761
+ background: @stuckBackground;
1762
+ }
1763
+ & > tfoot > tr {
1764
+ background: @stuckFooterBackground;
1765
+ }
1766
+ &.basic when (@variationTableBasic) {
1767
+ & > thead > tr,
1768
+ > tfoot > tr {
1769
+ background: @stuckBackground;
1770
+ }
1771
+ }
1772
+ }
1773
+ .ui.inverted.stuck.table when (@variationTableInverted) {
1774
+ & > thead > tr {
1775
+ background: @invertedStuckHeaderBackground;
1776
+ }
1777
+ & > tbody > tr {
1778
+ background: @invertedStuckBackground;
1779
+ }
1780
+ & > tfoot > tr {
1781
+ background: @invertedStuckFooterBackground;
1782
+ }
1783
+ &.basic when (@variationTableBasic){
1784
+ & > thead > tr,
1785
+ > tfoot > tr {
1786
+ background: @invertedStuckBackground;
1787
+ }
1788
+ }
1789
+ }
1790
+ & when (@variationTableStuckHead) or (@variationTableStuckFoot) {
1791
+ .ui.head.stuck.table > thead,
1792
+ .ui.foot.stuck.table > tfoot {
1793
+ position: -webkit-sticky;
1794
+ position: sticky;
1795
+ z-index: @stuckZIndex;
1796
+ }
1797
+ }
1798
+ .ui.head.stuck.table when (@variationTableStuckHead) {
1799
+ border-top: 0;
1800
+ & > thead {
1801
+ top: 0;
1802
+ bottom: auto;
1803
+ & > tr:first-child > th {
1804
+ border-top: @cellBorder;
1805
+ }
1806
+ }
1807
+ &.inverted > thead > tr:first-child > th when (@variationTableInverted) {
1808
+ border-top: @invertedCellBorder;
1809
+ }
1810
+ }
1811
+ .ui.foot.stuck.table when (@variationTableStuckFoot) {
1812
+ border-bottom: 0;
1813
+ & > tfoot {
1814
+ top: auto;
1815
+ bottom: 0;
1816
+ & > tr:last-child > td,
1817
+ > tr:last-child > th {
1818
+ border-bottom: @cellBorder;
1819
+ }
1820
+ }
1821
+ & when (@variationTableInverted) {
1822
+ &.inverted > tfoot > tr:first-child > td,
1823
+ &.inverted > tfoot > tr:first-child > th {
1824
+ border-top: @invertedCellBorder;
1825
+ }
1826
+ }
1827
+ }
1828
+
1829
+ .ui.first.stuck.table when (@variationTableStuckFirst) {
1830
+ border-left: 0;
1831
+ & th:first-child,
1832
+ td:first-child {
1833
+ position: -webkit-sticky;
1834
+ position: sticky;
1835
+ left: 0;
1836
+ border-left: @cellBorder;
1837
+ background: inherit;
1838
+ }
1839
+ & when (@variationTableInverted) {
1840
+ &.inverted th:first-child,
1841
+ &.inverted td:first-child {
1842
+ border-left: @invertedCellBorder;
1843
+ }
1844
+ }
1845
+ }
1846
+
1847
+ .ui.last.stuck.table when (@variationTableStuckLast) {
1848
+ border-right: 0;
1849
+ & th:last-child,
1850
+ td:last-child {
1851
+ position: -webkit-sticky;
1852
+ position: sticky;
1853
+ right: 0;
1854
+ border-right: @cellBorder;
1855
+ background: inherit;
1856
+ }
1857
+ & when (@variationTableInverted) {
1858
+ &.inverted th:last-child,
1859
+ &.inverted td:last-child {
1860
+ border-right: @invertedCellBorder;
1861
+ }
1862
+ }
1863
+ }
1864
+ & when (@variationTableCelled) {
1865
+ & when (@variationTableStuckFirst) {
1866
+ .ui.celled.first.stuck.table th:first-child,
1867
+ .ui.celled.first.stuck.table td:first-child {
1868
+ border-right: @cellBorder;
1869
+ }
1870
+ }
1871
+ & when (@variationTableStuckLast) {
1872
+ .ui.celled.last.stuck.table th:last-child,
1873
+ .ui.celled.last.stuck.table td:last-child {
1874
+ border-left: @cellBorder;
1875
+ }
1876
+ }
1877
+ & when (@variationTableInverted) {
1878
+ & when (@variationTableStuckFirst) {
1879
+ .ui.inverted.celled.first.stuck.table th:first-child,
1880
+ .ui.inverted.celled.first.stuck.table td:first-child {
1881
+ border-right: @invertedCellBorder;
1882
+ }
1883
+ }
1884
+ & when (@variationTableStuckLast) {
1885
+ .ui.inverted.celled.last.stuck.table th:last-child,
1886
+ .ui.inverted.celled.last.stuck.table td:last-child {
1887
+ border-left: @invertedCellBorder;
1888
+ }
1889
+ }
1890
+ }
1891
+ }
1892
+ }
1893
+
1641
1894
  /*--------------
1642
1895
  Sizes
1643
1896
  ---------------*/
@@ -164,5 +164,115 @@
164
164
  hyphens: auto;
165
165
  }
166
166
  }
167
+ & when (@variationContainerScrolling) {
168
+ /*--------------
169
+ Scrolling
170
+ ---------------*/
171
+ .ui.scrolling.container {
172
+ overflow: auto;
173
+ }
174
+ @media only screen and (max-width : @largestMobileScreen) {
175
+ & when (@variationContainerScrollingShort) {
176
+ .ui.scrolling.container.short {
177
+ max-height: @scrollingMobileMaxHeight * 0.75;
178
+ }
179
+ }
180
+ & when (@variationContainerScrollingVeryShort) {
181
+ .ui.scrolling.container[class*="very short"] {
182
+ max-height: @scrollingMobileMaxHeight * 0.5;
183
+ }
184
+ }
185
+ .ui.scrolling.container {
186
+ max-height: @scrollingMobileMaxHeight;
187
+ }
188
+ & when (@variationContainerScrollingLong) {
189
+ .ui.scrolling.container.long {
190
+ max-height: @scrollingMobileMaxHeight * 2;
191
+ }
192
+ }
193
+ & when (@variationContainerScrollingVeryLong) {
194
+ .ui.scrolling.container[class*="very long"] {
195
+ max-height: @scrollingMobileMaxHeight * 3;
196
+ }
197
+ }
198
+ }
199
+
200
+ @media only screen and (min-width: @tabletBreakpoint) {
201
+ & when (@variationContainerScrollingShort) {
202
+ .ui.scrolling.container.short {
203
+ max-height: @scrollingTabletMaxHeight * 0.75;
204
+ }
205
+ }
206
+ & when (@variationContainerScrollingVeryShort) {
207
+ .ui.scrolling.container[class*="very short"] {
208
+ max-height: @scrollingTabletMaxHeight * 0.5;
209
+ }
210
+ }
211
+ .ui.scrolling.container {
212
+ max-height: @scrollingTabletMaxHeight;
213
+ }
214
+ & when (@variationContainerScrollingLong) {
215
+ .ui.scrolling.container.long {
216
+ max-height: @scrollingTabletMaxHeight * 2;
217
+ }
218
+ }
219
+ & when (@variationContainerScrollingVeryLong) {
220
+ .ui.scrolling.container[class*="very long"] {
221
+ max-height: @scrollingTabletMaxHeight * 3;
222
+ }
223
+ }
224
+ }
225
+ @media only screen and (min-width: @computerBreakpoint) {
226
+ & when (@variationContainerScrollingShort) {
227
+ .ui.scrolling.container.short {
228
+ max-height: @scrollingComputerMaxHeight * 0.75;
229
+ }
230
+ }
231
+ & when (@variationContainerScrollingVeryShort) {
232
+ .ui.scrolling.container[class*="very short"] {
233
+ max-height: @scrollingComputerMaxHeight * 0.5;
234
+ }
235
+ }
236
+ .ui.scrolling.container {
237
+ max-height: @scrollingComputerMaxHeight;
238
+ }
239
+ & when (@variationContainerScrollingLong) {
240
+ .ui.scrolling.container.long {
241
+ max-height: @scrollingComputerMaxHeight * 2;
242
+ }
243
+ }
244
+ & when (@variationContainerScrollingVeryLong) {
245
+ .ui.scrolling.container[class*="very long"]{
246
+ max-height: @scrollingComputerMaxHeight * 3;
247
+ }
248
+ }
249
+ }
250
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
251
+ & when (@variationContainerScrollingShort) {
252
+ .ui.scrolling.container.short {
253
+ max-height: @scrollingWidescreenMaxHeight * 0.75;
254
+ }
255
+ }
256
+ & when (@variationContainerScrollingVeryShort) {
257
+ .ui.scrolling.container[class*="very short"] {
258
+ max-height: @scrollingWidescreenMaxHeight * 0.5;
259
+ }
260
+ }
261
+ .ui.scrolling.container {
262
+ max-height: @scrollingWidescreenMaxHeight;
263
+ }
264
+ & when (@variationContainerScrollingLong) {
265
+ .ui.scrolling.container.long {
266
+ max-height: @scrollingWidescreenMaxHeight * 2;
267
+ }
268
+ }
269
+ & when (@variationContainerScrollingVeryLong) {
270
+ .ui.scrolling.container[class*="very long"] {
271
+ max-height: @scrollingWidescreenMaxHeight * 3;
272
+ }
273
+ }
274
+ }
275
+ }
276
+
167
277
 
168
278
  .loadUIOverrides();
@@ -563,6 +563,159 @@
563
563
  }
564
564
  }
565
565
 
566
+
567
+ & when (@variationInputFile) {
568
+ /*--------------------
569
+ File
570
+ ---------------------*/
571
+
572
+ /* width hack for chrome/edge */
573
+ .ui.file.input {
574
+ width: 100%;
575
+ & input[type="file"] {
576
+ width: 0;
577
+ }
578
+ }
579
+
580
+ .ui.form .field > input[type="file"],
581
+ .ui.file.input:not(.action) input[type="file"] {
582
+ padding: 0;
583
+ }
584
+
585
+ .ui.action.file.input input[type="file"]::-webkit-file-upload-button {
586
+ display: none;
587
+ }
588
+ .ui.form .field input[type="file"]::-webkit-file-upload-button,
589
+ .ui.file.input input[type="file"]::-webkit-file-upload-button {
590
+ border: none;
591
+ cursor: pointer;
592
+ padding: @padding;
593
+ margin-right: @fileButtonMargin;
594
+ background: @fileButtonBackground;
595
+ font-weight: @fileButtonFontWeight;
596
+ color: @fileButtonTextColor;
597
+ &:hover {
598
+ background: @fileButtonBackgroundHover;
599
+ color: @fileButtonTextColor;
600
+ }
601
+ }
602
+ .ui.action.file.input input[type="file"]::-ms-browse {
603
+ display: none;
604
+ }
605
+ .ui.form .field input[type="file"]::-ms-browse,
606
+ .ui.file.input input[type="file"]::-ms-browse {
607
+ border: none;
608
+ cursor: pointer;
609
+ padding: @padding;
610
+ margin: 0;
611
+ background: @fileButtonBackground;
612
+ font-weight: @fileButtonFontWeight;
613
+ color: @fileButtonTextColor;
614
+ &:hover {
615
+ background: @fileButtonBackgroundHover;
616
+ color: @fileButtonTextColor;
617
+ }
618
+ }
619
+ /* IE needs additional styling for input field :S */
620
+ @media all and (-ms-high-contrast:none) {
621
+ .ui.file.input > input[type="file"],
622
+ input[type="file"].ui.file.input {
623
+ padding: 0 !important;
624
+ }
625
+ }
626
+
627
+ .ui.action.file.input input[type="file"]::file-selector-button {
628
+ display: none;
629
+ }
630
+ .ui.form .field input[type="file"]::file-selector-button,
631
+ .ui.file.input input[type="file"]::file-selector-button {
632
+ border: none;
633
+ cursor: pointer;
634
+ padding: @padding;
635
+ margin-right: @fileButtonMargin;
636
+ background: @fileButtonBackground;
637
+ font-weight: @fileButtonFontWeight;
638
+ color: @fileButtonTextColor;
639
+ &:hover {
640
+ background: @fileButtonBackgroundHover;
641
+ color: @fileButtonTextColor;
642
+ }
643
+ }
644
+
645
+ .ui.form .field input[type="file"]:required:invalid,
646
+ .ui.file.input input[type="file"]:required:invalid {
647
+ color: @negativeTextColor;
648
+ background: @negativeBackgroundColor ;
649
+ border-color: @negativeBorderColor;
650
+ }
651
+
652
+ input[type="file"].ui.invisible.file.input,
653
+ .ui.invisible.file.input input[type="file"] {
654
+ left: -99999px;
655
+ position: absolute;
656
+ }
657
+
658
+ input[type="file"].ui.file.input:focus + label.ui.button:not(.basic):not(.tertiary),
659
+ .ui.file.input input[type="file"]:focus + label.ui.button:not(.basic):not(.tertiary) {
660
+ background: @fileButtonBackgroundHover;
661
+ color: @hoveredTextColor;
662
+ &.inverted {
663
+ background: @fileButtonInvertedBackgroundHover;
664
+ }
665
+ }
666
+
667
+ /* this is related to existing buttons, so the button color variable is used here! */
668
+ & when not (@variationButtonColors = false) {
669
+ each(@variationButtonColors, {
670
+ @color: @value;
671
+ @h: @colors[@@color][hover];
672
+ @lh: @colors[@@color][lightHover];
673
+
674
+ input[type="file"].ui.file.input:focus + label.ui.@{color}.button:not(.basic):not(.tertiary),
675
+ .ui.file.input input[type="file"]:focus + label.ui.@{color}.button:not(.basic):not(.tertiary) {
676
+ background-color: @h;
677
+ color: @white;
678
+ &.inverted when (@variationButtonInverted) {
679
+ background-color: @lh;
680
+ }
681
+ }
682
+ })
683
+ }
684
+
685
+ & when not (@variationInputColors = false) {
686
+ each(@variationInputColors, {
687
+ @color: @value;
688
+ @c: @colors[@@color][color];
689
+ @h: @colors[@@color][hover];
690
+
691
+ input[type="file"].ui.@{color}.file.input::-webkit-file-upload-button,
692
+ .ui.@{color}.file.input input[type="file"]::-webkit-file-upload-button {
693
+ background: @c;
694
+ color: @white;
695
+ &:hover {
696
+ background: @h;
697
+ }
698
+ }
699
+ input[type="file"].ui.@{color}.file.input::-ms-browse,
700
+ .ui.@{color}.file.input input[type="file"]::-ms-browse {
701
+ background: @c;
702
+ color: @white;
703
+ &:hover {
704
+ background: @h;
705
+ }
706
+ }
707
+ input[type="file"].ui.@{color}.file.input::file-selector-button,
708
+ .ui.@{color}.file.input input[type="file"]::file-selector-button {
709
+ background: @c;
710
+ color: @white;
711
+ &:hover {
712
+ background: @h;
713
+ }
714
+ }
715
+ })
716
+ }
717
+ }
718
+
566
719
  /*--------------------
567
720
  Size
568
721
  ---------------------*/
@@ -783,6 +783,115 @@
783
783
  }
784
784
  }
785
785
 
786
+ & when (@variationSegmentScrolling) {
787
+ /*--------------
788
+ Scrolling
789
+ ---------------*/
790
+ .ui.scrolling.segment {
791
+ overflow: auto;
792
+ }
793
+ @media only screen and (max-width : @largestMobileScreen) {
794
+ & when (@variationSegmentScrollingShort) {
795
+ .ui.scrolling.segment.short {
796
+ max-height: @scrollingMobileMaxHeight * 0.75;
797
+ }
798
+ }
799
+ & when (@variationSegmentScrollingVeryShort) {
800
+ .ui.scrolling.segment[class*="very short"] {
801
+ max-height: @scrollingMobileMaxHeight * 0.5;
802
+ }
803
+ }
804
+ .ui.scrolling.segment {
805
+ max-height: @scrollingMobileMaxHeight;
806
+ }
807
+ & when (@variationSegmentScrollingLong) {
808
+ .ui.scrolling.segment.long {
809
+ max-height: @scrollingMobileMaxHeight * 2;
810
+ }
811
+ }
812
+ & when (@variationSegmentScrollingVeryLong) {
813
+ .ui.scrolling.segment[class*="very long"] {
814
+ max-height: @scrollingMobileMaxHeight * 3;
815
+ }
816
+ }
817
+ }
818
+
819
+ @media only screen and (min-width: @tabletBreakpoint) {
820
+ & when (@variationSegmentScrollingShort) {
821
+ .ui.scrolling.segment.short {
822
+ max-height: @scrollingTabletMaxHeight * 0.75;
823
+ }
824
+ }
825
+ & when (@variationSegmentScrollingVeryShort) {
826
+ .ui.scrolling.segment[class*="very short"] {
827
+ max-height: @scrollingTabletMaxHeight * 0.5;
828
+ }
829
+ }
830
+ .ui.scrolling.segment {
831
+ max-height: @scrollingTabletMaxHeight;
832
+ }
833
+ & when (@variationSegmentScrollingLong) {
834
+ .ui.scrolling.segment.long {
835
+ max-height: @scrollingTabletMaxHeight * 2;
836
+ }
837
+ }
838
+ & when (@variationSegmentScrollingVeryLong) {
839
+ .ui.scrolling.segment[class*="very long"] {
840
+ max-height: @scrollingTabletMaxHeight * 3;
841
+ }
842
+ }
843
+ }
844
+ @media only screen and (min-width: @computerBreakpoint) {
845
+ & when (@variationSegmentScrollingShort) {
846
+ .ui.scrolling.segment.short {
847
+ max-height: @scrollingComputerMaxHeight * 0.75;
848
+ }
849
+ }
850
+ & when (@variationSegmentScrollingVeryShort) {
851
+ .ui.scrolling.segment[class*="very short"] {
852
+ max-height: @scrollingComputerMaxHeight * 0.5;
853
+ }
854
+ }
855
+ .ui.scrolling.segment {
856
+ max-height: @scrollingComputerMaxHeight;
857
+ }
858
+ & when (@variationSegmentScrollingLong) {
859
+ .ui.scrolling.segment.long {
860
+ max-height: @scrollingComputerMaxHeight * 2;
861
+ }
862
+ }
863
+ & when (@variationSegmentScrollingVeryLong) {
864
+ .ui.scrolling.segment[class*="very long"]{
865
+ max-height: @scrollingComputerMaxHeight * 3;
866
+ }
867
+ }
868
+ }
869
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
870
+ & when (@variationSegmentScrollingShort) {
871
+ .ui.scrolling.segment.short {
872
+ max-height: @scrollingWidescreenMaxHeight * 0.75;
873
+ }
874
+ }
875
+ & when (@variationSegmentScrollingVeryShort) {
876
+ .ui.scrolling.segment[class*="very short"] {
877
+ max-height: @scrollingWidescreenMaxHeight * 0.5;
878
+ }
879
+ }
880
+ .ui.scrolling.segment {
881
+ max-height: @scrollingWidescreenMaxHeight;
882
+ }
883
+ & when (@variationSegmentScrollingLong) {
884
+ .ui.scrolling.segment.long {
885
+ max-height: @scrollingWidescreenMaxHeight * 2;
886
+ }
887
+ }
888
+ & when (@variationSegmentScrollingVeryLong) {
889
+ .ui.scrolling.segment[class*="very long"] {
890
+ max-height: @scrollingWidescreenMaxHeight * 3;
891
+ }
892
+ }
893
+ }
894
+ }
786
895
  /*-------------------
787
896
  Size
788
897
  --------------------*/