semantic-forms 3.0.4 → 3.0.6

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/README.md CHANGED
@@ -12,7 +12,9 @@ Include the `semanticForms.css` and `semanticForms.js` files from this repo into
12
12
 
13
13
  If you want to set your own images for the clear fields and dropdown arrows, then include the `semanticFormsNoImages.css` and `semanticForms.js` files from this repo into your project instead, as they do not have any preset images embedded in the CSS and will result in a smaller dependency size.
14
14
 
15
- Apply the `semanticForms` class to your `<form>` elements:
15
+ If you have CSS inheritance conflicts with other CSS in your webapp, try including the "reset" versions of the semantic forms CSS files (`semanticFormsReset.css` or `semanticFormsNoImagesReset.css`) which set `all: unset;` before applying any semantic-forms styles to help avoid conflicts with other CSS. There is a performance degradation to using this technique, so you should only use this if absolutely necessary.
16
+
17
+ Then apply the `semanticForms` class to your `<form>` elements:
16
18
 
17
19
  ```html
18
20
  <form class="semanticForms">
package/package.json CHANGED
@@ -2,13 +2,17 @@
2
2
  "name": "semantic-forms",
3
3
  "description": "Semantic Forms",
4
4
  "author": "Eric Newport <kethinov@gmail.com>",
5
- "version": "3.0.4",
5
+ "version": "3.0.6",
6
6
  "files": [
7
7
  "semanticForms.css",
8
8
  "semanticForms.js",
9
9
  "semanticFormsImages.less",
10
10
  "semanticFormsNoImages.css",
11
- "semanticFormsNoImages.less"
11
+ "semanticFormsNoImages.less",
12
+ "semanticFormsReset.css",
13
+ "semanticFormsImagesReset.less",
14
+ "semanticFormsNoImagesReset.css",
15
+ "semanticFormsNoImagesReset.less"
12
16
  ],
13
17
  "homepage": "https://github.com/kethinov/semanticforms",
14
18
  "license": "CC-BY-4.0",
@@ -22,7 +26,7 @@
22
26
  "scripts": {
23
27
  "test": "echo \"TODO: tests\"",
24
28
  "coverage": "echo \"TODO: test coverage\"",
25
- "build": "lessc semanticFormsImages.less semanticForms.css && lessc semanticFormsNoImages.less semanticFormsNoImages.css"
29
+ "build": "lessc semanticFormsImages.less semanticForms.css && lessc semanticFormsNoImages.less semanticFormsNoImages.css && lessc semanticFormsImagesReset.less semanticFormsReset.css && lessc semanticFormsNoImagesReset.less semanticFormsNoImagesReset.css"
26
30
  },
27
31
  "repository": {
28
32
  "type": "git",
@@ -0,0 +1,5 @@
1
+ .semanticForms {
2
+ all: unset;
3
+ }
4
+
5
+ @import 'semanticFormsImages';
@@ -0,0 +1,372 @@
1
+ .semanticForms {
2
+ all: unset;
3
+ }
4
+ .semanticForms {
5
+ font-family: sans-serif;
6
+ }
7
+ .semanticForms input:not([type='submit']):not([type='reset']):not([type='image']):not([type=checkbox]):not([type=radio]):not([type=color]),
8
+ .semanticForms select,
9
+ .semanticForms textarea {
10
+ box-sizing: content-box;
11
+ background-color: #fff;
12
+ outline: 0;
13
+ border: 1px #c0c0c0 solid;
14
+ border-radius: 10px;
15
+ width: 250px;
16
+ height: 25px;
17
+ font-size: 100%;
18
+ font-family: sans-serif;
19
+ padding: 5px 20px;
20
+ }
21
+ .semanticForms input[type=color] {
22
+ background-color: #fff;
23
+ border: 0;
24
+ width: 292px;
25
+ height: 37px;
26
+ padding: 5px 20px;
27
+ }
28
+ .semanticForms select {
29
+ box-sizing: border-box;
30
+ }
31
+ .semanticForms input[type=range] {
32
+ border: 0 !important;
33
+ width: 248px !important;
34
+ }
35
+ .semanticForms fieldset {
36
+ text-align: center;
37
+ margin-bottom: 25px;
38
+ }
39
+ .semanticForms fieldset p {
40
+ text-align: left;
41
+ width: 100%;
42
+ clear: both;
43
+ }
44
+ .semanticForms legend {
45
+ text-align: left;
46
+ }
47
+ .semanticForms dl {
48
+ text-align: left;
49
+ }
50
+ .semanticForms .checkboxes ul,
51
+ .semanticForms .radios ul {
52
+ list-style: none;
53
+ padding: 0;
54
+ }
55
+ .semanticForms dd.checkboxes,
56
+ .semanticForms dd.radios {
57
+ margin: 0;
58
+ }
59
+ .semanticForms input:not([type='submit']):not([type='reset']):not([type=checkbox]):not([type=radio]),
60
+ .semanticForms textarea {
61
+ background-image: none;
62
+ background-size: 12px;
63
+ background-repeat: no-repeat;
64
+ transition: background 0.2s;
65
+ }
66
+ .semanticForms input:not([type=checkbox]):not([type=radio]) {
67
+ background-position: right -12px center;
68
+ }
69
+ .semanticForms textarea {
70
+ background-position: right -12px top 10px;
71
+ height: 100px;
72
+ }
73
+ .semanticForms input::placeholder {
74
+ color: #aaa;
75
+ }
76
+ .semanticForms textarea::placeholder {
77
+ color: #aaa;
78
+ }
79
+ .semanticForms input:focus::placeholder {
80
+ color: #aaa;
81
+ }
82
+ .semanticForms input:focus::-moz-placeholder {
83
+ color: #aaa;
84
+ }
85
+ .semanticForms input:focus::-webkit-input-placeholder {
86
+ color: #aaa;
87
+ }
88
+ .semanticForms input:focus:-ms-input-placeholder {
89
+ color: #aaa;
90
+ }
91
+ .semanticForms textarea:focus::placeholder {
92
+ color: #aaa;
93
+ }
94
+ .semanticForms textarea:focus::-moz-placeholder {
95
+ color: #aaa;
96
+ }
97
+ .semanticForms textarea:focus::-webkit-input-placeholder {
98
+ color: #aaa;
99
+ }
100
+ .semanticForms textarea:focus:-ms-input-placeholder {
101
+ color: #aaa;
102
+ }
103
+ .semanticForms input[type='submit'],
104
+ .semanticForms input[type='reset'],
105
+ .semanticForms input[type='image'],
106
+ .semanticForms button {
107
+ width: auto;
108
+ box-sizing: content-box;
109
+ float: none;
110
+ clear: both;
111
+ outline: 0;
112
+ -webkit-appearance: none;
113
+ -moz-appearance: none;
114
+ appearance: none;
115
+ border-radius: 20px;
116
+ font-size: 100%;
117
+ margin: 25px 10px;
118
+ padding: 5px 25px;
119
+ border: 1px #c0c0c0 solid;
120
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #c0c0c0));
121
+ background-image: -o-linear-gradient(bottom, #fff 0%, #c0c0c0 100%);
122
+ background-image: -moz-linear-gradient(bottom, #fff 0%, #c0c0c0 100%);
123
+ background-image: -webkit-linear-gradient(bottom, #fff 0%, #c0c0c0 100%);
124
+ background-image: -ms-linear-gradient(bottom, #fff 0%, #c0c0c0 100%);
125
+ background-image: linear-gradient(to bottom, #fff 0%, #c0c0c0 100%);
126
+ }
127
+ .semanticForms input[type='submit']:first-of-type,
128
+ .semanticForms input[type='reset']:first-of-type,
129
+ .semanticForms input[type='image']:first-of-type,
130
+ .semanticForms button:first-of-type {
131
+ margin-left: 0;
132
+ }
133
+ .semanticForms input[type='submit']:active,
134
+ .semanticForms input[type='reset']:active,
135
+ .semanticForms input[type='image']:active,
136
+ .semanticForms button:active {
137
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(#fff, 0), color-stop(#c0c0c0, 1));
138
+ background-image: -o-linear-gradient(bottom, #c0c0c0 0%, #fff 100%);
139
+ background-image: -moz-linear-gradient(bottom, #c0c0c0 0%, #fff 100%);
140
+ background-image: -webkit-linear-gradient(bottom, #c0c0c0 0%, #fff 100%);
141
+ background-image: -ms-linear-gradient(bottom, #c0c0c0 0%, #fff 100%);
142
+ background-image: linear-gradient(to bottom, #c0c0c0 0%, #fff 100%);
143
+ }
144
+ .semanticForms select {
145
+ background-image: none;
146
+ background-size: 14px;
147
+ background-position: calc(99%) 16px;
148
+ background-repeat: no-repeat;
149
+ width: 292px;
150
+ height: 37px;
151
+ -webkit-appearance: none;
152
+ -moz-appearance: none;
153
+ appearance: none;
154
+ }
155
+ .semanticForms label.floatLabelFormAnimatedLabel,
156
+ .semanticForms input:not([type=checkbox]):not([type=radio]),
157
+ .semanticForms select,
158
+ .semanticForms textarea,
159
+ .semanticForms section {
160
+ transition: all 0.2s;
161
+ touch-action: manipulation;
162
+ }
163
+ .semanticForms .floatLabelForm {
164
+ margin: 0 auto;
165
+ }
166
+ .semanticForms .floatLabelForm input[disabled] {
167
+ opacity: 0.5;
168
+ }
169
+ .semanticForms .floatLabelForm input:not([type=date])::-webkit-clear-button {
170
+ -webkit-appearance: none;
171
+ margin: 0;
172
+ }
173
+ .semanticForms .floatLabelForm dd {
174
+ float: left;
175
+ margin: 0 10px 0 10px;
176
+ }
177
+ .semanticForms .floatLabelForm dt:not(.checkboxes):not(.radios) {
178
+ font-size: 1px;
179
+ text-indent: 100%;
180
+ white-space: nowrap;
181
+ overflow: hidden;
182
+ position: absolute;
183
+ right: 9999px;
184
+ }
185
+ .semanticForms .floatLabelForm dd:not(.checkboxes):not(.radios) {
186
+ display: flex;
187
+ flex-flow: column-reverse;
188
+ }
189
+ .semanticForms .floatLabelForm .checkboxes ul,
190
+ .semanticForms .floatLabelForm .radios ul {
191
+ margin: 3px 20px 0 0;
192
+ width: 262px;
193
+ padding-left: 10px;
194
+ }
195
+ .semanticForms .floatLabelForm label.floatLabelFormAnimatedLabel {
196
+ width: 170px;
197
+ padding: 6px 15px;
198
+ font-size: 75%;
199
+ color: #aaa;
200
+ cursor: text;
201
+ white-space: nowrap;
202
+ overflow: hidden;
203
+ text-overflow: ellipsis;
204
+ transform-origin: left bottom;
205
+ transform: translate(0, 38px) scale(1.5);
206
+ }
207
+ .semanticForms .floatLabelForm dd:not(.checkboxes):not(.radios).singleCheckbox {
208
+ width: 292px;
209
+ display: flex;
210
+ flex-direction: row-reverse;
211
+ align-items: flex-start;
212
+ justify-content: left;
213
+ }
214
+ .semanticForms .floatLabelForm dd:not(.checkboxes):not(.radios).singleCheckbox label {
215
+ margin-top: 10px;
216
+ }
217
+ .semanticForms .floatLabelForm dd:not(.checkboxes):not(.radios).singleCheckbox input {
218
+ margin: 10px 10px 0 0;
219
+ }
220
+ .semanticForms .floatLabelForm ::placeholder {
221
+ opacity: 0;
222
+ transition: inherit;
223
+ }
224
+ .semanticForms .floatLabelForm ::-moz-placeholder {
225
+ opacity: 0;
226
+ transition: inherit;
227
+ }
228
+ .semanticForms .floatLabelForm ::-webkit-input-placeholder {
229
+ opacity: 0;
230
+ transition: inherit;
231
+ }
232
+ .semanticForms .floatLabelForm :-ms-input-placeholder {
233
+ opacity: 0;
234
+ transition: inherit;
235
+ }
236
+ .semanticForms .floatLabelForm input:focus::placeholder {
237
+ opacity: 1;
238
+ }
239
+ .semanticForms .floatLabelForm input:focus::-moz-placeholder {
240
+ opacity: 1;
241
+ }
242
+ .semanticForms .floatLabelForm input:focus::-webkit-input-placeholder {
243
+ opacity: 1;
244
+ }
245
+ .semanticForms .floatLabelForm input:focus:-ms-input-placeholder {
246
+ opacity: 1;
247
+ }
248
+ .semanticForms .floatLabelForm textarea:focus::placeholder {
249
+ opacity: 1;
250
+ }
251
+ .semanticForms .floatLabelForm textarea:focus::-moz-placeholder {
252
+ opacity: 1;
253
+ }
254
+ .semanticForms .floatLabelForm textarea:focus::-webkit-input-placeholder {
255
+ opacity: 1;
256
+ }
257
+ .semanticForms .floatLabelForm textarea:focus:-ms-input-placeholder {
258
+ opacity: 1;
259
+ }
260
+ .semanticForms .floatLabelForm input:not(:placeholder-shown) + label,
261
+ .semanticForms .floatLabelForm input:focus + label,
262
+ .semanticForms .floatLabelForm textarea:not(:placeholder-shown) + label,
263
+ .semanticForms .floatLabelForm textarea:focus + label,
264
+ .semanticForms .floatLabelForm select + label.floatLabelFormAnimatedLabel,
265
+ .semanticForms .floatLabelForm .checkboxes label.floatLabelFormAnimatedLabel,
266
+ .semanticForms .floatLabelForm .radios label.floatLabelFormAnimatedLabel {
267
+ transform: translate(0, 0) scale(1);
268
+ text-indent: 6px;
269
+ cursor: default;
270
+ color: #000;
271
+ }
272
+ .semanticForms .floatLabelForm input.x {
273
+ background-position: right 6px center;
274
+ }
275
+ .semanticForms .floatLabelForm textarea.x {
276
+ background-position: right 6px top 10px;
277
+ }
278
+ .semanticForms .floatLabelForm .onX {
279
+ cursor: pointer;
280
+ }
281
+ .semanticForms .floatLabelForm input:-webkit-autofill,
282
+ .semanticForms .floatLabelForm input:-webkit-autofill:hover,
283
+ .semanticForms .floatLabelForm input:-webkit-autofill:focus,
284
+ .semanticForms .floatLabelForm input:-webkit-autofill:active,
285
+ .semanticForms .floatLabelForm textarea:-webkit-autofill,
286
+ .semanticForms .floatLabelForm textarea:-webkit-autofill:hover,
287
+ .semanticForms .floatLabelForm textarea:-webkit-autofill:focus,
288
+ .semanticForms .floatLabelForm textarea:-webkit-autofill:active,
289
+ .semanticForms .floatLabelForm select:-webkit-autofill,
290
+ .semanticForms .floatLabelForm select:-webkit-autofill:hover,
291
+ .semanticForms .floatLabelForm select:-webkit-autofill:focus,
292
+ .semanticForms .floatLabelForm select:-webkit-autofill:active {
293
+ -webkit-box-shadow: 0 0 0 1000px #fff inset;
294
+ transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
295
+ transition-delay: 5000s;
296
+ transition-property: background-color, color;
297
+ }
298
+ .semanticForms .floatLabelForm::after {
299
+ content: " ";
300
+ visibility: hidden;
301
+ display: block;
302
+ height: 0;
303
+ clear: both;
304
+ }
305
+ .semanticForms menu {
306
+ width: 100%;
307
+ clear: both;
308
+ display: flex;
309
+ justify-content: space-between;
310
+ padding: 0;
311
+ }
312
+ .semanticForms menu li {
313
+ list-style-type: none;
314
+ }
315
+ .semanticForms menu input[type='submit'],
316
+ .semanticForms menu input[type='reset'],
317
+ .semanticForms menu input[type='image'],
318
+ .semanticForms menu button {
319
+ float: none;
320
+ clear: none;
321
+ margin: 0;
322
+ }
323
+ @media (min-width: 700px) {
324
+ .semanticForms .floatLabelForm {
325
+ margin: 0 -10px;
326
+ width: auto;
327
+ text-align: left;
328
+ }
329
+ .semanticForms fieldset {
330
+ text-align: left;
331
+ }
332
+ .semanticForms fieldset input[type='submit'],
333
+ .semanticForms fieldset input[type='reset'],
334
+ .semanticForms fieldset input[type='image'],
335
+ .semanticForms fieldset button {
336
+ float: left;
337
+ clear: none;
338
+ }
339
+ .semanticForms fieldset :last-child {
340
+ margin-right: 0;
341
+ }
342
+ .semanticForms .x2 input:not([type='submit']):not([type='reset']):not([type='image']):not([type=checkbox]):not([type=radio]):not([type=color]),
343
+ .semanticForms .x2 select,
344
+ .semanticForms .x2 textarea {
345
+ width: 562px;
346
+ }
347
+ .semanticForms .x2 input[type=color] {
348
+ width: 604px;
349
+ }
350
+ .semanticForms .x2 input[type=range] {
351
+ width: 560px !important;
352
+ }
353
+ .semanticForms .x2 select {
354
+ width: 604px;
355
+ }
356
+ .semanticForms .x2.checkboxes ul,
357
+ .semanticForms .x2.radios ul {
358
+ width: 574px;
359
+ }
360
+ .semanticForms .x2 label.floatLabelFormAnimatedLabel {
361
+ width: 375px;
362
+ }
363
+ }
364
+ .semanticForms.lowFlow dl {
365
+ margin: 10px 0 0 0;
366
+ }
367
+ .semanticForms.lowFlow dd {
368
+ margin: 0 0 25px 0;
369
+ }
370
+ .semanticForms.lowFlow dd:last-child {
371
+ margin: 0;
372
+ }
@@ -0,0 +1,5 @@
1
+ .semanticForms {
2
+ all: unset;
3
+ }
4
+
5
+ @import 'semanticFormsNoImages';
@@ -0,0 +1,379 @@
1
+ .semanticForms {
2
+ all: unset;
3
+ }
4
+ .semanticForms {
5
+ font-family: sans-serif;
6
+ }
7
+ .semanticForms input:not([type='submit']):not([type='reset']):not([type='image']):not([type=checkbox]):not([type=radio]):not([type=color]),
8
+ .semanticForms select,
9
+ .semanticForms textarea {
10
+ box-sizing: content-box;
11
+ background-color: #fff;
12
+ outline: 0;
13
+ border: 1px #c0c0c0 solid;
14
+ border-radius: 10px;
15
+ width: 250px;
16
+ height: 25px;
17
+ font-size: 100%;
18
+ font-family: sans-serif;
19
+ padding: 5px 20px;
20
+ }
21
+ .semanticForms input[type=color] {
22
+ background-color: #fff;
23
+ border: 0;
24
+ width: 292px;
25
+ height: 37px;
26
+ padding: 5px 20px;
27
+ }
28
+ .semanticForms select {
29
+ box-sizing: border-box;
30
+ }
31
+ .semanticForms input[type=range] {
32
+ border: 0 !important;
33
+ width: 248px !important;
34
+ }
35
+ .semanticForms fieldset {
36
+ text-align: center;
37
+ margin-bottom: 25px;
38
+ }
39
+ .semanticForms fieldset p {
40
+ text-align: left;
41
+ width: 100%;
42
+ clear: both;
43
+ }
44
+ .semanticForms legend {
45
+ text-align: left;
46
+ }
47
+ .semanticForms dl {
48
+ text-align: left;
49
+ }
50
+ .semanticForms .checkboxes ul,
51
+ .semanticForms .radios ul {
52
+ list-style: none;
53
+ padding: 0;
54
+ }
55
+ .semanticForms dd.checkboxes,
56
+ .semanticForms dd.radios {
57
+ margin: 0;
58
+ }
59
+ .semanticForms input:not([type='submit']):not([type='reset']):not([type=checkbox]):not([type=radio]),
60
+ .semanticForms textarea {
61
+ background-image: none;
62
+ background-size: 12px;
63
+ background-repeat: no-repeat;
64
+ transition: background 0.2s;
65
+ }
66
+ .semanticForms input:not([type=checkbox]):not([type=radio]) {
67
+ background-position: right -12px center;
68
+ }
69
+ .semanticForms textarea {
70
+ background-position: right -12px top 10px;
71
+ height: 100px;
72
+ }
73
+ .semanticForms input::placeholder {
74
+ color: #aaa;
75
+ }
76
+ .semanticForms textarea::placeholder {
77
+ color: #aaa;
78
+ }
79
+ .semanticForms input:focus::placeholder {
80
+ color: #aaa;
81
+ }
82
+ .semanticForms input:focus::-moz-placeholder {
83
+ color: #aaa;
84
+ }
85
+ .semanticForms input:focus::-webkit-input-placeholder {
86
+ color: #aaa;
87
+ }
88
+ .semanticForms input:focus:-ms-input-placeholder {
89
+ color: #aaa;
90
+ }
91
+ .semanticForms textarea:focus::placeholder {
92
+ color: #aaa;
93
+ }
94
+ .semanticForms textarea:focus::-moz-placeholder {
95
+ color: #aaa;
96
+ }
97
+ .semanticForms textarea:focus::-webkit-input-placeholder {
98
+ color: #aaa;
99
+ }
100
+ .semanticForms textarea:focus:-ms-input-placeholder {
101
+ color: #aaa;
102
+ }
103
+ .semanticForms input[type='submit'],
104
+ .semanticForms input[type='reset'],
105
+ .semanticForms input[type='image'],
106
+ .semanticForms button {
107
+ width: auto;
108
+ box-sizing: content-box;
109
+ float: none;
110
+ clear: both;
111
+ outline: 0;
112
+ -webkit-appearance: none;
113
+ -moz-appearance: none;
114
+ appearance: none;
115
+ border-radius: 20px;
116
+ font-size: 100%;
117
+ margin: 25px 10px;
118
+ padding: 5px 25px;
119
+ border: 1px #c0c0c0 solid;
120
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #c0c0c0));
121
+ background-image: -o-linear-gradient(bottom, #fff 0%, #c0c0c0 100%);
122
+ background-image: -moz-linear-gradient(bottom, #fff 0%, #c0c0c0 100%);
123
+ background-image: -webkit-linear-gradient(bottom, #fff 0%, #c0c0c0 100%);
124
+ background-image: -ms-linear-gradient(bottom, #fff 0%, #c0c0c0 100%);
125
+ background-image: linear-gradient(to bottom, #fff 0%, #c0c0c0 100%);
126
+ }
127
+ .semanticForms input[type='submit']:first-of-type,
128
+ .semanticForms input[type='reset']:first-of-type,
129
+ .semanticForms input[type='image']:first-of-type,
130
+ .semanticForms button:first-of-type {
131
+ margin-left: 0;
132
+ }
133
+ .semanticForms input[type='submit']:active,
134
+ .semanticForms input[type='reset']:active,
135
+ .semanticForms input[type='image']:active,
136
+ .semanticForms button:active {
137
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(#fff, 0), color-stop(#c0c0c0, 1));
138
+ background-image: -o-linear-gradient(bottom, #c0c0c0 0%, #fff 100%);
139
+ background-image: -moz-linear-gradient(bottom, #c0c0c0 0%, #fff 100%);
140
+ background-image: -webkit-linear-gradient(bottom, #c0c0c0 0%, #fff 100%);
141
+ background-image: -ms-linear-gradient(bottom, #c0c0c0 0%, #fff 100%);
142
+ background-image: linear-gradient(to bottom, #c0c0c0 0%, #fff 100%);
143
+ }
144
+ .semanticForms select {
145
+ background-image: none;
146
+ background-size: 14px;
147
+ background-position: calc(99%) 16px;
148
+ background-repeat: no-repeat;
149
+ width: 292px;
150
+ height: 37px;
151
+ -webkit-appearance: none;
152
+ -moz-appearance: none;
153
+ appearance: none;
154
+ }
155
+ .semanticForms label.floatLabelFormAnimatedLabel,
156
+ .semanticForms input:not([type=checkbox]):not([type=radio]),
157
+ .semanticForms select,
158
+ .semanticForms textarea,
159
+ .semanticForms section {
160
+ transition: all 0.2s;
161
+ touch-action: manipulation;
162
+ }
163
+ .semanticForms .floatLabelForm {
164
+ margin: 0 auto;
165
+ }
166
+ .semanticForms .floatLabelForm input[disabled] {
167
+ opacity: 0.5;
168
+ }
169
+ .semanticForms .floatLabelForm input:not([type=date])::-webkit-clear-button {
170
+ -webkit-appearance: none;
171
+ margin: 0;
172
+ }
173
+ .semanticForms .floatLabelForm dd {
174
+ float: left;
175
+ margin: 0 10px 0 10px;
176
+ }
177
+ .semanticForms .floatLabelForm dt:not(.checkboxes):not(.radios) {
178
+ font-size: 1px;
179
+ text-indent: 100%;
180
+ white-space: nowrap;
181
+ overflow: hidden;
182
+ position: absolute;
183
+ right: 9999px;
184
+ }
185
+ .semanticForms .floatLabelForm dd:not(.checkboxes):not(.radios) {
186
+ display: flex;
187
+ flex-flow: column-reverse;
188
+ }
189
+ .semanticForms .floatLabelForm .checkboxes ul,
190
+ .semanticForms .floatLabelForm .radios ul {
191
+ margin: 3px 20px 0 0;
192
+ width: 262px;
193
+ padding-left: 10px;
194
+ }
195
+ .semanticForms .floatLabelForm label.floatLabelFormAnimatedLabel {
196
+ width: 170px;
197
+ padding: 6px 15px;
198
+ font-size: 75%;
199
+ color: #aaa;
200
+ cursor: text;
201
+ white-space: nowrap;
202
+ overflow: hidden;
203
+ text-overflow: ellipsis;
204
+ transform-origin: left bottom;
205
+ transform: translate(0, 38px) scale(1.5);
206
+ }
207
+ .semanticForms .floatLabelForm dd:not(.checkboxes):not(.radios).singleCheckbox {
208
+ width: 292px;
209
+ display: flex;
210
+ flex-direction: row-reverse;
211
+ align-items: flex-start;
212
+ justify-content: left;
213
+ }
214
+ .semanticForms .floatLabelForm dd:not(.checkboxes):not(.radios).singleCheckbox label {
215
+ margin-top: 10px;
216
+ }
217
+ .semanticForms .floatLabelForm dd:not(.checkboxes):not(.radios).singleCheckbox input {
218
+ margin: 10px 10px 0 0;
219
+ }
220
+ .semanticForms .floatLabelForm ::placeholder {
221
+ opacity: 0;
222
+ transition: inherit;
223
+ }
224
+ .semanticForms .floatLabelForm ::-moz-placeholder {
225
+ opacity: 0;
226
+ transition: inherit;
227
+ }
228
+ .semanticForms .floatLabelForm ::-webkit-input-placeholder {
229
+ opacity: 0;
230
+ transition: inherit;
231
+ }
232
+ .semanticForms .floatLabelForm :-ms-input-placeholder {
233
+ opacity: 0;
234
+ transition: inherit;
235
+ }
236
+ .semanticForms .floatLabelForm input:focus::placeholder {
237
+ opacity: 1;
238
+ }
239
+ .semanticForms .floatLabelForm input:focus::-moz-placeholder {
240
+ opacity: 1;
241
+ }
242
+ .semanticForms .floatLabelForm input:focus::-webkit-input-placeholder {
243
+ opacity: 1;
244
+ }
245
+ .semanticForms .floatLabelForm input:focus:-ms-input-placeholder {
246
+ opacity: 1;
247
+ }
248
+ .semanticForms .floatLabelForm textarea:focus::placeholder {
249
+ opacity: 1;
250
+ }
251
+ .semanticForms .floatLabelForm textarea:focus::-moz-placeholder {
252
+ opacity: 1;
253
+ }
254
+ .semanticForms .floatLabelForm textarea:focus::-webkit-input-placeholder {
255
+ opacity: 1;
256
+ }
257
+ .semanticForms .floatLabelForm textarea:focus:-ms-input-placeholder {
258
+ opacity: 1;
259
+ }
260
+ .semanticForms .floatLabelForm input:not(:placeholder-shown) + label,
261
+ .semanticForms .floatLabelForm input:focus + label,
262
+ .semanticForms .floatLabelForm textarea:not(:placeholder-shown) + label,
263
+ .semanticForms .floatLabelForm textarea:focus + label,
264
+ .semanticForms .floatLabelForm select + label.floatLabelFormAnimatedLabel,
265
+ .semanticForms .floatLabelForm .checkboxes label.floatLabelFormAnimatedLabel,
266
+ .semanticForms .floatLabelForm .radios label.floatLabelFormAnimatedLabel {
267
+ transform: translate(0, 0) scale(1);
268
+ text-indent: 6px;
269
+ cursor: default;
270
+ color: #000;
271
+ }
272
+ .semanticForms .floatLabelForm input.x {
273
+ background-position: right 6px center;
274
+ }
275
+ .semanticForms .floatLabelForm textarea.x {
276
+ background-position: right 6px top 10px;
277
+ }
278
+ .semanticForms .floatLabelForm .onX {
279
+ cursor: pointer;
280
+ }
281
+ .semanticForms .floatLabelForm input:-webkit-autofill,
282
+ .semanticForms .floatLabelForm input:-webkit-autofill:hover,
283
+ .semanticForms .floatLabelForm input:-webkit-autofill:focus,
284
+ .semanticForms .floatLabelForm input:-webkit-autofill:active,
285
+ .semanticForms .floatLabelForm textarea:-webkit-autofill,
286
+ .semanticForms .floatLabelForm textarea:-webkit-autofill:hover,
287
+ .semanticForms .floatLabelForm textarea:-webkit-autofill:focus,
288
+ .semanticForms .floatLabelForm textarea:-webkit-autofill:active,
289
+ .semanticForms .floatLabelForm select:-webkit-autofill,
290
+ .semanticForms .floatLabelForm select:-webkit-autofill:hover,
291
+ .semanticForms .floatLabelForm select:-webkit-autofill:focus,
292
+ .semanticForms .floatLabelForm select:-webkit-autofill:active {
293
+ -webkit-box-shadow: 0 0 0 1000px #fff inset;
294
+ transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
295
+ transition-delay: 5000s;
296
+ transition-property: background-color, color;
297
+ }
298
+ .semanticForms .floatLabelForm::after {
299
+ content: " ";
300
+ visibility: hidden;
301
+ display: block;
302
+ height: 0;
303
+ clear: both;
304
+ }
305
+ .semanticForms menu {
306
+ width: 100%;
307
+ clear: both;
308
+ display: flex;
309
+ justify-content: space-between;
310
+ padding: 0;
311
+ }
312
+ .semanticForms menu li {
313
+ list-style-type: none;
314
+ }
315
+ .semanticForms menu input[type='submit'],
316
+ .semanticForms menu input[type='reset'],
317
+ .semanticForms menu input[type='image'],
318
+ .semanticForms menu button {
319
+ float: none;
320
+ clear: none;
321
+ margin: 0;
322
+ }
323
+ @media (min-width: 700px) {
324
+ .semanticForms .floatLabelForm {
325
+ margin: 0 -10px;
326
+ width: auto;
327
+ text-align: left;
328
+ }
329
+ .semanticForms fieldset {
330
+ text-align: left;
331
+ }
332
+ .semanticForms fieldset input[type='submit'],
333
+ .semanticForms fieldset input[type='reset'],
334
+ .semanticForms fieldset input[type='image'],
335
+ .semanticForms fieldset button {
336
+ float: left;
337
+ clear: none;
338
+ }
339
+ .semanticForms fieldset :last-child {
340
+ margin-right: 0;
341
+ }
342
+ .semanticForms .x2 input:not([type='submit']):not([type='reset']):not([type='image']):not([type=checkbox]):not([type=radio]):not([type=color]),
343
+ .semanticForms .x2 select,
344
+ .semanticForms .x2 textarea {
345
+ width: 562px;
346
+ }
347
+ .semanticForms .x2 input[type=color] {
348
+ width: 604px;
349
+ }
350
+ .semanticForms .x2 input[type=range] {
351
+ width: 560px !important;
352
+ }
353
+ .semanticForms .x2 select {
354
+ width: 604px;
355
+ }
356
+ .semanticForms .x2.checkboxes ul,
357
+ .semanticForms .x2.radios ul {
358
+ width: 574px;
359
+ }
360
+ .semanticForms .x2 label.floatLabelFormAnimatedLabel {
361
+ width: 375px;
362
+ }
363
+ }
364
+ .semanticForms.lowFlow dl {
365
+ margin: 10px 0 0 0;
366
+ }
367
+ .semanticForms.lowFlow dd {
368
+ margin: 0 0 25px 0;
369
+ }
370
+ .semanticForms.lowFlow dd:last-child {
371
+ margin: 0;
372
+ }
373
+ .semanticForms input:not([type='submit']):not([type='reset']):not([type=checkbox]):not([type=radio]),
374
+ .semanticForms textarea {
375
+ background-image: url("data:image/svg+xml;utf8,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 1000 1000' enable-background='new 0 0 1000 1000' xml:space='preserve'%3E%3Cg%3E%3Cpath fill='%23000' d='M964.7,157.6L622.3,500l342.4,342.4l0,0c15.7,15.7,25.3,37.3,25.3,61.1c0,47.7-38.7,86.5-86.5,86.5c-23.9,0-45.5-9.7-61.1-25.3l0,0L500,622.3L157.6,964.7l0,0C142,980.3,120.3,990,96.5,990C48.7,990,10,951.3,10,903.5c0-23.9,9.7-45.5,25.3-61.1l0,0L377.7,500L35.3,157.6l0,0C19.7,142,10,120.3,10,96.5C10,48.7,48.7,10,96.5,10c23.9,0,45.5,9.7,61.1,25.3l0,0L500,377.7L842.4,35.3l0,0C858,19.7,879.7,10,903.5,10c47.8,0,86.5,38.7,86.5,86.5C990,120.3,980.3,142,964.7,157.6L964.7,157.6z'/%3E%3C/g%3E%3C/svg%3E");
376
+ }
377
+ .semanticForms select {
378
+ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23000'%3E%3Cpolygon points='0,0 100,0 50,50'/%3E%3C/svg%3E");
379
+ }