fomantic-ui 2.9.1-beta.19 → 2.9.1-beta.20

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 (212) hide show
  1. package/.eslintrc.js +1 -0
  2. package/.stylelintrc.js +46 -0
  3. package/dist/components/accordion.css +19 -26
  4. package/dist/components/accordion.js +1 -1
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +1 -1
  7. package/dist/components/ad.css +31 -41
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +1 -1
  10. package/dist/components/api.min.js +1 -1
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +71 -96
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +6 -8
  16. package/dist/components/calendar.js +1 -1
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +1 -1
  19. package/dist/components/card.css +83 -115
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +47 -64
  22. package/dist/components/checkbox.js +1 -1
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +1 -1
  25. package/dist/components/comment.css +37 -51
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +4 -5
  28. package/dist/components/container.min.css +1 -1
  29. package/dist/components/dimmer.css +31 -41
  30. package/dist/components/dimmer.js +1 -1
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +1 -1
  33. package/dist/components/divider.css +32 -44
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +109 -152
  36. package/dist/components/dropdown.js +1 -1
  37. package/dist/components/dropdown.min.css +1 -1
  38. package/dist/components/dropdown.min.js +1 -1
  39. package/dist/components/embed.css +13 -19
  40. package/dist/components/embed.js +1 -1
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +1 -1
  43. package/dist/components/emoji.css +7 -6
  44. package/dist/components/feed.css +24 -32
  45. package/dist/components/feed.min.css +1 -1
  46. package/dist/components/flag.css +5 -3
  47. package/dist/components/flag.min.css +1 -1
  48. package/dist/components/flyout.css +39 -56
  49. package/dist/components/flyout.js +1 -1
  50. package/dist/components/flyout.min.css +1 -1
  51. package/dist/components/flyout.min.js +1 -1
  52. package/dist/components/form.css +85 -111
  53. package/dist/components/form.js +1 -1
  54. package/dist/components/form.min.css +1 -1
  55. package/dist/components/form.min.js +1 -1
  56. package/dist/components/grid.css +70 -96
  57. package/dist/components/grid.min.css +1 -1
  58. package/dist/components/header.css +47 -65
  59. package/dist/components/header.min.css +1 -1
  60. package/dist/components/icon.css +42 -53
  61. package/dist/components/icon.min.css +1 -1
  62. package/dist/components/image.css +32 -42
  63. package/dist/components/image.min.css +1 -1
  64. package/dist/components/input.css +45 -58
  65. package/dist/components/input.min.css +1 -1
  66. package/dist/components/item.css +55 -77
  67. package/dist/components/item.min.css +1 -1
  68. package/dist/components/label.css +61 -90
  69. package/dist/components/label.min.css +1 -1
  70. package/dist/components/list.css +44 -59
  71. package/dist/components/list.min.css +1 -1
  72. package/dist/components/loader.css +16 -22
  73. package/dist/components/loader.min.css +1 -1
  74. package/dist/components/menu.css +126 -186
  75. package/dist/components/message.css +25 -35
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +33 -40
  78. package/dist/components/modal.js +1 -1
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +19 -25
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +10 -12
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +49 -59
  88. package/dist/components/popup.js +1 -1
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +29 -39
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +15 -20
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +9 -13
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +19 -26
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +41 -58
  106. package/dist/components/search.js +1 -1
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +62 -83
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +10 -14
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +41 -58
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +5 -5
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +27 -37
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.js +1 -1
  126. package/dist/components/state.js +1 -1
  127. package/dist/components/state.min.js +1 -1
  128. package/dist/components/statistic.css +29 -41
  129. package/dist/components/statistic.min.css +1 -1
  130. package/dist/components/step.css +26 -35
  131. package/dist/components/step.min.css +1 -1
  132. package/dist/components/sticky.css +1 -1
  133. package/dist/components/sticky.js +1 -1
  134. package/dist/components/sticky.min.css +1 -1
  135. package/dist/components/sticky.min.js +1 -1
  136. package/dist/components/tab.css +6 -8
  137. package/dist/components/tab.js +1 -1
  138. package/dist/components/tab.min.css +1 -1
  139. package/dist/components/tab.min.js +1 -1
  140. package/dist/components/table.css +87 -117
  141. package/dist/components/table.min.css +1 -1
  142. package/dist/components/text.css +1 -1
  143. package/dist/components/text.min.css +1 -1
  144. package/dist/components/toast.css +4 -6
  145. package/dist/components/toast.js +1 -1
  146. package/dist/components/toast.min.css +1 -1
  147. package/dist/components/toast.min.js +1 -1
  148. package/dist/components/transition.css +4 -3
  149. package/dist/components/transition.js +1 -1
  150. package/dist/components/transition.min.css +1 -1
  151. package/dist/components/transition.min.js +1 -1
  152. package/dist/components/visibility.js +1 -1
  153. package/dist/components/visibility.min.js +1 -1
  154. package/dist/semantic.css +1719 -1719
  155. package/dist/semantic.js +26 -26
  156. package/dist/semantic.min.css +1 -1
  157. package/dist/semantic.min.js +1 -1
  158. package/package.json +8 -4
  159. package/src/definitions/collections/breadcrumb.less +41 -44
  160. package/src/definitions/collections/form.less +869 -879
  161. package/src/definitions/collections/grid.less +1690 -1695
  162. package/src/definitions/collections/menu.less +1493 -1503
  163. package/src/definitions/collections/message.less +292 -295
  164. package/src/definitions/collections/table.less +1616 -1622
  165. package/src/definitions/elements/button.less +1723 -1737
  166. package/src/definitions/elements/container.less +209 -210
  167. package/src/definitions/elements/divider.less +205 -206
  168. package/src/definitions/elements/emoji.less +38 -44
  169. package/src/definitions/elements/flag.less +44 -46
  170. package/src/definitions/elements/header.less +337 -345
  171. package/src/definitions/elements/icon.less +511 -512
  172. package/src/definitions/elements/image.less +221 -225
  173. package/src/definitions/elements/input.less +661 -667
  174. package/src/definitions/elements/label.less +800 -799
  175. package/src/definitions/elements/list.less +809 -809
  176. package/src/definitions/elements/loader.less +272 -266
  177. package/src/definitions/elements/placeholder.less +171 -168
  178. package/src/definitions/elements/rail.less +91 -91
  179. package/src/definitions/elements/reveal.less +192 -196
  180. package/src/definitions/elements/segment.less +743 -747
  181. package/src/definitions/elements/step.less +425 -433
  182. package/src/definitions/elements/text.less +32 -34
  183. package/src/definitions/globals/reset.less +9 -6
  184. package/src/definitions/globals/site.less +106 -108
  185. package/src/definitions/modules/accordion.less +242 -246
  186. package/src/definitions/modules/calendar.less +91 -92
  187. package/src/definitions/modules/checkbox.less +536 -542
  188. package/src/definitions/modules/dimmer.less +300 -297
  189. package/src/definitions/modules/dropdown.less +1577 -1591
  190. package/src/definitions/modules/embed.less +81 -82
  191. package/src/definitions/modules/flyout.less +443 -452
  192. package/src/definitions/modules/modal.less +459 -462
  193. package/src/definitions/modules/nag.less +134 -137
  194. package/src/definitions/modules/popup.less +738 -739
  195. package/src/definitions/modules/progress.less +521 -494
  196. package/src/definitions/modules/rating.less +94 -101
  197. package/src/definitions/modules/search.less +375 -383
  198. package/src/definitions/modules/shape.less +71 -76
  199. package/src/definitions/modules/sidebar.less +464 -474
  200. package/src/definitions/modules/slider.less +307 -308
  201. package/src/definitions/modules/sticky.less +21 -23
  202. package/src/definitions/modules/tab.less +51 -52
  203. package/src/definitions/modules/toast.less +584 -586
  204. package/src/definitions/modules/transition.less +55 -56
  205. package/src/definitions/views/ad.less +206 -206
  206. package/src/definitions/views/card.less +968 -970
  207. package/src/definitions/views/comment.less +190 -198
  208. package/src/definitions/views/feed.less +220 -224
  209. package/src/definitions/views/item.less +436 -446
  210. package/src/definitions/views/statistic.less +269 -280
  211. package/src/theme.less +29 -32
  212. package/src/themes/default/globals/colors.less +589 -589
@@ -12,7 +12,7 @@
12
12
  Theme
13
13
  *******************************/
14
14
 
15
- @type : 'collection';
15
+ @type : 'collection';
16
16
  @element : 'form';
17
17
 
18
18
  @import (multiple) '../../theme.config';
@@ -21,62 +21,61 @@
21
21
  Elements
22
22
  *******************************/
23
23
 
24
- /*--------------------
24
+ /* --------------------
25
25
  Form
26
- ---------------------*/
26
+ --------------------- */
27
27
 
28
28
  .ui.form {
29
- position: relative;
30
- max-width: 100%;
29
+ position: relative;
30
+ max-width: 100%;
31
31
  }
32
32
 
33
- /*--------------------
33
+ /* --------------------
34
34
  Content
35
- ---------------------*/
35
+ --------------------- */
36
36
 
37
37
  .ui.form > p {
38
- margin: @paragraphMargin;
38
+ margin: @paragraphMargin;
39
39
  }
40
40
 
41
- /*--------------------
41
+ /* --------------------
42
42
  Field
43
- ---------------------*/
43
+ --------------------- */
44
44
 
45
45
  .ui.form .field {
46
- clear: both;
47
- margin: @fieldMargin;
46
+ clear: both;
47
+ margin: @fieldMargin;
48
48
  }
49
49
 
50
50
  .ui.form .fields .fields,
51
51
  .ui.form .field:last-child,
52
52
  .ui.form .fields:last-child .field {
53
- margin-bottom: 0;
53
+ margin-bottom: 0;
54
54
  }
55
55
 
56
56
  .ui.form .fields .field {
57
- clear: both;
58
- margin: 0;
57
+ clear: both;
58
+ margin: 0;
59
59
  }
60
60
 
61
-
62
- /*--------------------
61
+ /* --------------------
63
62
  Labels
64
- ---------------------*/
63
+ --------------------- */
65
64
 
66
65
  .ui.form .field > label {
67
- display: block;
68
- margin: @labelMargin;
69
- font-size: @labelFontSize;
70
- font-weight: @labelFontWeight;
71
- text-transform: @labelTextTransform;
66
+ display: block;
67
+ margin: @labelMargin;
68
+ font-size: @labelFontSize;
69
+ font-weight: @labelFontWeight;
70
+ text-transform: @labelTextTransform;
72
71
  }
73
72
  .ui.form:not(.inverted) .field > label:not(.button) {
74
- color: @labelColor;
73
+ color: @labelColor;
75
74
  }
