superdesk-ui-framework 3.0.1-beta.14 → 3.0.1-beta.15
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/scripts/toggleBoxNext.js +1 -1
- package/app/styles/_buttons.scss +1 -1
- package/app/styles/_content-divider.scss +5 -5
- package/app/styles/_helpers.scss +24 -1
- package/app/styles/_icon-font.scss +9 -9
- package/app/styles/_modals.scss +3 -0
- package/app/styles/_normalize.scss +4 -0
- package/app/styles/_simple-list.scss +1 -0
- package/app/styles/_table-list.scss +10 -1
- package/app/styles/app.scss +1 -0
- package/app/styles/components/_list-item.scss +23 -16
- package/app/styles/components/_sd-collapse-box.scss +6 -6
- package/app/styles/design-tokens/_new-colors.scss +10 -5
- package/app/styles/form-elements/_input-wrap.scss +138 -0
- package/app/styles/form-elements/_inputs.scss +230 -61
- package/app/styles/interface-elements/_side-panel.scss +1 -1
- package/app/styles/primereact/_pr-dialog.scss +1 -0
- package/app/styles/primereact/_pr-menu.scss +6 -5
- package/app-typescript/components/DurationInput.tsx +11 -17
- package/app-typescript/components/Form/FormLabel.tsx +8 -1
- package/app-typescript/components/Form/InputBase.tsx +12 -2
- package/dist/examples.bundle.css +8 -8
- package/dist/examples.bundle.js +860 -841
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +1 -1
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +2 -1
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +11 -2
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +198 -25
- package/dist/react/ContentDivider.tsx +4 -4
- package/dist/react/Inputs.tsx +1 -7
- package/dist/react/Togglebox.tsx +1 -1
- package/dist/superdesk-ui.bundle.css +457 -175
- package/dist/superdesk-ui.bundle.js +586 -672
- package/dist/vendor.bundle.js +2 -2
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +1 -1
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +2 -1
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +11 -2
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +198 -25
- package/examples/pages/react/ContentDivider.tsx +4 -4
- package/examples/pages/react/Inputs.tsx +1 -7
- package/examples/pages/react/Togglebox.tsx +1 -1
- package/package.json +1 -1
- package/react/components/DurationInput.js +13 -18
- package/react/components/Form/FormLabel.d.ts +4 -1
- package/react/components/Form/FormLabel.js +9 -3
- package/react/components/Form/InputBase.d.ts +0 -1
- package/react/components/Form/InputBase.js +15 -1
- package/.vscode/settings.json +0 -5
- package/app-typescript/dist/components/Alert.d.ts +0 -16
- package/app-typescript/dist/components/Autocomplete.d.ts +0 -48
- package/app-typescript/dist/components/Avatar.d.ts +0 -33
- package/app-typescript/dist/components/Badge.d.ts +0 -13
- package/app-typescript/dist/components/Button.d.ts +0 -23
- package/app-typescript/dist/components/ButtonGroup.d.ts +0 -12
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +0 -11
- package/app-typescript/dist/components/CheckGroup.d.ts +0 -9
- package/app-typescript/dist/components/Checkbox.d.ts +0 -19
- package/app-typescript/dist/components/CheckboxButton.d.ts +0 -19
- package/app-typescript/dist/components/DatePicker.d.ts +0 -37
- package/app-typescript/dist/components/Divider.d.ts +0 -9
- package/app-typescript/dist/components/DonutChart.d.ts +0 -12
- package/app-typescript/dist/components/Dropdown.d.ts +0 -28
- package/app-typescript/dist/components/DropdownFirst.d.ts +0 -42
- package/app-typescript/dist/components/EmptyState.d.ts +0 -11
- package/app-typescript/dist/components/FormLabel.d.ts +0 -9
- package/app-typescript/dist/components/Genie.d.ts +0 -13
- package/app-typescript/dist/components/GridItem.d.ts +0 -69
- package/app-typescript/dist/components/GridList.d.ts +0 -14
- package/app-typescript/dist/components/HeadingText.d.ts +0 -10
- package/app-typescript/dist/components/HelloWorld.d.ts +0 -8
- package/app-typescript/dist/components/Icon.d.ts +0 -12
- package/app-typescript/dist/components/IconButton.d.ts +0 -12
- package/app-typescript/dist/components/IconLabel.d.ts +0 -11
- package/app-typescript/dist/components/Input.d.ts +0 -24
- package/app-typescript/dist/components/Label.d.ts +0 -15
- package/app-typescript/dist/components/LeftMenu.d.ts +0 -26
- package/app-typescript/dist/components/Loader.d.ts +0 -8
- package/app-typescript/dist/components/NavButton.d.ts +0 -15
- package/app-typescript/dist/components/Popover.d.ts +0 -13
- package/app-typescript/dist/components/PropsList.d.ts +0 -15
- package/app-typescript/dist/components/Radio.d.ts +0 -19
- package/app-typescript/dist/components/RadioButton.d.ts +0 -20
- package/app-typescript/dist/components/Select.d.ts +0 -29
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +0 -32
- package/app-typescript/dist/components/SlidingToolbar.d.ts +0 -8
- package/app-typescript/dist/components/StrechBar.d.ts +0 -4
- package/app-typescript/dist/components/SubNav.d.ts +0 -10
- package/app-typescript/dist/components/Switch.d.ts +0 -12
- package/app-typescript/dist/components/TabCustom.d.ts +0 -25
- package/app-typescript/dist/components/TabList.d.ts +0 -22
- package/app-typescript/dist/components/Tag.d.ts +0 -9
- package/app-typescript/dist/components/TagInput.d.ts +0 -7
- package/app-typescript/dist/components/TagInputTest.d.ts +0 -18
- package/app-typescript/dist/components/TimePicker.d.ts +0 -11
- package/app-typescript/dist/components/Tooltip.d.ts +0 -11
- package/app-typescript/dist/components/_Positioner.d.ts +0 -27
- package/app-typescript/dist/index.d.ts +0 -56
- package/yarn-error.log +0 -111
package/app/styles/_buttons.scss
CHANGED
@@ -327,7 +327,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
327
327
|
border-radius: $border-radius__base--full;
|
328
328
|
background-color: transparent;
|
329
329
|
opacity: 0.75;
|
330
|
-
background-color:
|
330
|
+
background-color: hsla(214, 13%, 55%, 0);
|
331
331
|
color: inherit;
|
332
332
|
text-decoration: none;
|
333
333
|
cursor: pointer;
|
@@ -16,7 +16,7 @@
|
|
16
16
|
text-align: center;
|
17
17
|
border-top: 0;
|
18
18
|
border-top-color: var(--sd-colour-line--medium);
|
19
|
-
border-
|
19
|
+
border-style: solid;
|
20
20
|
}
|
21
21
|
|
22
22
|
&.sd-content-divider--horizontal {
|
@@ -38,7 +38,7 @@
|
|
38
38
|
border-top-color: inherit;
|
39
39
|
border-bottom: 0;
|
40
40
|
transform: translateY(50%);
|
41
|
-
border-
|
41
|
+
border-style: inherit;
|
42
42
|
}
|
43
43
|
&.sd-content-divider--text-left {
|
44
44
|
&::before {
|
@@ -66,7 +66,7 @@
|
|
66
66
|
vertical-align: middle;
|
67
67
|
border-top: 0;
|
68
68
|
border-left: 1px var(--sd-colour-line--medium);
|
69
|
-
border-
|
69
|
+
border-style: solid;
|
70
70
|
flex-grow: 0;
|
71
71
|
align-self: stretch;
|
72
72
|
min-height: $sd-base-increment * 2;
|
@@ -88,7 +88,7 @@
|
|
88
88
|
border-left: 1px var(--sd-colour-line--medium);
|
89
89
|
border-bottom: 0;
|
90
90
|
width: 1px;
|
91
|
-
border-
|
91
|
+
border-style: solid;
|
92
92
|
}
|
93
93
|
&.sd-content-divider--dashed {
|
94
94
|
&::before, &::after {
|
@@ -98,7 +98,7 @@
|
|
98
98
|
}
|
99
99
|
&.sd-content-divider--dotted {
|
100
100
|
&::before, &::after {
|
101
|
-
border-
|
101
|
+
border-style: dotted;
|
102
102
|
border-color: var(--sd-colour-line--strong);
|
103
103
|
}
|
104
104
|
}
|
package/app/styles/_helpers.scss
CHANGED
@@ -1024,4 +1024,27 @@ $sd-properties: (padding, margin); // It's generating these properties
|
|
1024
1024
|
}
|
1025
1025
|
.sd-width--full {
|
1026
1026
|
width: var(--width__container--full);
|
1027
|
-
}
|
1027
|
+
}
|
1028
|
+
|
1029
|
+
|
1030
|
+
.sd-gap--x-small {
|
1031
|
+
gap: var(--gap--x-small);
|
1032
|
+
}
|
1033
|
+
.sd-gap--small {
|
1034
|
+
gap: var(--gap--small);
|
1035
|
+
}
|
1036
|
+
.sd-gap--medium {
|
1037
|
+
gap: var(--gap--medium);
|
1038
|
+
}
|
1039
|
+
.sd-gap--large {
|
1040
|
+
gap: var(--gap--large);
|
1041
|
+
}
|
1042
|
+
.sd-gap--x-large {
|
1043
|
+
gap: var(--gap--x-large);
|
1044
|
+
}
|
1045
|
+
.sd-gap--xx-large {
|
1046
|
+
gap: var(--gap--xx-large);
|
1047
|
+
}
|
1048
|
+
.sd-gap--auto {
|
1049
|
+
gap: var(--gap--auto);
|
1050
|
+
}
|
@@ -46,7 +46,7 @@ $icon-base-size: 16px;
|
|
46
46
|
[class^="icon-"],
|
47
47
|
[class*=" icon-"] {
|
48
48
|
@include icon-base;
|
49
|
-
color:
|
49
|
+
color: var(--color-icon-default);
|
50
50
|
/* Better Font Rendering =========== */
|
51
51
|
-webkit-font-smoothing: antialiased;
|
52
52
|
-moz-osx-font-smoothing: grayscale;
|
@@ -362,11 +362,11 @@ $sd-icon-font: (
|
|
362
362
|
box-sizing: content-box;
|
363
363
|
line-height: 100%;
|
364
364
|
color: $purple;
|
365
|
-
|
366
|
-
|
365
|
+
inset-inline-end: -0.4rem;
|
366
|
+
inset-block-end: -0.6rem;
|
367
367
|
height: 1em;
|
368
368
|
width: 1em;
|
369
|
-
background-color: var(--sd-item__main-Bg);
|
369
|
+
background-color: var(--sd-item__main-Bg) !important;
|
370
370
|
border-radius: $border-radius__base--full;
|
371
371
|
padding: 1px;
|
372
372
|
z-index: 1;
|
@@ -384,8 +384,8 @@ $sd-icon-font: (
|
|
384
384
|
}
|
385
385
|
.icn-mix__sub-icn {
|
386
386
|
font-size: 1.6rem;
|
387
|
-
|
388
|
-
|
387
|
+
inset-inline-end: -0.6rem;
|
388
|
+
inset-block-end: -0.3rem;
|
389
389
|
}
|
390
390
|
}
|
391
391
|
}
|
@@ -411,16 +411,16 @@ $sd-icon-font: (
|
|
411
411
|
|
412
412
|
.subnav {
|
413
413
|
.icn-mix__sub-icn {
|
414
|
-
background-color: $subnav-background;
|
414
|
+
background-color: $subnav-background !important;
|
415
415
|
}
|
416
416
|
&--darker {
|
417
417
|
.icn-mix__sub-icn {
|
418
|
-
background-color: $subnav-background-darker;
|
418
|
+
background-color: $subnav-background-darker !important;
|
419
419
|
}
|
420
420
|
}
|
421
421
|
&--dark-blue-grey {
|
422
422
|
.icn-mix__sub-icn {
|
423
|
-
background-color: $subnav-background-dark-blue-grey;
|
423
|
+
background-color: $subnav-background-dark-blue-grey !important;
|
424
424
|
color: scale-color($purple, $lightness: 50%);
|
425
425
|
}
|
426
426
|
.icn-mix__icn {
|
package/app/styles/_modals.scss
CHANGED
@@ -92,6 +92,9 @@ $modal-sizes: (
|
|
92
92
|
text-align: end; // right align buttons
|
93
93
|
border-top: 1px solid $modal-line-color;
|
94
94
|
min-height: $modal-footer-height;
|
95
|
+
display: flex;
|
96
|
+
align-items: center;
|
97
|
+
justify-content: flex-end;
|
95
98
|
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
96
99
|
}
|
97
100
|
|
@@ -28,7 +28,7 @@ $table-list-palette: $sd-basic-palette;
|
|
28
28
|
grid-template-columns: [contentCol] 1fr [actionsVisible] auto [actionsHidden] auto;
|
29
29
|
position: relative;
|
30
30
|
flex-direction: row;
|
31
|
-
padding:
|
31
|
+
padding: $sd-base-increment;
|
32
32
|
min-height: 4.2rem;
|
33
33
|
border-radius: var(--b-radius--medium);
|
34
34
|
background-color: var(--sd-item__main-Bg);
|
@@ -156,6 +156,15 @@ $table-list-palette: $sd-basic-palette;
|
|
156
156
|
align-items: center;
|
157
157
|
gap:8px;
|
158
158
|
}
|
159
|
+
.table-list__item-border {
|
160
|
+
width: 6px;
|
161
|
+
background-color: var(--sd-colour-panel-bg--100);
|
162
|
+
z-index: 2;
|
163
|
+
position: absolute;
|
164
|
+
inset-block: 3px;
|
165
|
+
inset-inline-start: 3px;
|
166
|
+
border-radius: 2px;
|
167
|
+
}
|
159
168
|
.table-list__item-content-block {
|
160
169
|
display: flex;
|
161
170
|
align-items: center;
|
package/app/styles/app.scss
CHANGED
@@ -16,6 +16,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
16
16
|
flex-direction: row;
|
17
17
|
background-color: $sd-ListItem-background;
|
18
18
|
transition: background-color 0.2s linear;
|
19
|
+
flex-shrink: 0;
|
19
20
|
&:hover {
|
20
21
|
background-color: $sd-ListItem-background-hover;
|
21
22
|
cursor: pointer;
|
@@ -304,12 +305,6 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
304
305
|
flex-grow: 1;
|
305
306
|
}
|
306
307
|
|
307
|
-
// Overrides for inner elements
|
308
|
-
// .sd-list-item {
|
309
|
-
// .label {
|
310
|
-
// margin-right: 0.6rem;
|
311
|
-
// }
|
312
|
-
// }
|
313
308
|
|
314
309
|
.sd-list-item {
|
315
310
|
.badge {
|
@@ -320,14 +315,15 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
320
315
|
.sd-list-item {
|
321
316
|
[class^="icon-"],
|
322
317
|
[class*=" icon-"] {
|
323
|
-
opacity: 0.
|
318
|
+
opacity: 0.75;
|
324
319
|
vertical-align: middle;
|
320
|
+
color: var(--color-icon-default);
|
325
321
|
}
|
326
322
|
time {
|
327
323
|
[class^="icon-"],
|
328
324
|
[class*=" icon-"] {
|
329
325
|
vertical-align: top;
|
330
|
-
margin-
|
326
|
+
margin-inline-end: 0.2rem;
|
331
327
|
}
|
332
328
|
}
|
333
329
|
}
|
@@ -375,17 +371,28 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
375
371
|
}
|
376
372
|
.sd-list-item__inline-icon,
|
377
373
|
.sd-list-item__inline-text {
|
378
|
-
margin-
|
374
|
+
margin-inline-end: 0.6rem;
|
375
|
+
}
|
376
|
+
|
377
|
+
.sd-list-item__icon-group {
|
378
|
+
display: flex;
|
379
|
+
align-items: flex-start;
|
380
|
+
gap: var(--gap--small);
|
381
|
+
min-height: 2rem;
|
382
|
+
margin-inline-end: 4px;
|
383
|
+
.sd-list-item__inline-icon {
|
384
|
+
margin: 0;
|
385
|
+
}
|
379
386
|
}
|
380
387
|
.sd-list-item__text-strong {
|
381
388
|
font-weight: 500;
|
382
389
|
color: $sd-text;
|
383
390
|
}
|
384
391
|
.sd-list-item__element-rm-10 {
|
385
|
-
margin-
|
392
|
+
margin-inline-end: 1rem;
|
386
393
|
}
|
387
394
|
.sd-list-item__element-lm-10 {
|
388
|
-
margin-
|
395
|
+
margin-inline-start: 1rem;
|
389
396
|
}
|
390
397
|
.sd-list-item__location {
|
391
398
|
padding-left: 1.6rem;
|
@@ -417,7 +424,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
417
424
|
width: 3rem;
|
418
425
|
background-color: $avatarBG;
|
419
426
|
border-radius: $border-radius__base--full;
|
420
|
-
margin-
|
427
|
+
margin-inline-end: 0.6rem;
|
421
428
|
color: $white;
|
422
429
|
text-align: center;
|
423
430
|
text-transform: uppercase;
|
@@ -446,8 +453,8 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
446
453
|
border: 1px dashed rgba(123, 123, 123, 0.6);
|
447
454
|
}
|
448
455
|
&--on-right {
|
449
|
-
margin-
|
450
|
-
margin-
|
456
|
+
margin-inline-end: 0;
|
457
|
+
margin-inline-start: 0.6rem;
|
451
458
|
}
|
452
459
|
}
|
453
460
|
|
@@ -489,7 +496,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
489
496
|
z-index: 0;
|
490
497
|
display: flex;
|
491
498
|
flex-direction: column;
|
492
|
-
margin-
|
499
|
+
margin-inline-start: 1rem;
|
493
500
|
.sd-list-item {
|
494
501
|
margin-top: 0;
|
495
502
|
border-top: 1px solid var(--sd-colour-line--x-light);
|
@@ -582,7 +589,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
582
589
|
}
|
583
590
|
}
|
584
591
|
.sd-list-header__number {
|
585
|
-
margin-
|
592
|
+
margin-inline-start: 1rem;
|
586
593
|
}
|
587
594
|
.sd-list-header__stretch-bar {
|
588
595
|
flex-grow: 1;
|
@@ -3,9 +3,10 @@
|
|
3
3
|
.sd-collapse-box {
|
4
4
|
display: flex;
|
5
5
|
flex-direction: column;
|
6
|
-
border-radius: $border-radius__base--
|
6
|
+
border-radius: $border-radius__base--small;
|
7
7
|
position: relative;
|
8
8
|
margin-bottom: 1rem;
|
9
|
+
border: 1px solid var(--sd-colour--shadow-line--m);
|
9
10
|
.sd-collapse-box__header {
|
10
11
|
display: block;
|
11
12
|
flex-grow: 0;
|
@@ -18,7 +19,7 @@
|
|
18
19
|
right: 1rem;
|
19
20
|
top: 0.8rem;
|
20
21
|
z-index: 2;
|
21
|
-
color:
|
22
|
+
color: var(--color-icon-default);
|
22
23
|
&--flex {
|
23
24
|
position: relative;
|
24
25
|
right: 0;
|
@@ -29,17 +30,17 @@
|
|
29
30
|
}
|
30
31
|
.sd-collapse-box__collapse-btn {
|
31
32
|
flex-grow: 1;
|
32
|
-
color:
|
33
|
+
color: var(--color-icon-default);
|
33
34
|
&:hover {
|
34
35
|
.icn-btn {
|
35
|
-
background-color:
|
36
|
+
background-color: hsla(214, 13%, 60%, 0.25);
|
36
37
|
color: $white;
|
37
38
|
opacity: 1;
|
38
39
|
}
|
39
40
|
}
|
40
41
|
&:active {
|
41
42
|
.icn-btn {
|
42
|
-
background-color:
|
43
|
+
background-color: hsla(214, 13%, 70%, 0.25);
|
43
44
|
color: $sd-colour-interactive;
|
44
45
|
opacity: 1;
|
45
46
|
}
|
@@ -70,7 +71,6 @@
|
|
70
71
|
margin: 0 -2rem 3rem -2rem;
|
71
72
|
&--top {
|
72
73
|
margin-top: 2.2rem;
|
73
|
-
background-color: rgba(0,0,0,0.04);
|
74
74
|
}
|
75
75
|
}
|
76
76
|
|
@@ -271,6 +271,7 @@
|
|
271
271
|
--sd-colour-sidebar-menu--00: hsla(var(--sd-colour-cool-grey-l--85), 1);
|
272
272
|
--sd-colour-sidebar-menu--10: hsla(var(--sd-colour-cool-grey-l--80), 1);
|
273
273
|
--sd-colour-sidebar-menu--20: hsla(var(--sd-colour-cool-grey-l--75), 1);
|
274
|
+
--sd-colour-quickbar-menu: hsla(var(--sd-colour-cool-grey-l--98), 1);
|
274
275
|
|
275
276
|
--sd-colour-background__left-nav: var(--sd-colour-bg--99);
|
276
277
|
|
@@ -310,6 +311,8 @@
|
|
310
311
|
--color-modal-Bg: var(--sd-colour-bg--99);
|
311
312
|
|
312
313
|
--sd-colour--shadow-line: hsla(var(--sd-colour-cool-grey-l--70), 0);
|
314
|
+
--sd-colour--shadow-line--m: hsla(var(--sd-colour-cool-grey-l--80), 0);
|
315
|
+
|
313
316
|
--sd-shadow__subnav: 0 1px 0px var(--sd-colour--shadow-line), 0 1px 3px hsla(0, 0%, 0%, 0.07), 0 1px 0 0 hsla(0, 0%, 0%, 0.1);
|
314
317
|
|
315
318
|
--sd-shadow__item--selected: 0 0 0 2px var(--sd-colour-interactive), 0 0 0 5px var(--sd-colour-interactive--alpha-30);
|
@@ -413,6 +416,7 @@
|
|
413
416
|
--sd-colour-btn-txt-neutral: hsla(var(--sd-colour-neutral-l--80), 1);
|
414
417
|
|
415
418
|
--sd-colour--shadow-line: hsla(var(--sd-colour-cool-grey-l--75), 0.2);
|
419
|
+
--sd-colour--shadow-line--m: hsla(var(--sd-colour-cool-grey-l--80), 0.2);
|
416
420
|
|
417
421
|
--sd-colour-panel-bg--000: hsla(var(--sd-colour-cool-grey-l--10), 1);
|
418
422
|
--sd-colour-panel-bg--050: hsla(var(--sd-colour-cool-grey-l--05), 1);
|
@@ -423,6 +427,7 @@
|
|
423
427
|
--sd-colour-sidebar-menu--00: hsla(var(--sd-colour-cool-grey-l--25), 1);
|
424
428
|
--sd-colour-sidebar-menu--10: hsla(var(--sd-colour-cool-grey-l--30), 1);
|
425
429
|
--sd-colour-sidebar-menu--20: hsla(var(--sd-colour-cool-grey-l--35), 1);
|
430
|
+
--sd-colour-quickbar-menu: hsla(var(--sd-colour-cool-grey-l--20), 1);
|
426
431
|
|
427
432
|
--sd-colour-background__left-nav: var(--sd-colour-bg--04);
|
428
433
|
|
@@ -560,8 +565,8 @@
|
|
560
565
|
|
561
566
|
--color-text: hsla(214, 13%, 20%, 1);
|
562
567
|
--color-text--inverse: hsla(0, 0%, 98%, 1); // equals #333;
|
563
|
-
--color-text-light: hsla(214, 13%,
|
564
|
-
--color-text-lighter: hsla(214, 13%,
|
568
|
+
--color-text-light: hsla(214, 13%, 40%, 1);
|
569
|
+
--color-text-lighter: hsla(214, 13%, 60%, 1);
|
565
570
|
--color-icon-default: hsla(214, 13%, 30%, 1);
|
566
571
|
--sd-slugline-color: hsla(197, 100%, 15%, 1) !important;
|
567
572
|
--sd-time-schedule-color: hsla(268, 100%, 25%, 1);
|
@@ -634,9 +639,9 @@
|
|
634
639
|
|
635
640
|
//color: hsla(0, 0%, 100%, 1);
|
636
641
|
--color-text: hsla(0, 0%, 96%, 1);
|
637
|
-
--color-text-light: hsla(214, 13%,
|
638
|
-
--color-text-lighter: hsla(214, 13%,
|
639
|
-
--color-icon-default: hsla(214, 13%,
|
642
|
+
--color-text-light: hsla(214, 13%, 76%, 1);
|
643
|
+
--color-text-lighter: hsla(214, 13%, 56%, 1);
|
644
|
+
--color-icon-default: hsla(214, 13%, 64%, 1);
|
640
645
|
--sd-slugline-color: hsla(197, 60%, 75%, 1) !important;
|
641
646
|
--sd-time-schedule-color: hsla(268, 60%, 65%, 1);
|
642
647
|
--sd-navy-color: hsla(240, 90%, 75%, 1);
|
@@ -0,0 +1,138 @@
|
|
1
|
+
|
2
|
+
.input-wrap {
|
3
|
+
padding-top: 0;
|
4
|
+
margin: 0;
|
5
|
+
display: grid;
|
6
|
+
grid-template-columns: auto 1fr auto;
|
7
|
+
grid-template-rows: auto auto auto;
|
8
|
+
grid-gap: 0;
|
9
|
+
position: relative;
|
10
|
+
align-self: stretch;
|
11
|
+
flex-grow: 1;
|
12
|
+
width: 100%;
|
13
|
+
row-gap: $sd-base-increment / 2;
|
14
|
+
|
15
|
+
.input-wrap__input-container,
|
16
|
+
.sd-input__input {
|
17
|
+
grid-row: 2/3;
|
18
|
+
grid-column: 2/4;
|
19
|
+
}
|
20
|
+
|
21
|
+
.input-wrap__message-box {
|
22
|
+
grid-row: 3/4;
|
23
|
+
grid-column: 2/3;
|
24
|
+
}
|
25
|
+
|
26
|
+
.input-wrap__icon-right {
|
27
|
+
grid-row: 2/3;
|
28
|
+
grid-column: 3/4;
|
29
|
+
z-index: 1;
|
30
|
+
}
|
31
|
+
.sd-input__char-count {
|
32
|
+
grid-row: 3/4;
|
33
|
+
grid-column: 3/4;
|
34
|
+
z-index: 1;
|
35
|
+
font-size: 1.1rem;
|
36
|
+
font-weight: 400;
|
37
|
+
font-style: italic;
|
38
|
+
}
|
39
|
+
|
40
|
+
.sd-input__label,
|
41
|
+
.form-label {
|
42
|
+
grid-row: 1/2;
|
43
|
+
grid-column: 2/3;
|
44
|
+
margin-bottom: 0 !important;
|
45
|
+
align-items: center;
|
46
|
+
justify-content: flex-start;
|
47
|
+
}
|
48
|
+
.form-label--boxed {
|
49
|
+
margin-block: 2px !important;
|
50
|
+
}
|
51
|
+
.icn-btn {
|
52
|
+
grid-row: 1/2;
|
53
|
+
grid-column: 3/4;
|
54
|
+
}
|
55
|
+
|
56
|
+
&--inline-label {
|
57
|
+
grid-template-columns: auto 1fr auto;
|
58
|
+
grid-template-rows: auto auto auto;
|
59
|
+
.sd-input__label,
|
60
|
+
.form-label {
|
61
|
+
grid-row: 2/3;
|
62
|
+
grid-column: 1/2;
|
63
|
+
padding-inline-end: 1rem;
|
64
|
+
padding-inline-start: 0;
|
65
|
+
padding-block-start: 0.4rem;
|
66
|
+
padding-block-end: 0;
|
67
|
+
position: relative;
|
68
|
+
|
69
|
+
max-width: 260px;
|
70
|
+
min-width: 100px;
|
71
|
+
text-align: end;
|
72
|
+
position: relative;
|
73
|
+
align-self: center;
|
74
|
+
line-height: 1.2;
|
75
|
+
&::after {
|
76
|
+
position: absolute;
|
77
|
+
z-index: 2;
|
78
|
+
inset-block-start: -2px;
|
79
|
+
inset-inline-end: 4px;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
&--required {
|
85
|
+
.sd-input__label::after {
|
86
|
+
color:$red;
|
87
|
+
content: "*";
|
88
|
+
vertical-align: top;
|
89
|
+
font-size: 1.2rem;
|
90
|
+
padding-left: 0.3rem;
|
91
|
+
}
|
92
|
+
.sd-input__label.sd-input__label--boxed::after {
|
93
|
+
position: absolute;
|
94
|
+
inset-block-start: -4px;
|
95
|
+
inset-inline-end: -10px;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
&--disabled {
|
100
|
+
.sd-input__label,
|
101
|
+
.sd-input__message-box,
|
102
|
+
.sd-input__char-count {
|
103
|
+
opacity: 0.5 !important;
|
104
|
+
pointer-events: none !important;
|
105
|
+
}
|
106
|
+
.sd-input__hint,
|
107
|
+
.sd-input__message,
|
108
|
+
.sd-input__char-count {
|
109
|
+
pointer-events: none;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
&--no-label {
|
114
|
+
grid-template-rows: auto auto auto;
|
115
|
+
}
|
116
|
+
|
117
|
+
&--medium {
|
118
|
+
&.sd-input--boxed-style {
|
119
|
+
.sd-input__input,
|
120
|
+
.sd-input__select {
|
121
|
+
border-radius: var(--b-radius--medium);
|
122
|
+
&:focus {
|
123
|
+
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-20);
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
&--boxed {
|
129
|
+
//grid-template-columns: auto 1fr auto;
|
130
|
+
//grid-template-rows: auto auto auto;
|
131
|
+
// grid-gap: 0;
|
132
|
+
// position: relative;
|
133
|
+
// align-self: stretch;
|
134
|
+
// flex-grow: 1;
|
135
|
+
// width: 100%;
|
136
|
+
|
137
|
+
}
|
138
|
+
}
|