fomantic-ui 2.9.0-beta.8 → 2.9.0-beta.80

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 (217) hide show
  1. package/.all-contributorsrc +188 -3
  2. package/CONTRIBUTING.md +1 -1
  3. package/CONTRIBUTORS.md +71 -37
  4. package/README.md +1 -1
  5. package/dist/components/accordion.css +50 -6
  6. package/dist/components/accordion.js +1 -1
  7. package/dist/components/accordion.min.css +2 -2
  8. package/dist/components/accordion.min.js +1 -1
  9. package/dist/components/ad.css +1 -1
  10. package/dist/components/ad.min.css +1 -1
  11. package/dist/components/api.js +26 -24
  12. package/dist/components/api.min.js +2 -2
  13. package/dist/components/breadcrumb.css +1 -1
  14. package/dist/components/breadcrumb.min.css +1 -1
  15. package/dist/components/button.css +6 -6
  16. package/dist/components/button.min.css +2 -2
  17. package/dist/components/calendar.css +1 -1
  18. package/dist/components/calendar.js +106 -10
  19. package/dist/components/calendar.min.css +1 -1
  20. package/dist/components/calendar.min.js +2 -2
  21. package/dist/components/card.css +26 -19
  22. package/dist/components/card.min.css +2 -2
  23. package/dist/components/checkbox.css +2 -1
  24. package/dist/components/checkbox.js +2 -4
  25. package/dist/components/checkbox.min.css +2 -2
  26. package/dist/components/checkbox.min.js +2 -2
  27. package/dist/components/comment.css +11 -11
  28. package/dist/components/comment.min.css +1 -1
  29. package/dist/components/container.css +1 -1
  30. package/dist/components/container.min.css +1 -1
  31. package/dist/components/dimmer.css +28 -14
  32. package/dist/components/dimmer.js +1 -1
  33. package/dist/components/dimmer.min.css +2 -2
  34. package/dist/components/dimmer.min.js +1 -1
  35. package/dist/components/divider.css +1 -1
  36. package/dist/components/divider.min.css +1 -1
  37. package/dist/components/dropdown.css +28 -5
  38. package/dist/components/dropdown.js +15 -19
  39. package/dist/components/dropdown.min.css +2 -2
  40. package/dist/components/dropdown.min.js +2 -2
  41. package/dist/components/embed.css +1 -1
  42. package/dist/components/embed.js +1 -1
  43. package/dist/components/embed.min.css +1 -1
  44. package/dist/components/embed.min.js +1 -1
  45. package/dist/components/emoji.css +2 -2
  46. package/dist/components/feed.css +28 -28
  47. package/dist/components/feed.min.css +2 -2
  48. package/dist/components/flag.css +731 -625
  49. package/dist/components/flag.min.css +2 -2
  50. package/dist/components/form.css +103 -54
  51. package/dist/components/form.js +24 -22
  52. package/dist/components/form.min.css +2 -2
  53. package/dist/components/form.min.js +2 -2
  54. package/dist/components/grid.css +11 -8
  55. package/dist/components/grid.min.css +2 -2
  56. package/dist/components/header.css +1 -1
  57. package/dist/components/header.min.css +1 -1
  58. package/dist/components/icon.css +6 -1
  59. package/dist/components/icon.min.css +2 -2
  60. package/dist/components/image.css +1 -1
  61. package/dist/components/image.min.css +1 -1
  62. package/dist/components/input.css +17 -2
  63. package/dist/components/input.min.css +2 -2
  64. package/dist/components/item.css +13 -13
  65. package/dist/components/item.min.css +1 -1
  66. package/dist/components/label.css +1 -1
  67. package/dist/components/label.min.css +1 -1
  68. package/dist/components/list.css +1 -1
  69. package/dist/components/list.min.css +1 -1
  70. package/dist/components/loader.css +1 -1
  71. package/dist/components/loader.min.css +1 -1
  72. package/dist/components/menu.css +31 -7
  73. package/dist/components/menu.min.css +1 -1
  74. package/dist/components/message.css +1 -1
  75. package/dist/components/message.min.css +1 -1
  76. package/dist/components/modal.css +3 -1
  77. package/dist/components/modal.js +94 -30
  78. package/dist/components/modal.min.css +2 -2
  79. package/dist/components/modal.min.js +2 -2
  80. package/dist/components/nag.css +1 -1
  81. package/dist/components/nag.js +1 -1
  82. package/dist/components/nag.min.css +1 -1
  83. package/dist/components/nag.min.js +1 -1
  84. package/dist/components/placeholder.css +1 -1
  85. package/dist/components/placeholder.min.css +1 -1
  86. package/dist/components/popup.css +5 -3
  87. package/dist/components/popup.js +1 -1
  88. package/dist/components/popup.min.css +2 -2
  89. package/dist/components/popup.min.js +1 -1
  90. package/dist/components/progress.css +1 -1
  91. package/dist/components/progress.js +3 -3
  92. package/dist/components/progress.min.css +1 -1
  93. package/dist/components/progress.min.js +2 -2
  94. package/dist/components/rail.css +1 -1
  95. package/dist/components/rail.min.css +1 -1
  96. package/dist/components/rating.css +7 -46
  97. package/dist/components/rating.js +1 -1
  98. package/dist/components/rating.min.css +2 -2
  99. package/dist/components/rating.min.js +1 -1
  100. package/dist/components/reset.css +1 -1
  101. package/dist/components/reset.min.css +1 -1
  102. package/dist/components/reveal.css +1 -1
  103. package/dist/components/reveal.min.css +1 -1
  104. package/dist/components/search.css +1 -1
  105. package/dist/components/search.js +1 -1
  106. package/dist/components/search.min.css +1 -1
  107. package/dist/components/search.min.js +1 -1
  108. package/dist/components/segment.css +12 -6
  109. package/dist/components/segment.min.css +2 -2
  110. package/dist/components/shape.css +1 -1
  111. package/dist/components/shape.js +1 -1
  112. package/dist/components/shape.min.css +1 -1
  113. package/dist/components/shape.min.js +1 -1
  114. package/dist/components/sidebar.css +1 -1
  115. package/dist/components/sidebar.js +1 -1
  116. package/dist/components/sidebar.min.css +1 -1
  117. package/dist/components/sidebar.min.js +1 -1
  118. package/dist/components/site.css +61 -39
  119. package/dist/components/site.js +1 -1
  120. package/dist/components/site.min.css +2 -2
  121. package/dist/components/site.min.js +1 -1
  122. package/dist/components/slider.js +1 -1
  123. package/dist/components/slider.min.js +1 -1
  124. package/dist/components/state.js +1 -1
  125. package/dist/components/state.min.js +1 -1
  126. package/dist/components/statistic.css +1 -1
  127. package/dist/components/statistic.min.css +1 -1
  128. package/dist/components/step.css +4 -4
  129. package/dist/components/step.min.css +2 -2
  130. package/dist/components/sticky.css +1 -1
  131. package/dist/components/sticky.js +2 -2
  132. package/dist/components/sticky.min.css +1 -1
  133. package/dist/components/sticky.min.js +2 -2
  134. package/dist/components/tab.css +1 -1
  135. package/dist/components/tab.js +1 -1
  136. package/dist/components/tab.min.css +1 -1
  137. package/dist/components/tab.min.js +1 -1
  138. package/dist/components/table.css +5 -3
  139. package/dist/components/table.min.css +2 -2
  140. package/dist/components/text.css +1 -1
  141. package/dist/components/text.min.css +1 -1
  142. package/dist/components/toast.css +7 -1
  143. package/dist/components/toast.js +3 -3
  144. package/dist/components/toast.min.css +2 -2
  145. package/dist/components/toast.min.js +2 -2
  146. package/dist/components/transition.css +1 -1
  147. package/dist/components/transition.js +2 -2
  148. package/dist/components/transition.min.css +1 -1
  149. package/dist/components/transition.min.js +2 -2
  150. package/dist/components/visibility.js +2 -2
  151. package/dist/components/visibility.min.js +1 -1
  152. package/dist/semantic.css +1323 -981
  153. package/dist/semantic.js +293 -135
  154. package/dist/semantic.min.css +2 -2
  155. package/dist/semantic.min.js +2 -2
  156. package/examples/assets/library/iframe-content.js +8 -8
  157. package/examples/assets/library/iframe.js +3 -3
  158. package/package.json +2 -2
  159. package/src/definitions/behaviors/api.js +25 -23
  160. package/src/definitions/behaviors/form.js +23 -21
  161. package/src/definitions/behaviors/visibility.js +1 -1
  162. package/src/definitions/collections/form.less +184 -133
  163. package/src/definitions/collections/grid.less +704 -669
  164. package/src/definitions/collections/menu.less +128 -85
  165. package/src/definitions/collections/message.less +8 -7
  166. package/src/definitions/collections/table.less +186 -174
  167. package/src/definitions/elements/button.less +130 -119
  168. package/src/definitions/elements/container.less +16 -8
  169. package/src/definitions/elements/emoji.less +15 -9
  170. package/src/definitions/elements/flag.less +7 -17
  171. package/src/definitions/elements/header.less +14 -8
  172. package/src/definitions/elements/icon.less +16 -10
  173. package/src/definitions/elements/input.less +17 -1
  174. package/src/definitions/elements/list.less +55 -45
  175. package/src/definitions/elements/segment.less +15 -8
  176. package/src/definitions/elements/step.less +52 -48
  177. package/src/definitions/globals/site.less +23 -2
  178. package/src/definitions/modules/accordion.less +55 -5
  179. package/src/definitions/modules/calendar.js +105 -9
  180. package/src/definitions/modules/checkbox.js +1 -3
  181. package/src/definitions/modules/checkbox.less +1 -146
  182. package/src/definitions/modules/dimmer.less +21 -8
  183. package/src/definitions/modules/dropdown.js +14 -18
  184. package/src/definitions/modules/dropdown.less +96 -64
  185. package/src/definitions/modules/modal.js +93 -29
  186. package/src/definitions/modules/modal.less +2 -0
  187. package/src/definitions/modules/popup.less +5 -1
  188. package/src/definitions/modules/progress.js +2 -2
  189. package/src/definitions/modules/rating.less +18 -12
  190. package/src/definitions/modules/search.less +32 -16
  191. package/src/definitions/modules/sidebar.less +30 -18
  192. package/src/definitions/modules/sticky.js +1 -1
  193. package/src/definitions/modules/toast.js +2 -2
  194. package/src/definitions/modules/toast.less +5 -0
  195. package/src/definitions/modules/transition.js +1 -1
  196. package/src/definitions/views/card.less +373 -333
  197. package/src/definitions/views/comment.less +92 -81
  198. package/src/definitions/views/feed.less +164 -144
  199. package/src/definitions/views/item.less +249 -196
  200. package/src/definitions/views/statistic.less +71 -70
  201. package/src/themes/default/collections/menu.variables +6 -0
  202. package/src/themes/default/elements/button.variables +2 -1
  203. package/src/themes/default/elements/flag.overrides +1635 -986
  204. package/src/themes/default/elements/flag.variables +7 -5
  205. package/src/themes/default/elements/icon.overrides +35 -28
  206. package/src/themes/default/elements/icon.variables +1 -0
  207. package/src/themes/default/elements/step.overrides +1 -1
  208. package/src/themes/default/globals/site.variables +6 -0
  209. package/src/themes/default/globals/variation.variables +74 -1
  210. package/src/themes/default/modules/accordion.variables +15 -0
  211. package/src/themes/default/modules/dimmer.variables +1 -1
  212. package/src/themes/default/modules/dropdown.variables +1 -1
  213. package/src/themes/famfamfam/elements/flag.overrides +1026 -0
  214. package/src/themes/famfamfam/elements/flag.variables +13 -0
  215. package/tasks/admin/components/init.js +2 -2
  216. package/tasks/admin/distributions/init.js +2 -2
  217. package/test/helpers/sinon.js +1 -1