76
- /*--------------------
77
- Standard Inputs
78
- ---------------------*/
79
75
 
76
+ /* --------------------
77
+ Standard Inputs
78
+ --------------------- */
80
79
 
81
80
  .ui.form textarea,
82
81
  .ui.form input:not([type]),
@@ -94,14 +93,14 @@
94
93
  .ui.form input[type="file"],
95
94
  .ui.form input[type="url"],
96
95
  .ui.form input[type="week"] {
97
- width: @inputWidth;
98
- vertical-align: top;
96
+ width: @inputWidth;
97
+ vertical-align: top;
99
98
  }
100
99
 
101
100
  /* Set max height on unusual input */
102
101
  .ui.form ::-webkit-datetime-edit,
103
102
  .ui.form ::-webkit-inner-spin-button {
104
- height: @inputLineHeight;
103
+ height: @inputLineHeight;
105
104
  }
106
105
 
107
106
  .ui.form input:not([type]),
@@ -119,304 +118,298 @@
119
118
  .ui.form input[type="file"],
120
119
  .ui.form input[type="url"],
121
120
  .ui.form input[type="week"] {
122
- font-family: @inputFont;
123
- margin: 0;
124
- outline: none;
125
- -webkit-appearance: none;
126
- -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
127
-
128
- line-height: @inputLineHeight;
129
- padding: @inputPadding;
130
- font-size: @inputFontSize;
131
-
132
- background: @inputBackground;
133
- border: @inputBorder;
134
- color: @inputColor;
135
- border-radius: @inputBorderRadius;
136
- box-shadow: @inputBoxShadow;
137
- transition: @inputTransition;
121
+ font-family: @inputFont;
122
+ margin: 0;
123
+ outline: none;
124
+ -webkit-appearance: none;
125
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
126
+
127
+ line-height: @inputLineHeight;
128
+ padding: @inputPadding;
129
+ font-size: @inputFontSize;
130
+
131
+ background: @inputBackground;
132
+ border: @inputBorder;
133
+ color: @inputColor;
134
+ border-radius: @inputBorderRadius;
135
+ box-shadow: @inputBoxShadow;
136
+ transition: @inputTransition;
138
137
  }
139
138
  .ui.form input[type="color"] {
140
- padding: initial;
139
+ padding: initial;
141
140
  }
142
141
 
143
142
  .ui.form input::-webkit-calendar-picker-indicator {
144
- padding: 0;
145
- opacity: @iconOpacity;
146
- transition: @iconTransition;
147
- cursor: pointer;
143
+ padding: 0;
144
+ opacity: @iconOpacity;
145
+ transition: @iconTransition;
146
+ cursor: pointer;
148
147
  }
149
148
 
150
149
  /* Text Area */
151
150
  .ui.input textarea,
152
151
  .ui.form textarea {
153
- margin: 0;
154
- -webkit-appearance: none;
155
- -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
156
-
157
- padding: @textAreaPadding;
158
- background: @textAreaBackground;
159
- border: @textAreaBorder;
160
- outline: none;
161
- color: @inputColor;
162
- border-radius: @inputBorderRadius;
163
- box-shadow: @inputBoxShadow;
164
- transition: @textAreaTransition;
165
- font-size: @textAreaFontSize;
166
- font-family: @inputFont;
167
- line-height: @textAreaLineHeight;
168
- resize: @textAreaResize;
152
+ margin: 0;
153
+ -webkit-appearance: none;
154
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
155
+
156
+ padding: @textAreaPadding;
157
+ background: @textAreaBackground;
158
+ border: @textAreaBorder;
159
+ outline: none;
160
+ color: @inputColor;
161
+ border-radius: @inputBorderRadius;
162
+ box-shadow: @inputBoxShadow;
163
+ transition: @textAreaTransition;
164
+ font-size: @textAreaFontSize;
165
+ font-family: @inputFont;
166
+ line-height: @textAreaLineHeight;
167
+ resize: @textAreaResize;
169
168
  }
170
169
  .ui.form textarea:not([rows]) {
171
- height: @textAreaHeight;
172
- min-height: @textAreaMinHeight;
173
- max-height: @textAreaMaxHeight;
170
+ height: @textAreaHeight;
171
+ min-height: @textAreaMinHeight;
172
+ max-height: @textAreaMaxHeight;
174
173
  }
175
174
 
176
175
  .ui.form textarea,
177
176
  .ui.form input[type="checkbox"] {
178
- vertical-align: @checkboxVerticalAlign;
177
+ vertical-align: @checkboxVerticalAlign;
179
178
  }
180
179
 
181
- /*--------------------
180
+ /* --------------------
182
181
  Checkbox margin
183
- ---------------------*/
182
+ --------------------- */
184
183
 
185
184
  .ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) label + .ui.ui.checkbox {
186
- margin-top: @checkboxLabelFieldTopMargin;
185
+ margin-top: @checkboxLabelFieldTopMargin;
187
186
  }
188
187
  .ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.checkbox {
189
- margin-top: @inputLineHeight + @checkboxFieldTopMargin;
188
+ margin-top: @inputLineHeight + @checkboxFieldTopMargin;
190
189
  }
191
190
  .ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.toggle.checkbox {
192
- margin-top: @inputLineHeight + @checkboxToggleFieldTopMargin;
191
+ margin-top: @inputLineHeight + @checkboxToggleFieldTopMargin;
193
192
  }
194
193
  .ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.slider.checkbox {
195
- margin-top: @inputLineHeight + @checkboxSliderFieldTopMargin;
194
+ margin-top: @inputLineHeight + @checkboxSliderFieldTopMargin;
196
195
  }
197
196
  .ui.ui.form .field .fields .field:not(:only-child) .ui.checkbox {
198
- margin-top: (@checkboxFieldTopMargin / 2);
197
+ margin-top: (@checkboxFieldTopMargin / 2);
199
198
  }
200
199
  .ui.ui.form .field .fields .field:not(:only-child) .ui.toggle.checkbox {
201
- margin-top: (@checkboxToggleFieldTopMargin / 2);
200
+ margin-top: (@checkboxToggleFieldTopMargin / 2);
202
201
  }
203
202
  .ui.ui.form .field .fields .field:not(:only-child) .ui.slider.checkbox {
204
- margin-top: (@checkboxSliderFieldTopMargin / 2);
203
+ margin-top: (@checkboxSliderFieldTopMargin / 2);
205
204
  }
206
205
 
207
206
  & when (@variationFormTransparent) {
208
- /*--------------------
209
- Transparent
210
- ---------------------*/
211
-
212
- .ui.form .field .transparent.input:not(.icon) input,
213
- .ui.form .field input.transparent,
214
- .ui.form .field textarea.transparent {
215
- padding: @transparentPadding;
216
- }
217
-
218
- .ui.form .field input.transparent,
219
- .ui.form .field textarea.transparent {
220
- border-color: transparent !important;
221
- background-color: transparent !important;
222
- box-shadow: none !important;
223
- }
224
- }
225
- /*--------------------------
207
+ /* --------------------
208
+ Transparent
209
+ --------------------- */
210
+
211
+ .ui.form .field .transparent.input:not(.icon) input,
212
+ .ui.form .field input.transparent,
213
+ .ui.form .field textarea.transparent {
214
+ padding: @transparentPadding;
215
+ }
216
+
217
+ .ui.form .field input.transparent,
218
+ .ui.form .field textarea.transparent {
219
+ border-color: transparent !important;
220
+ background-color: transparent !important;
221
+ box-shadow: none !important;
222
+ }
223
+ }
224
+
225
+ /* --------------------------
226
226
  Input w/ attached Button
227
- ---------------------------*/
227
+ --------------------------- */
228
228
 
229
229
  .ui.form input.attached {
230
- width: auto;
230
+ width: auto;
231
231
  }
232
232
 
233
-
234
- /*--------------------
233
+ /* --------------------
235
234
  Basic Select
236
- ---------------------*/
235
+ --------------------- */
237
236
 
238
237
  .ui.form select {
239
- display: block;
240
- height: auto;
241
- width: 100%;
242
- background: @selectBackground;
243
- border: @selectBorder;
244
- border-radius: @selectBorderRadius;
245
- box-shadow: @selectBoxShadow;
246
- padding: @selectPadding;
247
- color: @selectColor;
248
- transition: @selectTransition;
249
- }
250
-
251
- /*--------------------
238
+ display: block;
239
+ height: auto;
240
+ width: 100%;
241
+ background: @selectBackground;
242
+ border: @selectBorder;
243
+ border-radius: @selectBorderRadius;
244
+ box-shadow: @selectBoxShadow;
245
+ padding: @selectPadding;
246
+ color: @selectColor;
247
+ transition: @selectTransition;
248
+ }
249
+
250
+ /* --------------------
252
251
  Dropdown
253
- ---------------------*/
252
+ --------------------- */
254
253
 
255
254
  /* Block */
256
255
  .ui.form .field > .selection.dropdown:not(.compact) {
257
- min-width: auto;
258
- width: 100%;
256
+ min-width: auto;
257
+ width: 100%;
259
258
  }
260
259
  .ui.form .field > .selection.dropdown > .dropdown.icon {
261
- float: right;
260
+ float: right;
262
261
  }
263
262
 
264
263
  & when (@variationFormInline) {
265
- /* Inline */
266
- .ui.form .inline.fields .field > .selection.dropdown,
267
- .ui.form .inline.field > .selection.dropdown {
268
- width: auto;
269
- }
270
- .ui.form .inline.fields .field > .selection.dropdown > .dropdown.icon,
271
- .ui.form .inline.field > .selection.dropdown > .dropdown.icon {
272
- float: none;
273
- }
264
+ /* Inline */
265
+ .ui.form .inline.fields .field > .selection.dropdown,
266
+ .ui.form .inline.field > .selection.dropdown {
267
+ width: auto;
268
+ }
269
+ .ui.form .inline.fields .field > .selection.dropdown > .dropdown.icon,
270
+ .ui.form .inline.field > .selection.dropdown > .dropdown.icon {
271
+ float: none;
272
+ }
274
273
  }
275
274
 
276
- /*--------------------
275
+ /* --------------------
277
276
  UI Input
278
- ---------------------*/
277
+ --------------------- */
279
278
 
280
279
  /* Block */
281
280
  .ui.form .field .ui.input,
282
281
  .ui.form .fields .field .ui.input,
283
282
  .ui.form .wide.field .ui.input {
284
- width: 100%;
283
+ width: 100%;
285
284
  }
286
285
 
287
286
  & when (@variationFormInline) {
288
- /* Inline */
289
- .ui.form .inline.fields .field:not(.wide) .ui.input,
290
- .ui.form .inline.field:not(.wide) .ui.input {
291
- width: auto;
292
- vertical-align: middle;
293
- }
287
+ /* Inline */
288
+ .ui.form .inline.fields .field:not(.wide) .ui.input,
289
+ .ui.form .inline.field:not(.wide) .ui.input {
290
+ width: auto;
291
+ vertical-align: middle;
292
+ }
294
293
  }
