superdesk-ui-framework 3.0.42 → 3.0.43
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/app/styles/_accessibility.scss +349 -310
- package/app/styles/_alerts.scss +102 -71
- package/app/styles/_animations.scss +29 -16
- package/app/styles/_avatar.scss +159 -140
- package/app/styles/_badge.scss +11 -5
- package/app/styles/_big-icon-font.scss +21 -9
- package/app/styles/_boxed-list.scss +72 -47
- package/app/styles/_buttons.scss +266 -177
- package/app/styles/_carousel.scss +58 -45
- package/app/styles/_content-divider.scss +28 -2
- package/app/styles/_drag-drop.scss +3 -0
- package/app/styles/_empty-states.scss +21 -13
- package/app/styles/_hamburger.scss +142 -144
- package/app/styles/_helpers.scss +297 -93
- package/app/styles/_icon-font.scss +75 -43
- package/app/styles/_icon-labels.scss +11 -1
- package/app/styles/_labels.scss +27 -14
- package/app/styles/_loaders.scss +2 -1
- package/app/styles/_master-desk.scss +67 -31
- package/app/styles/_mixins.scss +40 -20
- package/app/styles/_modals.scss +112 -56
- package/app/styles/_panel-info.scss +38 -34
- package/app/styles/_popover.scss +0 -1
- package/app/styles/_publisher-styles.scss +132 -122
- package/app/styles/_sd-tag-input.scss +104 -24
- package/app/styles/_simple-list.scss +89 -66
- package/app/styles/_spinner.scss +24 -17
- package/app/styles/_table-list.scss +114 -80
- package/app/styles/_tables.scss +14 -2
- package/app/styles/_tabs-vertical.scss +46 -43
- package/app/styles/_tabs.scss +97 -87
- package/app/styles/_tag-labels.scss +26 -11
- package/app/styles/_thumb-carousel.scss +37 -11
- package/app/styles/_toggle-box.scss +27 -7
- package/app/styles/_toggle-button.scss +5 -1
- package/app/styles/_tooltips.scss +284 -272
- package/app/styles/components/_card-item.scss +268 -192
- package/app/styles/components/_list-item.scss +261 -175
- package/app/styles/components/_sd-circular-progress.scss +109 -79
- package/app/styles/components/_sd-collapse-box.scss +45 -33
- package/app/styles/components/_sd-comment-box.scss +17 -12
- package/app/styles/components/_sd-dropzone.scss +32 -15
- package/app/styles/components/_sd-editor-popup.scss +29 -15
- package/app/styles/components/_sd-grid-item.scss +349 -237
- package/app/styles/components/_sd-loader.scss +1 -2
- package/app/styles/components/_sd-media-carousel.scss +119 -78
- package/app/styles/components/_sd-notification-panel.scss +2 -1
- package/app/styles/components/_sd-pagination.scss +27 -19
- package/app/styles/components/_sd-photo-preview.scss +82 -41
- package/app/styles/components/_sd-searchbar.scss +79 -51
- package/app/styles/components/_sd-toaster.scss +52 -30
- package/app/styles/components/_subnav.scss +230 -135
- package/app/styles/components/_theme-selector.scss +78 -53
- package/app/styles/components/sd-slider.scss +11 -7
- package/app/styles/design-tokens/_design-tokens-general.scss +31 -27
- package/app/styles/design-tokens/_new-colors.scss +3 -1
- package/app/styles/dropdowns/_basic-dropdown.scss +164 -86
- package/app/styles/dropdowns/_input-dropdown.scss +5 -2
- package/app/styles/dropdowns/_navigation_dropdown.scss +18 -4
- package/app/styles/dropdowns/_nested-dropdown.scss +11 -2
- package/app/styles/dropdowns/_other_dropdown.scss +9 -3
- package/app/styles/editor/_editor-buttons.scss +10 -6
- package/app/styles/editor/_editor-themes.scss +401 -350
- package/app/styles/form-elements/_autocomplete.scss +7 -1
- package/app/styles/form-elements/_checkbox.scss +230 -159
- package/app/styles/form-elements/_forms-general.scss +345 -285
- package/app/styles/form-elements/_input-preview.scss +15 -9
- package/app/styles/form-elements/_input-wrap.scss +77 -71
- package/app/styles/form-elements/_inputs.scss +668 -489
- package/app/styles/form-elements/_radio.scss +10 -5
- package/app/styles/form-elements/_switch.scss +27 -16
- package/app/styles/grids/_basic-grid.scss +83 -64
- package/app/styles/grids/_grid-layout.scss +301 -165
- package/app/styles/grids/_layout-grid.scss +85 -59
- package/app/styles/grids/_sd-kanban-list.scss +14 -4
- package/app/styles/interface-elements/_side-panel.scss +279 -200
- package/app/styles/layout/_basic-layout.scss +36 -34
- package/app/styles/layout/_container.scss +38 -31
- package/app/styles/layout/_editor.scss +57 -17
- package/app/styles/layout/_general.scss +81 -67
- package/app/styles/menus/_sd-bottom-tabs.scss +21 -12
- package/app/styles/menus/_sd-content-navigation.scss +20 -16
- package/app/styles/menus/_sd-left-navigation.scss +62 -49
- package/app/styles/menus/_sd-sidebar-menu.scss +365 -323
- package/app/styles/menus/_sd-top-menu.scss +16 -7
- package/app/styles/primereact/_pr-autocomplete.scss +2 -0
- package/app/styles/primereact/_pr-datepicker.scss +13 -2
- package/app/styles/primereact/_pr-dialog.scss +55 -47
- package/app/styles/primereact/_pr-dropdown.scss +27 -22
- package/app/styles/primereact/_pr-general.scss +3 -0
- package/app/styles/primereact/_pr-menu.scss +2 -1
- package/app/styles/primereact/_pr-skeleton.scss +1 -0
- package/app/styles/primereact/_pr-tag-input.scss +1 -0
- package/app/styles/variables/_colors.scss +168 -170
- package/app/styles/variables/_typography.scss +1 -2
- package/app-typescript/components/Form/InputWrapper.tsx +1 -1
- package/app-typescript/components/Menu.tsx +1 -1
- package/dist/examples.bundle.css +18 -16
- package/dist/examples.bundle.js +5 -7
- package/dist/superdesk-ui.bundle.css +4265 -3552
- package/dist/superdesk-ui.bundle.js +4 -6
- package/package.json +2 -2
- package/react/components/Form/InputWrapper.d.ts +1 -1
- package/react/components/Menu.js +1 -1
@@ -1,5 +1,4 @@
|
|
1
|
-
// FORM ELEMENTS : Input and
|
2
|
-
// input, textarea, select {
|
1
|
+
// FORM ELEMENTS : Input and select : form-elements/inputs.scss
|
3
2
|
|
4
3
|
@mixin Line-input-base {
|
5
4
|
@include appearance-reset();
|
@@ -15,22 +14,26 @@
|
|
15
14
|
border-radius: $border-radius__base--x-small $border-radius__base--x-small 0 0;
|
16
15
|
display: block;
|
17
16
|
position: relative;
|
17
|
+
|
18
18
|
&::placeholder {
|
19
19
|
color: var(--color-text-lighter);
|
20
20
|
font-weight: 400;
|
21
21
|
opacity: 0.75;
|
22
|
-
|
22
|
+
}
|
23
|
+
|
23
24
|
&:hover {
|
24
25
|
border-color: var(--color-input-border-hover);
|
25
26
|
background-color: var(--color-input-bg--hover);
|
26
27
|
}
|
28
|
+
|
27
29
|
&:focus {
|
28
30
|
box-shadow: 0 1px 0 0 var(--sd-colour-interactive);
|
29
31
|
border-color: var(--sd-colour-interactive);
|
30
32
|
background-color: var(--sd-colour-interactive--alpha-20);
|
33
|
+
|
31
34
|
&::placeholder {
|
32
35
|
opacity: 0.45;
|
33
|
-
|
36
|
+
}
|
34
37
|
}
|
35
38
|
}
|
36
39
|
|
@@ -46,6 +49,7 @@
|
|
46
49
|
font-weight: 500;
|
47
50
|
letter-spacing: 0.08em;
|
48
51
|
}
|
52
|
+
|
49
53
|
@mixin Boxed-label-base {
|
50
54
|
background-color: hsla(214, 13%, 30%, 0.4);
|
51
55
|
border-radius: var(--b-radius--small);
|
@@ -73,78 +77,96 @@
|
|
73
77
|
@include Form-label-base;
|
74
78
|
min-width: 75px;
|
75
79
|
min-height: 1.6rem;
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
.form-label--light {
|
84
|
+
color: var(--color-text-lighter);
|
85
|
+
font-weight: 400;
|
86
|
+
}
|
87
|
+
|
88
|
+
.form-label--marg-b10 {
|
89
|
+
margin-bottom: 10px;
|
90
|
+
}
|
91
|
+
|
92
|
+
.form-label--block {
|
93
|
+
display: block;
|
94
|
+
}
|
95
|
+
|
96
|
+
.form-label--required {
|
97
|
+
position: relative;
|
98
|
+
|
99
|
+
&::after {
|
100
|
+
color: $red;
|
101
|
+
content: "*";
|
102
|
+
vertical-align: top;
|
103
|
+
font-size: 1.2rem;
|
104
|
+
padding-inline-start: 0.3rem;
|
105
|
+
margin-top: -2px
|
82
106
|
}
|
83
|
-
|
84
|
-
|
107
|
+
}
|
108
|
+
|
109
|
+
.form-label--invalid {
|
110
|
+
color: $red;
|
111
|
+
}
|
112
|
+
|
113
|
+
.form-label--focused {
|
114
|
+
color: var(--sd-colour-interactive);
|
115
|
+
|
116
|
+
&.form-label--invalid {
|
117
|
+
color: $red;
|
85
118
|
}
|
86
|
-
|
87
|
-
|
119
|
+
}
|
120
|
+
|
121
|
+
.form-label--boxed {
|
122
|
+
@include Boxed-label-base;
|
123
|
+
|
124
|
+
&.form-label--required {
|
88
125
|
&::after {
|
89
|
-
|
126
|
+
margin-inline-start: 0.2rem;
|
127
|
+
color: #e41b21;
|
90
128
|
content: "*";
|
91
129
|
vertical-align: top;
|
92
130
|
font-size: 1.2rem;
|
93
131
|
padding-inline-start: 0.3rem;
|
94
|
-
|
132
|
+
position: absolute;
|
133
|
+
inset-block-start: -4px;
|
134
|
+
inset-inline-end: -10px;
|
95
135
|
}
|
96
136
|
}
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
color:
|
102
|
-
&.form-label--invalid {
|
103
|
-
color: $red;
|
104
|
-
}
|
137
|
+
|
138
|
+
&.form-label--invalid,
|
139
|
+
&.form-label--invalid.form-label--focused {
|
140
|
+
background-color: $red;
|
141
|
+
color: hsl(214, 13%, 96%);
|
105
142
|
}
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
color: hsl(214, 13%, 96%);
|
111
|
-
}
|
112
|
-
&--dark {
|
113
|
-
background-color: hsla(214, 13%, 30%, 0.4);
|
114
|
-
color: hsl(214, 13%, 96%);
|
115
|
-
}
|
116
|
-
&.form-label--required {
|
117
|
-
&::after {
|
118
|
-
margin-inline-start: 0.2rem;
|
119
|
-
color: #e41b21;
|
120
|
-
content: "*";
|
121
|
-
vertical-align: top;
|
122
|
-
font-size: 1.2rem;
|
123
|
-
padding-inline-start: 0.3rem;
|
124
|
-
position: absolute;
|
125
|
-
inset-block-start: -4px;
|
126
|
-
inset-inline-end: -10px;
|
127
|
-
}
|
128
|
-
}
|
129
|
-
&.form-label--invalid,
|
130
|
-
&.form-label--invalid.form-label--focused {
|
131
|
-
background-color: $red;
|
132
|
-
color: hsl(214, 13%, 96%);
|
133
|
-
}
|
134
|
-
&.form-label--focused {
|
135
|
-
background-color: var(--sd-colour-interactive);
|
136
|
-
color: hsl(214, 13%, 96%);
|
137
|
-
}
|
143
|
+
|
144
|
+
&.form-label--focused {
|
145
|
+
background-color: var(--sd-colour-interactive);
|
146
|
+
color: hsl(214, 13%, 96%);
|
138
147
|
}
|
139
148
|
}
|
149
|
+
|
150
|
+
.form-label--boxed--light {
|
151
|
+
background-color: hsla(214, 13%, 30%, 0.4);
|
152
|
+
color: hsl(214, 13%, 96%);
|
153
|
+
}
|
154
|
+
|
155
|
+
.form-label--boxed--dark {
|
156
|
+
background-color: hsla(214, 13%, 30%, 0.4);
|
157
|
+
color: hsl(214, 13%, 96%);
|
158
|
+
}
|
159
|
+
|
140
160
|
.form-label__container {
|
141
|
-
display:flex;
|
161
|
+
display: flex;
|
142
162
|
flex-direction: row;
|
143
163
|
align-items: center;
|
164
|
+
|
144
165
|
.form-label {
|
145
166
|
flex-grow: 1;
|
146
167
|
}
|
147
168
|
}
|
169
|
+
|
148
170
|
.form-label__info-block {
|
149
171
|
color: inherit;
|
150
172
|
font-size: 1.2rem;
|
@@ -157,55 +179,56 @@
|
|
157
179
|
padding-top: 1.8rem;
|
158
180
|
position: relative;
|
159
181
|
|
160
|
-
|
161
|
-
|
162
|
-
align-items: center;
|
163
|
-
border-bottom: 1px solid var(--color-input-border);
|
164
|
-
width: 100%;
|
165
|
-
}
|
166
|
-
&__value {
|
167
|
-
margin-inline-end: 6px;
|
168
|
-
text-transform: uppercase;
|
169
|
-
}
|
170
|
-
input, textarea {
|
182
|
+
input,
|
183
|
+
textarea {
|
171
184
|
&.sd-line-input__input {
|
172
185
|
@include Line-input-base;
|
173
|
-
&--center {
|
174
|
-
text-align: center;
|
175
|
-
}
|
176
186
|
}
|
187
|
+
|
188
|
+
&.sd-line-input__input--center {
|
189
|
+
text-align: center;
|
190
|
+
}
|
191
|
+
|
177
192
|
&.sd-line-input__color {
|
178
193
|
@include Line-input-base;
|
179
194
|
width: 26px;
|
180
195
|
height: 26px;
|
181
196
|
border: none;
|
182
197
|
outline: none;
|
198
|
+
|
183
199
|
::-webkit-color-swatch {
|
184
200
|
border: none;
|
185
201
|
outline: none;
|
186
202
|
-webkit-appearance: none;
|
187
203
|
}
|
204
|
+
|
188
205
|
::-webkit-color-swatch-wrapper {
|
189
206
|
padding: 0;
|
190
207
|
}
|
191
208
|
}
|
192
209
|
}
|
210
|
+
|
193
211
|
input[type="file"] {
|
194
212
|
&.sd-line-input__input {
|
195
213
|
height: 3rem;
|
196
214
|
padding-top: 0.6rem;
|
197
215
|
font-size: 1.3rem;
|
216
|
+
|
198
217
|
&:focus {
|
199
218
|
outline: none;
|
200
219
|
}
|
201
220
|
}
|
202
221
|
}
|
222
|
+
|
203
223
|
select {
|
224
|
+
cursor: pointer;
|
225
|
+
|
204
226
|
&.sd-line-input__select {
|
205
227
|
@include Line-input-base;
|
206
228
|
display: block;
|
207
229
|
position: relative;
|
208
230
|
z-index: 2;
|
231
|
+
|
209
232
|
option {
|
210
233
|
color: var(--color-text);
|
211
234
|
font-size: 1.4rem;
|
@@ -213,52 +236,64 @@
|
|
213
236
|
background-color: var(--color-dropdown-menu-Bg);
|
214
237
|
}
|
215
238
|
}
|
216
|
-
cursor: pointer;
|
217
239
|
}
|
240
|
+
|
218
241
|
textarea.sd-line-input__input {
|
219
242
|
padding-top: 0.6rem;
|
220
243
|
display: block;
|
221
244
|
}
|
222
|
-
|
245
|
+
|
246
|
+
.sd-line-input__info-left,
|
247
|
+
.sd-line-input__info-right {
|
248
|
+
// use for 1-2 letter info that appear inside inputs ("W" - for width; "H" - for height; px, mm - for units, etc.)
|
223
249
|
position: absolute;
|
224
250
|
inset-block-start: 2.5rem;
|
225
251
|
opacity: 0.3;
|
226
252
|
font-size: 1.5rem;
|
227
253
|
font-weight: 300;
|
228
254
|
}
|
255
|
+
|
229
256
|
.sd-line-input__info-right {
|
230
257
|
inset-inline-end: 0.8rem;
|
231
258
|
}
|
259
|
+
|
232
260
|
.sd-line-input__info-left {
|
233
261
|
inset-inline-start: 0.8rem;
|
234
262
|
}
|
235
263
|
|
236
|
-
.sd-line-input__icon-left,
|
264
|
+
.sd-line-input__icon-left,
|
265
|
+
.sd-line-input__icon-right {
|
237
266
|
position: absolute;
|
238
267
|
inset-block-start: 1.6rem;
|
239
268
|
cursor: pointer;
|
240
269
|
}
|
270
|
+
|
241
271
|
.sd-line-input__icon-right {
|
242
272
|
inset-inline-end: 0.2rem;
|
243
273
|
}
|
274
|
+
|
244
275
|
.sd-line-input__icon-right.icn-btn {
|
245
276
|
inset-inline-end: 0.2rem;
|
246
277
|
inset-block-start: 1.8rem;
|
247
278
|
z-index: 1;
|
248
279
|
}
|
280
|
+
|
249
281
|
.sd-line-input__icon-left {
|
250
282
|
left: 0.2rem;
|
251
283
|
}
|
252
284
|
|
253
285
|
&.sd-line-input--indent-l30 {
|
254
|
-
input,
|
286
|
+
input,
|
287
|
+
textarea {
|
255
288
|
&.sd-line-input__input {
|
256
289
|
padding-inline-start: 3rem;
|
257
290
|
}
|
258
291
|
}
|
259
292
|
}
|
293
|
+
|
260
294
|
&.sd-line-input--indent-r30 {
|
261
|
-
input,
|
295
|
+
input,
|
296
|
+
textarea {
|
262
297
|
&.sd-line-input__input {
|
263
298
|
padding-inline-end: 3rem;
|
264
299
|
}
|
@@ -270,16 +305,17 @@
|
|
270
305
|
position: absolute;
|
271
306
|
line-height: 100%;
|
272
307
|
margin: 0;
|
273
|
-
inset-block-start:0;
|
274
|
-
|
275
|
-
color:$red;
|
276
|
-
content: "*";
|
277
|
-
vertical-align: top;
|
278
|
-
font-size: 1.2rem;
|
279
|
-
padding-inline-start: 0.3rem;
|
280
|
-
}
|
308
|
+
inset-block-start: 0;
|
309
|
+
}
|
281
310
|
|
311
|
+
.sd-line-input__label--required::after {
|
312
|
+
color: $red;
|
313
|
+
content: "*";
|
314
|
+
vertical-align: top;
|
315
|
+
font-size: 1.2rem;
|
316
|
+
padding-inline-start: 0.3rem;
|
282
317
|
}
|
318
|
+
|
283
319
|
.sd-line-input__hint,
|
284
320
|
.sd-line-input__message,
|
285
321
|
.sd-line-input__char-count {
|
@@ -290,6 +326,7 @@
|
|
290
326
|
font-weight: 300;
|
291
327
|
letter-spacing: 0.03em;
|
292
328
|
}
|
329
|
+
|
293
330
|
.sd-line-input__hint {
|
294
331
|
position: absolute;
|
295
332
|
inset-inline-start: 1px;
|
@@ -297,6 +334,7 @@
|
|
297
334
|
padding-inline-end: 5.5rem;
|
298
335
|
margin-top: 0.4rem;
|
299
336
|
}
|
337
|
+
|
300
338
|
.sd-line-input__char-count {
|
301
339
|
position: absolute;
|
302
340
|
inset-inline-end: 1px;
|
@@ -306,22 +344,28 @@
|
|
306
344
|
font-weight: 400;
|
307
345
|
font-style: italic;
|
308
346
|
}
|
347
|
+
|
309
348
|
.sd-line-input__message {
|
310
349
|
padding-top: 0.4rem;
|
311
350
|
}
|
351
|
+
|
312
352
|
&.sd-line-input--invalid {
|
313
353
|
.sd-line-input__label,
|
314
354
|
.sd-line-input__message {
|
315
|
-
color
|
355
|
+
color: $red;
|
316
356
|
}
|
317
|
-
|
357
|
+
|
358
|
+
input,
|
359
|
+
textarea {
|
318
360
|
&.sd-line-input__input {
|
319
361
|
background-color: hsla(357, 79%, 50%, 0.075);
|
320
362
|
border-color: $red;
|
363
|
+
|
321
364
|
&:hover {
|
322
365
|
background-color: hsla(357, 79%, 50%, 0.12);
|
323
366
|
border-color: $red;
|
324
367
|
}
|
368
|
+
|
325
369
|
&:focus {
|
326
370
|
background-color: hsla(357, 79%, 50%, 0.16);
|
327
371
|
border-color: $red;
|
@@ -329,14 +373,17 @@
|
|
329
373
|
}
|
330
374
|
}
|
331
375
|
}
|
376
|
+
|
332
377
|
select {
|
333
378
|
&.sd-line-input__select {
|
334
379
|
background-color: hsla(357, 79%, 50%, 0.075);
|
335
380
|
border-color: $red;
|
381
|
+
|
336
382
|
&:hover {
|
337
383
|
background-color: hsla(357, 79%, 50%, 0.12);
|
338
384
|
border-color: $red;
|
339
385
|
}
|
386
|
+
|
340
387
|
&:focus {
|
341
388
|
background-color: hsla(357, 79%, 50%, 0.16);
|
342
389
|
border-color: $red;
|
@@ -347,8 +394,11 @@
|
|
347
394
|
}
|
348
395
|
|
349
396
|
&.sd-line-input--disabled {
|
350
|
-
input,
|
351
|
-
|
397
|
+
input,
|
398
|
+
textarea {
|
399
|
+
&.sd-line-input__input,
|
400
|
+
&.sd-input__input:hover,
|
401
|
+
&.sd-input__input:focus {
|
352
402
|
opacity: 0.5;
|
353
403
|
background-color: var(--color-input-bg);
|
354
404
|
border-bottom: 1px dotted var(--color-input-border);
|
@@ -356,8 +406,11 @@
|
|
356
406
|
box-shadow: none;
|
357
407
|
}
|
358
408
|
}
|
409
|
+
|
359
410
|
select {
|
360
|
-
&.sd-line-input__select,
|
411
|
+
&.sd-line-input__select,
|
412
|
+
&.sd-line-input__select:hover,
|
413
|
+
&.sd-line-input__select:focus {
|
361
414
|
opacity: 0.5;
|
362
415
|
background-color: var(--color-input-bg);
|
363
416
|
border-bottom: 1px dotted var(--color-input-border);
|
@@ -367,7 +420,6 @@
|
|
367
420
|
}
|
368
421
|
}
|
369
422
|
|
370
|
-
|
371
423
|
&.sd-line-input--is-select {
|
372
424
|
&::after {
|
373
425
|
position: absolute;
|
@@ -384,11 +436,13 @@
|
|
384
436
|
content: "";
|
385
437
|
z-index: 0;
|
386
438
|
}
|
439
|
+
|
387
440
|
&:hover {
|
388
441
|
&::after {
|
389
442
|
opacity: 0.6;
|
390
443
|
}
|
391
444
|
}
|
445
|
+
|
392
446
|
&.sd-line-input--disabled {
|
393
447
|
&:hover {
|
394
448
|
&::after {
|
@@ -396,17 +450,20 @@
|
|
396
450
|
}
|
397
451
|
}
|
398
452
|
}
|
453
|
+
|
399
454
|
&.sd-line-input--no-label {
|
400
455
|
&::after {
|
401
456
|
inset-block-start: 1.4rem;
|
402
457
|
}
|
403
458
|
}
|
459
|
+
|
404
460
|
&.sd-line-input--label-left {
|
405
461
|
&::after {
|
406
462
|
inset-block-start: 1.2rem;
|
407
463
|
}
|
408
464
|
}
|
409
465
|
}
|
466
|
+
|
410
467
|
&.sd-line-input--is-color {
|
411
468
|
.sd-line-input__label {
|
412
469
|
line-height: 140%;
|
@@ -415,76 +472,22 @@
|
|
415
472
|
|
416
473
|
&.sd-line-input--required {
|
417
474
|
.sd-line-input__label::after {
|
418
|
-
color
|
475
|
+
color: $red;
|
419
476
|
content: "*";
|
420
477
|
vertical-align: top;
|
421
478
|
font-size: 1.2rem;
|
422
479
|
padding-inline-start: 0.3rem;
|
423
480
|
}
|
424
481
|
}
|
482
|
+
|
425
483
|
&.sd-line-input--no-label {
|
426
484
|
padding-top: 0;
|
427
485
|
}
|
486
|
+
|
428
487
|
&.sd-line-input--no-margin {
|
429
488
|
margin-bottom: 0;
|
430
489
|
}
|
431
|
-
|
432
|
-
padding-top: 0;
|
433
|
-
margin: 0;
|
434
|
-
display: grid;
|
435
|
-
grid-template-columns: auto 1rem 1fr auto;
|
436
|
-
grid-template-rows: auto auto;
|
437
|
-
grid-gap: 0;
|
438
|
-
.sd-line-input__label {
|
439
|
-
margin-top: 0.1rem;
|
440
|
-
grid-column: 1/2;
|
441
|
-
grid-row: 1/2;
|
442
|
-
position: static;
|
443
|
-
min-width: 7.6rem;
|
444
|
-
max-width: 12rem;
|
445
|
-
display: flex;
|
446
|
-
align-items: center;
|
447
|
-
justify-content: center;
|
448
|
-
}
|
449
|
-
.sd-line-input__input, .sd-line-input__select {
|
450
|
-
grid-row: 1/2;
|
451
|
-
grid-column: 3/5;
|
452
|
-
}
|
453
|
-
.sd-line-input__hint, .sd-line-input__message {
|
454
|
-
position: static;
|
455
|
-
grid-row: 2/3;
|
456
|
-
grid-column: 3/4;
|
457
|
-
padding-inline-end: 0;
|
458
|
-
}
|
459
|
-
.sd-line-input__char-count {
|
460
|
-
position: static;
|
461
|
-
grid-row: 2/3;
|
462
|
-
grid-column: 5/4;
|
463
|
-
text-align: end;
|
464
|
-
padding-inline-start: 1.6rem;
|
465
|
-
}
|
466
|
-
}
|
467
|
-
&--label-left-auto {
|
468
|
-
.sd-line-input__label {
|
469
|
-
min-width: auto;
|
470
|
-
max-width: none;
|
471
|
-
}
|
472
|
-
}
|
473
|
-
&--with-button {
|
474
|
-
input, textarea {
|
475
|
-
&.sd-line-input__input {
|
476
|
-
height: 3rem;
|
477
|
-
text-indent: 2.8rem;
|
478
|
-
}
|
479
|
-
}
|
480
|
-
}
|
481
|
-
&--with-icon-l {
|
482
|
-
input, textarea {
|
483
|
-
&.sd-line-input__input {
|
484
|
-
padding-inline-end: 3rem;
|
485
|
-
}
|
486
|
-
}
|
487
|
-
}
|
490
|
+
|
488
491
|
.sd-line-input__plus-btn {
|
489
492
|
position: absolute;
|
490
493
|
inset-block-start: 1.8rem;
|
@@ -496,14 +499,16 @@
|
|
496
499
|
border-radius: $border-radius__base--x-small;
|
497
500
|
cursor: pointer;
|
498
501
|
text-align: center;
|
502
|
+
|
499
503
|
&::before {
|
504
|
+
@include icon-base;
|
500
505
|
margin-top: 0.2rem;
|
501
506
|
content: "\e629";
|
502
|
-
@include icon-base;
|
503
507
|
color: $white;
|
504
508
|
-webkit-font-smoothing: antialiased;
|
505
509
|
-moz-osx-font-smoothing: grayscale;
|
506
510
|
}
|
511
|
+
|
507
512
|
&:hover {
|
508
513
|
background-color: $sd-colour-interactive;
|
509
514
|
}
|
@@ -511,113 +516,210 @@
|
|
511
516
|
|
512
517
|
}
|
513
518
|
|
519
|
+
.sd-line-input--flex-row {
|
520
|
+
display: inline-flex;
|
521
|
+
align-items: center;
|
522
|
+
border-bottom: 1px solid var(--color-input-border);
|
523
|
+
width: 100%;
|
524
|
+
}
|
514
525
|
|
515
|
-
|
526
|
+
.sd-line-input__value {
|
527
|
+
margin-inline-end: 6px;
|
528
|
+
text-transform: uppercase;
|
529
|
+
}
|
516
530
|
|
531
|
+
.sd-line-input--label-left-auto {
|
532
|
+
.sd-line-input__label {
|
533
|
+
min-width: auto;
|
534
|
+
max-width: none;
|
535
|
+
}
|
536
|
+
}
|
517
537
|
|
518
|
-
.sd-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
background-color: hsla(357, 79%, 50%, 0.12);
|
525
|
-
border-bottom-color: $red;
|
526
|
-
}
|
527
|
-
&:focus {
|
528
|
-
background-color: hsla(357, 79%, 50%, 0.16);
|
529
|
-
border-bottom-color: $red;
|
530
|
-
box-shadow: 0 1px 0 0 $red;
|
538
|
+
.sd-line-input--with-button {
|
539
|
+
input,
|
540
|
+
textarea {
|
541
|
+
&.sd-line-input__input {
|
542
|
+
height: 3rem;
|
543
|
+
text-indent: 2.8rem;
|
531
544
|
}
|
532
545
|
}
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
background-color: var(--color-input-bg);
|
541
|
-
border-bottom-color: var(--color-input-border);
|
546
|
+
}
|
547
|
+
|
548
|
+
.sd-line-input--with-icon-l {
|
549
|
+
input,
|
550
|
+
textarea {
|
551
|
+
&.sd-line-input__input {
|
552
|
+
padding-inline-end: 3rem;
|
542
553
|
}
|
543
554
|
}
|
544
|
-
|
545
|
-
border: 0;
|
546
|
-
border: 2px solid var(--color-input-border);
|
547
|
-
background-color: transparent;
|
548
|
-
transition: all ease 0.3s;
|
549
|
-
border-radius: var(--b-radius--large);
|
550
|
-
display: block;
|
551
|
-
&:hover {
|
552
|
-
border-color: var(--color-input-border-hover);
|
553
|
-
background-color: transparent;
|
554
|
-
}
|
555
|
-
&:focus {
|
556
|
-
outline: none;
|
557
|
-
border-color: var(--sd-colour-interactive--alpha-50);
|
558
|
-
box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
559
|
-
background-color: transparent;
|
560
|
-
}
|
555
|
+
}
|
561
556
|
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
}
|
557
|
+
.sd-line-input--label-left,
|
558
|
+
.sd-line-input--label-left-auto {
|
559
|
+
padding-top: 0;
|
560
|
+
margin: 0;
|
561
|
+
display: grid;
|
562
|
+
grid-template-columns: auto 1rem 1fr auto;
|
563
|
+
grid-template-rows: auto auto;
|
564
|
+
grid-gap: 0;
|
571
565
|
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
566
|
+
.sd-line-input__label {
|
567
|
+
margin-top: 0.1rem;
|
568
|
+
grid-column: 1/2;
|
569
|
+
grid-row: 1/2;
|
570
|
+
position: static;
|
571
|
+
min-width: 7.6rem;
|
572
|
+
max-width: 12rem;
|
573
|
+
display: flex;
|
574
|
+
align-items: center;
|
575
|
+
justify-content: center;
|
581
576
|
}
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
577
|
+
|
578
|
+
.sd-line-input__input,
|
579
|
+
.sd-line-input__select {
|
580
|
+
grid-row: 1/2;
|
581
|
+
grid-column: 3/5;
|
587
582
|
}
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
583
|
+
|
584
|
+
.sd-line-input__hint,
|
585
|
+
.sd-line-input__message {
|
586
|
+
position: static;
|
587
|
+
grid-row: 2/3;
|
588
|
+
grid-column: 3/4;
|
589
|
+
padding-inline-end: 0;
|
593
590
|
}
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
591
|
+
|
592
|
+
.sd-line-input__char-count {
|
593
|
+
position: static;
|
594
|
+
grid-row: 2/3;
|
595
|
+
grid-column: 5/4;
|
596
|
+
text-align: end;
|
597
|
+
padding-inline-start: 1.6rem;
|
599
598
|
}
|
600
599
|
}
|
601
600
|
|
602
|
-
|
603
|
-
|
604
|
-
|
601
|
+
|
602
|
+
///////////////// -------------------- NEW INPUTS --------------------- /////////////////
|
603
|
+
|
604
|
+
|
605
|
+
.sd-input__input {
|
605
606
|
@include Line-input-base;
|
606
|
-
padding-inline-end: 2rem;
|
607
|
-
min-width: 5rem;
|
608
|
-
cursor: pointer;
|
609
|
-
option {
|
610
|
-
color:inherit;
|
611
|
-
font-size: 1.4rem;
|
612
|
-
line-height: 2rem;
|
613
|
-
background-color: var(--color-dropdown-menu-Bg);
|
614
|
-
color: var(--color-dropdown-menu-text);
|
615
|
-
}
|
616
607
|
}
|
617
608
|
|
618
|
-
.sd-
|
619
|
-
|
620
|
-
|
609
|
+
.sd-input__input--invalid {
|
610
|
+
border-bottom: 1px solid $red;
|
611
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
612
|
+
|
613
|
+
&:hover {
|
614
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
615
|
+
border-bottom-color: $red;
|
616
|
+
}
|
617
|
+
|
618
|
+
&:focus {
|
619
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
620
|
+
border-bottom-color: $red;
|
621
|
+
box-shadow: 0 1px 0 0 $red;
|
622
|
+
}
|
623
|
+
}
|
624
|
+
|
625
|
+
.sd-input__input--disabled {
|
626
|
+
opacity: 0.5;
|
627
|
+
background-color: var(--color-input-bg);
|
628
|
+
border-bottom: 1px dotted var(--color-input-border);
|
629
|
+
cursor: not-allowed !important;
|
630
|
+
box-shadow: none;
|
631
|
+
|
632
|
+
&:hover {
|
633
|
+
background-color: var(--color-input-bg);
|
634
|
+
border-bottom-color: var(--color-input-border);
|
635
|
+
}
|
636
|
+
}
|
637
|
+
|
638
|
+
.sd-input__input--boxed-style {
|
639
|
+
border: 0;
|
640
|
+
border: 2px solid var(--color-input-border);
|
641
|
+
background-color: transparent;
|
642
|
+
transition: all ease 0.3s;
|
643
|
+
border-radius: var(--b-radius--large);
|
644
|
+
display: block;
|
645
|
+
|
646
|
+
&:hover {
|
647
|
+
border-color: var(--color-input-border-hover);
|
648
|
+
background-color: transparent;
|
649
|
+
}
|
650
|
+
|
651
|
+
&:focus {
|
652
|
+
outline: none;
|
653
|
+
border-color: var(--sd-colour-interactive--alpha-50);
|
654
|
+
box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
655
|
+
background-color: transparent;
|
656
|
+
}
|
657
|
+
|
658
|
+
&.sd-input__input--disabled {
|
659
|
+
border: 2px solid var(--color-input-border);
|
660
|
+
// cursor: not-allowed !important;
|
661
|
+
box-shadow: none;
|
662
|
+
|
663
|
+
&:hover {
|
664
|
+
//background-color: var(--color-input-bg);
|
665
|
+
border-color: var(--color-input-border);
|
666
|
+
}
|
667
|
+
}
|
668
|
+
|
669
|
+
&.sd-input__input--invalid {
|
670
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
671
|
+
border-color: $red;
|
672
|
+
|
673
|
+
&:hover,
|
674
|
+
&:focus {
|
675
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
676
|
+
box-shadow: none !important;
|
677
|
+
}
|
678
|
+
}
|
679
|
+
}
|
680
|
+
|
681
|
+
.sd-input__input--medium {
|
682
|
+
border-radius: var(--b-radius--medium);
|
683
|
+
|
684
|
+
&:focus {
|
685
|
+
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
686
|
+
}
|
687
|
+
}
|
688
|
+
|
689
|
+
.sd-input__input--large {
|
690
|
+
padding: 0 1.6rem;
|
691
|
+
min-height: 4.8rem;
|
692
|
+
font-size: 2.4rem;
|
693
|
+
font-weight: 500;
|
694
|
+
}
|
695
|
+
|
696
|
+
.sd-input__input--x-large {
|
697
|
+
padding: 0 1.6rem;
|
698
|
+
min-height: 5.6rem;
|
699
|
+
font-size: 3.2rem;
|
700
|
+
font-weight: 500;
|
701
|
+
}
|
702
|
+
|
703
|
+
.sd-input__select {
|
704
|
+
@include Line-input-base;
|
705
|
+
display: block;
|
706
|
+
position: relative;
|
707
|
+
padding-inline-end: 2rem;
|
708
|
+
min-width: 5rem;
|
709
|
+
cursor: pointer;
|
710
|
+
|
711
|
+
option {
|
712
|
+
color: inherit;
|
713
|
+
font-size: 1.4rem;
|
714
|
+
line-height: 2rem;
|
715
|
+
background-color: var(--color-dropdown-menu-Bg);
|
716
|
+
color: var(--color-dropdown-menu-text);
|
717
|
+
}
|
718
|
+
}
|
719
|
+
|
720
|
+
.sd-input__hint,
|
721
|
+
.sd-input__message,
|
722
|
+
.sd-input__char-count {
|
621
723
|
font-size: 1.2rem;
|
622
724
|
line-height: 1.4rem;
|
623
725
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
@@ -626,13 +728,15 @@
|
|
626
728
|
letter-spacing: 0.03em;
|
627
729
|
display: block;
|
628
730
|
}
|
731
|
+
|
629
732
|
.sd-input__char-count {
|
630
733
|
font-size: 1.1rem;
|
631
734
|
font-weight: 400;
|
632
735
|
font-style: italic;
|
633
|
-
|
634
|
-
|
635
|
-
|
736
|
+
}
|
737
|
+
|
738
|
+
.sd-input__char-count--error {
|
739
|
+
color: $red;
|
636
740
|
}
|
637
741
|
|
638
742
|
.sd-input {
|
@@ -645,7 +749,6 @@
|
|
645
749
|
position: relative;
|
646
750
|
align-self: stretch;
|
647
751
|
|
648
|
-
|
649
752
|
.sd-input__input {
|
650
753
|
//@include Line-input-base;
|
651
754
|
grid-row: 2/3;
|
@@ -667,16 +770,19 @@
|
|
667
770
|
min-height: $form-input-height;
|
668
771
|
}
|
669
772
|
}
|
773
|
+
|
670
774
|
input[type="file"] {
|
671
775
|
&.sd-input__input {
|
672
776
|
height: 3rem;
|
673
777
|
padding-top: 0.6rem;
|
674
778
|
font-size: 1.3rem;
|
779
|
+
|
675
780
|
&:focus {
|
676
781
|
outline: none;
|
677
782
|
}
|
678
783
|
}
|
679
784
|
}
|
785
|
+
|
680
786
|
.sd-input__select {
|
681
787
|
// display: block;
|
682
788
|
// position: relative;
|
@@ -694,6 +800,7 @@
|
|
694
800
|
// color: var(--color-dropdown-menu-text);
|
695
801
|
// }
|
696
802
|
}
|
803
|
+
|
697
804
|
&.sd-input--is-select {
|
698
805
|
&::after {
|
699
806
|
position: relative;
|
@@ -715,21 +822,25 @@
|
|
715
822
|
content: "";
|
716
823
|
z-index: 0;
|
717
824
|
}
|
825
|
+
|
718
826
|
&:hover {
|
719
827
|
&::after {
|
720
828
|
opacity: 0.6;
|
721
829
|
}
|
722
830
|
}
|
723
831
|
}
|
832
|
+
|
724
833
|
.sd-input__message-box {
|
725
834
|
grid-row: 3/4;
|
726
835
|
grid-column: 2/3;
|
727
836
|
}
|
837
|
+
|
728
838
|
.sd-input__icon-right {
|
729
839
|
grid-row: 2/3;
|
730
840
|
grid-column: 3/4;
|
731
841
|
z-index: 1;
|
732
842
|
}
|
843
|
+
|
733
844
|
.sd-input__hint,
|
734
845
|
.sd-input__message,
|
735
846
|
.sd-input__char-count {
|
@@ -742,6 +853,7 @@
|
|
742
853
|
// letter-spacing: 0.03em;
|
743
854
|
// display: block;
|
744
855
|
}
|
856
|
+
|
745
857
|
.sd-input__char-count {
|
746
858
|
// font-size: 1.1rem;
|
747
859
|
// font-weight: 400;
|
@@ -752,6 +864,7 @@
|
|
752
864
|
// color: $red;
|
753
865
|
// }
|
754
866
|
}
|
867
|
+
|
755
868
|
.sd-input__label {
|
756
869
|
@include Form-label-base;
|
757
870
|
position: relative;
|
@@ -760,318 +873,378 @@
|
|
760
873
|
margin: 0;
|
761
874
|
grid-row: 1/2;
|
762
875
|
grid-column: 2/4;
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
876
|
+
}
|
877
|
+
|
878
|
+
.sd-input__label--required::after {
|
879
|
+
color: $red;
|
880
|
+
content: "*";
|
881
|
+
vertical-align: top;
|
882
|
+
font-size: 1.2rem;
|
883
|
+
padding-inline-start: 0.3rem;
|
884
|
+
}
|
885
|
+
|
886
|
+
.sd-input__label--boxed {
|
887
|
+
@include Boxed-label-base;
|
888
|
+
}
|
889
|
+
|
890
|
+
}
|
891
|
+
|
892
|
+
.sd-input--inline-label {
|
893
|
+
grid-template-columns: auto 1fr auto;
|
894
|
+
grid-template-rows: auto auto auto;
|
895
|
+
|
896
|
+
.sd-input__label {
|
897
|
+
grid-row: 2/3;
|
898
|
+
grid-column: 1/2;
|
899
|
+
padding-inline-end: 1rem;
|
900
|
+
padding-inline-start: 0;
|
901
|
+
padding-block-start: 0.4rem;
|
902
|
+
padding-block-end: 0;
|
903
|
+
position: relative;
|
904
|
+
max-width: 260px;
|
905
|
+
min-width: 100px;
|
906
|
+
text-align: end;
|
907
|
+
position: relative;
|
908
|
+
align-self: center;
|
909
|
+
line-height: 1.2;
|
910
|
+
|
911
|
+
&::after {
|
912
|
+
position: absolute;
|
913
|
+
z-index: 2;
|
914
|
+
inset-block-start: -2px;
|
915
|
+
inset-inline-end: 4px;
|
772
916
|
}
|
773
917
|
}
|
774
|
-
|
775
|
-
grid-template-columns: auto 1fr auto;
|
776
|
-
grid-template-rows: auto auto auto;
|
777
|
-
.sd-input__label {
|
778
|
-
grid-row: 2/3;
|
779
|
-
grid-column: 1/2;
|
780
|
-
padding-inline-end: 1rem;
|
781
|
-
padding-inline-start: 0;
|
782
|
-
padding-block-start: 0.4rem;
|
783
|
-
padding-block-end: 0;
|
784
|
-
position: relative;
|
918
|
+
}
|
785
919
|
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
920
|
+
.sd-input--invalid {
|
921
|
+
input,
|
922
|
+
textarea {
|
923
|
+
&.sd-input__input {
|
924
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
925
|
+
border-color: $red;
|
926
|
+
|
927
|
+
&:hover {
|
928
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
929
|
+
border-color: $red;
|
930
|
+
}
|
931
|
+
|
932
|
+
&:focus {
|
933
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
934
|
+
border-color: $red;
|
935
|
+
box-shadow: 0 1px 0 0 $red;
|
797
936
|
}
|
798
937
|
}
|
799
938
|
}
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
939
|
+
|
940
|
+
select {
|
941
|
+
&.sd-input__select {
|
942
|
+
background-color: hsla(357, 79%, 50%, 0.075);
|
943
|
+
border-color: $red;
|
944
|
+
|
945
|
+
&:hover {
|
946
|
+
background-color: hsla(357, 79%, 50%, 0.12);
|
804
947
|
border-color: $red;
|
805
|
-
&:hover {
|
806
|
-
background-color: hsla(357, 79%, 50%, 0.12);
|
807
|
-
border-color: $red;
|
808
|
-
}
|
809
|
-
&:focus {
|
810
|
-
background-color: hsla(357, 79%, 50%, 0.16);
|
811
|
-
border-color: $red;
|
812
|
-
box-shadow: 0 1px 0 0 $red;
|
813
|
-
}
|
814
948
|
}
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
background-color: hsla(357, 79%, 50%, 0.075);
|
949
|
+
|
950
|
+
&:focus {
|
951
|
+
background-color: hsla(357, 79%, 50%, 0.16);
|
819
952
|
border-color: $red;
|
820
|
-
|
821
|
-
background-color: hsla(357, 79%, 50%, 0.12);
|
822
|
-
border-color: $red;
|
823
|
-
}
|
824
|
-
&:focus {
|
825
|
-
background-color: hsla(357, 79%, 50%, 0.16);
|
826
|
-
border-color: $red;
|
827
|
-
box-shadow: 0 1px 0 0 $red;
|
828
|
-
}
|
953
|
+
box-shadow: 0 1px 0 0 $red;
|
829
954
|
}
|
830
955
|
}
|
831
|
-
.sd-input__label, .sd-input__message {
|
832
|
-
color: $red;
|
833
|
-
}
|
834
956
|
}
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
957
|
+
|
958
|
+
.sd-input__label,
|
959
|
+
.sd-input__message {
|
960
|
+
color: $red;
|
961
|
+
}
|
962
|
+
}
|
963
|
+
|
964
|
+
.sd-input--required {
|
965
|
+
.sd-input__label::after {
|
966
|
+
color: $red;
|
967
|
+
content: "*";
|
968
|
+
vertical-align: top;
|
969
|
+
font-size: 1.2rem;
|
970
|
+
padding-inline-start: 0.3rem;
|
971
|
+
}
|
972
|
+
|
973
|
+
.sd-input__label.sd-input__label--boxed::after {
|
974
|
+
position: absolute;
|
975
|
+
inset-block-start: -4px;
|
976
|
+
inset-inline-end: -10px;
|
977
|
+
}
|
978
|
+
}
|
979
|
+
|
980
|
+
.sd-input--disabled {
|
981
|
+
input,
|
982
|
+
textarea {
|
983
|
+
&.sd-input__input,
|
984
|
+
&.sd-input__input:hover,
|
985
|
+
&.sd-input__input:focus {
|
986
|
+
opacity: 0.5;
|
987
|
+
background-color: var(--color-input-bg);
|
988
|
+
border-bottom: 1px dotted var(--color-input-border);
|
989
|
+
cursor: not-allowed !important;
|
990
|
+
box-shadow: none;
|
847
991
|
}
|
848
992
|
}
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
993
|
+
|
994
|
+
select {
|
995
|
+
&.sd-input__select,
|
996
|
+
&.sd-input__select:hover,
|
997
|
+
&.sd-input__select:focus {
|
998
|
+
opacity: 0.5;
|
999
|
+
background-color: var(--color-input-bg);
|
1000
|
+
border-bottom: 1px dotted var(--color-input-border);
|
1001
|
+
cursor: not-allowed !important;
|
1002
|
+
box-shadow: none;
|
858
1003
|
}
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
border-bottom: 1px dotted var(--color-input-border);
|
864
|
-
cursor: not-allowed !important;
|
865
|
-
box-shadow: none;
|
866
|
-
}
|
867
|
-
&.sd-input__select:hover {
|
868
|
-
&::after {
|
869
|
-
@include opacity(30);
|
870
|
-
}
|
1004
|
+
|
1005
|
+
&.sd-input__select:hover {
|
1006
|
+
&::after {
|
1007
|
+
@include opacity(30);
|
871
1008
|
}
|
872
1009
|
}
|
873
|
-
|
874
|
-
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
div {
|
1013
|
+
&.sd-input__duration-input,
|
1014
|
+
&.sd-input__duration-input:hover,
|
1015
|
+
&.sd-input__duration-input:focus {
|
1016
|
+
opacity: 0.5;
|
1017
|
+
//background-color: var(--color-input-bg);
|
1018
|
+
//border-bottom: 1px dotted var(--color-input-border);
|
1019
|
+
cursor: not-allowed !important;
|
1020
|
+
box-shadow: none;
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
input {
|
1024
|
+
&.duration-input,
|
1025
|
+
&.duration-input:hover,
|
1026
|
+
&.duration-input:focus {
|
875
1027
|
opacity: 0.5;
|
876
1028
|
//background-color: var(--color-input-bg);
|
877
1029
|
//border-bottom: 1px dotted var(--color-input-border);
|
878
1030
|
cursor: not-allowed !important;
|
879
1031
|
box-shadow: none;
|
880
1032
|
}
|
881
|
-
input {
|
882
|
-
&.duration-input, &.duration-input:hover, &.duration-input:focus {
|
883
|
-
opacity: 0.5;
|
884
|
-
//background-color: var(--color-input-bg);
|
885
|
-
//border-bottom: 1px dotted var(--color-input-border);
|
886
|
-
cursor: not-allowed !important;
|
887
|
-
box-shadow: none;
|
888
|
-
}
|
889
|
-
}
|
890
|
-
}
|
891
|
-
.sd-input__label, .sd-input__message-box, .sd-input__char-count {
|
892
|
-
opacity: 0.5 !important;
|
893
|
-
pointer-events: none !important;
|
894
|
-
}
|
895
|
-
.sd-input__hint,
|
896
|
-
.sd-input__message,
|
897
|
-
.sd-input__char-count {
|
898
|
-
pointer-events: none;
|
899
1033
|
}
|
900
1034
|
}
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
1035
|
+
|
1036
|
+
.sd-input__label,
|
1037
|
+
.sd-input__message-box,
|
1038
|
+
.sd-input__char-count {
|
1039
|
+
opacity: 0.5 !important;
|
1040
|
+
pointer-events: none !important;
|
907
1041
|
}
|
908
1042
|
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
border-radius: var(--b-radius--medium);
|
914
|
-
&:focus {
|
915
|
-
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
916
|
-
}
|
917
|
-
}
|
918
|
-
}
|
1043
|
+
.sd-input__hint,
|
1044
|
+
.sd-input__message,
|
1045
|
+
.sd-input__char-count {
|
1046
|
+
pointer-events: none;
|
919
1047
|
}
|
920
|
-
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
.sd-input--no-label {
|
1051
|
+
grid-template-rows: auto auto auto;
|
1052
|
+
}
|
1053
|
+
|
1054
|
+
.sd-input--full-width {
|
1055
|
+
flex-grow: 1;
|
1056
|
+
width: 100%;
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
.sd-input--medium {
|
1060
|
+
&.sd-input--boxed-style {
|
921
1061
|
.sd-input__input,
|
922
1062
|
.sd-input__select {
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
}
|
928
|
-
.sd-input__select {
|
929
|
-
line-height: 2.4rem;
|
930
|
-
option {
|
931
|
-
color: var(--color-text);
|
932
|
-
font-size: 1.4rem !important;
|
933
|
-
line-height: 2rem;
|
934
|
-
background-color: var(--color-dropdown-menu-Bg);
|
1063
|
+
border-radius: var(--b-radius--medium);
|
1064
|
+
|
1065
|
+
&:focus {
|
1066
|
+
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
935
1067
|
}
|
936
1068
|
}
|
937
1069
|
}
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
.sd-input--large {
|
1073
|
+
.sd-input__input,
|
1074
|
+
.sd-input__select {
|
1075
|
+
padding: 0 1.6rem;
|
1076
|
+
min-height: 4.8rem;
|
1077
|
+
font-size: 2.4rem;
|
1078
|
+
font-weight: 500;
|
1079
|
+
}
|
1080
|
+
|
1081
|
+
.sd-input__select {
|
1082
|
+
line-height: 2.4rem;
|
1083
|
+
|
1084
|
+
option {
|
1085
|
+
color: var(--color-text);
|
1086
|
+
font-size: 1.4rem !important;
|
1087
|
+
line-height: 2rem;
|
1088
|
+
background-color: var(--color-dropdown-menu-Bg);
|
945
1089
|
}
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
1090
|
+
}
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
.sd-input--x-large {
|
1094
|
+
.sd-input__input,
|
1095
|
+
.sd-input__select {
|
1096
|
+
padding: 0 1.6rem;
|
1097
|
+
min-height: 5.6rem;
|
1098
|
+
font-size: 3.2rem;
|
1099
|
+
font-weight: 500;
|
1100
|
+
}
|
1101
|
+
|
1102
|
+
.sd-input__select {
|
1103
|
+
line-height: 3.2rem;
|
1104
|
+
|
1105
|
+
option {
|
1106
|
+
color: var(--color-text);
|
1107
|
+
font-size: 1.4rem !important;
|
1108
|
+
line-height: 2rem;
|
1109
|
+
background-color: var(--color-dropdown-menu-Bg);
|
954
1110
|
}
|
955
1111
|
}
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
1112
|
+
}
|
1113
|
+
|
1114
|
+
.sd-input--boxed-style {
|
1115
|
+
.sd-input__input,
|
1116
|
+
.sd-input__select {
|
1117
|
+
border: 0;
|
1118
|
+
border: 2px solid var(--color-input-border);
|
1119
|
+
background-color: transparent;
|
1120
|
+
transition: all ease 0.3s;
|
1121
|
+
border-radius: var(--b-radius--large);
|
1122
|
+
display: block;
|
1123
|
+
|
1124
|
+
&:hover {
|
1125
|
+
border-color: var(--color-input-border-hover);
|
961
1126
|
background-color: transparent;
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
1127
|
+
}
|
1128
|
+
|
1129
|
+
&:focus {
|
1130
|
+
outline: none;
|
1131
|
+
border-color: var(--sd-colour-interactive--alpha-50);
|
1132
|
+
box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
1133
|
+
background-color: transparent;
|
1134
|
+
}
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
&.sd-input--disabled {
|
1138
|
+
input,
|
1139
|
+
textarea {
|
1140
|
+
&.sd-input__input,
|
1141
|
+
&.sd-input__input:hover,
|
1142
|
+
&.sd-input__input:focus {
|
1143
|
+
opacity: 0.5;
|
967
1144
|
background-color: transparent;
|
1145
|
+
border: 2px solid var(--color-input-border) !important;
|
1146
|
+
box-shadow: none;
|
968
1147
|
}
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
select {
|
1151
|
+
&.sd-input__select,
|
1152
|
+
&.sd-input__select:hover,
|
1153
|
+
&.sd-input__select:focus {
|
1154
|
+
opacity: 0.5;
|
973
1155
|
background-color: transparent;
|
1156
|
+
border: 2px solid var(--color-input-border) !important;
|
1157
|
+
//ursor: not-allowed !important;
|
1158
|
+
box-shadow: none;
|
974
1159
|
}
|
975
1160
|
}
|
976
1161
|
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
background-color: transparent;
|
985
|
-
border: 2px solid var(--color-input-border) !important;
|
986
|
-
box-shadow: none;
|
987
|
-
}
|
988
|
-
}
|
989
|
-
select {
|
990
|
-
&.sd-input__select,
|
991
|
-
&.sd-input__select:hover,
|
992
|
-
&.sd-input__select:focus {
|
993
|
-
opacity: 0.5;
|
994
|
-
background-color: transparent;
|
995
|
-
border: 2px solid var(--color-input-border) !important;
|
996
|
-
//ursor: not-allowed !important;
|
997
|
-
box-shadow: none;
|
998
|
-
}
|
999
|
-
}
|
1000
|
-
.tags-input__add-button {
|
1001
|
-
pointer-events: none;
|
1002
|
-
}
|
1162
|
+
.tags-input__add-button {
|
1163
|
+
pointer-events: none;
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
.sd-input__label,
|
1167
|
+
.sd-input__message-box,
|
1168
|
+
.sd-input__char-count {
|
1003
1169
|
.sd-input__label,
|
1004
1170
|
.sd-input__message-box,
|
1005
1171
|
.sd-input__char-count {
|
1006
|
-
.
|
1007
|
-
.sd-input__message-box,
|
1008
|
-
.sd-input__char-count {
|
1009
|
-
opacity: 0.5;
|
1010
|
-
}
|
1011
|
-
}
|
1012
|
-
.sd-input__hint,
|
1013
|
-
.sd-input__message,
|
1014
|
-
.sd-input__char-count {
|
1015
|
-
pointer-events: none;
|
1172
|
+
opacity: 0.5;
|
1016
1173
|
}
|
1017
1174
|
}
|
1018
1175
|
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
background-color: hsla(357, 79%, 50%, 0.1);
|
1024
|
-
box-shadow: none;
|
1025
|
-
}
|
1026
|
-
}
|
1027
|
-
}
|
1028
|
-
select {
|
1029
|
-
&.sd-input__select {
|
1030
|
-
&:focus {
|
1031
|
-
background-color: hsla(357, 79%, 50%, 0.1);
|
1032
|
-
box-shadow: none;
|
1033
|
-
}
|
1034
|
-
}
|
1035
|
-
}
|
1036
|
-
.sd-input__label, .sd-input__message {
|
1037
|
-
color: $red;
|
1038
|
-
}
|
1176
|
+
.sd-input__hint,
|
1177
|
+
.sd-input__message,
|
1178
|
+
.sd-input__char-count {
|
1179
|
+
pointer-events: none;
|
1039
1180
|
}
|
1040
1181
|
}
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
background-color: hsla(
|
1182
|
+
|
1183
|
+
&.sd-input--invalid {
|
1184
|
+
input,
|
1185
|
+
textarea {
|
1186
|
+
&.sd-input__input {
|
1187
|
+
&:focus {
|
1188
|
+
background-color: hsla(357, 79%, 50%, 0.1);
|
1189
|
+
box-shadow: none;
|
1048
1190
|
}
|
1049
1191
|
}
|
1050
1192
|
}
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1193
|
+
|
1194
|
+
select {
|
1195
|
+
&.sd-input__select {
|
1196
|
+
&:focus {
|
1197
|
+
background-color: hsla(357, 79%, 50%, 0.1);
|
1198
|
+
box-shadow: none;
|
1055
1199
|
}
|
1056
1200
|
}
|
1057
1201
|
}
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1202
|
+
|
1203
|
+
.sd-input__label,
|
1204
|
+
.sd-input__message {
|
1205
|
+
color: $red;
|
1206
|
+
}
|
1207
|
+
}
|
1208
|
+
}
|
1209
|
+
|
1210
|
+
.sd-input--boxed-label {
|
1211
|
+
grid-template-columns: auto 1fr auto;
|
1212
|
+
grid-template-rows: auto auto auto;
|
1213
|
+
|
1214
|
+
&:hover {
|
1215
|
+
.sd-input__label {
|
1216
|
+
&.sd-input__label--boxed {
|
1217
|
+
background-color: hsla(214, 13%, 30%, 0.54);
|
1062
1218
|
}
|
1063
1219
|
}
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
&:focus-within {
|
1223
|
+
.sd-input__label {
|
1224
|
+
&.sd-input__label--boxed {
|
1225
|
+
background-color: var(--sd-colour-interactive--alpha-70);
|
1067
1226
|
}
|
1068
1227
|
}
|
1069
1228
|
}
|
1070
|
-
|
1071
|
-
|
1229
|
+
|
1230
|
+
&.sd-input--invalid {
|
1231
|
+
.sd-input__label--boxed {
|
1232
|
+
background-color: $red !important;
|
1233
|
+
color: hsla(214, 13%, 100%, 1);
|
1234
|
+
}
|
1235
|
+
}
|
1236
|
+
|
1237
|
+
&.sd-input--disabled {
|
1238
|
+
.sd-input__label--boxed {
|
1239
|
+
background-color: hsla(214, 13%, 0%, 0.4) !important;
|
1240
|
+
}
|
1072
1241
|
}
|
1073
1242
|
}
|
1074
1243
|
|
1244
|
+
.sd-input--disabled * {
|
1245
|
+
cursor: not-allowed !important;
|
1246
|
+
}
|
1247
|
+
|
1075
1248
|
|
1076
1249
|
///////////////// -------------------- Duration & Time-Date input --------------------- /////////////////
|
1077
1250
|
|
@@ -1083,6 +1256,7 @@
|
|
1083
1256
|
gap: 2px;
|
1084
1257
|
grid-row: 2/3;
|
1085
1258
|
grid-column: 2/4;
|
1259
|
+
|
1086
1260
|
&:focus-within {
|
1087
1261
|
box-shadow: 0 1px 0 0 var(--sd-colour-interactive);
|
1088
1262
|
border-color: var(--sd-colour-interactive);
|
@@ -1105,19 +1279,23 @@
|
|
1105
1279
|
font-size: 1.4rem;
|
1106
1280
|
padding: 0 !important;
|
1107
1281
|
line-height: 3.2rem;
|
1282
|
+
|
1108
1283
|
&::-webkit-outer-spin-button,
|
1109
1284
|
&::-webkit-inner-spin-button {
|
1110
1285
|
-webkit-appearance: none;
|
1111
1286
|
margin: 0;
|
1112
1287
|
}
|
1288
|
+
|
1113
1289
|
&[type=number] {
|
1114
1290
|
-moz-appearance: textfield;
|
1115
1291
|
}
|
1116
1292
|
}
|
1293
|
+
|
1117
1294
|
span {
|
1118
1295
|
display: flex;
|
1119
1296
|
align-items: center;
|
1120
1297
|
}
|
1298
|
+
|
1121
1299
|
.sd-input__suffix {
|
1122
1300
|
height: 3.2rem;
|
1123
1301
|
line-height: 3.2rem;
|
@@ -1139,6 +1317,7 @@
|
|
1139
1317
|
grid-column: 2/4;
|
1140
1318
|
width: 100%;
|
1141
1319
|
}
|
1320
|
+
|
1142
1321
|
&.sd-input--disabled,
|
1143
1322
|
&.sd-input--disabled:hover {
|
1144
1323
|
.p-multiselect,
|