superdesk-ui-framework 3.0.41 → 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 +20 -7
- 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 +4271 -3557
- 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,4 +1,3 @@
|
|
1
|
-
|
2
1
|
$photo-nav-transition: all 0.2s ease-out;
|
3
2
|
|
4
3
|
.sd-photo-preview {
|
@@ -10,18 +9,22 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
10
9
|
height: calc(100vh - 53px);
|
11
10
|
position: relative;
|
12
11
|
overflow: hidden;
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
12
|
+
}
|
13
|
+
|
14
|
+
.sd-photo-preview--grid-only {
|
15
|
+
grid-template-rows: 0 1fr;
|
16
|
+
|
17
|
+
.sd-photo-preview__image {
|
18
|
+
height: 0;
|
19
|
+
overflow: hidden;
|
20
|
+
}
|
21
|
+
|
22
|
+
.sd-photo-preview__thumb-strip {
|
23
|
+
overflow-y: auto;
|
24
|
+
}
|
25
|
+
|
26
|
+
.sd-photo-preview__thumb-strip--with-controls {
|
27
|
+
padding-top: 4.8rem;
|
25
28
|
}
|
26
29
|
}
|
27
30
|
|
@@ -47,6 +50,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
47
50
|
text-align: center;
|
48
51
|
background-color: var(--sd-colour-bg__photo-preview);
|
49
52
|
max-height: 100%; // needed for firefox
|
53
|
+
|
50
54
|
&.actioning {
|
51
55
|
&::before {
|
52
56
|
content: '';
|
@@ -64,6 +68,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
64
68
|
}
|
65
69
|
}
|
66
70
|
}
|
71
|
+
|
67
72
|
.sd-photo-preview__video {
|
68
73
|
display: grid;
|
69
74
|
grid-template-rows: 1fr auto;
|
@@ -72,6 +77,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
72
77
|
justify-content: center;
|
73
78
|
max-height: none;
|
74
79
|
background-color: #232323;
|
80
|
+
|
75
81
|
.sd-photo-preview__video-inner {
|
76
82
|
grid-row: 1/2;
|
77
83
|
display: grid;
|
@@ -85,6 +91,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
85
91
|
max-width: 100%;
|
86
92
|
min-width: 48rem;
|
87
93
|
}
|
94
|
+
|
88
95
|
.sd-photo-preview__video-container {
|
89
96
|
grid-row: 1/2;
|
90
97
|
margin: 0;
|
@@ -92,6 +99,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
92
99
|
flex-direction: row;
|
93
100
|
align-items: center;
|
94
101
|
justify-content: center;
|
102
|
+
|
95
103
|
video {
|
96
104
|
max-width: 110vh;
|
97
105
|
width: auto;
|
@@ -100,6 +108,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
100
108
|
margin-top: 2rem;
|
101
109
|
}
|
102
110
|
}
|
111
|
+
|
103
112
|
.sd-photo-preview__video-tools {
|
104
113
|
grid-row: 2/3;
|
105
114
|
margin: 0.8rem auto 3.2rem;
|
@@ -111,14 +120,16 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
111
120
|
flex-direction: row;
|
112
121
|
align-items: center;
|
113
122
|
width: 100%;
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
123
|
+
}
|
124
|
+
|
125
|
+
.sd-photo-preview__video-tools--blank {
|
126
|
+
background-color: rgba(0, 0, 0, 0);
|
127
|
+
padding: 0.6rem;
|
128
|
+
}
|
119
129
|
}
|
120
130
|
|
121
131
|
.sd-photo-preview__label {
|
132
|
+
@include text-overflow;
|
122
133
|
background: rgba(0, 0, 0, 0.25);
|
123
134
|
color: inherit;
|
124
135
|
padding: 0.8rem 2rem;
|
@@ -127,7 +138,6 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
127
138
|
border-radius: $border-radius__base--x-small;
|
128
139
|
font-weight: 300;
|
129
140
|
min-width: 16rem;
|
130
|
-
@include text-overflow;
|
131
141
|
}
|
132
142
|
|
133
143
|
.sd-photo-preview__image {
|
@@ -135,6 +145,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
135
145
|
max-width: calc(100vw - 40rem);
|
136
146
|
transition: max-width 0.2s ease-in-out;
|
137
147
|
padding: 1.6rem;
|
148
|
+
|
138
149
|
img {
|
139
150
|
max-width: 100%;
|
140
151
|
max-height: 100%;
|
@@ -149,8 +160,6 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
149
160
|
}
|
150
161
|
}
|
151
162
|
|
152
|
-
|
153
|
-
|
154
163
|
.sd-photo-preview__thumb-strip {
|
155
164
|
grid-column: 1/2;
|
156
165
|
grid-row: 2/3;
|
@@ -159,23 +168,27 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
159
168
|
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
|
160
169
|
position: relative;
|
161
170
|
overflow-y: auto;
|
162
|
-
&--video {
|
163
|
-
min-height: 10rem;
|
164
|
-
display: flex;
|
165
|
-
flex-direction: row;
|
166
|
-
overflow: visible;
|
167
|
-
}
|
168
171
|
}
|
172
|
+
|
173
|
+
.sd-photo-preview__thumb-strip--video {
|
174
|
+
min-height: 10rem;
|
175
|
+
display: flex;
|
176
|
+
flex-direction: row;
|
177
|
+
overflow: visible;
|
178
|
+
}
|
179
|
+
|
169
180
|
.sd-photo-preview__thumbnail-edit {
|
170
181
|
position: relative;
|
171
182
|
height: 16rem;
|
172
183
|
flex-grow: 0;
|
184
|
+
|
173
185
|
img {
|
174
186
|
max-width: 100%;
|
175
187
|
height: auto;
|
176
188
|
max-height: 16rem;
|
177
189
|
display: block;
|
178
190
|
}
|
191
|
+
|
179
192
|
.sd-photo-preview__thumbnail-edit-label {
|
180
193
|
position: absolute;
|
181
194
|
top: -2.2rem;
|
@@ -201,10 +214,12 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
201
214
|
z-index: 1;
|
202
215
|
opacity: 0;
|
203
216
|
color: $white;
|
217
|
+
|
204
218
|
&:hover {
|
205
219
|
opacity: 1;
|
206
220
|
}
|
207
221
|
}
|
222
|
+
|
208
223
|
.image-overlay__button-block {
|
209
224
|
display: flex;
|
210
225
|
flex-direction: row;
|
@@ -212,6 +227,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
212
227
|
justify-content: center;
|
213
228
|
flex-grow: 1;
|
214
229
|
}
|
230
|
+
|
215
231
|
.image-overlay__button {
|
216
232
|
flex-grow: 0;
|
217
233
|
flex-shrink: 0;
|
@@ -228,28 +244,34 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
228
244
|
cursor: pointer;
|
229
245
|
text-decoration: none;
|
230
246
|
background-color: rgba(0, 0, 0, 0.2);
|
247
|
+
|
231
248
|
i {
|
232
249
|
color: inherit;
|
233
250
|
line-height: 1;
|
234
251
|
opacity: 0.6;
|
235
252
|
transition: 0.2s linear all;
|
236
253
|
}
|
254
|
+
|
237
255
|
&:hover {
|
238
256
|
border-color: white;
|
239
257
|
background-color: rgba(0, 0, 0, 0.6);
|
240
258
|
text-decoration: none;
|
259
|
+
|
241
260
|
i {
|
242
261
|
opacity: 1;
|
243
262
|
}
|
244
263
|
}
|
264
|
+
|
245
265
|
&:active {
|
246
266
|
border-color: $sd-colour-interactive;
|
247
267
|
background-color: rgba(0, 0, 0, 0.8);
|
268
|
+
|
248
269
|
i {
|
249
270
|
color: $sd-colour-interactive;
|
250
271
|
}
|
251
272
|
}
|
252
273
|
}
|
274
|
+
|
253
275
|
.image-overlay__button + .image-overlay__button {
|
254
276
|
margin-left: 0.8rem;
|
255
277
|
}
|
@@ -266,11 +288,13 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
266
288
|
}
|
267
289
|
}
|
268
290
|
}
|
291
|
+
|
269
292
|
.sd-photo-preview--edit-video {
|
270
293
|
.sd-photo-preview__video {
|
271
294
|
.sd-photo-preview__video-inner {
|
272
295
|
max-height: calc(100vh - 53px - 160px);
|
273
296
|
max-width: 100vw;
|
297
|
+
|
274
298
|
.sd-photo-preview__video-container {
|
275
299
|
video {
|
276
300
|
max-width: calc(100vw - 4rem);
|
@@ -280,12 +304,14 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
280
304
|
}
|
281
305
|
}
|
282
306
|
}
|
307
|
+
|
283
308
|
.sd-photo-preview--view-video {
|
284
309
|
.sd-photo-preview__video {
|
285
310
|
.sd-photo-preview__video-inner {
|
286
311
|
max-height: calc(100vh - 53px);
|
287
312
|
max-width: calc(100vw - 44rem);
|
288
|
-
|
313
|
+
|
314
|
+
.sd-photo-preview__video-container {
|
289
315
|
video {
|
290
316
|
max-width: calc(100vw - 44rem);
|
291
317
|
max-height: calc(100vh - 53px - 90px);
|
@@ -313,14 +339,17 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
313
339
|
transition: $photo-nav-transition;
|
314
340
|
background-color: $background-normal;
|
315
341
|
opacity: 0.3;
|
342
|
+
|
316
343
|
&:hover {
|
317
344
|
opacity: 0.6;
|
318
345
|
background-color: $background-hover;
|
319
346
|
}
|
347
|
+
|
320
348
|
&:active {
|
321
349
|
opacity: 0.8;
|
322
350
|
background-color: $background-active;
|
323
351
|
}
|
352
|
+
|
324
353
|
&::after {
|
325
354
|
content: " ";
|
326
355
|
font-family: 'sd_icons';
|
@@ -355,14 +384,17 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
355
384
|
cursor: pointer;
|
356
385
|
text-decoration: none !important;
|
357
386
|
transition: $photo-nav-transition;
|
387
|
+
|
358
388
|
[class^="icon-"],
|
359
389
|
[class*=" icon-"] {
|
360
390
|
color: $white;
|
361
391
|
flex-shrink: 0;
|
362
392
|
}
|
393
|
+
|
363
394
|
&:hover {
|
364
395
|
opacity: 1;
|
365
396
|
}
|
397
|
+
|
366
398
|
&:active {
|
367
399
|
background-color: $sd-colour-interactive;
|
368
400
|
opacity: 1;
|
@@ -371,19 +403,22 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
371
403
|
|
372
404
|
.sd-photo-preview__nav-button {
|
373
405
|
@include photoNavButton-style;
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
406
|
+
}
|
407
|
+
|
408
|
+
.sd-photo-preview__nav-button--next {
|
409
|
+
right: 0.8rem;
|
410
|
+
color: inherit;
|
411
|
+
|
412
|
+
&::after {
|
413
|
+
content: "\e643";
|
380
414
|
}
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
415
|
+
}
|
416
|
+
.sd-photo-preview__nav-button--prev {
|
417
|
+
left: 0.8rem;
|
418
|
+
color: inherit;
|
419
|
+
|
420
|
+
&::after {
|
421
|
+
content: "\e642";
|
387
422
|
}
|
388
423
|
}
|
389
424
|
|
@@ -406,6 +441,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
406
441
|
margin-top: -10.6rem;
|
407
442
|
z-index: 1;
|
408
443
|
}
|
444
|
+
|
409
445
|
.upload__info-icon {
|
410
446
|
margin: 0 auto;
|
411
447
|
height: 7.4rem;
|
@@ -414,6 +450,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
414
450
|
opacity: 0.25;
|
415
451
|
text-align: center;
|
416
452
|
}
|
453
|
+
|
417
454
|
.upload__info-heading {
|
418
455
|
margin: 0 auto;
|
419
456
|
opacity: 0.5;
|
@@ -424,6 +461,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
424
461
|
font-size: 2.4rem;
|
425
462
|
font-weight: 300;
|
426
463
|
}
|
464
|
+
|
427
465
|
.upload__info-label {
|
428
466
|
position: relative;
|
429
467
|
text-align: center;
|
@@ -431,6 +469,7 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
431
469
|
margin: 2.2rem auto;
|
432
470
|
color: var(--color-text-lighter);
|
433
471
|
opacity: 0.85;
|
472
|
+
|
434
473
|
&::after, &::before {
|
435
474
|
content: "___________";
|
436
475
|
position: absolute;
|
@@ -438,9 +477,11 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
438
477
|
color: inherit;
|
439
478
|
opacity: 0.25;
|
440
479
|
}
|
480
|
+
|
441
481
|
&::after {
|
442
482
|
margin-left: 1.5rem;
|
443
483
|
}
|
484
|
+
|
444
485
|
&::before {
|
445
486
|
margin-left: -7.8rem;
|
446
487
|
}
|
@@ -459,4 +500,4 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
459
500
|
display: block;
|
460
501
|
}
|
461
502
|
}
|
462
|
-
}
|
503
|
+
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
// Large Searchbar
|
2
|
-
// -----------------------------------------------------
|
3
2
|
|
4
3
|
// Large searchbar is usualy used inside the 'subnav' component, hence the flex-grow property;
|
5
4
|
|
@@ -12,60 +11,74 @@
|
|
12
11
|
transition: all 0.2s ease-out;
|
13
12
|
height: 100%; // adapts to the height of the parent element, usually .subnav.
|
14
13
|
max-height: $subnav-height;
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
14
|
+
}
|
15
|
+
|
16
|
+
.sd-searchbar--focused {
|
17
|
+
background-color: var(--sd-colour-bg__searchbar);
|
18
|
+
box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 6px var(--sd-colour-interactive--alpha-20);
|
19
|
+
}
|
20
|
+
|
21
|
+
.sd-searchbar--border-r {
|
22
|
+
border-right: 1px solid var(--sd-colour-line--x-light);
|
23
|
+
}
|
24
|
+
|
25
|
+
.sd-searchbar--border-l {
|
26
|
+
border-left: 1px solid var(--sd-colour-line--x-light);
|
27
|
+
}
|
28
|
+
|
29
|
+
.sd-searchbar--border-l-r {
|
30
|
+
border-right: 1px solid var(--sd-colour-line--x-light);
|
31
|
+
border-left: 1px solid var(--sd-colour-line--x-light);
|
32
|
+
}
|
33
|
+
|
34
|
+
.sd-searchbar--border-bottom {
|
35
|
+
border-bottom: 1px solid var(--sd-colour-line--light);
|
36
|
+
}
|
37
|
+
|
38
|
+
.sd-searchbar--small {
|
39
|
+
height: 3.6rem;
|
40
|
+
}
|
41
|
+
|
42
|
+
.sd-searchbar--boxed {
|
43
|
+
height: 4rem;
|
44
|
+
border-radius: $border-radius__base--medium;
|
45
|
+
border: 1px solid var(--color-border-line--medium);
|
46
|
+
background-color: var(--sd-colour-bg__searchbar);
|
47
|
+
box-shadow: inset 0 2px 4px rgba(0,0,0,0.14);
|
48
|
+
transition: box-shadow 0.2s ease-out;
|
49
|
+
|
50
|
+
&:hover {
|
51
|
+
border-color: rgba(123,123,123,0.6);
|
28
52
|
}
|
29
|
-
|
30
|
-
|
53
|
+
|
54
|
+
&.sd-searchbar--focused,
|
55
|
+
&:focus-within {
|
56
|
+
transition: box-shadow 0.2s ease-out;
|
57
|
+
border-color: var(--sd-colour-interactive--alpha-70);
|
58
|
+
box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
59
|
+
|
31
60
|
}
|
32
|
-
|
33
|
-
|
61
|
+
|
62
|
+
&.sd-searchbar--invalid {
|
63
|
+
border-color: rgba(229, 28, 35, 0.75);
|
64
|
+
box-shadow: inset 0 0 0 1px rgba(229,28,35,0.1), inset 0 0 0 4px rgba(229,28,35,0.1);
|
65
|
+
|
34
66
|
}
|
35
|
-
&--boxed {
|
36
|
-
height: 4rem;
|
37
|
-
border-radius: $border-radius__base--medium;
|
38
|
-
border: 1px solid var(--color-border-line--medium);
|
39
|
-
background-color: var(--sd-colour-bg__searchbar);
|
40
|
-
box-shadow: inset 0 2px 4px rgba(0,0,0,0.14);
|
41
|
-
transition: box-shadow 0.2s ease-out;
|
42
|
-
&:hover {
|
43
|
-
border-color: rgba(123,123,123,0.6);
|
44
|
-
}
|
45
|
-
&.sd-searchbar--focused,
|
46
|
-
&:focus-within {
|
47
|
-
transition: box-shadow 0.2s ease-out;
|
48
|
-
border-color: var(--sd-colour-interactive--alpha-70);
|
49
|
-
box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
50
67
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
box-shadow: inset 0 0 0 1px rgba(229,28,35,0.1), inset 0 0 0 4px rgba(229,28,35,0.1);
|
68
|
+
&.sd-searchbar--disabled {
|
69
|
+
opacity: 0.5;
|
70
|
+
cursor: not-allowed !important;
|
55
71
|
|
56
|
-
|
57
|
-
&.sd-searchbar--disabled {
|
58
|
-
opacity: 0.5;
|
72
|
+
.sd-searchbar__input {
|
59
73
|
cursor: not-allowed !important;
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
border-color: rgba(123,123,123,0.4);
|
65
|
-
}
|
74
|
+
}
|
75
|
+
|
76
|
+
&:hover {
|
77
|
+
border-color: rgba(123,123,123,0.4);
|
66
78
|
}
|
67
79
|
}
|
68
80
|
}
|
81
|
+
|
69
82
|
.sd-searchbar__input, input[type="text"].sd-searchbar__input, input[type="search"].sd-searchbar__input {
|
70
83
|
flex-grow: 1;
|
71
84
|
flex-shrink: 1;
|
@@ -78,6 +91,7 @@
|
|
78
91
|
box-shadow: none !important;
|
79
92
|
padding-right: 1rem;
|
80
93
|
height: auto;
|
94
|
+
|
81
95
|
&::placeholder {
|
82
96
|
color: $sd-text-light;
|
83
97
|
font-weight: 300;
|
@@ -96,6 +110,7 @@
|
|
96
110
|
display: flex;
|
97
111
|
align-items: center;
|
98
112
|
justify-content: center;
|
113
|
+
|
99
114
|
&::after {
|
100
115
|
content:"\e618";
|
101
116
|
width: 16px;
|
@@ -113,13 +128,14 @@
|
|
113
128
|
}
|
114
129
|
|
115
130
|
}
|
131
|
+
|
116
132
|
.sd-searchbar--boxed {
|
117
133
|
.sd-searchbar__icon {
|
118
134
|
width: 4rem;
|
119
135
|
margin-right: 0;
|
120
136
|
}
|
121
|
-
|
122
137
|
}
|
138
|
+
|
123
139
|
.sd-searchbar__search-btn {
|
124
140
|
height: 2.8rem;
|
125
141
|
width: 2.8rem;
|
@@ -136,16 +152,19 @@
|
|
136
152
|
display: flex;
|
137
153
|
align-items: center;
|
138
154
|
justify-content: center;
|
155
|
+
|
139
156
|
i {
|
140
157
|
transition: color 0.2s ease-out;
|
141
158
|
color: $sd-colour-interactive;
|
142
159
|
}
|
160
|
+
|
143
161
|
&:hover {
|
144
162
|
background-color: var(--sd-colour-interactive--alpha-80);
|
145
163
|
i {
|
146
164
|
color: $white;
|
147
165
|
}
|
148
166
|
}
|
167
|
+
|
149
168
|
&:active {
|
150
169
|
background-color: $sd-colour-interactive;
|
151
170
|
opacity: 1;
|
@@ -154,13 +173,16 @@
|
|
154
173
|
}
|
155
174
|
}
|
156
175
|
}
|
176
|
+
|
157
177
|
.sd-searchbar__search-btn--active {
|
158
178
|
background-color: $sd-colour-interactive;
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
179
|
+
opacity: 1;
|
180
|
+
|
181
|
+
i {
|
182
|
+
color: $white;
|
183
|
+
}
|
163
184
|
}
|
185
|
+
|
164
186
|
[dir="rtl"] {
|
165
187
|
.sd-searchbar__search-btn {
|
166
188
|
i.icon-chevron-right-thin {
|
@@ -168,6 +190,7 @@
|
|
168
190
|
}
|
169
191
|
}
|
170
192
|
}
|
193
|
+
|
171
194
|
.sd-searchbar__cancel {
|
172
195
|
height: 1.6rem;
|
173
196
|
width: 1.6rem;
|
@@ -180,12 +203,15 @@
|
|
180
203
|
opacity: 0.35;
|
181
204
|
transition: opacity 0.2s ease-out;
|
182
205
|
color: currentColor;
|
206
|
+
|
183
207
|
i {
|
184
208
|
color: $sd-text;
|
185
209
|
}
|
210
|
+
|
186
211
|
&:hover {
|
187
212
|
opacity: 0.7;
|
188
213
|
}
|
214
|
+
|
189
215
|
&:active {
|
190
216
|
opacity: 1;
|
191
217
|
}
|
@@ -200,6 +226,7 @@
|
|
200
226
|
letter-spacing: 0.03em;
|
201
227
|
display: block;
|
202
228
|
margin-top: 8px;
|
229
|
+
|
203
230
|
.sd-searchbar__message {
|
204
231
|
color: $red;
|
205
232
|
}
|
@@ -208,6 +235,7 @@
|
|
208
235
|
[data-theme="dark-ui"] {
|
209
236
|
.sd-searchbar--boxed {
|
210
237
|
background-color: hsla(0, 0%, 0%, 0.2);
|
238
|
+
|
211
239
|
&.sd-searchbar--focused {
|
212
240
|
background-color: hsla(0, 0%, 0%, 0.25) !important;
|
213
241
|
}
|