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.
- package/.eslintrc.js +1 -0
- package/.stylelintrc.js +46 -0
- package/dist/components/accordion.css +19 -26
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +31 -41
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +71 -96
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +6 -8
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +83 -115
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +47 -64
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +37 -51
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +4 -5
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +31 -41
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +32 -44
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +109 -152
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +13 -19
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/emoji.css +7 -6
- package/dist/components/feed.css +24 -32
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +5 -3
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +39 -56
- package/dist/components/flyout.js +1 -1
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +85 -111
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +70 -96
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +47 -65
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +42 -53
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +32 -42
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +45 -58
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +55 -77
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +61 -90
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +44 -59
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +16 -22
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +126 -186
- package/dist/components/message.css +25 -35
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +33 -40
- package/dist/components/modal.js +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +19 -25
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +10 -12
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +49 -59
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +29 -39
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +15 -20
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +9 -13
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +19 -26
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +41 -58
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +62 -83
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +10 -14
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +41 -58
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +5 -5
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +27 -37
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +29 -41
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +26 -35
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +6 -8
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +87 -117
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +4 -6
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +4 -3
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +1719 -1719
- package/dist/semantic.js +26 -26
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +1 -1
- package/package.json +8 -4
- package/src/definitions/collections/breadcrumb.less +41 -44
- package/src/definitions/collections/form.less +869 -879
- package/src/definitions/collections/grid.less +1690 -1695
- package/src/definitions/collections/menu.less +1493 -1503
- package/src/definitions/collections/message.less +292 -295
- package/src/definitions/collections/table.less +1616 -1622
- package/src/definitions/elements/button.less +1723 -1737
- package/src/definitions/elements/container.less +209 -210
- package/src/definitions/elements/divider.less +205 -206
- package/src/definitions/elements/emoji.less +38 -44
- package/src/definitions/elements/flag.less +44 -46
- package/src/definitions/elements/header.less +337 -345
- package/src/definitions/elements/icon.less +511 -512
- package/src/definitions/elements/image.less +221 -225
- package/src/definitions/elements/input.less +661 -667
- package/src/definitions/elements/label.less +800 -799
- package/src/definitions/elements/list.less +809 -809
- package/src/definitions/elements/loader.less +272 -266
- package/src/definitions/elements/placeholder.less +171 -168
- package/src/definitions/elements/rail.less +91 -91
- package/src/definitions/elements/reveal.less +192 -196
- package/src/definitions/elements/segment.less +743 -747
- package/src/definitions/elements/step.less +425 -433
- package/src/definitions/elements/text.less +32 -34
- package/src/definitions/globals/reset.less +9 -6
- package/src/definitions/globals/site.less +106 -108
- package/src/definitions/modules/accordion.less +242 -246
- package/src/definitions/modules/calendar.less +91 -92
- package/src/definitions/modules/checkbox.less +536 -542
- package/src/definitions/modules/dimmer.less +300 -297
- package/src/definitions/modules/dropdown.less +1577 -1591
- package/src/definitions/modules/embed.less +81 -82
- package/src/definitions/modules/flyout.less +443 -452
- package/src/definitions/modules/modal.less +459 -462
- package/src/definitions/modules/nag.less +134 -137
- package/src/definitions/modules/popup.less +738 -739
- package/src/definitions/modules/progress.less +521 -494
- package/src/definitions/modules/rating.less +94 -101
- package/src/definitions/modules/search.less +375 -383
- package/src/definitions/modules/shape.less +71 -76
- package/src/definitions/modules/sidebar.less +464 -474
- package/src/definitions/modules/slider.less +307 -308
- package/src/definitions/modules/sticky.less +21 -23
- package/src/definitions/modules/tab.less +51 -52
- package/src/definitions/modules/toast.less +584 -586
- package/src/definitions/modules/transition.less +55 -56
- package/src/definitions/views/ad.less +206 -206
- package/src/definitions/views/card.less +968 -970
- package/src/definitions/views/comment.less +190 -198
- package/src/definitions/views/feed.less +220 -224
- package/src/definitions/views/item.less +436 -446
- package/src/definitions/views/statistic.less +269 -280
- package/src/theme.less +29 -32
- package/src/themes/default/globals/colors.less +589 -589
@@ -12,7 +12,7 @@
|
|
12
12
|
Theme
|
13
13
|
*******************************/
|
14
14
|
|
15
|
-
@type
|
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
|
-
|
30
|
-
|
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
|
-
|
38
|
+
margin: @paragraphMargin;
|
39
39
|
}
|
40
40
|
|
41
|
-
|
41
|
+
/* --------------------
|
42
42
|
Field
|
43
|
-
|
43
|
+
--------------------- */
|
44
44
|
|
45
45
|
.ui.form .field {
|
46
|
-
|
47
|
-
|
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
|
-
|
53
|
+
margin-bottom: 0;
|
54
54
|
}
|
55
55
|
|
56
56
|
.ui.form .fields .field {
|
57
|
-
|
58
|
-
|
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
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
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
|
-
|
98
|
-
|
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
|
-
|
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
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
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
|
-
|
139
|
+
padding: initial;
|
141
140
|
}
|
142
141
|
|
143
142
|
.ui.form input::-webkit-calendar-picker-indicator {
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
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
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
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
|
-
|
172
|
-
|
173
|
-
|
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
|
-
|
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
|
-
|
185
|
+
margin-top: @checkboxLabelFieldTopMargin;
|
187
186
|
}
|
188
187
|
.ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.checkbox {
|
189
|
-
|
188
|
+
margin-top: @inputLineHeight + @checkboxFieldTopMargin;
|
190
189
|
}
|
191
190
|
.ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.toggle.checkbox {
|
192
|
-
|
191
|
+
margin-top: @inputLineHeight + @checkboxToggleFieldTopMargin;
|
193
192
|
}
|
194
193
|
.ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.slider.checkbox {
|
195
|
-
|
194
|
+
margin-top: @inputLineHeight + @checkboxSliderFieldTopMargin;
|
196
195
|
}
|
197
196
|
.ui.ui.form .field .fields .field:not(:only-child) .ui.checkbox {
|
198
|
-
|
197
|
+
margin-top: (@checkboxFieldTopMargin / 2);
|
199
198
|
}
|
200
199
|
.ui.ui.form .field .fields .field:not(:only-child) .ui.toggle.checkbox {
|
201
|
-
|
200
|
+
margin-top: (@checkboxToggleFieldTopMargin / 2);
|
202
201
|
}
|
203
202
|
.ui.ui.form .field .fields .field:not(:only-child) .ui.slider.checkbox {
|
204
|
-
|
203
|
+
margin-top: (@checkboxSliderFieldTopMargin / 2);
|
205
204
|
}
|
206
205
|
|
207
206
|
& when (@variationFormTransparent) {
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
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
|
-
|
230
|
+
width: auto;
|
231
231
|
}
|
232
232
|
|
233
|
-
|
234
|
-
/*--------------------
|
233
|
+
/* --------------------
|
235
234
|
Basic Select
|
236
|
-
|
235
|
+
--------------------- */
|
237
236
|
|
238
237
|
.ui.form select {
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
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
|
-
|
258
|
-
|
256
|
+
min-width: auto;
|
257
|
+
width: 100%;
|
259
258
|
}
|
260
259
|
.ui.form .field > .selection.dropdown > .dropdown.icon {
|
261
|
-
|
260
|
+
float: right;
|
262
261
|
}
|
263
262
|
|
264
263
|
& when (@variationFormInline) {
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
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
|
-
|
283
|
+
width: 100%;
|
285
284
|
}
|
286
285
|
|
287
286
|
& when (@variationFormInline) {
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
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
|
-
|
298
|
+
width: auto;
|
300
299
|
}
|
301
300
|
|
302
301
|
& when (@variationFormEqualWidth) or (@variationFormWide) {
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
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
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
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
|
-
|
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
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
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
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
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
|
-
|
378
|
-
|
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
|
-
|
384
|
-
|
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
|
-
|
390
|
+
color: @inputPlaceholderColor;
|
396
391
|
}
|
397
392
|
.ui.form :-ms-input-placeholder when (@supportIE) {
|
398
|
-
|
393
|
+
color: @inputPlaceholderColor !important;
|
399
394
|
}
|
400
395
|
.ui.form ::-moz-placeholder {
|
401
|
-
|
402
|
-
|
396
|
+
color: @inputPlaceholderColor;
|
397
|
+
opacity: 1;
|
403
398
|
}
|
404
399
|
|
405
400
|
.ui.form :focus::-webkit-input-placeholder {
|
406
|
-
|
401
|
+
color: @inputPlaceholderFocusColor;
|
407
402
|
}
|
408
403
|
.ui.form :focus:-ms-input-placeholder when (@supportIE) {
|
409
|
-
|
404
|
+
color: @inputPlaceholderFocusColor !important;
|
410
405
|
}
|
411
406
|
.ui.form :focus::-moz-placeholder {
|
412
|
-
|
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
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
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
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
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
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
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
|
-
|
489
|
+
opacity: @iconFocusOpacity;
|
496
490
|
}
|
497
491
|
|
498
492
|
& when not (@variationFormStates = false) {
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
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
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
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
|
-
|
718
|
-
|
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
|
-
|
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
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
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
|
742
|
-
|
743
|
-
|
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
|
-
|
747
|
-
|
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
|
-
|
756
|
-
|
757
|
-
|
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
|
-
|
797
|
-
|
798
|
-
|
800
|
+
margin: @loaderMargin;
|
801
|
+
width: @loaderSize;
|
802
|
+
height: @loaderSize;
|
799
803
|
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
top: 50%;
|
804
|
-
left: 50%;
|
804
|
+
animation: loader @loaderSpeed infinite linear;
|
805
|
+
border: @loaderLineWidth solid @loaderLineColor;
|
806
|
+
border-radius: @circularRadius;
|
805
807
|
|
806
|
-
|
807
|
-
|
808
|
-
|
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
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
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
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
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
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
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
|
-
|
909
|
-
|
901
|
+
/* --------------------
|
902
|
+
Field Groups
|
903
|
+
--------------------- */
|
910
904
|
|
911
|
-
|
905
|
+
/* Grouped Vertically */
|
912
906
|
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
907
|
+
.ui.form .grouped.fields {
|
908
|
+
display: block;
|
909
|
+
margin: @groupedMargin;
|
910
|
+
}
|
917
911
|
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
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
|
-
|
948
|
-
|
949
|
-
|
941
|
+
display: flex;
|
942
|
+
flex-direction: row;
|
943
|
+
margin: @fieldsMargin;
|
950
944
|
}
|
951
945
|
.ui.form .fields > .field {
|
952
|
-
|
953
|
-
|
954
|
-
|
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
|
-
|
958
|
-
|
951
|
+
border-left: none;
|
952
|
+
box-shadow: none;
|
959
953
|
}
|
960
954
|
|
961
955
|
& when (@variationFormEqualWidth) {
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
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
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
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
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
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
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
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
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
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
|
-
|
1090
|
-
|
1080
|
+
/* --------------------
|
1081
|
+
Inline Fields
|
1082
|
+
--------------------- */
|
1091
1083
|
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
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
|
-
|
1132
|
-
|
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
|
-
|
1135
|
-
|
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
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
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
|
-
|
1168
|
+
font-size: @medium;
|
1178
1169
|
}
|
1179
1170
|
& when not (@variationFormSizes = false) {
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
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();
|