fomantic-ui 2.9.0-beta.27 → 2.9.0-beta.272
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/.all-contributorsrc +215 -3
- package/.github/workflows/ci.yml +6 -6
- package/.github/workflows/nightly.yml +13 -8
- package/.github/workflows/release.yml +31 -0
- package/CONTRIBUTORS.md +76 -37
- package/README.md +8 -8
- package/dist/components/accordion.css +175 -35
- package/dist/components/accordion.js +6 -3
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +3 -3
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +88 -29
- package/dist/components/api.min.js +3 -3
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +176 -134
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +18 -1
- package/dist/components/calendar.js +6 -4
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- package/dist/components/card.css +26 -19
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +2 -1
- package/dist/components/checkbox.js +17 -11
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +3 -3
- package/dist/components/comment.css +11 -11
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +97 -3
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +29 -14
- package/dist/components/dimmer.js +11 -5
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +3 -3
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +54 -14
- package/dist/components/dropdown.js +66 -39
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +3 -3
- package/dist/components/emoji.css +10147 -8139
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +28 -28
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +734 -625
- package/dist/components/flag.min.css +2 -2
- package/dist/components/form.css +132 -55
- package/dist/components/form.js +38 -29
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +14 -10
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +3 -1
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +126 -47
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +754 -17
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +13 -13
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +29 -5
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +41 -41
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +13 -1
- package/dist/components/modal.js +127 -49
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +3 -3
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +3 -3
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +2 -2
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +3 -3
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +4 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +3 -3
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +3 -3
- package/dist/components/reset.css +3 -2
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +2 -2
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +3 -3
- package/dist/components/segment.css +91 -7
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +3 -3
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +3 -3
- package/dist/components/sidebar.css +4 -2
- package/dist/components/sidebar.js +8 -6
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +3 -3
- package/dist/components/site.css +65 -39
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +3 -3
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +3 -3
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +3 -3
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +3 -3
- 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 +3 -3
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +23 -5
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +1168 -26
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +39 -1
- package/dist/components/toast.js +56 -28
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +21 -16
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +3 -3
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +3 -3
- package/dist/semantic.css +21972 -16244
- package/dist/semantic.js +488 -242
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.svg +801 -654
- package/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/dist/themes/default/assets/fonts/icons.eot +0 -0
- package/dist/themes/default/assets/fonts/icons.svg +1175 -1079
- package/dist/themes/default/assets/fonts/icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/icons.woff +0 -0
- package/dist/themes/default/assets/fonts/icons.woff2 +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.svg +93 -95
- package/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/examples/assets/library/iframe-content.js +8 -8
- package/examples/assets/library/iframe.js +3 -3
- package/package.json +12 -11
- package/scripts/nightly-version.js +47 -38
- package/src/definitions/behaviors/api.js +87 -28
- package/src/definitions/behaviors/form.js +37 -28
- package/src/definitions/collections/form.less +204 -140
- package/src/definitions/collections/grid.less +716 -680
- package/src/definitions/collections/menu.less +173 -126
- package/src/definitions/collections/message.less +48 -46
- package/src/definitions/collections/table.less +849 -262
- package/src/definitions/elements/button.less +586 -449
- package/src/definitions/elements/container.less +145 -8
- package/src/definitions/elements/emoji.less +15 -9
- package/src/definitions/elements/flag.less +7 -17
- package/src/definitions/elements/header.less +44 -35
- package/src/definitions/elements/icon.less +38 -31
- package/src/definitions/elements/input.less +264 -22
- package/src/definitions/elements/label.less +92 -91
- package/src/definitions/elements/list.less +55 -45
- package/src/definitions/elements/loader.less +30 -29
- package/src/definitions/elements/segment.less +147 -28
- package/src/definitions/elements/step.less +52 -48
- package/src/definitions/elements/text.less +17 -15
- package/src/definitions/globals/site.less +23 -2
- package/src/definitions/modules/accordion.js +5 -2
- package/src/definitions/modules/accordion.less +181 -29
- package/src/definitions/modules/calendar.js +5 -3
- package/src/definitions/modules/calendar.less +20 -0
- package/src/definitions/modules/checkbox.js +16 -10
- package/src/definitions/modules/checkbox.less +34 -178
- package/src/definitions/modules/dimmer.js +10 -4
- package/src/definitions/modules/dimmer.less +21 -8
- package/src/definitions/modules/dropdown.js +65 -38
- package/src/definitions/modules/dropdown.less +148 -97
- package/src/definitions/modules/modal.js +126 -48
- package/src/definitions/modules/modal.less +12 -0
- package/src/definitions/modules/nag.less +20 -19
- package/src/definitions/modules/popup.js +1 -1
- package/src/definitions/modules/progress.js +3 -0
- package/src/definitions/modules/progress.less +19 -18
- package/src/definitions/modules/rating.less +35 -34
- package/src/definitions/modules/search.js +1 -1
- package/src/definitions/modules/search.less +32 -16
- package/src/definitions/modules/shape.js +2 -2
- package/src/definitions/modules/sidebar.js +7 -5
- package/src/definitions/modules/sidebar.less +33 -19
- package/src/definitions/modules/slider.less +39 -38
- package/src/definitions/modules/tab.js +22 -4
- package/src/definitions/modules/toast.js +55 -27
- package/src/definitions/modules/toast.less +48 -16
- package/src/definitions/modules/transition.js +20 -15
- package/src/definitions/views/card.less +402 -361
- package/src/definitions/views/comment.less +92 -81
- package/src/definitions/views/feed.less +164 -144
- package/src/definitions/views/item.less +249 -196
- package/src/definitions/views/statistic.less +90 -88
- package/src/themes/bookish/elements/header.overrides +1 -1
- package/src/themes/chubby/elements/button.overrides +1 -1
- package/src/themes/chubby/elements/header.overrides +1 -1
- package/src/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/src/themes/default/assets/fonts/brand-icons.svg +801 -654
- package/src/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/src/themes/default/assets/fonts/icons.eot +0 -0
- package/src/themes/default/assets/fonts/icons.svg +1175 -1079
- package/src/themes/default/assets/fonts/icons.ttf +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff2 +0 -0
- package/src/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/src/themes/default/assets/fonts/outline-icons.svg +93 -95
- package/src/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/src/themes/default/collections/form.variables +4 -0
- package/src/themes/default/collections/menu.variables +6 -0
- package/src/themes/default/collections/table.variables +52 -0
- package/src/themes/default/elements/button.variables +7 -1
- package/src/themes/default/elements/container.variables +12 -0
- package/src/themes/default/elements/emoji.overrides +1734 -1232
- package/src/themes/default/elements/flag.overrides +1641 -986
- package/src/themes/default/elements/flag.variables +7 -5
- package/src/themes/default/elements/icon.overrides +75 -48
- package/src/themes/default/elements/icon.variables +1 -0
- package/src/themes/default/elements/input.variables +15 -0
- package/src/themes/default/elements/segment.variables +8 -0
- package/src/themes/default/globals/site.variables +6 -0
- package/src/themes/default/globals/variation.variables +139 -6
- package/src/themes/default/modules/accordion.overrides +6 -5
- package/src/themes/default/modules/accordion.variables +49 -2
- package/src/themes/default/modules/calendar.variables +3 -0
- package/src/themes/default/modules/checkbox.variables +5 -5
- package/src/themes/default/modules/dimmer.variables +1 -1
- package/src/themes/default/modules/dropdown.variables +4 -10
- package/src/themes/default/modules/modal.variables +13 -0
- package/src/themes/default/modules/toast.variables +3 -0
- package/src/themes/famfamfam/elements/flag.overrides +1026 -0
- package/src/themes/famfamfam/elements/flag.variables +13 -0
- package/src/themes/instagram/views/card.overrides +1 -1
- package/src/themes/joypixels/elements/emoji.overrides +1759 -1257
- package/src/themes/joypixels/elements/emoji.variables +1 -1
- package/src/themes/material/collections/menu.overrides +1 -1
- package/src/themes/material/elements/button.overrides +1 -1
- package/src/themes/material/elements/header.overrides +1 -1
- package/src/themes/material/globals/site.variables +0 -1
- package/src/themes/material/modules/dropdown.overrides +1 -1
- package/src/themes/material/modules/modal.overrides +1 -1
- package/src/themes/rtl/globals/site.overrides +1 -1
- package/src/themes/twitter/elements/emoji.overrides +1734 -1232
- package/tasks/build/css.js +6 -1
- package/tasks/config/project/install.js +11 -5
- package/tasks/install.js +1 -0
- package/test/helpers/sinon.js +2 -2
@@ -66,10 +66,12 @@
|
|
66
66
|
.ui.form .field > label {
|
67
67
|
display: block;
|
68
68
|
margin: @labelMargin;
|
69
|
-
color: @labelColor;
|
70
69
|
font-size: @labelFontSize;
|
71
70
|
font-weight: @labelFontWeight;
|
72
71
|
text-transform: @labelTextTransform;
|
72
|
+
&:not(.button) {
|
73
|
+
color: @labelColor;
|
74
|
+
}
|
73
75
|
}
|
74
76
|
|
75
77
|
/*--------------------
|
@@ -79,9 +81,11 @@
|
|
79
81
|
|
80
82
|
.ui.form textarea,
|
81
83
|
.ui.form input:not([type]),
|
84
|
+
.ui.form input[type="color"],
|
82
85
|
.ui.form input[type="date"],
|
83
86
|
.ui.form input[type="datetime-local"],
|
84
87
|
.ui.form input[type="email"],
|
88
|
+
.ui.form input[type="month"],
|
85
89
|
.ui.form input[type="number"],
|
86
90
|
.ui.form input[type="password"],
|
87
91
|
.ui.form input[type="search"],
|
@@ -89,7 +93,8 @@
|
|
89
93
|
.ui.form input[type="time"],
|
90
94
|
.ui.form input[type="text"],
|
91
95
|
.ui.form input[type="file"],
|
92
|
-
.ui.form input[type="url"]
|
96
|
+
.ui.form input[type="url"],
|
97
|
+
.ui.form input[type="week"] {
|
93
98
|
width: @inputWidth;
|
94
99
|
vertical-align: top;
|
95
100
|
}
|
@@ -101,9 +106,11 @@
|
|
101
106
|
}
|
102
107
|
|
103
108
|
.ui.form input:not([type]),
|
109
|
+
.ui.form input[type="color"],
|
104
110
|
.ui.form input[type="date"],
|
105
111
|
.ui.form input[type="datetime-local"],
|
106
112
|
.ui.form input[type="email"],
|
113
|
+
.ui.form input[type="month"],
|
107
114
|
.ui.form input[type="number"],
|
108
115
|
.ui.form input[type="password"],
|
109
116
|
.ui.form input[type="search"],
|
@@ -111,7 +118,8 @@
|
|
111
118
|
.ui.form input[type="time"],
|
112
119
|
.ui.form input[type="text"],
|
113
120
|
.ui.form input[type="file"],
|
114
|
-
.ui.form input[type="url"]
|
121
|
+
.ui.form input[type="url"],
|
122
|
+
.ui.form input[type="week"] {
|
115
123
|
font-family: @inputFont;
|
116
124
|
margin: 0;
|
117
125
|
outline: none;
|
@@ -129,6 +137,16 @@
|
|
129
137
|
box-shadow: @inputBoxShadow;
|
130
138
|
transition: @inputTransition;
|
131
139
|
}
|
140
|
+
.ui.form input[type="color"] {
|
141
|
+
padding: initial;
|
142
|
+
}
|
143
|
+
|
144
|
+
.ui.form input::-webkit-calendar-picker-indicator {
|
145
|
+
padding: 0;
|
146
|
+
opacity: @iconOpacity;
|
147
|
+
transition: @iconTransition;
|
148
|
+
cursor: pointer;
|
149
|
+
}
|
132
150
|
|
133
151
|
/* Text Area */
|
134
152
|
.ui.input textarea,
|
@@ -236,7 +254,7 @@
|
|
236
254
|
---------------------*/
|
237
255
|
|
238
256
|
/* Block */
|
239
|
-
.ui.form .field > .selection.dropdown {
|
257
|
+
.ui.form .field > .selection.dropdown:not(.compact) {
|
240
258
|
min-width: auto;
|
241
259
|
width: 100%;
|
242
260
|
}
|
@@ -282,28 +300,30 @@
|
|
282
300
|
width: auto;
|
283
301
|
}
|
284
302
|
|
285
|
-
|
286
|
-
|
287
|
-
.ui.form .
|
288
|
-
.ui.form .
|
289
|
-
.ui.form .
|
290
|
-
.ui.form .
|
291
|
-
.ui.form .
|
292
|
-
.ui.form .
|
293
|
-
.ui.form .
|
294
|
-
.ui.form .
|
295
|
-
.ui.form .
|
296
|
-
|
297
|
-
|
303
|
+
& when (@variationFormEqualWidth) or (@variationFormWide) {
|
304
|
+
/* Full Width Input */
|
305
|
+
.ui.form .ten.fields .ui.input input,
|
306
|
+
.ui.form .nine.fields .ui.input input,
|
307
|
+
.ui.form .eight.fields .ui.input input,
|
308
|
+
.ui.form .seven.fields .ui.input input,
|
309
|
+
.ui.form .six.fields .ui.input input,
|
310
|
+
.ui.form .five.fields .ui.input input,
|
311
|
+
.ui.form .four.fields .ui.input input,
|
312
|
+
.ui.form .three.fields .ui.input input,
|
313
|
+
.ui.form .two.fields .ui.input input,
|
314
|
+
.ui.form .wide.field .ui.input input {
|
315
|
+
flex: 1 0 auto;
|
316
|
+
width: 0;
|
317
|
+
}
|
298
318
|
}
|
299
319
|
|
300
320
|
|
301
321
|
/*--------------------
|
302
322
|
Types of Messages
|
303
323
|
---------------------*/
|
304
|
-
& when (@variationFormStates) {
|
305
|
-
each(@
|
306
|
-
@state:
|
324
|
+
& when not (@variationFormStates = false) {
|
325
|
+
each(@variationFormStates, {
|
326
|
+
@state: @value;
|
307
327
|
.ui.form .@{state}.message,
|
308
328
|
.ui.form .@{state}.message:empty {
|
309
329
|
display: none;
|
@@ -325,6 +345,9 @@
|
|
325
345
|
background: @promptBackground !important;
|
326
346
|
border: @promptBorder !important;
|
327
347
|
color: @promptTextColor !important;
|
348
|
+
& li:before {
|
349
|
+
color: @promptTextColor;
|
350
|
+
}
|
328
351
|
}
|
329
352
|
& when (@variationFormInline) {
|
330
353
|
.ui.form .inline.fields .field .prompt,
|
@@ -397,9 +420,11 @@
|
|
397
420
|
---------------------*/
|
398
421
|
|
399
422
|
.ui.form input:not([type]):focus,
|
423
|
+
.ui.form input[type="color"]:focus,
|
400
424
|
.ui.form input[type="date"]:focus,
|
401
425
|
.ui.form input[type="datetime-local"]:focus,
|
402
426
|
.ui.form input[type="email"]:focus,
|
427
|
+
.ui.form input[type="month"]:focus,
|
403
428
|
.ui.form input[type="number"]:focus,
|
404
429
|
.ui.form input[type="password"]:focus,
|
405
430
|
.ui.form input[type="search"]:focus,
|
@@ -407,7 +432,8 @@
|
|
407
432
|
.ui.form input[type="time"]:focus,
|
408
433
|
.ui.form input[type="text"]:focus,
|
409
434
|
.ui.form input[type="file"]:focus,
|
410
|
-
.ui.form input[type="url"]:focus
|
435
|
+
.ui.form input[type="url"]:focus,
|
436
|
+
.ui.form input[type="week"]:focus {
|
411
437
|
color: @inputFocusColor;
|
412
438
|
border-color: @inputFocusBorderColor;
|
413
439
|
border-radius: @inputFocusBorderRadius;
|
@@ -417,9 +443,11 @@
|
|
417
443
|
& when (@variationInputAction) {
|
418
444
|
.ui.form .ui.action.input:not([class*="left action"]) {
|
419
445
|
& input:not([type]):focus,
|
446
|
+
input[type="color"]:focus,
|
420
447
|
input[type="date"]:focus,
|
421
448
|
input[type="datetime-local"]:focus,
|
422
449
|
input[type="email"]:focus,
|
450
|
+
input[type="month"]:focus,
|
423
451
|
input[type="number"]:focus,
|
424
452
|
input[type="password"]:focus,
|
425
453
|
input[type="search"]:focus,
|
@@ -427,7 +455,8 @@
|
|
427
455
|
input[type="time"]:focus,
|
428
456
|
input[type="text"]:focus,
|
429
457
|
input[type="file"]:focus,
|
430
|
-
input[type="url"]:focus
|
458
|
+
input[type="url"]:focus,
|
459
|
+
input[type="week"]:focus {
|
431
460
|
border-top-right-radius: 0;
|
432
461
|
border-bottom-right-radius: 0;
|
433
462
|
}
|
@@ -435,9 +464,11 @@
|
|
435
464
|
|
436
465
|
.ui.form .ui[class*="left action"].input {
|
437
466
|
& input:not([type]),
|
467
|
+
input[type="color"],
|
438
468
|
input[type="date"],
|
439
469
|
input[type="datetime-local"],
|
440
470
|
input[type="email"],
|
471
|
+
input[type="month"],
|
441
472
|
input[type="number"],
|
442
473
|
input[type="password"],
|
443
474
|
input[type="search"],
|
@@ -445,7 +476,8 @@
|
|
445
476
|
input[type="time"],
|
446
477
|
input[type="text"],
|
447
478
|
input[type="file"],
|
448
|
-
input[type="url"]
|
479
|
+
input[type="url"],
|
480
|
+
input[type="week"] {
|
449
481
|
border-bottom-left-radius: 0;
|
450
482
|
border-top-left-radius: 0;
|
451
483
|
}
|
@@ -459,13 +491,17 @@
|
|
459
491
|
box-shadow: @textAreaFocusBoxShadow;
|
460
492
|
-webkit-appearance: none;
|
461
493
|
}
|
494
|
+
/* Focus */
|
495
|
+
.ui.form input:focus::-webkit-calendar-picker-indicator {
|
496
|
+
opacity: @iconFocusOpacity;
|
497
|
+
}
|
462
498
|
|
463
|
-
& when (@variationFormStates) {
|
499
|
+
& when not (@variationFormStates = false) {
|
464
500
|
/*--------------------
|
465
501
|
States
|
466
502
|
---------------------*/
|
467
|
-
each(@
|
468
|
-
@state:
|
503
|
+
each(@variationFormStates, {
|
504
|
+
@state: @value;
|
469
505
|
@c: @formStates[@@state][color];
|
470
506
|
@bg: @formStates[@@state][background];
|
471
507
|
@bdc: @formStates[@@state][borderColor];
|
@@ -519,9 +555,11 @@
|
|
519
555
|
.ui.form .fields.@{state} .field textarea,
|
520
556
|
.ui.form .fields.@{state} .field select,
|
521
557
|
.ui.form .fields.@{state} .field input:not([type]),
|
558
|
+
.ui.form .fields.@{state} .field input[type="color"],
|
522
559
|
.ui.form .fields.@{state} .field input[type="date"],
|
523
560
|
.ui.form .fields.@{state} .field input[type="datetime-local"],
|
524
561
|
.ui.form .fields.@{state} .field input[type="email"],
|
562
|
+
.ui.form .fields.@{state} .field input[type="month"],
|
525
563
|
.ui.form .fields.@{state} .field input[type="number"],
|
526
564
|
.ui.form .fields.@{state} .field input[type="password"],
|
527
565
|
.ui.form .fields.@{state} .field input[type="search"],
|
@@ -530,12 +568,15 @@
|
|
530
568
|
.ui.form .fields.@{state} .field input[type="text"],
|
531
569
|
.ui.form .fields.@{state} .field input[type="file"],
|
532
570
|
.ui.form .fields.@{state} .field input[type="url"],
|
571
|
+
.ui.form .fields.@{state} .field input[type="week"],
|
533
572
|
.ui.form .field.@{state} textarea,
|
534
573
|
.ui.form .field.@{state} select,
|
535
574
|
.ui.form .field.@{state} input:not([type]),
|
575
|
+
.ui.form .field.@{state} input[type="color"],
|
536
576
|
.ui.form .field.@{state} input[type="date"],
|
537
577
|
.ui.form .field.@{state} input[type="datetime-local"],
|
538
578
|
.ui.form .field.@{state} input[type="email"],
|
579
|
+
.ui.form .field.@{state} input[type="month"],
|
539
580
|
.ui.form .field.@{state} input[type="number"],
|
540
581
|
.ui.form .field.@{state} input[type="password"],
|
541
582
|
.ui.form .field.@{state} input[type="search"],
|
@@ -543,20 +584,39 @@
|
|
543
584
|
.ui.form .field.@{state} input[type="time"],
|
544
585
|
.ui.form .field.@{state} input[type="text"],
|
545
586
|
.ui.form .field.@{state} input[type="file"],
|
546
|
-
.ui.form .field.@{state} input[type="url"]
|
587
|
+
.ui.form .field.@{state} input[type="url"],
|
588
|
+
.ui.form .field.@{state} input[type="week"] {
|
547
589
|
color: @c;
|
548
590
|
background: @bg;
|
549
591
|
border-color: @formStates[@@state][borderColor];
|
550
592
|
border-radius: @formStates[@@state][borderRadius];
|
551
593
|
box-shadow: @formStates[@@state][boxShadow];
|
552
594
|
}
|
595
|
+
& when (@state=error) {
|
596
|
+
.ui.form .field input:not(:placeholder-shown):invalid {
|
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
|
+
.ui.form .field input:not(:-ms-input-placeholder):invalid {
|
604
|
+
color: @c;
|
605
|
+
background: @bg;
|
606
|
+
border-color: @formStates[@@state][borderColor];
|
607
|
+
border-radius: @formStates[@@state][borderRadius];
|
608
|
+
box-shadow: @formStates[@@state][boxShadow];
|
609
|
+
}
|
610
|
+
}
|
553
611
|
|
554
612
|
.ui.form .field.@{state} textarea:focus,
|
555
613
|
.ui.form .field.@{state} select:focus,
|
556
614
|
.ui.form .field.@{state} input:not([type]):focus,
|
615
|
+
.ui.form .field.@{state} input[type="color"]:focus,
|
557
616
|
.ui.form .field.@{state} input[type="date"]:focus,
|
558
617
|
.ui.form .field.@{state} input[type="datetime-local"]:focus,
|
559
618
|
.ui.form .field.@{state} input[type="email"]:focus,
|
619
|
+
.ui.form .field.@{state} input[type="month"]:focus,
|
560
620
|
.ui.form .field.@{state} input[type="number"]:focus,
|
561
621
|
.ui.form .field.@{state} input[type="password"]:focus,
|
562
622
|
.ui.form .field.@{state} input[type="search"]:focus,
|
@@ -564,7 +624,8 @@
|
|
564
624
|
.ui.form .field.@{state} input[type="time"]:focus,
|
565
625
|
.ui.form .field.@{state} input[type="text"]:focus,
|
566
626
|
.ui.form .field.@{state} input[type="file"]:focus,
|
567
|
-
.ui.form .field.@{state} input[type="url"]:focus
|
627
|
+
.ui.form .field.@{state} input[type="url"]:focus,
|
628
|
+
.ui.form .field.@{state} input[type="week"]:focus {
|
568
629
|
background: @formStates[@@state][inputFocusBackground];
|
569
630
|
border-color: @formStates[@@state][inputFocusBorderColor];
|
570
631
|
color: @formStates[@@state][inputFocusColor];
|
@@ -580,13 +641,15 @@
|
|
580
641
|
/*------------------
|
581
642
|
Input State
|
582
643
|
--------------------*/
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
644
|
+
& when (@variationFormTransparent) {
|
645
|
+
/* Transparent */
|
646
|
+
.ui.form .field.@{state} .transparent.input input,
|
647
|
+
.ui.form .field.@{state} .transparent.input textarea,
|
648
|
+
.ui.form .field.@{state} input.transparent,
|
649
|
+
.ui.form .field.@{state} textarea.transparent {
|
650
|
+
background-color: @formStates[@@state][transparentBackground] !important;
|
651
|
+
color: @formStates[@@state][transparentColor] !important;
|
652
|
+
}
|
590
653
|
}
|
591
654
|
|
592
655
|
/* Autofilled */
|
@@ -668,22 +731,16 @@
|
|
668
731
|
Checkbox State
|
669
732
|
---------------------*/
|
670
733
|
.ui.form .fields.@{state} .field .checkbox:not(.toggle):not(.slider) label,
|
671
|
-
.ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) label
|
672
|
-
.ui.form .fields.@{state} .field .checkbox:not(.toggle):not(.slider) .box,
|
673
|
-
.ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) .box {
|
734
|
+
.ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) label {
|
674
735
|
color: @c;
|
675
736
|
}
|
676
737
|
.ui.form .fields.@{state} .field .checkbox:not(.toggle):not(.slider) label:before,
|
677
|
-
.ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) label:before
|
678
|
-
.ui.form .fields.@{state} .field .checkbox:not(.toggle):not(.slider) .box:before,
|
679
|
-
.ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) .box:before {
|
738
|
+
.ui.form .field.@{state} .checkbox:not(.toggle):not(.slider) label:before {
|
680
739
|
background: @bg;
|
681
740
|
border-color: @bdc;
|
682
741
|
}
|
683
742
|
.ui.form .fields.@{state} .field .checkbox label:after,
|
684
|
-
.ui.form .field.@{state} .checkbox label:after
|
685
|
-
.ui.form .fields.@{state} .field .checkbox .box:after,
|
686
|
-
.ui.form .field.@{state} .checkbox .box:after {
|
743
|
+
.ui.form .field.@{state} .checkbox label:after {
|
687
744
|
color: @c;
|
688
745
|
}
|
689
746
|
|
@@ -810,9 +867,7 @@
|
|
810
867
|
.ui.inverted.form label,
|
811
868
|
.ui.form .inverted.segment label,
|
812
869
|
.ui.form .inverted.segment .ui.checkbox label,
|
813
|
-
.ui.form .inverted.segment .ui.checkbox .box,
|
814
870
|
.ui.inverted.form .ui.checkbox label,
|
815
|
-
.ui.inverted.form .ui.checkbox .box,
|
816
871
|
.ui.inverted.form .inline.fields > label,
|
817
872
|
.ui.inverted.form .inline.fields .field > label,
|
818
873
|
.ui.inverted.form .inline.fields .field > p,
|
@@ -828,9 +883,11 @@
|
|
828
883
|
}
|
829
884
|
/* Inverted Field */
|
830
885
|
.ui.inverted.form input:not([type]),
|
886
|
+
.ui.inverted.form input[type="color"],
|
831
887
|
.ui.inverted.form input[type="date"],
|
832
888
|
.ui.inverted.form input[type="datetime-local"],
|
833
889
|
.ui.inverted.form input[type="email"],
|
890
|
+
.ui.inverted.form input[type="month"],
|
834
891
|
.ui.inverted.form input[type="number"],
|
835
892
|
.ui.inverted.form input[type="password"],
|
836
893
|
.ui.inverted.form input[type="search"],
|
@@ -838,7 +895,8 @@
|
|
838
895
|
.ui.inverted.form input[type="time"],
|
839
896
|
.ui.inverted.form input[type="text"],
|
840
897
|
.ui.inverted.form input[type="file"],
|
841
|
-
.ui.inverted.form input[type="url"]
|
898
|
+
.ui.inverted.form input[type="url"],
|
899
|
+
.ui.inverted.form input[type="week"] {
|
842
900
|
background: @invertedInputBackground;
|
843
901
|
border-color: @invertedInputBorderColor;
|
844
902
|
color: @invertedInputColor;
|
@@ -901,42 +959,44 @@
|
|
901
959
|
box-shadow: none;
|
902
960
|
}
|
903
961
|
|
904
|
-
|
905
|
-
|
906
|
-
.ui.form .two.fields > .
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
.ui.form .three.fields > .
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
.ui.form .four.fields > .
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
.ui.form .five.fields > .
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
.ui.form .six.fields > .
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
.ui.form .seven.fields > .
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
.ui.form .eight.fields > .
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
.ui.form .nine.fields > .
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
.ui.form .ten.fields > .
|
939
|
-
|
962
|
+
& when (@variationFormEqualWidth) {
|
963
|
+
/* Other Combinations */
|
964
|
+
.ui.form .two.fields > .fields,
|
965
|
+
.ui.form .two.fields > .field {
|
966
|
+
width: @twoColumn;
|
967
|
+
}
|
968
|
+
.ui.form .three.fields > .fields,
|
969
|
+
.ui.form .three.fields > .field {
|
970
|
+
width: @threeColumn;
|
971
|
+
}
|
972
|
+
.ui.form .four.fields > .fields,
|
973
|
+
.ui.form .four.fields > .field {
|
974
|
+
width: @fourColumn;
|
975
|
+
}
|
976
|
+
.ui.form .five.fields > .fields,
|
977
|
+
.ui.form .five.fields > .field {
|
978
|
+
width: @fiveColumn;
|
979
|
+
}
|
980
|
+
.ui.form .six.fields > .fields,
|
981
|
+
.ui.form .six.fields > .field {
|
982
|
+
width: @sixColumn;
|
983
|
+
}
|
984
|
+
.ui.form .seven.fields > .fields,
|
985
|
+
.ui.form .seven.fields > .field {
|
986
|
+
width: @sevenColumn;
|
987
|
+
}
|
988
|
+
.ui.form .eight.fields > .fields,
|
989
|
+
.ui.form .eight.fields > .field {
|
990
|
+
width: @eightColumn;
|
991
|
+
}
|
992
|
+
.ui.form .nine.fields > .fields,
|
993
|
+
.ui.form .nine.fields > .field {
|
994
|
+
width: @nineColumn;
|
995
|
+
}
|
996
|
+
.ui.form .ten.fields > .fields,
|
997
|
+
.ui.form .ten.fields > .field {
|
998
|
+
width: @tenColumn;
|
999
|
+
}
|
940
1000
|
}
|
941
1001
|
|
942
1002
|
/* Swap to full width on mobile */
|
@@ -953,61 +1013,63 @@
|
|
953
1013
|
}
|
954
1014
|
}
|
955
1015
|
|
1016
|
+
& when (@variationFormWide) {
|
956
1017
|
|
957
|
-
/* Sizing Combinations */
|
958
|
-
.ui.form .fields .wide.field {
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
}
|
1018
|
+
/* Sizing Combinations */
|
1019
|
+
.ui.form .fields .wide.field {
|
1020
|
+
width: @oneWide;
|
1021
|
+
padding-left: (@gutterWidth / 2);
|
1022
|
+
padding-right: (@gutterWidth / 2);
|
1023
|
+
}
|
963
1024
|
|
964
|
-
.ui.form .one.wide.field {
|
965
|
-
|
966
|
-
}
|
967
|
-
.ui.form .two.wide.field {
|
968
|
-
|
969
|
-
}
|
970
|
-
.ui.form .three.wide.field {
|
971
|
-
|
972
|
-
}
|
973
|
-
.ui.form .four.wide.field {
|
974
|
-
|
975
|
-
}
|
976
|
-
.ui.form .five.wide.field {
|
977
|
-
|
978
|
-
}
|
979
|
-
.ui.form .six.wide.field {
|
980
|
-
|
981
|
-
}
|
982
|
-
.ui.form .seven.wide.field {
|
983
|
-
|
984
|
-
}
|
985
|
-
.ui.form .eight.wide.field {
|
986
|
-
|
987
|
-
}
|
988
|
-
.ui.form .nine.wide.field {
|
989
|
-
|
990
|
-
}
|
991
|
-
.ui.form .ten.wide.field {
|
992
|
-
|
993
|
-
}
|
994
|
-
.ui.form .eleven.wide.field {
|
995
|
-
|
996
|
-
}
|
997
|
-
.ui.form .twelve.wide.field {
|
998
|
-
|
999
|
-
}
|
1000
|
-
.ui.form .thirteen.wide.field {
|
1001
|
-
|
1002
|
-
}
|
1003
|
-
.ui.form .fourteen.wide.field {
|
1004
|
-
|
1005
|
-
}
|
1006
|
-
.ui.form .fifteen.wide.field {
|
1007
|
-
|
1008
|
-
}
|
1009
|
-
.ui.form .sixteen.wide.field {
|
1010
|
-
|
1025
|
+
.ui.form .one.wide.field {
|
1026
|
+
width: @oneWide;
|
1027
|
+
}
|
1028
|
+
.ui.form .two.wide.field {
|
1029
|
+
width: @twoWide;
|
1030
|
+
}
|
1031
|
+
.ui.form .three.wide.field {
|
1032
|
+
width: @threeWide;
|
1033
|
+
}
|
1034
|
+
.ui.form .four.wide.field {
|
1035
|
+
width: @fourWide;
|
1036
|
+
}
|
1037
|
+
.ui.form .five.wide.field {
|
1038
|
+
width: @fiveWide;
|
1039
|
+
}
|
1040
|
+
.ui.form .six.wide.field {
|
1041
|
+
width: @sixWide;
|
1042
|
+
}
|
1043
|
+
.ui.form .seven.wide.field {
|
1044
|
+
width: @sevenWide;
|
1045
|
+
}
|
1046
|
+
.ui.form .eight.wide.field {
|
1047
|
+
width: @eightWide;
|
1048
|
+
}
|
1049
|
+
.ui.form .nine.wide.field {
|
1050
|
+
width: @nineWide;
|
1051
|
+
}
|
1052
|
+
.ui.form .ten.wide.field {
|
1053
|
+
width: @tenWide;
|
1054
|
+
}
|
1055
|
+
.ui.form .eleven.wide.field {
|
1056
|
+
width: @elevenWide;
|
1057
|
+
}
|
1058
|
+
.ui.form .twelve.wide.field {
|
1059
|
+
width: @twelveWide;
|
1060
|
+
}
|
1061
|
+
.ui.form .thirteen.wide.field {
|
1062
|
+
width: @thirteenWide;
|
1063
|
+
}
|
1064
|
+
.ui.form .fourteen.wide.field {
|
1065
|
+
width: @fourteenWide;
|
1066
|
+
}
|
1067
|
+
.ui.form .fifteen.wide.field {
|
1068
|
+
width: @fifteenWide;
|
1069
|
+
}
|
1070
|
+
.ui.form .sixteen.wide.field {
|
1071
|
+
width: @sixteenWide;
|
1072
|
+
}
|
1011
1073
|
}
|
1012
1074
|
|
1013
1075
|
|
@@ -1015,10 +1077,12 @@
|
|
1015
1077
|
Equal Width
|
1016
1078
|
---------------------*/
|
1017
1079
|
|
1018
|
-
|
1019
|
-
.ui
|
1020
|
-
width
|
1021
|
-
|
1080
|
+
& when (@variationFormEqualWidth) {
|
1081
|
+
.ui[class*="equal width"].form .fields > .field,
|
1082
|
+
.ui.form [class*="equal width"].fields > .field {
|
1083
|
+
width: 100%;
|
1084
|
+
flex: 1 1 auto;
|
1085
|
+
}
|
1022
1086
|
}
|
1023
1087
|
|
1024
1088
|
& when (@variationFormInline) {
|