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,8 +1,4 @@
|
|
1
|
-
// CHECKBOX & RADIO BUTTONS
|
2
|
-
// --------------
|
3
|
-
|
4
|
-
// Custom checkox & Radio buttons
|
5
|
-
|
1
|
+
// CHECKBOX & RADIO BUTTONS
|
6
2
|
|
7
3
|
$checkBoxBorderColor: var(--color-checkbox-border);
|
8
4
|
$checkBoxBorderColorHover: var(--color-checkbox-border-hover);
|
@@ -11,7 +7,6 @@ $checkButtonBorderColor: var(--sd-colour-line--light);
|
|
11
7
|
$checkButtonBorderColorHover: var(--sd-colour-line--strong);
|
12
8
|
$checkButtonBorderRadius: $border-radius__base--small;
|
13
9
|
|
14
|
-
|
15
10
|
@mixin check-base {
|
16
11
|
width: 1.6rem;
|
17
12
|
height: 1.6rem;
|
@@ -27,7 +22,10 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
27
22
|
.sd-checkbox {
|
28
23
|
@include check-base;
|
29
24
|
border-radius: $border-radius__base--x-small;
|
25
|
+
|
30
26
|
&::after {
|
27
|
+
@include opacity(0);
|
28
|
+
@include transition(all, 0.2s, ease-in);
|
31
29
|
font-family: 'sd_icons';
|
32
30
|
content:'\e61d';
|
33
31
|
font-weight: 400;
|
@@ -41,128 +39,146 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
41
39
|
position: absolute;
|
42
40
|
top: 0;
|
43
41
|
left: 0;
|
44
|
-
@include opacity(0);
|
45
|
-
@include transition(all, 0.2s, ease-in);
|
46
42
|
transform: scale(0.25, 0.25);
|
47
43
|
}
|
44
|
+
|
48
45
|
&:hover {
|
49
46
|
border-color: $checkBoxBorderColorHover;
|
50
47
|
cursor: pointer;
|
51
48
|
}
|
49
|
+
|
52
50
|
&.checked, &[checked="checked"] {
|
53
51
|
border-color: $sd-colour-interactive;
|
54
52
|
background: $sd-colour-interactive;
|
53
|
+
|
55
54
|
&::after {
|
56
55
|
opacity: 1;
|
57
56
|
transform: scale(1, 1);
|
58
57
|
}
|
58
|
+
|
59
59
|
&:hover {
|
60
60
|
border-color: var(--sd-colour-interactive--hover);
|
61
61
|
background-color: var(--sd-colour-interactive--hover);
|
62
62
|
}
|
63
63
|
}
|
64
|
-
|
65
|
-
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
// Modifier for .sd-checkbox to create a radio button
|
68
|
+
.sd-checkbox--radio {
|
69
|
+
border-radius: $border-radius__base--full;
|
70
|
+
|
71
|
+
&::after {
|
72
|
+
height: 0.8rem;
|
73
|
+
width: 0.8rem;
|
66
74
|
border-radius: $border-radius__base--full;
|
75
|
+
content:' ';
|
76
|
+
position: absolute;
|
77
|
+
background-color: $sd-colour-interactive;
|
78
|
+
top: 0.2rem;
|
79
|
+
inset-inline-start: 0.2rem;
|
80
|
+
opacity: 0;
|
81
|
+
transition: all 0.1s ease-in;
|
82
|
+
transform: scale(0.25, 0.25);
|
83
|
+
}
|
84
|
+
|
85
|
+
&.checked, &[checked="checked"] {
|
86
|
+
border-color: $sd-colour-interactive;
|
87
|
+
background: transparent;
|
88
|
+
|
67
89
|
&::after {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
background-color: $sd-colour-interactive;
|
74
|
-
top: 0.2rem;
|
75
|
-
inset-inline-start: 0.2rem;
|
76
|
-
opacity: 0;
|
77
|
-
transition: all 0.1s ease-in;
|
78
|
-
transform: scale(0.25, 0.25);
|
79
|
-
}
|
80
|
-
&.checked, &[checked="checked"] {
|
81
|
-
border-color: $sd-colour-interactive;
|
90
|
+
opacity: 1;
|
91
|
+
transform: scale(1, 1);
|
92
|
+
}
|
93
|
+
|
94
|
+
&:hover {
|
82
95
|
background: transparent;
|
83
|
-
&::after {
|
84
|
-
opacity: 1;
|
85
|
-
transform: scale(1, 1);
|
86
|
-
}
|
87
|
-
&:hover {
|
88
|
-
background: transparent;
|
89
|
-
}
|
90
96
|
}
|
91
97
|
}
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
98
|
+
}
|
99
|
+
|
100
|
+
// This modifier creates button styled checkboxes or radio buttons
|
101
|
+
.sd-checkbox--button-style {
|
102
|
+
@include transition(all, 0.2s, ease-out);
|
103
|
+
@include text-overflow;
|
104
|
+
width: auto;
|
105
|
+
padding: 0 1.2rem;
|
106
|
+
line-height: 1;
|
107
|
+
color: $checkButtonTextColor;
|
108
|
+
border: 1px solid $checkButtonBorderColor;
|
109
|
+
border-radius: $checkButtonBorderRadius;
|
110
|
+
display: inline-flex;
|
111
|
+
align-items: center;
|
112
|
+
text-align: center;
|
113
|
+
height: $sd-base-increment * 4;
|
114
|
+
|
115
|
+
label {
|
105
116
|
@include text-overflow;
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
font-family: $baseFontFamily;
|
114
|
-
@include text-overflow;
|
115
|
-
[class^="icon-"], [class*=" icon-"] {
|
116
|
-
vertical-align: middle;
|
117
|
-
}
|
117
|
+
margin:0;
|
118
|
+
display: inline;
|
119
|
+
cursor: pointer;
|
120
|
+
transition: none;
|
121
|
+
text-align: center;
|
122
|
+
line-height: 16px;
|
123
|
+
font-family: $baseFontFamily;
|
118
124
|
|
119
|
-
}
|
120
125
|
[class^="icon-"], [class*=" icon-"] {
|
121
|
-
|
122
|
-
}
|
123
|
-
i + label {
|
124
|
-
margin-inline-start: 8px;
|
126
|
+
vertical-align: middle;
|
125
127
|
}
|
128
|
+
}
|
129
|
+
|
130
|
+
[class^="icon-"], [class*=" icon-"] {
|
131
|
+
color: currentColor;
|
132
|
+
}
|
133
|
+
|
134
|
+
i + label {
|
135
|
+
margin-inline-start: 8px;
|
136
|
+
}
|
137
|
+
|
138
|
+
&::after {
|
139
|
+
content:'';
|
140
|
+
display: none;
|
141
|
+
}
|
142
|
+
|
143
|
+
&:hover {
|
144
|
+
color: var(--color-text);
|
145
|
+
border-color: $checkButtonBorderColorHover;
|
146
|
+
box-shadow: 0 1px 4px 0 hsla(0, 0%, 0%, 0.2);
|
147
|
+
}
|
148
|
+
|
149
|
+
&.checked, &[checked="checked"] {
|
150
|
+
background-color: var(--sd-colour-interactive--active);
|
151
|
+
border-color: var(--sd-colour-interactive--active);
|
152
|
+
border-top-color: var(--sd-colour-interactive--darken-20);
|
153
|
+
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
154
|
+
color: $white;
|
126
155
|
|
127
|
-
&::after {
|
128
|
-
content:'';
|
129
|
-
display: none;
|
130
|
-
}
|
131
156
|
&:hover {
|
132
|
-
color:
|
133
|
-
border-color:
|
134
|
-
box-shadow: 0 1px 4px 0 hsla(0, 0%, 0%, 0.2);
|
135
|
-
}
|
136
|
-
&.checked, &[checked="checked"] {
|
157
|
+
color: $white;
|
158
|
+
border-color: var(--sd-colour-interactive--hover);
|
137
159
|
background-color: var(--sd-colour-interactive--active);
|
138
|
-
border-color: var(--sd-colour-interactive--active);
|
139
|
-
border-top-color: var(--sd-colour-interactive--darken-20);
|
140
160
|
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
141
|
-
color: $white;
|
142
|
-
&:hover {
|
143
|
-
color: $white;
|
144
|
-
border-color: var(--sd-colour-interactive--hover);
|
145
|
-
background-color: var(--sd-colour-interactive--active);
|
146
|
-
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
147
|
-
}
|
148
|
-
label {
|
149
|
-
color: $white;
|
150
|
-
}
|
151
161
|
}
|
152
|
-
|
153
|
-
|
154
|
-
|
162
|
+
|
163
|
+
label {
|
164
|
+
color: $white;
|
155
165
|
}
|
156
166
|
}
|
157
|
-
|
158
|
-
|
167
|
+
|
168
|
+
.sd-label--disabled {
|
169
|
+
opacity: 1 !important;
|
159
170
|
cursor: not-allowed !important;
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
.sd-checkbox--disabled, .sd-checkbox[disabled="disabled"] {
|
175
|
+
opacity: 0.40;
|
176
|
+
cursor: not-allowed !important;
|
165
177
|
|
178
|
+
&:hover {
|
179
|
+
color: $checkButtonTextColor;
|
180
|
+
border-color: $checkButtonBorderColor;
|
181
|
+
box-shadow: none;
|
166
182
|
}
|
167
183
|
}
|
168
184
|
|
@@ -171,21 +187,22 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
171
187
|
vertical-align: middle;
|
172
188
|
}
|
173
189
|
|
174
|
-
|
175
|
-
|
176
190
|
.sd-check__wrapper {
|
177
191
|
display: inline-block;
|
192
|
+
|
178
193
|
.sd-checkbox + label {
|
179
194
|
display: inline-block;
|
180
195
|
vertical-align: middle;
|
181
196
|
margin: 0;
|
182
197
|
margin-inline-start: 0.6rem;
|
198
|
+
|
183
199
|
i {
|
184
200
|
margin: 0;
|
185
201
|
margin-inline-end: 0.4rem;
|
186
202
|
margin-inline-start: 0.8rem;
|
187
203
|
}
|
188
204
|
}
|
205
|
+
|
189
206
|
.sd-label--disabled {
|
190
207
|
opacity: 0.40;
|
191
208
|
}
|
@@ -195,23 +212,28 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
195
212
|
padding: 0;
|
196
213
|
display: flex;
|
197
214
|
gap: $sd-base-increment;
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
215
|
+
}
|
216
|
+
|
217
|
+
.sd-check__group--grid {
|
218
|
+
display: grid;
|
219
|
+
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
|
220
|
+
grid-gap: $sd-base-increment;
|
221
|
+
|
222
|
+
.sd-check__wrapper {
|
223
|
+
display: block;
|
224
|
+
|
225
|
+
.sd-checkbox.sd-checkbox--button-style {
|
226
|
+
display: flex;
|
227
|
+
align-items: center;
|
228
|
+
justify-content: center;
|
212
229
|
}
|
213
230
|
}
|
231
|
+
|
232
|
+
.sd-check-button__text-label-inner {
|
233
|
+
white-space: normal;
|
234
|
+
}
|
214
235
|
}
|
236
|
+
|
215
237
|
.sd-check-button__group--grid {
|
216
238
|
.sd-check-button--native {
|
217
239
|
.sd-check-button__text-label-inner {
|
@@ -229,6 +251,7 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
229
251
|
.sd-check-new {
|
230
252
|
@include check-base;
|
231
253
|
border-radius: $border-radius__base--x-small;
|
254
|
+
|
232
255
|
&::after {
|
233
256
|
font-family: 'sd_icons';
|
234
257
|
content:'\e61d';
|
@@ -247,40 +270,48 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
247
270
|
transition: all 0.2s ease-in;
|
248
271
|
transform: scale(0.25, 0.25);
|
249
272
|
}
|
273
|
+
|
250
274
|
&:hover {
|
251
275
|
border-color: $checkBoxBorderColorHover;
|
252
276
|
cursor: pointer;
|
253
277
|
}
|
278
|
+
|
254
279
|
&.checked, &[checked="checked"] {
|
255
280
|
border-color: $sd-colour-interactive;
|
256
281
|
background: $sd-colour-interactive;
|
282
|
+
|
257
283
|
&::after {
|
258
284
|
opacity: 1;
|
259
285
|
transform: scale(1, 1);
|
260
286
|
}
|
287
|
+
|
261
288
|
&:hover {
|
262
289
|
border-color: var(--sd-colour-interactive--hover);
|
263
290
|
background-color: var(--sd-colour-interactive--hover);
|
264
291
|
}
|
265
292
|
}
|
266
|
-
|
267
|
-
opacity: 0.40;
|
268
|
-
cursor: not-allowed !important;
|
269
|
-
&:hover {
|
270
|
-
color: $checkButtonTextColor;
|
271
|
-
border-color: $checkButtonBorderColor;
|
272
|
-
box-shadow: none;
|
273
|
-
}
|
293
|
+
}
|
274
294
|
|
295
|
+
.sd-check-new--disabled, .sd-check-new[disabled="disabled"] {
|
296
|
+
opacity: 0.40;
|
297
|
+
cursor: not-allowed !important;
|
298
|
+
|
299
|
+
&:hover {
|
300
|
+
color: $checkButtonTextColor;
|
301
|
+
border-color: $checkButtonBorderColor;
|
302
|
+
box-shadow: none;
|
275
303
|
}
|
276
304
|
}
|
305
|
+
|
277
306
|
.sd-radio-new {
|
278
307
|
@include check-base;
|
279
308
|
border-radius: $border-radius__base--full;
|
309
|
+
|
280
310
|
&:hover {
|
281
311
|
border-color: $checkBoxBorderColorHover;
|
282
312
|
cursor: pointer;
|
283
313
|
}
|
314
|
+
|
284
315
|
&::after {
|
285
316
|
height: 0.8rem;
|
286
317
|
width: 0.8rem;
|
@@ -294,27 +325,31 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
294
325
|
transition: all 0.1s ease-in;
|
295
326
|
transform: scale(0.25, 0.25);
|
296
327
|
}
|
328
|
+
|
297
329
|
&.checked, &[checked="checked"] {
|
298
330
|
border-color: $sd-colour-interactive;
|
299
331
|
background: transparent;
|
332
|
+
|
300
333
|
&::after {
|
301
334
|
opacity: 1;
|
302
335
|
transform: scale(1, 1);
|
303
336
|
}
|
337
|
+
|
304
338
|
&:hover {
|
305
339
|
background: transparent;
|
306
340
|
cursor: default;
|
307
341
|
}
|
308
342
|
}
|
309
|
-
|
310
|
-
opacity: 0.40;
|
311
|
-
cursor: not-allowed !important;
|
312
|
-
&:hover {
|
313
|
-
color: $checkButtonTextColor;
|
314
|
-
border-color: $checkButtonBorderColor;
|
315
|
-
box-shadow: none;
|
316
|
-
}
|
343
|
+
}
|
317
344
|
|
345
|
+
.sd-radio-new--disabled, .sd-radio-new[disabled="disabled"] {
|
346
|
+
opacity: 0.40;
|
347
|
+
cursor: not-allowed !important;
|
348
|
+
|
349
|
+
&:hover {
|
350
|
+
color: $checkButtonTextColor;
|
351
|
+
border-color: $checkButtonBorderColor;
|
352
|
+
box-shadow: none;
|
318
353
|
}
|
319
354
|
}
|
320
355
|
|
@@ -330,6 +365,7 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
330
365
|
height: $sd-base-increment * 4;
|
331
366
|
color: var(--color-text);
|
332
367
|
cursor: pointer;
|
368
|
+
|
333
369
|
.sd-check-button__text-label {
|
334
370
|
display: flex;
|
335
371
|
margin:0;
|
@@ -341,12 +377,15 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
341
377
|
opacity: 0.8;
|
342
378
|
transition: opacity 0.2s ease-in-out;
|
343
379
|
}
|
380
|
+
|
344
381
|
[class^="icon-"], [class*=" icon-"] {
|
345
382
|
color: currentColor;
|
346
383
|
}
|
384
|
+
|
347
385
|
i + .sd-check-button__text-label {
|
348
386
|
margin-inline-start: $sd-base-increment;
|
349
387
|
}
|
388
|
+
|
350
389
|
&:hover {
|
351
390
|
.sd-check-button__text-label {
|
352
391
|
opacity: 1;
|
@@ -355,15 +394,18 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
355
394
|
color: var(--color-text);
|
356
395
|
}
|
357
396
|
}
|
397
|
+
|
358
398
|
&.checked, &[checked="checked"] {
|
359
399
|
background-color: var(--sd-colour-interactive--active);
|
360
400
|
border-color: var(--sd-colour-interactive--active);
|
361
401
|
border-top-color: var(--sd-colour-interactive--darken-20);
|
362
402
|
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
363
403
|
color: $white;
|
404
|
+
|
364
405
|
.sd-check-button__text-label {
|
365
406
|
opacity: 1;
|
366
407
|
}
|
408
|
+
|
367
409
|
&:hover {
|
368
410
|
color: $white;
|
369
411
|
border-color: var(--sd-colour-interactive--active);
|
@@ -371,13 +413,13 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
371
413
|
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
372
414
|
}
|
373
415
|
}
|
416
|
+
|
374
417
|
.sd-label--disabled {
|
375
418
|
opacity: 1 !important;
|
376
419
|
cursor: not-allowed !important;
|
377
420
|
}
|
378
421
|
}
|
379
422
|
|
380
|
-
|
381
423
|
.sd-check-button__group {
|
382
424
|
display: flex;
|
383
425
|
flex-direction: row;
|
@@ -385,79 +427,97 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
385
427
|
align-items: center;
|
386
428
|
gap: $sd-base-increment * 1;
|
387
429
|
flex: 1 0;
|
388
|
-
|
389
|
-
margin-inline-end: auto;
|
390
|
-
}
|
391
|
-
&--right, &--end {
|
392
|
-
margin-inline-start: auto;
|
393
|
-
}
|
394
|
-
&--center {
|
395
|
-
margin-inline-start: auto;
|
396
|
-
margin-inline-end: auto;
|
397
|
-
}
|
398
|
-
&--inline {
|
399
|
-
margin-inline-start: 0;
|
400
|
-
margin-inline-end: 0;
|
401
|
-
}
|
402
|
-
&--grid {
|
403
|
-
flex: 1 1 0;
|
404
|
-
display: grid;
|
405
|
-
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
|
406
|
-
grid-gap: $sd-base-increment;
|
407
|
-
align-self: stretch;
|
408
|
-
&.sd-check-button__group--compact {
|
409
|
-
grid-gap: $sd-base-increment / 2;
|
410
|
-
}
|
411
|
-
}
|
430
|
+
|
412
431
|
&.sd-check-button__group--padded {
|
413
432
|
margin-inline-start: $sd-base-increment * 1.5;
|
414
433
|
margin-inline-end: $sd-base-increment * 1.5;
|
415
434
|
}
|
435
|
+
|
416
436
|
&.sd-check-button__group--compact {
|
417
437
|
gap: $sd-base-increment * 0.5;
|
418
438
|
}
|
439
|
+
|
419
440
|
&.sd-check-button__group--no-wrap {
|
420
441
|
flex-wrap: nowrap;
|
421
442
|
}
|
422
443
|
}
|
423
444
|
|
445
|
+
.sd-check-button__group--left, .sd-check-button__group--start {
|
446
|
+
margin-inline-end: auto;
|
447
|
+
}
|
448
|
+
|
449
|
+
.sd-check-button__group--right, .sd-check-button__group--end {
|
450
|
+
margin-inline-start: auto;
|
451
|
+
}
|
452
|
+
|
453
|
+
.sd-check-button__group--center {
|
454
|
+
margin-inline-start: auto;
|
455
|
+
margin-inline-end: auto;
|
456
|
+
}
|
457
|
+
|
458
|
+
.sd-check-button__group--inline {
|
459
|
+
margin-inline-start: 0;
|
460
|
+
margin-inline-end: 0;
|
461
|
+
}
|
462
|
+
|
463
|
+
.sd-check-button__group--grid {
|
464
|
+
flex: 1 1 0;
|
465
|
+
display: grid;
|
466
|
+
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
|
467
|
+
grid-gap: $sd-base-increment;
|
468
|
+
align-self: stretch;
|
469
|
+
|
470
|
+
&.sd-check-button__group--compact {
|
471
|
+
grid-gap: $sd-base-increment / 2;
|
472
|
+
}
|
473
|
+
}
|
474
|
+
|
424
475
|
.sd-check-new__wrapper {
|
425
476
|
display: inline-flex;
|
426
477
|
flex-direction: row;
|
427
478
|
align-items: center;
|
428
479
|
user-select: none;
|
429
480
|
position: relative;
|
481
|
+
|
430
482
|
label {
|
431
483
|
line-height: 100%;
|
432
484
|
margin: 0;
|
433
485
|
}
|
486
|
+
|
434
487
|
.sd-check-new + label,
|
435
488
|
.sd-radio-new + label {
|
436
489
|
margin-inline-start: $sd-base-increment;
|
437
490
|
}
|
491
|
+
|
438
492
|
.sd-check-new + label:empty,
|
439
493
|
.sd-radio-new + label:empty {
|
440
494
|
margin: 0 !important;
|
441
495
|
}
|
496
|
+
|
442
497
|
.sd-label--disabled {
|
443
498
|
opacity: 0.40;
|
444
499
|
}
|
500
|
+
|
445
501
|
&[label-position="left"], &[label-position="start"] {
|
446
502
|
label {
|
447
503
|
margin-inline-end: $sd-base-increment;
|
448
504
|
margin-inline-start: 0;
|
505
|
+
|
449
506
|
&:empty {
|
450
507
|
margin: 0 !important;
|
451
508
|
}
|
452
509
|
}
|
510
|
+
|
453
511
|
.sd-check-new__input {
|
454
512
|
inset-inline-start: auto;
|
455
513
|
inset-inline-end: 0;
|
456
514
|
}
|
515
|
+
|
457
516
|
.sd-check-new, .sd-radio-new {
|
458
517
|
order: 2;
|
459
518
|
}
|
460
519
|
}
|
520
|
+
|
461
521
|
input:hover {
|
462
522
|
& ~ .sd-check-new,
|
463
523
|
& ~ .sd-radio-new {
|
@@ -470,14 +530,17 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
470
530
|
& ~ .sd-radio-new {
|
471
531
|
border-color: $sd-colour-interactive;
|
472
532
|
background: $sd-colour-interactive;
|
533
|
+
|
473
534
|
&::after {
|
474
535
|
opacity: 1;
|
475
536
|
transform: scale(1, 1);
|
476
537
|
}
|
477
538
|
}
|
539
|
+
|
478
540
|
& ~ .sd-radio-new {
|
479
541
|
background: transparent;
|
480
542
|
}
|
543
|
+
|
481
544
|
& ~ label {
|
482
545
|
color: $sd-colour-interactive;
|
483
546
|
}
|
@@ -492,13 +555,16 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
492
555
|
|
493
556
|
input:disabled {
|
494
557
|
cursor: not-allowed;
|
558
|
+
|
495
559
|
& ~ label {
|
496
560
|
opacity: 0.6;
|
497
561
|
}
|
562
|
+
|
498
563
|
& ~ .sd-check-new,
|
499
564
|
& ~ .sd-radio-new {
|
500
565
|
opacity: 0.6;
|
501
566
|
}
|
567
|
+
|
502
568
|
&:hover {
|
503
569
|
& ~ .sd-check-new,
|
504
570
|
& ~ .sd-radio-new {
|
@@ -531,11 +597,12 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
531
597
|
flex-direction: row;
|
532
598
|
align-items: center;
|
533
599
|
gap: $sd-base-increment * 3;
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
600
|
+
}
|
601
|
+
|
602
|
+
.sd-check__group-new--vertical {
|
603
|
+
gap: $sd-base-increment * 2;
|
604
|
+
flex-direction: column;
|
605
|
+
align-items: flex-start;
|
539
606
|
}
|
540
607
|
|
541
608
|
.sd-check-button {
|
@@ -546,6 +613,7 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
546
613
|
box-shadow: none !important;
|
547
614
|
background: transparent;
|
548
615
|
overflow: visible;
|
616
|
+
|
549
617
|
.sd-check-button__text-label {
|
550
618
|
padding-inline-start: 1.2rem;
|
551
619
|
padding-inline-end: 1.2rem;
|
@@ -561,17 +629,18 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
561
629
|
cursor: pointer;
|
562
630
|
width: 100%;
|
563
631
|
white-space: nowrap;
|
632
|
+
|
564
633
|
.sd-check-button__text-label-inner {
|
565
634
|
user-select: none;
|
566
635
|
display: inline-block;
|
567
636
|
}
|
637
|
+
|
568
638
|
i + .sd-check-button__text-label-inner {
|
569
639
|
margin-inline-start: $sd-base-increment;
|
570
640
|
}
|
571
641
|
}
|
572
642
|
}
|
573
643
|
|
574
|
-
|
575
644
|
.sd-check-button__input {
|
576
645
|
position: absolute;
|
577
646
|
inset-block-start: 0;
|
@@ -608,6 +677,7 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
608
677
|
.sd-check-button__text-label {
|
609
678
|
box-shadow: 0 0 0 3px $sd-colour--focus-shadow;
|
610
679
|
}
|
680
|
+
|
611
681
|
.sd-check-button__input:checked {
|
612
682
|
& ~ label {
|
613
683
|
box-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.2), 0 0 0 3px $sd-colour--focus-shadow;
|
@@ -621,15 +691,13 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
621
691
|
// END NEW CHECKBOX & RADIO
|
622
692
|
// ============================================================================
|
623
693
|
|
624
|
-
|
625
|
-
|
626
694
|
// TOGGLE BUTTON
|
627
695
|
// use of this will be discontinued. It is here just to support older components in
|
628
696
|
// Superdeks untill they are refactored
|
629
697
|
|
630
|
-
|
631
698
|
.toggle-button {
|
632
699
|
@include sd-padding('1-5', 'x');
|
700
|
+
@include text-overflow;
|
633
701
|
line-height: 1;
|
634
702
|
border: 1px solid $checkButtonBorderColor;
|
635
703
|
border-radius: $checkButtonBorderRadius;
|
@@ -640,29 +708,32 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
640
708
|
gap: 8px;
|
641
709
|
height: $sd-base-increment * 4;
|
642
710
|
color: var(--color-text);
|
643
|
-
@include text-overflow;
|
644
711
|
cursor: pointer;
|
645
712
|
text-decoration: none;
|
646
713
|
font-size: 1.2rem;
|
647
714
|
background: transparent;
|
648
715
|
transition: all 0.2s ease-out;
|
716
|
+
|
649
717
|
[class^="icon-"],
|
650
718
|
[class*=" icon-"],
|
651
719
|
.toggle-button__icon {
|
652
720
|
color: currentColor;
|
653
721
|
}
|
722
|
+
|
654
723
|
&:hover {
|
655
724
|
border-color: $checkButtonBorderColorHover;
|
656
725
|
box-shadow: 0 1px 4px 0 hsla(0, 0%, 0%, 0.16);
|
657
726
|
color: var(--color-text);
|
658
727
|
text-decoration: none !important;
|
659
728
|
}
|
729
|
+
|
660
730
|
&.toggle-button--active {
|
661
731
|
background-color: var(--sd-colour-interactive--active);
|
662
732
|
border-color: var(--sd-colour-interactive--active);
|
663
733
|
border-top-color: var(--sd-colour-interactive--darken-20);
|
664
734
|
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
665
735
|
color: $white;
|
736
|
+
|
666
737
|
&:hover {
|
667
738
|
color: $white;
|
668
739
|
border-color: var(--sd-colour-interactive--active);
|