295
294
 
296
295
  /* Auto Input */
297
296
  .ui.form .fields .field .ui.input input,
298
297
  .ui.form .field .ui.input input {
299
- width: auto;
298
+ width: auto;
300
299
  }
301
300
 
302
301
  & when (@variationFormEqualWidth) or (@variationFormWide) {
303
- /* Full Width Input */
304
- .ui.form .ten.fields .ui.input input,
305
- .ui.form .nine.fields .ui.input input,
306
- .ui.form .eight.fields .ui.input input,
307
- .ui.form .seven.fields .ui.input input,
308
- .ui.form .six.fields .ui.input input,
309
- .ui.form .five.fields .ui.input input,
310
- .ui.form .four.fields .ui.input input,
311
- .ui.form .three.fields .ui.input input,
312
- .ui.form .two.fields .ui.input input,
313
- .ui.form .wide.field .ui.input input {
314
- flex: 1 0 auto;
315
- width: 0;
316
- }
317
- }
318
-
319
-
320
- /*--------------------
302
+ /* Full Width Input */
303
+ .ui.form .ten.fields .ui.input input,
304
+ .ui.form .nine.fields .ui.input input,
305
+ .ui.form .eight.fields .ui.input input,
306
+ .ui.form .seven.fields .ui.input input,
307
+ .ui.form .six.fields .ui.input input,
308
+ .ui.form .five.fields .ui.input input,
309
+ .ui.form .four.fields .ui.input input,
310
+ .ui.form .three.fields .ui.input input,
311
+ .ui.form .two.fields .ui.input input,
312
+ .ui.form .wide.field .ui.input input {
313
+ flex: 1 0 auto;
314
+ width: 0;
315
+ }
316
+ }
317
+
318
+ /* --------------------
321
319
  Types of Messages
322
- ---------------------*/
320
+ --------------------- */
323
321
  & when not (@variationFormStates = false) {
324
- each(@variationFormStates, {
325
- @state: @value;
326
- .ui.form .@{state}.message,
327
- .ui.form .@{state}.message:empty {
328
- display: none;
329
- }
330
- })
322
+ each(@variationFormStates, {
323
+ @state: @value;
324
+ .ui.form .@{state}.message,
325
+ .ui.form .@{state}.message:empty {
326
+ display: none;
327
+ }
328
+ })
331
329
  }
332
330
 
333
331
  /* Assumptions */
334
332
  .ui.form .message:first-child {
335
- margin-top: 0;
333
+ margin-top: 0;
336
334
  }
337
335
 
338
- /*--------------------
336
+ /* --------------------
339
337
  Validation Prompt
340
- ---------------------*/
338
+ --------------------- */
341
339
 
342
340
  .ui.form .field .prompt.label {
343
- white-space: normal;
344
- background: @promptBackground !important;
345
- border: @promptBorder !important;
346
- color: @promptTextColor !important;
347
- & li::before {
348
- color: @promptTextColor;
349
- }
341
+ white-space: normal;
342
+ background: @promptBackground !important;
343
+ border: @promptBorder !important;
344
+ color: @promptTextColor !important;
345
+ & li::before {
346
+ color: @promptTextColor;
347
+ }
350
348
  }
351
349
  & when (@variationFormInline) {
352
- .ui.form .inline.fields .field .prompt,
353
- .ui.form .inline.field .prompt {
354
- vertical-align: top;
355
- margin: @inlinePromptMargin;
356
- }
357
- .ui.form .inline.fields .field .prompt::before,
358
- .ui.form .inline.field .prompt::before {
359
- border-width: 0 0 @inlinePromptBorderWidth @inlinePromptBorderWidth;
360
- bottom: auto;
361
- right: auto;
362
- top: 50%;
363
- left: 0;
364
- }
350
+ .ui.form .inline.fields .field .prompt,
351
+ .ui.form .inline.field .prompt {
352
+ vertical-align: top;
353
+ margin: @inlinePromptMargin;
354
+ }
355
+ .ui.form .inline.fields .field .prompt::before,
356
+ .ui.form .inline.field .prompt::before {
357
+ border-width: 0 0 @inlinePromptBorderWidth @inlinePromptBorderWidth;
358
+ bottom: auto;
359
+ right: auto;
360
+ top: 50%;
361
+ left: 0;
362
+ }
365
363
  }
366
364
 
367
-
368
365
  /*******************************
369
366
  States
370
367
  *******************************/
371
368
 
372
- /*--------------------
369
+ /* --------------------
373
370
  Autofilled
374
- ---------------------*/
371
+ --------------------- */
375
372
 
376
373
  .ui.form .field.field input:-webkit-autofill {
377
- box-shadow: 0 0 0 100px @inputAutoFillBackground inset !important;
378
- border-color: @inputAutoFillBorder !important;
374
+ box-shadow: 0 0 0 100px @inputAutoFillBackground inset !important;
375
+ border-color: @inputAutoFillBorder !important;
379
376
  }
380
377
 
381
378
  /* Focus */
382
379
  .ui.form .field.field input:-webkit-autofill:focus {
383
- box-shadow: 0 0 0 100px @inputAutoFillFocusBackground inset !important;
384
- border-color: @inputAutoFillFocusBorder !important;
380
+ box-shadow: 0 0 0 100px @inputAutoFillFocusBackground inset !important;
381
+ border-color: @inputAutoFillFocusBorder !important;
385
382
  }
386
383
 
387
-
388
-
389
- /*--------------------
384
+ /* --------------------
390
385
  Placeholder
391
- ---------------------*/
386
+ --------------------- */
392
387
 
393
388
  /* browsers require these rules separate */
394
389
  .ui.form ::-webkit-input-placeholder {
395
- color: @inputPlaceholderColor;
390
+ color: @inputPlaceholderColor;
396
391
  }
397
392
  .ui.form :-ms-input-placeholder when (@supportIE) {
398
- color: @inputPlaceholderColor !important;
393
+ color: @inputPlaceholderColor !important;
399
394
  }
400
395
  .ui.form ::-moz-placeholder {
401
- color: @inputPlaceholderColor;
402
- opacity: 1;
396
+ color: @inputPlaceholderColor;
397
+ opacity: 1;
403
398
  }
404
399
 
405
400
  .ui.form :focus::-webkit-input-placeholder {
406
- color: @inputPlaceholderFocusColor;
401
+ color: @inputPlaceholderFocusColor;
407
402
  }
408
403
  .ui.form :focus:-ms-input-placeholder when (@supportIE) {
409
- color: @inputPlaceholderFocusColor !important;
404
+ color: @inputPlaceholderFocusColor !important;
410
405
  }
411
406
  .ui.form :focus::-moz-placeholder {
412
- color: @inputPlaceholderFocusColor;
407
+ color: @inputPlaceholderFocusColor;
413
408
  }
414
409
 
415
-
416
-
417
- /*--------------------
410
+ /* --------------------
418
411
  Focus
419
- ---------------------*/
412
+ --------------------- */
420
413
 
421
414
  .ui.form input:not([type]):focus,
422
415
  .ui.form input[type="color"]:focus,
@@ -433,388 +426,389 @@
433
426
  .ui.form input[type="file"]:focus,
434
427
  .ui.form input[type="url"]:focus,
435
428
  .ui.form input[type="week"]:focus {
436
- color: @inputFocusColor;
437
- border-color: @inputFocusBorderColor;
438
- border-radius: @inputFocusBorderRadius;
439
- background: @inputFocusBackground;
440
- box-shadow: @inputFocusBoxShadow;
429
+ color: @inputFocusColor;
430
+ border-color: @inputFocusBorderColor;
431
+ border-radius: @inputFocusBorderRadius;
432
+ background: @inputFocusBackground;
433
+ box-shadow: @inputFocusBoxShadow;
441
434
  }
442
435
  & when (@variationInputAction) {
443
- .ui.form .ui.action.input:not([class*="left action"]) {
444
- & input:not([type]):focus,
445
- input[type="color"]:focus,
446
- input[type="date"]:focus,
447
- input[type="datetime-local"]:focus,
448
- input[type="email"]:focus,
449
- input[type="month"]:focus,
450
- input[type="number"]:focus,
451
- input[type="password"]:focus,
452
- input[type="search"]:focus,
453
- input[type="tel"]:focus,
454
- input[type="time"]:focus,
455
- input[type="text"]:focus,
456
- input[type="file"]:focus,
457
- input[type="url"]:focus,
458
- input[type="week"]:focus {
459
- border-top-right-radius: 0;
460
- border-bottom-right-radius: 0;
461
- }
462
- }
463
-
464
- .ui.form .ui[class*="left action"].input {
465
- & input:not([type]),
466
- input[type="color"],
467
- input[type="date"],
468
- input[type="datetime-local"],
469
- input[type="email"],
470
- input[type="month"],
471
- input[type="number"],
472
- input[type="password"],
473
- input[type="search"],
474
- input[type="tel"],
475
- input[type="time"],
476
- input[type="text"],
477
- input[type="file"],
478
- input[type="url"],
479
- input[type="week"] {
480
- border-bottom-left-radius: 0;
481
- border-top-left-radius: 0;
482
- }
483
- }
436
+ .ui.form .ui.action.input:not([class*="left action"]) {
437
+ & input:not([type]):focus,
438
+ input[type="color"]:focus,
439
+ input[type="date"]:focus,
440
+ input[type="datetime-local"]:focus,
441
+ input[type="email"]:focus,
442
+ input[type="month"]:focus,
443
+ input[type="number"]:focus,
444
+ input[type="password"]:focus,
445
+ input[type="search"]:focus,
446
+ input[type="tel"]:focus,
447
+ input[type="time"]:focus,
448
+ input[type="text"]:focus,
449
+ input[type="file"]:focus,
450
+ input[type="url"]:focus,
451
+ input[type="week"]:focus {
452
+ border-top-right-radius: 0;
453
+ border-bottom-right-radius: 0;
454
+ }
455
+ }
456
+
457
+ .ui.form .ui[class*="left action"].input {
458
+ & input:not([type]),
459
+ input[type="color"],
460
+ input[type="date"],
461
+ input[type="datetime-local"],
462
+ input[type="email"],
463
+ input[type="month"],
464
+ input[type="number"],
465
+ input[type="password"],
466
+ input[type="search"],
467
+ input[type="tel"],
468
+ input[type="time"],
469
+ input[type="text"],
470
+ input[type="file"],
471
+ input[type="url"],
472
+ input[type="week"] {
473
+ border-bottom-left-radius: 0;
474
+ border-top-left-radius: 0;
475
+ }
476
+ }
484
477
  }