@@ -123,51 +123,52 @@
123
123
  background-image: @activeBackgroundImage;
124
124
  }
125
125
 
126
+ & when (@variationButtonLoading) {
127
+ /*--------------
128
+ Loading
129
+ ---------------*/
126
130
 
127
- /*--------------
128
- Loading
129
- ---------------*/
131
+ /* Specificity hack */
132
+ .ui.loading.loading.loading.loading.loading.loading.button {
133
+ position: relative;
134
+ cursor: default;
135
+ text-shadow: none !important;
136
+ color: transparent;
137
+ opacity: @loadingOpacity;
138
+ pointer-events: @loadingPointerEvents;
139
+ transition: @loadingTransition;
140
+ }
141
+ .ui.loading.button:before {
142
+ position: absolute;
143
+ content: '';
144
+ top: 50%;
145
+ left: 50%;
130
146
 
131
- /* Specificity hack */
132
- .ui.loading.loading.loading.loading.loading.loading.button {
133
- position: relative;
134
- cursor: default;
135
- text-shadow: none !important;
136
- color: transparent;
137
- opacity: @loadingOpacity;
138
- pointer-events: @loadingPointerEvents;
139
- transition: @loadingTransition;
140
- }
141
- .ui.loading.button:before {
142
- position: absolute;
143
- content: '';
144
- top: 50%;
145
- left: 50%;
146
-
147
- margin: @loaderMargin;
148
- width: @loaderSize;
149
- height: @loaderSize;
150
-
151
- border-radius: @circularRadius;
152
- border: @loaderLineWidth solid @invertedLoaderFillColor;
153
- }
154
- .ui.loading.button:after {
155
- position: absolute;
156
- content: '';
157
- top: 50%;
158
- left: 50%;
147
+ margin: @loaderMargin;
148
+ width: @loaderSize;
149
+ height: @loaderSize;
150
+
151
+ border-radius: @circularRadius;
152
+ border: @loaderLineWidth solid @invertedLoaderFillColor;
153
+ }
154
+ .ui.loading.button:after {
155
+ position: absolute;
156
+ content: '';
157
+ top: 50%;
158
+ left: 50%;
159
159
 
160
- margin: @loaderMargin;
161
- width: @loaderSize;
162
- height: @loaderSize;
160
+ margin: @loaderMargin;
161
+ width: @loaderSize;
162
+ height: @loaderSize;
163
163
 
164
- border-radius: @circularRadius;
164
+ border-radius: @circularRadius;
165
165
 
166
- animation: loader @loaderSpeed infinite linear;
167
- border: @loaderLineWidth solid currentColor;
168
- color: @invertedLoaderLineColor;
166
+ animation: loader @loaderSpeed infinite linear;
167
+ border: @loaderLineWidth solid currentColor;
168
+ color: @invertedLoaderLineColor;
169
169
 
170
- box-shadow: 0 0 0 1px transparent;
170
+ box-shadow: 0 0 0 1px transparent;
171
+ }
171
172
  }
172
173
  & when (@variationButtonLabeledIcon){
173
174
  .ui.labeled.icon.loading.button .icon {
@@ -730,20 +731,22 @@
730
731
  })
731
732
  }