485
478
  .ui.form textarea:focus {
486
- color: @textAreaFocusColor;
487
- border-color: @textAreaFocusBorderColor;
488
- border-radius: @textAreaFocusBorderRadius;
489
- background: @textAreaFocusBackground;
490
- box-shadow: @textAreaFocusBoxShadow;
491
- -webkit-appearance: none;
479
+ color: @textAreaFocusColor;
480
+ border-color: @textAreaFocusBorderColor;
481
+ border-radius: @textAreaFocusBorderRadius;
482
+ background: @textAreaFocusBackground;
483
+ box-shadow: @textAreaFocusBoxShadow;
484
+ -webkit-appearance: none;
492
485
  }
486
+
493
487
  /* Focus */
494
488
  .ui.form input:focus::-webkit-calendar-picker-indicator {
495
- opacity: @iconFocusOpacity;
489
+ opacity: @iconFocusOpacity;
496
490
  }
497
491
 
498
492
  & when not (@variationFormStates = false) {
499
- /*--------------------
500
- States
501
- ---------------------*/
502
- each(@variationFormStates, {
503
- @state: @value;
504
- @c: @formStates[@@state][color];
505
- @bg: @formStates[@@state][background];
506
- @bdc: @formStates[@@state][borderColor];
507
- @lbg: @formStates[@@state][labelBackground];
508
-
509
- /* On Form */
510
- .ui.form.@{state} .@{state}.message:not(:empty) {
511
- display: block;
512
- }
513
- .ui.form.@{state} .compact.@{state}.message:not(:empty) {
514
- display: inline-block;
515
- }
516
- .ui.form.@{state} .icon.@{state}.message:not(:empty) {
517
- display: flex;
518
- }
519
-
520
- /* On Field(s) */
521
- .ui.form .fields.@{state} .@{state}.message:not(:empty),
522
- .ui.form .field.@{state} .@{state}.message:not(:empty) {
523
- display: block;
524
- }
525
- .ui.form .fields.@{state} .compact.@{state}.message:not(:empty),
526
- .ui.form .field.@{state} .compact.@{state}.message:not(:empty) {
527
- display: inline-block;
528
- }
529
- .ui.form .fields.@{state} .icon.@{state}.message:not(:empty),
530
- .ui.form .field.@{state} .icon.@{state}.message:not(:empty) {
531
- display: flex;
532
- }
533
-
534
- .ui.ui.form .fields.@{state} .field label,
535
- .ui.ui.form .fields.@{state} .field .ui.label:not(.corner),
536
- .ui.ui.form .field.@{state} label,
537
- .ui.ui.form .field.@{state} .ui.label:not(.corner),
538
- .ui.ui.form .fields.@{state} .field .input,
539
- .ui.ui.form .field.@{state} .input {
540
- color: @c;
541
- }
542
-
543
- .ui.form .fields.@{state} .field .ui.label,
544
- .ui.form .field.@{state} .ui.label {
545
- background-color: @lbg;
546
- }
547
-
548
- .ui.form .fields.@{state} .field .corner.label,
549
- .ui.form .field.@{state} .corner.label {
550
- border-color: @c;
551
- color: @formStates[@@state][cornerLabelColor];
552
- }
553
-
554
- .ui.form .fields.@{state} .field textarea,
555
- .ui.form .fields.@{state} .field select,
556
- .ui.form .fields.@{state} .field input:not([type]),
557
- .ui.form .fields.@{state} .field input[type="color"],
558
- .ui.form .fields.@{state} .field input[type="date"],
559
- .ui.form .fields.@{state} .field input[type="datetime-local"],
560
- .ui.form .fields.@{state} .field input[type="email"],
561
- .ui.form .fields.@{state} .field input[type="month"],
562
- .ui.form .fields.@{state} .field input[type="number"],
563
- .ui.form .fields.@{state} .field input[type="password"],
564
- .ui.form .fields.@{state} .field input[type="search"],
565
- .ui.form .fields.@{state} .field input[type="tel"],
566
- .ui.form .fields.@{state} .field input[type="time"],
567
- .ui.form .fields.@{state} .field input[type="text"],
568
- .ui.form .fields.@{state} .field input[type="file"],
569
- .ui.form .fields.@{state} .field input[type="url"],
570
- .ui.form .fields.@{state} .field input[type="week"],
571
- .ui.form .field.@{state} textarea,
572
- .ui.form .field.@{state} select,
573
- .ui.form .field.@{state} input:not([type]),
574
- .ui.form .field.@{state} input[type="color"],
575
- .ui.form .field.@{state} input[type="date"],
576
- .ui.form .field.@{state} input[type="datetime-local"],
577
- .ui.form .field.@{state} input[type="email"],
578
- .ui.form .field.@{state} input[type="month"],
579
- .ui.form .field.@{state} input[type="number"],
580
- .ui.form .field.@{state} input[type="password"],
581
- .ui.form .field.@{state} input[type="search"],
582
- .ui.form .field.@{state} input[type="tel"],
583
- .ui.form .field.@{state} input[type="time"],
584
- .ui.form .field.@{state} input[type="text"],
585
- .ui.form .field.@{state} input[type="file"],
586
- .ui.form .field.@{state} input[type="url"],
587
- .ui.form .field.@{state} input[type="week"] {
588
- color: @c;
589
- background: @bg;
590
- border-color: @formStates[@@state][borderColor];
591
- border-radius: @formStates[@@state][borderRadius];
592
- box-shadow: @formStates[@@state][boxShadow];
593
- }
594
- & when (@state=error) and (@variationFormInvalid) {
595
- .ui.form .field input:not(:placeholder-shown):invalid {
596
- color: @c;
597
- background: @bg;
598
- border-color: @formStates[@@state][borderColor];
599
- border-radius: @formStates[@@state][borderRadius];
600
- box-shadow: @formStates[@@state][boxShadow];
601
- }
602
- .ui.form .field input:not(:-ms-input-placeholder):invalid when (@supportIE) {
603
- color: @c;
604
- background: @bg;
605
- border-color: @formStates[@@state][borderColor];
606
- border-radius: @formStates[@@state][borderRadius];
607
- box-shadow: @formStates[@@state][boxShadow];
608
- }
609
- }
610
-
611
- .ui.form .field.@{state} textarea:focus,
612
- .ui.form .field.@{state} select:focus,
613
- .ui.form .field.@{state} input:not([type]):focus,
614
- .ui.form .field.@{state} input[type="color"]:focus,
615
- .ui.form .field.@{state} input[type="date"]:focus,
616
- .ui.form .field.@{state} input[type="datetime-local"]:focus,
617
- .ui.form .field.@{state} input[type="email"]:focus,
618
- .ui.form .field.@{state} input[type="month"]:focus,
619
- .ui.form .field.@{state} input[type="number"]:focus,
620
- .ui.form .field.@{state} input[type="password"]:focus,
621
- .ui.form .field.@{state} input[type="search"]:focus,
622
- .ui.form .field.@{state} input[type="tel"]:focus,
623
- .ui.form .field.@{state} input[type="time"]:focus,
624
- .ui.form .field.@{state} input[type="text"]:focus,
625
- .ui.form .field.@{state} input[type="file"]:focus,
626
- .ui.form .field.@{state} input[type="url"]:focus,
627
- .ui.form .field.@{state} input[type="week"]:focus {
628
- background: @formStates[@@state][inputFocusBackground];
629
- border-color: @formStates[@@state][inputFocusBorderColor];
630
- color: @formStates[@@state][inputFocusColor];
631
-
632
- box-shadow: @formStates[@@state][inputFocusBoxShadow];
633
- }
634
-
635
- /* Preserve Native Select Stylings */
636
- .ui.form .field.@{state} select {
637
- -webkit-appearance: menulist-button;
638
- }
639
-
640
- /*------------------
641
- Input State
642
- --------------------*/
643
- & when (@variationFormTransparent) {
644
- /* Transparent */
645
- .ui.form .field.@{state} .transparent.input input,
646
- .ui.form .field.@{state} .transparent.input textarea,
647
- .ui.form .field.@{state} input.transparent,
648
- .ui.form .field.@{state} textarea.transparent {
649
- background-color: @formStates[@@state][transparentBackground] !important;
650
- color: @formStates[@@state][transparentColor] !important;
651
- }
652
- }
653
-
654
- /* Autofilled */
655
- .ui.form .@{state}.@{state} input:-webkit-autofill {
656
- box-shadow: 0 0 0 100px @formStates[@@state][inputAutoFillBackground] inset !important;
657
- border-color: @formStates[@@state][inputAutoFillBorderColor] !important;
658
- }
659
-
660
- /* Placeholder */
661
- .ui.form .@{state} ::-webkit-input-placeholder {
662
- color: @formStates[@@state][inputPlaceholderColor];
663
- }
664
- .ui.form .@{state} :-ms-input-placeholder when (@supportIE) {
665
- color: @formStates[@@state][inputPlaceholderColor] !important;
666
- }
667
- .ui.form .@{state} ::-moz-placeholder {
668
- color: @formStates[@@state][inputPlaceholderColor];
669
- }
670
-
671
- .ui.form .@{state} :focus::-webkit-input-placeholder {
672
- color: @formStates[@@state][inputPlaceholderFocusColor];
673
- }
674
- .ui.form .@{state} :focus:-ms-input-placeholder when (@supportIE) {
675
- color: @formStates[@@state][inputPlaceholderFocusColor] !important;
676
- }
677
- .ui.form .@{state} :focus::-moz-placeholder {
678
- color: @formStates[@@state][inputPlaceholderFocusColor];
679
- }
680
-
681
- /*------------------
682
- Dropdown State
683
- --------------------*/
684
-
685
- .ui.form .fields.@{state} .field .ui.dropdown,
686
- .ui.form .fields.@{state} .field .ui.dropdown .item,
687
- .ui.form .field.@{state} .ui.dropdown,
688
- .ui.form .field.@{state} .ui.dropdown > .text,
689
- .ui.form .field.@{state} .ui.dropdown .item {
690
- background: @bg;
691
- color: @c;
692
- }
693
- .ui.form .fields.@{state} .field .ui.dropdown,
694
- .ui.form .field.@{state} .ui.dropdown {
695
- border-color: @bdc !important;
696
- }
697
- .ui.form .fields.@{state} .field .ui.dropdown:hover,
698
- .ui.form .field.@{state} .ui.dropdown:hover {
699
- border-color: @bdc !important;
700
- }
701
- .ui.form .fields.@{state} .field .ui.dropdown:hover .menu,
702
- .ui.form .field.@{state} .ui.dropdown:hover .menu {
703
- border-color: @bdc;
704
- }
705
- .ui.form .fields.@{state} .field .ui.multiple.selection.dropdown > .label,
706
- .ui.form .field.@{state} .ui.multiple.selection.dropdown > .label {
707
- background-color: @formStates[@@state][dropdownLabelBackground];
708
- color: @formStates[@@state][dropdownLabelColor];
709
- }
493
+ /* --------------------
494
+ States
495
+ --------------------- */
496
+ each(@variationFormStates, {
497
+ @state: @value;
498
+ @c: @formStates[@@state][color];
499
+ @bg: @formStates[@@state][background];
500
+ @bdc: @formStates[@@state][borderColor];
501
+ @lbg: @formStates[@@state][labelBackground];
502
+
503
+ /* On Form */
504
+ .ui.form.@{state} .@{state}.message:not(:empty) {
505
+ display: block;
506
+ }
507
+ .ui.form.@{state} .compact.@{state}.message:not(:empty) {
508
+ display: inline-block;
509
+ }
510
+ .ui.form.@{state} .icon.@{state}.message:not(:empty) {
511
+ display: flex;
512
+ }
513
+
514
+ /* On Field(s) */
515
+ .ui.form .fields.@{state} .@{state}.message:not(:empty),
516
+ .ui.form .field.@{state} .@{state}.message:not(:empty) {
517
+ display: block;
518
+ }
519
+ .ui.form .fields.@{state} .compact.@{state}.message:not(:empty),
520
+ .ui.form .field.@{state} .compact.@{state}.message:not(:empty) {
521
+ display: inline-block;
522
+ }
523
+ .ui.form .fields.@{state} .icon.@{state}.message:not(:empty),
524
+ .ui.form .field.@{state} .icon.@{state}.message:not(:empty) {
525
+ display: flex;
526
+ }
527
+
528
+ .ui.ui.form .fields.@{state} .field label,
529
+ .ui.ui.form .fields.@{state} .field .ui.label:not(.corner),
530
+ .ui.ui.form .field.@{state} label,
531
+ .ui.ui.form .field.@{state} .ui.label:not(.corner),
532
+ .ui.ui.form .fields.@{state} .field .input,
533
+ .ui.ui.form .field.@{state} .input {
534
+ color: @c;
535
+ }
536
+
537
+ .ui.form .fields.@{state} .field .ui.label,
538
+ .ui.form .field.@{state} .ui.label {
539
+ background-color: @lbg;
540
+ }
541
+
542
+ .ui.form .fields.@{state} .field .corner.label,
543
+ .ui.form .field.@{state} .corner.label {
544
+ border-color: @c;
545
+ color: @formStates[@@state][cornerLabelColor];
546
+ }
547
+
548
+ .ui.form .fields.@{state} .field textarea,
549
+ .ui.form .fields.@{state} .field select,
550
+ .ui.form .fields.@{state} .field input:not([type]),
551
+ .ui.form .fields.@{state} .field input[type="color"],
552
+ .ui.form .fields.@{state} .field input[type="date"],
553
+ .ui.form .fields.@{state} .field input[type="datetime-local"],
554
+ .ui.form .fields.@{state} .field input[type="email"],
555
+ .ui.form .fields.@{state} .field input[type="month"],
556
+ .ui.form .fields.@{state} .field input[type="number"],
557
+ .ui.form .fields.@{state} .field input[type="password"],
558
+ .ui.form .fields.@{state} .field input[type="search"],
559
+ .ui.form .fields.@{state} .field input[type="tel"],
560
+ .ui.form .fields.@{state} .field input[type="time"],
561
+ .ui.form .fields.@{state} .field input[type="text"],
562
+ .ui.form .fields.@{state} .field input[type="file"],
563
+ .ui.form .fields.@{state} .field input[type="url"],
564
+ .ui.form .fields.@{state} .field input[type="week"],
565
+ .ui.form .field.@{state} textarea,
566
+ .ui.form .field.@{state} select,
567
+ .ui.form .field.@{state} input:not([type]),
568
+ .ui.form .field.@{state} input[type="color"],
569
+ .ui.form .field.@{state} input[type="date"],
570
+ .ui.form .field.@{state} input[type="datetime-local"],
571
+ .ui.form .field.@{state} input[type="email"],
572
+ .ui.form .field.@{state} input[type="month"],
573
+ .ui.form .field.@{state} input[type="number"],
574
+ .ui.form .field.@{state} input[type="password"],
575
+ .ui.form .field.@{state} input[type="search"],
576
+ .ui.form .field.@{state} input[type="tel"],
577
+ .ui.form .field.@{state} input[type="time"],
578
+ .ui.form .field.@{state} input[type="text"],
579
+ .ui.form .field.@{state} input[type="file"],
580
+ .ui.form .field.@{state} input[type="url"],
581
+ .ui.form .field.@{state} input[type="week"] {
582
+ color: @c;
583
+ background: @bg;
584
+ border-color: @formStates[@@state][borderColor];
585
+ border-radius: @formStates[@@state][borderRadius];
586
+ box-shadow: @formStates[@@state][boxShadow];
587
+ }
588
+ & when (@state=error) and (@variationFormInvalid) {
589
+ .ui.form .field input:not(:placeholder-shown):invalid {
590
+ color: @c;
591
+ background: @bg;
592
+ border-color: @formStates[@@state][borderColor];
593
+ border-radius: @formStates[@@state][borderRadius];
594
+ box-shadow: @formStates[@@state][boxShadow];
595
+ }
596
+ .ui.form .field input:not(:-ms-input-placeholder):invalid when (@supportIE) {
597
+ color: @c;
598
+ background: @bg;
599
+ border-color: @formStates[@@state][borderColor];
600
+ border-radius: @formStates[@@state][borderRadius];
601
+ box-shadow: @formStates[@@state][boxShadow];
602
+ }
603
+ }
604
+
605
+ .ui.form .field.@{state} textarea:focus,
606
+ .ui.form .field.@{state} select:focus,
607
+ .ui.form .field.@{state} input:not([type]):focus,
608
+ .ui.form .field.@{state} input[type="color"]:focus,
609
+ .ui.form .field.@{state} input[type="date"]:focus,
610
+ .ui.form .field.@{state} input[type="datetime-local"]:focus,
611
+ .ui.form .field.@{state} input[type="email"]:focus,
612
+ .ui.form .field.@{state} input[type="month"]:focus,
613
+ .ui.form .field.@{state} input[type="number"]:focus,
614
+ .ui.form .field.@{state} input[type="password"]:focus,
615
+ .ui.form .field.@{state} input[type="search"]:focus,
616
+ .ui.form .field.@{state} input[type="tel"]:focus,
617
+ .ui.form .field.@{state} input[type="time"]:focus,
618
+ .ui.form .field.@{state} input[type="text"]:focus,
619
+ .ui.form .field.@{state} input[type="file"]:focus,
620
+ .ui.form .field.@{state} input[type="url"]:focus,
621
+ .ui.form .field.@{state} input[type="week"]:focus {
622
+ background: @formStates[@@state][inputFocusBackground];
623
+ border-color: @formStates[@@state][inputFocusBorderColor];
624
+ color: @formStates[@@state][inputFocusColor];
625
+
626
+ box-shadow: @formStates[@@state][inputFocusBoxShadow];
627
+ }
628
+
629
+ /* Preserve Native Select Stylings */
630
+ .ui.form .field.@{state} select {
631
+ -webkit-appearance: menulist-button;
632
+ }
633
+
634
+ /*------------------
635
+ Input State
636
+ --------------------*/
637
+ & when (@variationFormTransparent) {
638
+ /* Transparent */
639
+ .ui.form .field.@{state} .transparent.input input,
640
+ .ui.form .field.@{state} .transparent.input textarea,
641
+ .ui.form .field.@{state} input.transparent,
642
+ .ui.form .field.@{state} textarea.transparent {
643
+ background-color: @formStates[@@state][transparentBackground] !important;
644
+ color: @formStates[@@state][transparentColor] !important;
645
+ }
646
+ }
647
+
648
+ /* Autofilled */
649
+ .ui.form .@{state}.@{state} input:-webkit-autofill {
650
+ box-shadow: 0 0 0 100px @formStates[@@state][inputAutoFillBackground] inset !important;
651
+ border-color: @formStates[@@state][inputAutoFillBorderColor] !important;
652
+ }
653
+
654
+ /* Placeholder */
655
+ .ui.form .@{state} ::-webkit-input-placeholder {
656
+ color: @formStates[@@state][inputPlaceholderColor];
657
+ }
658
+ .ui.form .@{state} :-ms-input-placeholder when (@supportIE) {
659
+ color: @formStates[@@state][inputPlaceholderColor] !important;
660
+ }
661
+ .ui.form .@{state} ::-moz-placeholder {
662
+ color: @formStates[@@state][inputPlaceholderColor];
663
+ }
664
+
665
+ .ui.form .@{state} :focus::-webkit-input-placeholder {
666
+ color: @formStates[@@state][inputPlaceholderFocusColor];
667
+ }
668
+ .ui.form .@{state} :focus:-ms-input-placeholder when (@supportIE) {
669
+ color: @formStates[@@state][inputPlaceholderFocusColor] !important;
670
+ }
671
+ .ui.form .@{state} :focus::-moz-placeholder {
672
+ color: @formStates[@@state][inputPlaceholderFocusColor];
673
+ }
674
+
675
+ /*------------------
676
+ Dropdown State
677
+ --------------------*/
678
+
679
+ .ui.form .fields.@{state} .field .ui.dropdown,
680
+ .ui.form .fields.@{state} .field .ui.dropdown .item,
681
+ .ui.form .field.@{state} .ui.dropdown,
682
+ .ui.form .field.@{state} .ui.dropdown > .text,
683
+ .ui.form .field.@{state} .ui.dropdown .item {
684
+ background: @bg;
685
+ color: @c;
686
+ }
687
+ .ui.form .fields.@{state} .field .ui.dropdown,
688
+ .ui.form .field.@{state} .ui.dropdown {
689
+ border-color: @bdc !important;
690
+ }
691
+ .ui.form .fields.@{state} .field .ui.dropdown:hover,
692
+ .ui.form .field.@{state} .ui.dropdown:hover {
693
+ border-color: @bdc !important;
694
+ }
695
+ .ui.form .fields.@{state} .field .ui.dropdown:hover .menu,
696
+ .ui.form .field.@{state} .ui.dropdown:hover .menu {
697
+ border-color: @bdc;
698
+ }
699
+ .ui.form .fields.@{state} .field .ui.multiple.selection.dropdown > .label,
700
+ .ui.form .field.@{state} .ui.multiple.selection.dropdown > .label {
701
+ background-color: @formStates[@@state][dropdownLabelBackground];
702
+ color: @formStates[@@state][dropdownLabelColor];
703
+ }
704
+
705
+ /* Hover */
706
+ .ui.form .fields.@{state} .field .ui.dropdown .menu .item:hover,
707
+ .ui.form .field.@{state} .ui.dropdown .menu .item:hover {
708
+ background-color: @formStates[@@state][dropdownHoverBackground];
709
+ }
710
+
711
+ /* Selected */
712
+ .ui.form .fields.@{state} .field .ui.dropdown .menu .selected.item,
713
+ .ui.form .field.@{state} .ui.dropdown .menu .selected.item {
714
+ background-color: @formStates[@@state][dropdownSelectedBackground];
715
+ }
716
+
717
+ /* Active */
718
+ .ui.form .fields.@{state} .field .ui.dropdown .menu .active.item,
719
+ .ui.form .field.@{state} .ui.dropdown .menu .active.item {
720
+ background-color: @formStates[@@state][dropdownActiveBackground] !important;
721
+ }
722
+
723
+ /*--------------------
724
+ Checkbox State
725
+ ---------------------*/
726
+ .ui.form .fields.@{state} .field .checkbox:not(.toggle):not(.slider) label,
727
+ .ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) label {
728
+ color: @c;
729
+ }
730
+ .ui.form .fields.@{state} .field .checkbox:not(.toggle):not(.slider) label::before,
731
+ .ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) label::before {
732
+ background: @bg;
733
+ border-color: @bdc;
734
+ }
735
+ .ui.form .fields.@{state} .field .checkbox label::after,
736
+ .ui.form .field.@{state} .checkbox label::after {
737
+ color: @c;
738
+ }
739
+
740
+ & when (@variationFormInverted) {
741
+ .ui.inverted.form .fields.@{state} .field label,
742
+ .ui.inverted.form .@{state}.field label {
743
+ color: @lbg;
744
+ }
745
+ }
746
+ })
747
+ }
710
748
 
711
- /* Hover */
712
- .ui.form .fields.@{state} .field .ui.dropdown .menu .item:hover,
713
- .ui.form .field.@{state} .ui.dropdown .menu .item:hover {
714
- background-color: @formStates[@@state][dropdownHoverBackground];
749
+ & when (@variationFormDisabled) {
750
+ /* --------------------
751
+ Disabled
752
+ --------------------- */
753
+
754
+ .ui.form .disabled.fields .field,
755
+ .ui.form .disabled.field,
756
+ .ui.form .field :disabled {
757
+ pointer-events: @disabledPointerEvents;
758
+ opacity: @disabledOpacity;
715
759
  }
716
-
717
- /* Selected */
718
- .ui.form .fields.@{state} .field .ui.dropdown .menu .selected.item,
719
- .ui.form .field.@{state} .ui.dropdown .menu .selected.item {
720
- background-color: @formStates[@@state][dropdownSelectedBackground];
760
+ .ui.form .field.disabled > label,
761
+ .ui.form .fields.disabled > label {
762
+ opacity: @disabledLabelOpacity;
721
763
  }
722
-
723
- /* Active */
724
- .ui.form .fields.@{state} .field .ui.dropdown .menu .active.item,
725
- .ui.form .field.@{state} .ui.dropdown .menu .active.item {
726
- background-color: @formStates[@@state][dropdownActiveBackground] !important;
764
+ .ui.form .field.disabled :disabled {
765
+ opacity: 1;
727
766
  }
767
+ }
728
768
 
729
- /*--------------------
730
- Checkbox State
731
- ---------------------*/
732
- .ui.form .fields.@{state} .field .checkbox:not(.toggle):not(.slider) label,
733
- .ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) label {
734
- color: @c;
735
- }
736
- .ui.form .fields.@{state} .field .checkbox:not(.toggle):not(.slider) label::before,
737
- .ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) label::before {
738
- background: @bg;
739
- border-color: @bdc;
769
+ & when (@variationFormLoading) {
770
+ /* --------------
771
+ Loading
772
+ --------------- */
773
+
774
+ .ui.loading.form {
775
+ position: relative;
776
+ cursor: default;
777
+ pointer-events: none;
740
778
  }
741
- .ui.form .fields.@{state} .field .checkbox label::after,
742
- .ui.form .field.@{state} .checkbox label::after {
743
- color: @c;
779
+ .ui.loading.form::before {
780
+ position: absolute;
781
+ content: '';
782
+ top: 0;
783
+ left: 0;
784
+ background: @loaderDimmerColor;
785
+ width: 100%;
786
+ height: 100%;
787
+ z-index: @loaderDimmerZIndex;
744
788
  }
745
789
 
746
- & when (@variationFormInverted) {
747
- .ui.inverted.form .fields.@{state} .field label,
748
- .ui.inverted.form .@{state}.field label {
749
- color: @lbg;
750
- }
790
+ .ui.loading.form.segments::before {
791
+ border-radius: @defaultBorderRadius;
751
792
  }
752
- })
753
- }
754
793
 
755
- & when (@variationFormDisabled) {
756
- /*--------------------
757
- Disabled
758
- ---------------------*/
759
-
760
- .ui.form .disabled.fields .field,
761
- .ui.form .disabled.field,
762
- .ui.form .field :disabled {
763
- pointer-events: @disabledPointerEvents;
764
- opacity: @disabledOpacity;
765
- }
766
- .ui.form .field.disabled > label,
767
- .ui.form .fields.disabled > label {
768
- opacity: @disabledLabelOpacity;
769
- }
770
- .ui.form .field.disabled :disabled {
771
- opacity: 1;
772
- }
773
- }
774
-
775
- & when (@variationFormLoading) {
776
- /*--------------
777
- Loading
778
- ---------------*/
779
-
780
- .ui.loading.form {
781
- position: relative;
782
- cursor: default;
783
- pointer-events: none;
784
- }
785
- .ui.loading.form::before {
786
- position: absolute;
787
- content: '';
788
- top: 0;
789
- left: 0;
790
- background: @loaderDimmerColor;
791
- width: 100%;
792
- height: 100%;
793
- z-index: @loaderDimmerZIndex;
794
- }
794
+ .ui.loading.form::after {
795
+ position: absolute;
796
+ content: '';
797
+ top: 50%;
798
+ left: 50%;
795
799
 
796
- .ui.loading.form.segments::before {
797
- border-radius: @defaultBorderRadius;
798
- }
800
+ margin: @loaderMargin;
801
+ width: @loaderSize;
802
+ height: @loaderSize;
799
803
 
800
- .ui.loading.form::after {
801
- position: absolute;
802
- content: '';
803
- top: 50%;
804
- left: 50%;
804
+ animation: loader @loaderSpeed infinite linear;
805
+ border: @loaderLineWidth solid @loaderLineColor;
806
+ border-radius: @circularRadius;
805
807
 
806
- margin: @loaderMargin;
807
- width: @loaderSize;
808
- height: @loaderSize;
809
-
810
- animation: loader @loaderSpeed infinite linear;
811
- border: @loaderLineWidth solid @loaderLineColor;
812
- border-radius: @circularRadius;
813
-
814
- box-shadow: 0 0 0 1px transparent;
815
- visibility: visible;
816
- z-index: @loaderLineZIndex;
817
- }
808
+ box-shadow: 0 0 0 1px transparent;
809
+ visibility: visible;
810
+ z-index: @loaderLineZIndex;
811
+ }
818
812
  }
819
813
 
820
814
  /*******************************
@@ -822,370 +816,366 @@
822
816
  *******************************/
823
817
 
824
818
  & when (@variationFormRequired) {
825
- /*--------------------
826
- Required Field
827
- ---------------------*/
828
-
829
- .ui.form .required.fields:not(.grouped) > .field > label::after,
830
- .ui.form .required.fields.grouped > label::after,
831
- .ui.form .required.field > label::after,
832
- .ui.form .required.fields:not(.grouped) > .field > .checkbox::after,
833
- .ui.form .required.field > .checkbox::after,
834
- .ui.form label.required::after {
835
- margin: @requiredMargin;
836
- content: @requiredContent;
837
- color: @requiredColor;
838
- }
839
-
840
- .ui.form .required.fields:not(.grouped) > .field > label::after,
841
- .ui.form .required.fields.grouped > label::after,
842
- .ui.form .required.field > label::after,
843
- .ui.form label.required::after {
844
- display: inline-block;
845
- vertical-align: top;
846
- }
819
+ /* --------------------
820
+ Required Field
821
+ --------------------- */
822
+
823
+ .ui.form .required.fields:not(.grouped) > .field > label::after,
824
+ .ui.form .required.fields.grouped > label::after,
825
+ .ui.form .required.field > label::after,
826
+ .ui.form .required.fields:not(.grouped) > .field > .checkbox::after,
827
+ .ui.form .required.field > .checkbox::after,
828
+ .ui.form label.required::after {
829
+ margin: @requiredMargin;
830
+ content: @requiredContent;
831
+ color: @requiredColor;
832
+ }
847
833
 
848
- .ui.form .required.fields:not(.grouped) > .field > .checkbox::after,
849
- .ui.form .required.field > .checkbox::after {
850
- position: absolute;
851
- top: 0;
852
- left: 100%;
853
- }
854
- }
834
+ .ui.form .required.fields:not(.grouped) > .field > label::after,
835
+ .ui.form .required.fields.grouped > label::after,
836
+ .ui.form .required.field > label::after,
837
+ .ui.form label.required::after {
838
+ display: inline-block;
839
+ vertical-align: top;
840
+ }
855
841
 
842
+ .ui.form .required.fields:not(.grouped) > .field > .checkbox::after,
843
+ .ui.form .required.field > .checkbox::after {
844
+ position: absolute;
845
+ top: 0;
846
+ left: 100%;
847
+ }
848
+ }
856
849
 
857
850
  /*******************************
858
851
  Variations
859
852
  *******************************/
860
853
 
861
854
  & when (@variationFormInverted) {
862
- /*--------------------
863
- Inverted Colors
864
- ---------------------*/
865
-
866
- .ui.inverted.form label,
867
- .ui.form .inverted.segment label,
868
- .ui.form .inverted.segment .ui.checkbox label,
869
- .ui.inverted.form .ui.checkbox label,
870
- .ui.inverted.form .inline.fields > label,
871
- .ui.inverted.form .inline.fields .field > label,
872
- .ui.inverted.form .inline.fields .field > p,
873
- .ui.inverted.form .inline.field > label,
874
- .ui.inverted.form .inline.field > p {
875
- color: @invertedLabelColor;
876
- }
877
- .ui.inverted.loading.form {
878
- color: @invertedLoaderLineColor;
879
- }
880
- .ui.inverted.loading.form::before {
881
- background: @loaderInvertedDimmerColor;
882
- }
883
- /* Inverted Field */
884
- .ui.inverted.form input:not([type]),
885
- .ui.inverted.form input[type="color"],
886
- .ui.inverted.form input[type="date"],
887
- .ui.inverted.form input[type="datetime-local"],
888
- .ui.inverted.form input[type="email"],
889
- .ui.inverted.form input[type="month"],
890
- .ui.inverted.form input[type="number"],
891
- .ui.inverted.form input[type="password"],
892
- .ui.inverted.form input[type="search"],
893
- .ui.inverted.form input[type="tel"],
894
- .ui.inverted.form input[type="time"],
895
- .ui.inverted.form input[type="text"],
896
- .ui.inverted.form input[type="file"],
897
- .ui.inverted.form input[type="url"],
898
- .ui.inverted.form input[type="week"] {
899
- background: @invertedInputBackground;
900
- border-color: @invertedInputBorderColor;
901
- color: @invertedInputColor;
902
- box-shadow: @invertedInputBoxShadow;
903
- }
855
+ /* --------------------
856
+ Inverted Colors
857
+ --------------------- */
858
+
859
+ .ui.inverted.form label,
860
+ .ui.form .inverted.segment label,
861
+ .ui.form .inverted.segment .ui.checkbox label,
862
+ .ui.inverted.form .ui.checkbox label,
863
+ .ui.inverted.form .inline.fields > label,
864
+ .ui.inverted.form .inline.fields .field > label,
865
+ .ui.inverted.form .inline.fields .field > p,
866
+ .ui.inverted.form .inline.field > label,
867
+ .ui.inverted.form .inline.field > p {
868
+ color: @invertedLabelColor;
869
+ }
870
+ .ui.inverted.loading.form {
871
+ color: @invertedLoaderLineColor;
872
+ }
873
+ .ui.inverted.loading.form::before {
874
+ background: @loaderInvertedDimmerColor;
875
+ }
876
+
877
+ /* Inverted Field */
878
+ .ui.inverted.form input:not([type]),
879
+ .ui.inverted.form input[type="color"],
880
+ .ui.inverted.form input[type="date"],
881
+ .ui.inverted.form input[type="datetime-local"],
882
+ .ui.inverted.form input[type="email"],
883
+ .ui.inverted.form input[type="month"],
884
+ .ui.inverted.form input[type="number"],
885
+ .ui.inverted.form input[type="password"],
886
+ .ui.inverted.form input[type="search"],
887
+ .ui.inverted.form input[type="tel"],
888
+ .ui.inverted.form input[type="time"],
889
+ .ui.inverted.form input[type="text"],
890
+ .ui.inverted.form input[type="file"],
891
+ .ui.inverted.form input[type="url"],
892
+ .ui.inverted.form input[type="week"] {
893
+ background: @invertedInputBackground;
894
+ border-color: @invertedInputBorderColor;
895
+ color: @invertedInputColor;
896
+ box-shadow: @invertedInputBoxShadow;
897
+ }
904
898
  }
905
899
 
906
900
  & when (@variationFormGrouped) {
907
- /*--------------------
908
- Field Groups
909
- ---------------------*/
901
+ /* --------------------
902
+ Field Groups
903
+ --------------------- */
910
904
 
911
- /* Grouped Vertically */
905
+ /* Grouped Vertically */
912
906
 
913
- .ui.form .grouped.fields {
914
- display: block;
915
- margin: @groupedMargin;
916
- }
907
+ .ui.form .grouped.fields {
908
+ display: block;
909
+ margin: @groupedMargin;
910
+ }
917
911
 
918
- .ui.form .grouped.fields:last-child {
919
- margin-bottom: 0;
920
- }
921
-
922
- .ui.form .grouped.fields > label {
923
- margin: @groupedLabelMargin;
924
- color: @groupedLabelColor;
925
- font-size: @groupedLabelFontSize;
926
- font-weight: @groupedLabelFontWeight;
927
- text-transform: @groupedLabelTextTransform;
928
- }
929
-
930
- .ui.form .grouped.fields .field,
931
- .ui.form .grouped.inline.fields .field {
932
- display: block;
933
- margin: @groupedFieldMargin;
934
- padding: 0;
935
- }
936
- .ui.form .grouped.inline.fields .ui.checkbox {
937
- margin-bottom: @groupedInlineCheckboxBottomMargin;
938
- }
912
+ .ui.form .grouped.fields:last-child {
913
+ margin-bottom: 0;
914
+ }
915
+
916
+ .ui.form .grouped.fields > label {
917
+ margin: @groupedLabelMargin;
918
+ color: @groupedLabelColor;
919
+ font-size: @groupedLabelFontSize;
920
+ font-weight: @groupedLabelFontWeight;
921
+ text-transform: @groupedLabelTextTransform;
922
+ }
923
+
924
+ .ui.form .grouped.fields .field,
925
+ .ui.form .grouped.inline.fields .field {
926
+ display: block;
927
+ margin: @groupedFieldMargin;
928
+ padding: 0;
929
+ }
930
+ .ui.form .grouped.inline.fields .ui.checkbox {
931
+ margin-bottom: @groupedInlineCheckboxBottomMargin;
932
+ }
939
933
  }
940
934
 
941
- /*--------------------
935
+ /* --------------------
942
936
  Fields
943
- ---------------------*/
937
+ --------------------- */
944
938
 
945
939
  /* Split fields */
946
940
  .ui.form .fields {
947
- display: flex;
948
- flex-direction: row;
949
- margin: @fieldsMargin;
941
+ display: flex;
942
+ flex-direction: row;
943
+ margin: @fieldsMargin;
950
944
  }
951
945
  .ui.form .fields > .field {
952
- flex: 0 1 auto;
953
- padding-left: (@gutterWidth / 2);
954
- padding-right: (@gutterWidth / 2);
946
+ flex: 0 1 auto;
947
+ padding-left: (@gutterWidth / 2);
948
+ padding-right: (@gutterWidth / 2);
955
949
  }
956
950
  .ui.form .fields > .field:first-child {
957
- border-left: none;
958
- box-shadow: none;
951
+ border-left: none;
952
+ box-shadow: none;
959
953
  }
960
954
 
961
955
  & when (@variationFormEqualWidth) {
962
- /* Other Combinations */
963
- .ui.form .two.fields > .fields,
964
- .ui.form .two.fields > .field {
965
- width: @twoColumn;
966
- }
967
- .ui.form .three.fields > .fields,
968
- .ui.form .three.fields > .field {
969
- width: @threeColumn;
970
- }
971
- .ui.form .four.fields > .fields,
972
- .ui.form .four.fields > .field {
973
- width: @fourColumn;
974
- }
975
- .ui.form .five.fields > .fields,
976
- .ui.form .five.fields > .field {
977
- width: @fiveColumn;
978
- }
979
- .ui.form .six.fields > .fields,
980
- .ui.form .six.fields > .field {
981
- width: @sixColumn;
982
- }
983
- .ui.form .seven.fields > .fields,
984
- .ui.form .seven.fields > .field {
985
- width: @sevenColumn;
986
- }
987
- .ui.form .eight.fields > .fields,
988
- .ui.form .eight.fields > .field {
989
- width: @eightColumn;
990
- }
991
- .ui.form .nine.fields > .fields,
992
- .ui.form .nine.fields > .field {
993
- width: @nineColumn;
994
- }
995
- .ui.form .ten.fields > .fields,
996
- .ui.form .ten.fields > .field {
997
- width: @tenColumn;
998
- }
956
+ /* Other Combinations */
957
+ .ui.form .two.fields > .fields,
958
+ .ui.form .two.fields > .field {
959
+ width: @twoColumn;
960
+ }
961
+ .ui.form .three.fields > .fields,
962
+ .ui.form .three.fields > .field {
963
+ width: @threeColumn;
964
+ }
965
+ .ui.form .four.fields > .fields,
966
+ .ui.form .four.fields > .field {
967
+ width: @fourColumn;
968
+ }
969
+ .ui.form .five.fields > .fields,
970
+ .ui.form .five.fields > .field {
971
+ width: @fiveColumn;
972
+ }
973
+ .ui.form .six.fields > .fields,
974
+ .ui.form .six.fields > .field {
975
+ width: @sixColumn;
976
+ }
977
+ .ui.form .seven.fields > .fields,
978
+ .ui.form .seven.fields > .field {
979
+ width: @sevenColumn;
980
+ }
981
+ .ui.form .eight.fields > .fields,
982
+ .ui.form .eight.fields > .field {
983
+ width: @eightColumn;
984
+ }
985
+ .ui.form .nine.fields > .fields,
986
+ .ui.form .nine.fields > .field {
987
+ width: @nineColumn;
988
+ }
989
+ .ui.form .ten.fields > .fields,
990
+ .ui.form .ten.fields > .field {
991
+ width: @tenColumn;
992
+ }
999
993
  }
1000
994
 
1001
995
  /* Swap to full width on mobile */
1002
- @media only screen and (max-width : @largestMobileScreen) {
1003
- .ui.form .fields {
1004
- flex-wrap: wrap;
1005
- margin-bottom: 0;
1006
- }
996
+ @media only screen and (max-width: @largestMobileScreen) {
997
+ .ui.form .fields {
998
+ flex-wrap: wrap;
999
+ margin-bottom: 0;
1000
+ }
1007
1001
 
1008
- .ui.form:not(.unstackable) .fields:not(.unstackable) > .fields,
1009
- .ui.form:not(.unstackable) .fields:not(.unstackable) > .field {
1010
- width: @oneColumn;
1011
- margin: 0 0 @rowDistance;
1012
- }
1002
+ .ui.form:not(.unstackable) .fields:not(.unstackable) > .fields,
1003
+ .ui.form:not(.unstackable) .fields:not(.unstackable) > .field {
1004
+ width: @oneColumn;
1005
+ margin: 0 0 @rowDistance;
1006
+ }
1013
1007
  }
1014
1008
 
1015
1009
  & when (@variationFormWide) {
1010
+ /* Sizing Combinations */
1011
+ .ui.form .fields .wide.field {
1012
+ width: @oneWide;
1013
+ padding-left: (@gutterWidth / 2);
1014
+ padding-right: (@gutterWidth / 2);
1015
+ }
1016
1016
 
1017
- /* Sizing Combinations */
1018
- .ui.form .fields .wide.field {
1019
- width: @oneWide;
1020
- padding-left: (@gutterWidth / 2);
1021
- padding-right: (@gutterWidth / 2);
1022
- }
1023
-
1024
- .ui.form .one.wide.field {
1025
- width: @oneWide;
1026
- }
1027
- .ui.form .two.wide.field {
1028
- width: @twoWide;
1029
- }
1030
- .ui.form .three.wide.field {
1031
- width: @threeWide;
1032
- }
1033
- .ui.form .four.wide.field {
1034
- width: @fourWide;
1035
- }
1036
- .ui.form .five.wide.field {
1037
- width: @fiveWide;
1038
- }
1039
- .ui.form .six.wide.field {
1040
- width: @sixWide;
1041
- }
1042
- .ui.form .seven.wide.field {
1043
- width: @sevenWide;
1044
- }
1045
- .ui.form .eight.wide.field {
1046
- width: @eightWide;
1047
- }
1048
- .ui.form .nine.wide.field {
1049
- width: @nineWide;
1050
- }
1051
- .ui.form .ten.wide.field {
1052
- width: @tenWide;
1053
- }
1054
- .ui.form .eleven.wide.field {
1055
- width: @elevenWide;
1056
- }
1057
- .ui.form .twelve.wide.field {
1058
- width: @twelveWide;
1059
- }
1060
- .ui.form .thirteen.wide.field {
1061
- width: @thirteenWide;
1062
- }
1063
- .ui.form .fourteen.wide.field {
1064
- width: @fourteenWide;
1065
- }
1066
- .ui.form .fifteen.wide.field {
1067
- width: @fifteenWide;
1068
- }
1069
- .ui.form .sixteen.wide.field {
1070
- width: @sixteenWide;
1071
- }
1072
- }
1073
-
1074
-
1075
- /*--------------------
1017
+ .ui.form .one.wide.field {
1018
+ width: @oneWide;
1019
+ }
1020
+ .ui.form .two.wide.field {
1021
+ width: @twoWide;
1022
+ }
1023
+ .ui.form .three.wide.field {
1024
+ width: @threeWide;
1025
+ }
1026
+ .ui.form .four.wide.field {
1027
+ width: @fourWide;
1028
+ }
1029
+ .ui.form .five.wide.field {
1030
+ width: @fiveWide;
1031
+ }
1032
+ .ui.form .six.wide.field {
1033
+ width: @sixWide;
1034
+ }
1035
+ .ui.form .seven.wide.field {
1036
+ width: @sevenWide;
1037
+ }
1038
+ .ui.form .eight.wide.field {
1039
+ width: @eightWide;
1040
+ }
1041
+ .ui.form .nine.wide.field {
1042
+ width: @nineWide;
1043
+ }
1044
+ .ui.form .ten.wide.field {
1045
+ width: @tenWide;
1046
+ }
1047
+ .ui.form .eleven.wide.field {
1048
+ width: @elevenWide;
1049
+ }
1050
+ .ui.form .twelve.wide.field {
1051
+ width: @twelveWide;
1052
+ }
1053
+ .ui.form .thirteen.wide.field {
1054
+ width: @thirteenWide;
1055
+ }
1056
+ .ui.form .fourteen.wide.field {
1057
+ width: @fourteenWide;
1058
+ }
1059
+ .ui.form .fifteen.wide.field {
1060
+ width: @fifteenWide;
1061
+ }
1062
+ .ui.form .sixteen.wide.field {
1063
+ width: @sixteenWide;
1064
+ }
1065
+ }
1066
+
1067
+ /* --------------------
1076
1068
  Equal Width
1077
- ---------------------*/
1069
+ --------------------- */
1078
1070
 
1079
1071
  & when (@variationFormEqualWidth) {
1080
- .ui[class*="equal width"].form .fields > .field,
1081
- .ui.form [class*="equal width"].fields > .field {
1082
- width: 100%;
1083
- flex: 1 1 auto;
1084
- }
1072
+ .ui[class*="equal width"].form .fields > .field,
1073
+ .ui.form [class*="equal width"].fields > .field {
1074
+ width: 100%;
1075
+ flex: 1 1 auto;
1076
+ }
1085
1077
  }
1086
1078
 
1087
1079
  & when (@variationFormInline) {
1088
- /*--------------------
1089
- Inline Fields
1090
- ---------------------*/
1080
+ /* --------------------
1081
+ Inline Fields
1082
+ --------------------- */
1091
1083
 
1092
- .ui.form .inline.fields {
1093
- margin: @fieldMargin;
1094
- align-items: center;
1095
- }
1096
- .ui.form .inline.fields .field {
1097
- margin: 0;
1098
- padding: @inlineFieldsMargin;
1099
- }
1100
-
1101
- /* Inline Label */
1102
- .ui.form .inline.fields > label,
1103
- .ui.form .inline.fields .field > label,
1104
- .ui.form .inline.fields .field > p,
1105
- .ui.form .inline.field > label,
1106
- .ui.form .inline.field > p {
1107
- display: inline-block;
1108
- width: auto;
1109
- margin-top: 0;
1110
- margin-bottom: 0;
1111
- vertical-align: baseline;
1112
- font-size: @inlineLabelFontSize;
1113
- font-weight: @inlineLabelFontWeight;
1114
- color: @inlineLabelColor;
1115
- text-transform: @inlineLabelTextTransform;
1116
- }
1117
-
1118
- /* Grouped Inline Label */
1119
- .ui.form .inline.fields > label {
1120
- margin: @groupedInlineLabelMargin;
1121
- }
1122
-
1123
- /* Inline Input */
1124
- .ui.form .inline.fields .field > input,
1125
- .ui.form .inline.fields .field > select,
1126
- .ui.form .inline.field > input,
1127
- .ui.form .inline.field > select {
1128
- display: inline-block;
1129
- width: auto;
1084
+ .ui.form .inline.fields {
1085
+ margin: @fieldMargin;
1086
+ align-items: center;
1087
+ }
1088
+ .ui.form .inline.fields .field {
1089
+ margin: 0;
1090
+ padding: @inlineFieldsMargin;
1091
+ }
1130
1092
 
1131
- margin-top: 0;
1132
- margin-bottom: 0;
1093
+ /* Inline Label */
1094
+ .ui.form .inline.fields > label,
1095
+ .ui.form .inline.fields .field > label,
1096
+ .ui.form .inline.fields .field > p,
1097
+ .ui.form .inline.field > label,
1098
+ .ui.form .inline.field > p {
1099
+ display: inline-block;
1100
+ width: auto;
1101
+ margin-top: 0;
1102
+ margin-bottom: 0;
1103
+ vertical-align: baseline;
1104
+ font-size: @inlineLabelFontSize;
1105
+ font-weight: @inlineLabelFontWeight;
1106
+ color: @inlineLabelColor;
1107
+ text-transform: @inlineLabelTextTransform;
1108
+ }
1133
1109
 
1134
- vertical-align: middle;
1135
- font-size: @inlineInputSize;
1136
- }
1137
-
1138
- .ui.form .inline.fields .field .calendar:not(.popup),
1139
- .ui.form .inline.field .calendar:not(.popup) {
1140
- display:inline-block;
1141
- }
1142
-
1143
- .ui.form .inline.fields .field .calendar:not(.popup) > .input > input,
1144
- .ui.form .inline.field .calendar:not(.popup) > .input > input {
1145
- width: @inlineCalendarWidth;
1146
- }
1147
-
1148
- /* Label */
1149
- .ui.form .inline.fields .field > :first-child,
1150
- .ui.form .inline.field > :first-child {
1151
- margin: 0 @inlineLabelDistance 0 0;
1152
- }
1153
- .ui.form .inline.fields .field > :only-child,
1154
- .ui.form .inline.field > :only-child {
1155
- margin: 0;
1156
- }
1110
+ /* Grouped Inline Label */
1111
+ .ui.form .inline.fields > label {
1112
+ margin: @groupedInlineLabelMargin;
1113
+ }
1157
1114
 
1158
- /* Wide */
1159
- .ui.form .inline.fields .wide.field {
1160
- display: flex;
1161
- align-items: center;
1162
- }
1163
- .ui.form .inline.fields .wide.field > input,
1164
- .ui.form .inline.fields .wide.field > select {
1165
- width: 100%;
1166
- }
1167
- }
1115
+ /* Inline Input */
1116
+ .ui.form .inline.fields .field > input,
1117
+ .ui.form .inline.fields .field > select,
1118
+ .ui.form .inline.field > input,
1119
+ .ui.form .inline.field > select {
1120
+ display: inline-block;
1121
+ width: auto;
1168
1122
 
1123
+ margin-top: 0;
1124
+ margin-bottom: 0;
1169
1125
 
1170
- /*--------------------
1126
+ vertical-align: middle;
1127
+ font-size: @inlineInputSize;
1128
+ }
1129
+
1130
+ .ui.form .inline.fields .field .calendar:not(.popup),
1131
+ .ui.form .inline.field .calendar:not(.popup) {
1132
+ display: inline-block;
1133
+ }
1134
+
1135
+ .ui.form .inline.fields .field .calendar:not(.popup) > .input > input,
1136
+ .ui.form .inline.field .calendar:not(.popup) > .input > input {
1137
+ width: @inlineCalendarWidth;
1138
+ }
1139
+
1140
+ /* Label */
1141
+ .ui.form .inline.fields .field > :first-child,
1142
+ .ui.form .inline.field > :first-child {
1143
+ margin: 0 @inlineLabelDistance 0 0;
1144
+ }
1145
+ .ui.form .inline.fields .field > :only-child,
1146
+ .ui.form .inline.field > :only-child {
1147
+ margin: 0;
1148
+ }
1149
+
1150
+ /* Wide */
1151
+ .ui.form .inline.fields .wide.field {
1152
+ display: flex;
1153
+ align-items: center;
1154
+ }
1155
+ .ui.form .inline.fields .wide.field > input,
1156
+ .ui.form .inline.fields .wide.field > select {
1157
+ width: 100%;
1158
+ }
1159
+ }
1160
+
1161
+ /* --------------------
1171
1162
  Sizes
1172
- ---------------------*/
1163
+ --------------------- */
1173
1164
 
1174
1165
  .ui.form,
1175
1166
  .ui.form .field .dropdown,
1176
1167
  .ui.form .field .dropdown .menu > .item {
1177
- font-size: @medium;
1168
+ font-size: @medium;
1178
1169
  }
1179
1170
  & when not (@variationFormSizes = false) {
1180
- each(@variationFormSizes, {
1181
- @s: @@value;
1182
- .ui.@{value}.form,
1183
- .ui.@{value}.form .field .dropdown,
1184
- .ui.@{value}.form .field .dropdown .menu > .item {
1185
- font-size: @s;
1186
- }
1187
- })
1171
+ each(@variationFormSizes, {
1172
+ @s: @@value;
1173
+ .ui.@{value}.form,
1174
+ .ui.@{value}.form .field .dropdown,
1175
+ .ui.@{value}.form .field .dropdown .menu > .item {
1176
+ font-size: @s;
1177
+ }
1178
+ })
1188
1179
  }
1189
1180
 
1190
-
1191
1181
  .loadUIOverrides();