732
733
 
733
- /*--------------
734
- Icon Only
735
- ---------------*/
734
+ & when (@variationButtonIcon) {
735
+ /*--------------
736
+ Icon Only
737
+ ---------------*/
736
738
 
737
- .ui.icon.buttons .button,
738
- .ui.icon.button:not(.animated):not(.compact):not(.labeled) {
739
- padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
740
- }
741
- .ui.animated.icon.button > .content > .icon,
742
- .ui.icon.buttons .button > .icon,
743
- .ui.icon.button > .icon {
744
- opacity: @iconButtonOpacity;
745
- margin: 0 !important;
746
- vertical-align: top;
739
+ .ui.icon.buttons .button,
740
+ .ui.icon.button:not(.animated):not(.compact):not(.labeled) {
741
+ padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset );
742
+ }
743
+ .ui.animated.icon.button > .content > .icon,
744
+ .ui.icon.buttons .button > .icon,
745
+ .ui.icon.button > .icon {
746
+ opacity: @iconButtonOpacity;
747
+ margin: 0 !important;
748
+ vertical-align: top;
749
+ }
747
750
  }
748
751
  .ui.animated.button > .content > .icon {
749
752
  vertical-align: top;
@@ -892,11 +895,11 @@
892
895
  .ui.tertiary.button {
893
896
  transition: color @defaultDuration @defaultEasing !important;
894
897
  border-radius: 0;
895
- margin: (@verticalPadding - @tertiaryLinePadding)
898
+ margin: (@verticalPadding - @tertiaryVerticalPadding)
896
899
  (@horizontalMargin)
897
- (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryLinePadding)
900
+ (@verticalPadding + @shadowOffset + @verticalMargin - @tertiaryVerticalPadding)
898
901
  0 !important;
899
- padding: @tertiaryLinePadding !important;
902
+ padding: @tertiaryVerticalPadding @tertiaryHorizontalPadding !important;
900
903
 
901
904
  & when (@tertiaryWithUnderline = true) {
902
905
  box-shadow: inset 0 -@tertiaryLineHeight 0 @tertiaryLineColor;
@@ -1291,7 +1294,8 @@
1291
1294
  .ui.fluid.button {
1292
1295
  display: block;
1293
1296
  }
1294
-
1297
+ }
1298
+ & when (@variationButtonEqualWidth) {
1295
1299
  .ui.two.buttons {
1296
1300
  width: 100%;
1297
1301
  }
@@ -1379,57 +1383,63 @@
1379
1383
  .ui.twelve.buttons > .button {
1380
1384
  width: 8.3333%;
1381
1385
  }
1386
+ }
1382
1387
 
1383
- /* Fluid Vertical Buttons */
1384
- .ui.fluid.vertical.buttons,
1385
- .ui.fluid.vertical.buttons > .button {
1386
- display: flex;
1387
- width: auto;
1388
- justify-content: center;
1388
+ & when (@variationButtonVertical) {
1389
+ & when (@variationButtonFluid) {
1390
+ /* Fluid Vertical Buttons */
1391
+ .ui.fluid.vertical.buttons,
1392
+ .ui.fluid.vertical.buttons > .button {
1393
+ display: flex;
1394
+ width: auto;
1395
+ justify-content: center;
1396
+ }
1389
1397
  }
1390
1398
 
1391
- .ui.two.vertical.buttons > .button {
1392
- height: 50%;
1393
- }
1399
+ & when (@variationButtonEqualWidth) {
1400
+ .ui.two.vertical.buttons > .button {
1401
+ height: 50%;
1402
+ }
1394
1403
 
1395
- .ui.three.vertical.buttons > .button {
1396
- height: 33.333%;
1397
- }
1404
+ .ui.three.vertical.buttons > .button {
1405
+ height: 33.333%;
1406
+ }
1398
1407
 
1399
- .ui.four.vertical.buttons > .button {
1400
- height: 25%;
1401
- }
1408
+ .ui.four.vertical.buttons > .button {
1409
+ height: 25%;
1410
+ }
1402
1411
 
1403
- .ui.five.vertical.buttons > .button {
1404
- height: 20%;
1405
- }
1412
+ .ui.five.vertical.buttons > .button {
1413
+ height: 20%;
1414
+ }
1406
1415
 
1407
- .ui.six.vertical.buttons > .button {
1408
- height: 16.666%;
1409
- }
1416
+ .ui.six.vertical.buttons > .button {
1417
+ height: 16.666%;
1418
+ }
1410
1419
 
1411
- .ui.seven.vertical.buttons > .button {
1412
- height: 14.285%;
1413
- }
1420
+ .ui.seven.vertical.buttons > .button {
1421
+ height: 14.285%;
1422
+ }
1414
1423
 
1415
- .ui.eight.vertical.buttons > .button {
1416
- height: 12.500%;
1417
- }
1424
+ .ui.eight.vertical.buttons > .button {
1425
+ height: 12.500%;
1426
+ }
1418
1427
 
1419
- .ui.nine.vertical.buttons > .button {
1420
- height: 11.11%;
1421
- }
1428
+ .ui.nine.vertical.buttons > .button {
1429
+ height: 11.11%;
1430
+ }
1422
1431
 
1423
- .ui.ten.vertical.buttons > .button {
1424
- height: 10%;
1425
- }
1432
+ .ui.ten.vertical.buttons > .button {
1433
+ height: 10%;
1434
+ }
1426
1435
 
1427
- .ui.eleven.vertical.buttons > .button {
1428
- height: 9.09%;
1429
- }
1436
+ .ui.eleven.vertical.buttons > .button {
1437
+ height: 9.09%;
1438
+ }
1430
1439
 
1431
- .ui.twelve.vertical.buttons > .button {
1432
- height: 8.3333%;
1440
+ .ui.twelve.vertical.buttons > .button {
1441
+ height: 8.3333%;
1442
+ }
1433
1443
  }
1434
1444
  }
1435
1445
 
@@ -1874,35 +1884,36 @@ each(@colors, {
1874
1884
  border-top-right-radius: @borderRadius;
1875
1885
  border-bottom-right-radius: @borderRadius;
1876
1886
  }
1887
+ & when (@variationButtonVertical) {
1888
+ /* Vertical Style */
1889
+ .ui.vertical.buttons {
1890
+ display: inline-flex;
1891
+ flex-direction: column;
1892
+ }
1877
1893
 
1878
- /* Vertical Style */
1879
- .ui.vertical.buttons {
1880
- display: inline-flex;
1881
- flex-direction: column;
1882
- }
1883
-
1884
- .ui.vertical.buttons .button {
1885
- display: block;
1886
- float: none;
1887
- width: 100%;
1888
- margin: @verticalGroupOffset;
1889
- box-shadow: @verticalBoxShadow;
1890
- border-radius: 0;
1891
- }
1894
+ .ui.vertical.buttons .button {
1895
+ display: block;
1896
+ float: none;
1897
+ width: 100%;
1898
+ margin: @verticalGroupOffset;
1899
+ box-shadow: @verticalBoxShadow;
1900
+ border-radius: 0;
1901
+ }
1892
1902
 
1893
- .ui.vertical.buttons .button:first-child {
1894
- border-top-left-radius: @borderRadius;
1895
- border-top-right-radius: @borderRadius;
1896
- }
1903
+ .ui.vertical.buttons .button:first-child {
1904
+ border-top-left-radius: @borderRadius;
1905
+ border-top-right-radius: @borderRadius;
1906
+ }
1897
1907
 
1898
- .ui.vertical.buttons .button:last-child {
1899
- margin-bottom: 0;
1900
- border-bottom-left-radius: @borderRadius;
1901
- border-bottom-right-radius: @borderRadius;
1902
- }
1908
+ .ui.vertical.buttons .button:last-child {
1909
+ margin-bottom: 0;
1910
+ border-bottom-left-radius: @borderRadius;
1911
+ border-bottom-right-radius: @borderRadius;
1912
+ }
1903
1913
 
1904
- .ui.vertical.buttons .button:only-child {
1905
- border-radius: @borderRadius;
1914
+ .ui.vertical.buttons .button:only-child {
1915
+ border-radius: @borderRadius;
1916
+ }
1906
1917
  }
1907
1918
  }
1908
1919
  .loadUIOverrides();
@@ -42,8 +42,10 @@
42
42
  .ui.ui.ui.relaxed.grid.container {
43
43
  width: @mobileRelaxedGridWidth;
44
44
  }
45
- .ui.ui.ui.very.relaxed.grid.container {
46
- width: @mobileVeryRelaxedGridWidth;
45
+ & when (@variationContainerVeryRelaxed) {
46
+ .ui.ui.ui.very.relaxed.grid.container {
47
+ width: @mobileVeryRelaxedGridWidth;
48
+ }
47
49
  }
48
50
  }
49
51
  }
@@ -64,8 +66,10 @@
64
66
  .ui.ui.ui.relaxed.grid.container {
65
67
  width: @tabletRelaxedGridWidth;
66
68
  }
67
- .ui.ui.ui.very.relaxed.grid.container {
68
- width: @tabletVeryRelaxedGridWidth;
69
+ & when (@variationContainerVeryRelaxed) {
70
+ .ui.ui.ui.very.relaxed.grid.container {
71
+ width: @tabletVeryRelaxedGridWidth;
72
+ }
69
73
  }
70
74
  }
71
75
  }
@@ -86,8 +90,10 @@
86
90
  .ui.ui.ui.relaxed.grid.container {
87
91
  width: @computerRelaxedGridWidth;
88
92
  }
89
- .ui.ui.ui.very.relaxed.grid.container {
90
- width: @computerVeryRelaxedGridWidth;
93
+ & when (@variationContainerVeryRelaxed) {
94
+ .ui.ui.ui.very.relaxed.grid.container {
95
+ width: @computerVeryRelaxedGridWidth;
96
+ }
91
97
  }
92
98
  }
93
99
  }
@@ -108,8 +114,10 @@
108
114
  .ui.ui.ui.relaxed.grid.container {
109
115
  width: @largeMonitorRelaxedGridWidth;
110
116
  }
111
- .ui.ui.ui.very.relaxed.grid.container {
112
- width: @largeMonitorVeryRelaxedGridWidth;
117
+ & when (@variationContainerVeryRelaxed) {
118
+ .ui.ui.ui.very.relaxed.grid.container {
119
+ width: @largeMonitorVeryRelaxedGridWidth;
120
+ }
113
121
  }
114
122
  }
115
123
  }
@@ -47,8 +47,10 @@ em[data-emoji]:before {
47
47
  States
48
48
  *******************************/
49
49
 
50
- em[data-emoji].disabled {
51
- opacity: @disabledOpacity;
50
+ & when (@variationEmojiDisabled) {
51
+ em[data-emoji].disabled {
52
+ opacity: @disabledOpacity;
53
+ }
52
54
  }
53
55
 
54
56
 
@@ -56,17 +58,21 @@ em[data-emoji].disabled {
56
58
  Variations
57
59
  *******************************/
58
60
 
59
- em[data-emoji].loading:before {
60
- animation: loader @loadingDuration linear infinite;
61
+ & when (@variationEmojiLoading) {
62
+ em[data-emoji].loading:before {
63
+ animation: loader @loadingDuration linear infinite;
64
+ }
61
65
  }
62
66
 
63
67
 
64
- /*-------------------
65
- Link
66
- --------------------*/
68
+ & when (@variationEmojiLink) {
69
+ /*-------------------
70
+ Link
71
+ --------------------*/
67
72
 
68
- em[data-emoji].link:not(.disabled) {
69
- cursor: pointer;
73
+ em[data-emoji].link:not(.disabled) {
74
+ cursor: pointer;
75
+ }
70
76
  }
71
77
 
72
78
  .loadUIOverrides();
@@ -24,29 +24,19 @@
24
24
  *******************************/
25
25
 
26
26
  i.flag:not(.icon) {
27
- display: inline-block;
28
-
29
- width: @width;
30
- height: @height;
31
-
32
- line-height: @height;
33
- vertical-align: @verticalAlign;
34
- margin: 0 @margin 0 0;
35
-
36
- text-decoration: inherit;
37
-
38
27
  speak: none;
39
- -webkit-font-smoothing: antialiased;
40
28
  backface-visibility: hidden;
41
29
  }
42
30
 
43
- /* Sprite */
44
31
  i.flag:not(.icon):before {
32
+ content: '\00A0\00A0\00A0\00A0\00A0\00A0\00A0';
45
33
  display: inline-block;
46
- content: '';
47
- background: url(@spritePath) no-repeat -108px -1976px;
48
- width: @width;
49
- height: @height;
34
+ line-height: @flagLineHeight;
35
+ background-repeat: no-repeat;
36
+ background-position: center center;
37
+ & when not (@flagFileType = 'svg') {
38
+ background-size: contain;
39
+ }
50
40
  }
51
41
 
52
42
  .loadUIOverrides();
@@ -254,10 +254,12 @@
254
254
  margin-bottom: 0;
255
255
  }
256
256
  }
257
- .ui.icon.header.aligned {
258
- margin-left: auto;
259
- margin-right: auto;
260
- display: block;
257
+ & when (@variationHeaderAligned) {
258
+ .ui.icon.header.aligned {
259
+ margin-left: auto;
260
+ margin-right: auto;
261
+ display: block;
262
+ }
261
263
  }
262
264
  }
263
265
 
@@ -403,8 +405,10 @@ each(@colors, {
403
405
  padding-bottom: @dividedBorderPadding;
404
406
  border-bottom: @dividedBorder;
405
407
  }
406
- .ui.dividing.header .sub.header {
407
- padding-bottom: @dividedSubHeaderPadding;
408
+ & when (@variationHeaderSub) {
409
+ .ui.dividing.header .sub.header {
410
+ padding-bottom: @dividedSubHeaderPadding;
411
+ }
408
412
  }
409
413
  .ui.dividing.header i.icon {
410
414
  margin-bottom: @dividedIconPadding;
@@ -454,8 +458,10 @@ each(@colors, {
454
458
  border: @attachedBorder;
455
459
  border-radius: 0;
456
460
  }
457
- .ui.attached.block.header {
458
- background: @blockBackground;
461
+ & when (@variationHeaderBlock) {
462
+ .ui.attached.block.header {
463
+ background: @blockBackground;
464
+ }
459
465
  }
460
466
  .ui.attached:not(.top).header {
461
467
  border-top: none;
@@ -22,16 +22,17 @@
22
22
  /*******************************
23
23
  Icon
24
24
  *******************************/
25
-
26
- @font-face {
27
- font-family: 'Icons';
28
- src: @fallbackSRC;
29
- src: @src;
30
- font-style: normal;
31
- font-weight: @normal;
32
- font-variant: normal;
33
- text-decoration: inherit;
34
- text-transform: none;
25
+ & when (@importIcons) {
26
+ @font-face {
27
+ font-family: 'Icons';
28
+ src: @fallbackSRC;
29
+ src: @src;
30
+ font-style: normal;
31
+ font-weight: @normal;
32
+ font-variant: normal;
33
+ text-decoration: inherit;
34
+ text-transform: none;
35
+ }
35
36
  }
36
37
 
37
38
  i.icon {
@@ -104,6 +105,7 @@ i.emphasized.icon:not(.disabled), i.emphasized.icons:not(.disabled) {
104
105
  Fitted
105
106
  --------------------*/
106
107
 
108
+ i.fitted.icons,
107
109
  i.fitted.icon {
108
110
  width: auto;
109
111
  margin: 0 !important;
@@ -375,6 +377,10 @@ i.icons {
375
377
  display: inline-block;
376
378
  position: relative;
377
379
  line-height: 1;
380
+ min-width: @width;
381
+ min-height: @height;
382
+ margin: 0 @distanceFromText 0 0;
383
+ text-align: center;
378
384
  }
379
385
 
380
386
  i.icons .icon {
@@ -44,7 +44,6 @@
44
44
  line-height: @lineHeight;
45
45
 
46
46
  font-family: @inputFont;
47
- padding: @padding;
48
47
 
49
48
  background: @background;
50
49
  border: @border;
@@ -53,6 +52,9 @@
53
52
  transition: @transition;
54
53
 
55
54
  box-shadow: @boxShadow;
55
+ &:not([type="color"]) {
56
+ padding: @padding;
57
+ }
56
58
  }
57
59
 
58
60
 
@@ -181,6 +183,20 @@
181
183
  color: @formStates[@@state][color];
182
184
  box-shadow: @formStates[@@state][boxShadow];
183
185
  }
186
+ & when (@state=error) {
187
+ .ui.input > input:not(:placeholder-shown):invalid {
188
+ background-color: @formStates[@@state][background];
189
+ border-color: @formStates[@@state][borderColor];
190
+ color: @formStates[@@state][color];
191
+ box-shadow: @formStates[@@state][boxShadow];
192
+ }
193
+ .ui.input > input:not(:-ms-input-placeholder):invalid {
194
+ background-color: @formStates[@@state][background];
195
+ border-color: @formStates[@@state][borderColor];
196
+ color: @formStates[@@state][color];
197
+ box-shadow: @formStates[@@state][boxShadow];
198
+ }
199
+ }
184
200
 
185
201
  /* Placeholder */
186
202
  .ui.input.@{state} > input::-webkit-input-placeholder {