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
package/app/styles/_buttons.scss
CHANGED
@@ -47,42 +47,52 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
47
47
|
border: 1px solid transparent;
|
48
48
|
background-color: var(--sd-btn-bg);
|
49
49
|
gap: 0.6rem;
|
50
|
+
|
50
51
|
&:hover {
|
51
52
|
background-color: var(--sd-btn-bg--hover);
|
52
53
|
box-shadow: var(--new-button-hover-shadow);
|
53
54
|
text-decoration: none !important;
|
54
55
|
}
|
56
|
+
|
55
57
|
&:active {
|
56
58
|
background-color: var(--sd-btn-bg--active);
|
57
59
|
box-shadow: $new-button-active-shadow;
|
58
60
|
}
|
61
|
+
|
59
62
|
&:focus-visible {
|
60
63
|
box-shadow: $button-focus-box-shadow;
|
61
64
|
}
|
65
|
+
|
62
66
|
[class^="icon-"], [class*=" icon-"] {
|
63
67
|
color: currentColor;
|
64
68
|
}
|
65
69
|
}
|
70
|
+
|
66
71
|
@mixin new-button-hollow {
|
67
72
|
border: 1px solid var(--sd-btn-border);
|
68
73
|
background-color: transparent !important;
|
69
74
|
box-shadow: inset 0 0 0 0px var(--sd-btn-border);
|
75
|
+
|
70
76
|
[class^="icon-"], [class*=" icon-"] {
|
71
77
|
color: var(--sd-btn-color);
|
72
78
|
}
|
79
|
+
|
73
80
|
&:hover {
|
74
81
|
box-shadow: none;
|
75
82
|
border-color: var(--sd-btn-color);
|
76
83
|
box-shadow: inset 0 0 0 2px var(--sd-btn-border);
|
77
84
|
}
|
85
|
+
|
78
86
|
&:active {
|
79
87
|
border-color: var(--sd-btn-color);
|
80
88
|
box-shadow: inset 0 0 0 2px var(--sd-btn-color);
|
81
89
|
}
|
90
|
+
|
82
91
|
&:focus-visible {
|
83
92
|
box-shadow: $button-focus-box-shadow;
|
84
93
|
}
|
85
94
|
}
|
95
|
+
|
86
96
|
@mixin new-button-text-only {
|
87
97
|
border: none;
|
88
98
|
background-color: transparent;
|
@@ -92,19 +102,23 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
92
102
|
--sd-btn-bg--hover: hsla(var(--sd-btn-l), 0.20);
|
93
103
|
--sd-btn-bg--active: hsla(var(--sd-btn-l), 0.16);
|
94
104
|
--sd-btn-bg--shadow: hsla(var(--sd-btn-l), 0.24);
|
105
|
+
|
95
106
|
[class^="icon-"], [class*=" icon-"] {
|
96
107
|
color: currentColor;
|
97
108
|
}
|
109
|
+
|
98
110
|
&:hover {
|
99
111
|
box-shadow: none;
|
100
112
|
background-color: var(--sd-btn-bg--hover);
|
101
113
|
box-shadow: inset 0 0 0 0 var(--sd-btn-bg--shadow);
|
102
114
|
}
|
115
|
+
|
103
116
|
&:active {
|
104
117
|
box-shadow: none;
|
105
118
|
background-color: var(--sd-btn-bg--active);
|
106
119
|
box-shadow: inset 0 0 0 4px var(--sd-btn-bg--shadow);
|
107
120
|
}
|
121
|
+
|
108
122
|
&:focus-visible {
|
109
123
|
box-shadow: $button-focus-box-shadow;
|
110
124
|
}
|
@@ -115,79 +129,11 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
115
129
|
--sd-btn-bg--hover: var(--sd-colour-btn-bg-neutral--hover);
|
116
130
|
--sd-btn-bg--active: var(--sd-colour-btn-bg-neutral--active);
|
117
131
|
color: var(--sd-colour-btn-txt-neutral);
|
118
|
-
|
119
132
|
@include new-button-base;
|
120
|
-
|
121
|
-
&--small {
|
122
|
-
padding: $padding-x__button--small;
|
123
|
-
height: $height__button--small;
|
124
|
-
font-size: $font-size__button--small;
|
125
|
-
}
|
126
|
-
&--large {
|
127
|
-
padding: $padding-x__button--large;
|
128
|
-
height: $height__button--large;
|
129
|
-
font-size: $font-size__button--large;
|
130
|
-
}
|
131
|
-
&--expanded {
|
132
|
-
width: 100%;
|
133
|
-
margin-right: 0;
|
134
|
-
margin-left: 0;
|
135
|
-
}
|
133
|
+
|
136
134
|
[class^="icon-"], [class*=" icon-"] {
|
137
135
|
margin-inline-start: -0.3rem;
|
138
136
|
}
|
139
|
-
// Colours
|
140
|
-
&--primary, &--success, &--warning, &--alert, &--highlight, &--sd-green, &--secondary {
|
141
|
-
color: $white;
|
142
|
-
[class^="icon-"], [class*=" icon-"] {
|
143
|
-
color: $white;
|
144
|
-
}
|
145
|
-
.sd-spinner__path {
|
146
|
-
stroke: $white;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
&--primary {
|
151
|
-
--sd-btn-bg: var(--sd-colour-primary);
|
152
|
-
--sd-btn-bg--hover: var(--sd-colour-primary--hover);
|
153
|
-
--sd-btn-bg--active: var(--sd-colour-primary--active);
|
154
|
-
}
|
155
|
-
|
156
|
-
&--success {
|
157
|
-
--sd-btn-bg: var(--sd-colour-success);
|
158
|
-
--sd-btn-bg--hover: var(--sd-colour-success--hover);
|
159
|
-
--sd-btn-bg--active: var(--sd-colour-success--active);
|
160
|
-
}
|
161
|
-
|
162
|
-
&--warning {
|
163
|
-
--sd-btn-bg: var(--sd-colour-warning);
|
164
|
-
--sd-btn-bg--hover: var(--sd-colour-warning--hover);
|
165
|
-
--sd-btn-bg--active: var(--sd-colour-warning--active);
|
166
|
-
}
|
167
|
-
|
168
|
-
&--alert {
|
169
|
-
--sd-btn-bg: var(--sd-colour-alert);
|
170
|
-
--sd-btn-bg--hover: var(--sd-colour-alert--hover);
|
171
|
-
--sd-btn-bg--active: var(--sd-colour-alert--active);
|
172
|
-
}
|
173
|
-
|
174
|
-
&--highlight {
|
175
|
-
--sd-btn-bg: var(--sd-colour-highlight);
|
176
|
-
--sd-btn-bg--hover: var(--sd-colour-highlight--hover);
|
177
|
-
--sd-btn-bg--active: var(--sd-colour-highlight--active);
|
178
|
-
}
|
179
|
-
|
180
|
-
&--sd-green {
|
181
|
-
--sd-btn-bg: var(--sd-colour-superdesk);
|
182
|
-
--sd-btn-bg--hover: var(--sd-colour-superdesk--hover);
|
183
|
-
--sd-btn-bg--active: var(--sd-colour-superdesk--active);
|
184
|
-
}
|
185
|
-
|
186
|
-
&--secondary {
|
187
|
-
--sd-btn-bg: var(--sd-colour-secondary);
|
188
|
-
--sd-btn-bg--hover: var(--sd-colour-secondary--hover);
|
189
|
-
--sd-btn-bg--active: var(--sd-colour-secondary--active);
|
190
|
-
}
|
191
137
|
|
192
138
|
// Hollow style
|
193
139
|
&.btn--hollow {
|
@@ -195,6 +141,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
195
141
|
--sd-btn-color: var(--sd-colour-btn-txt-neutral);
|
196
142
|
color: var(--sd-colour-btn-txt-neutral);
|
197
143
|
@include new-button-hollow;
|
144
|
+
|
198
145
|
&.btn--primary {
|
199
146
|
--sd-btn-border: var(--sd-colour-interactive-btn-border);
|
200
147
|
--sd-btn-color: var(--sd-colour-interactive);
|
@@ -229,6 +176,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
229
176
|
--sd-btn-border: var(--sd-colour-secondary-btn-border);
|
230
177
|
--sd-btn-color: var(--sd-colour-secondary);
|
231
178
|
}
|
179
|
+
|
232
180
|
&.btn--primary,
|
233
181
|
&.btn--success,
|
234
182
|
&.btn--warning,
|
@@ -237,16 +185,19 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
237
185
|
&.btn--sd-green,
|
238
186
|
&.btn--secondary {
|
239
187
|
color: var(--sd-btn-color);
|
188
|
+
|
240
189
|
.sd-spinner__path {
|
241
190
|
stroke: var(--sd-btn-color);
|
242
191
|
}
|
243
192
|
}
|
244
193
|
}
|
194
|
+
|
245
195
|
// Text only
|
246
196
|
&.btn--text-only {
|
247
197
|
--sd-btn-hs: 214, 13%;
|
248
198
|
color: var(--sd-colour-btn-txt-neutral);
|
249
199
|
@include new-button-text-only;
|
200
|
+
|
250
201
|
&.btn--primary {
|
251
202
|
--sd-btn-hs: var(--sd-colour-primary-hs);
|
252
203
|
}
|
@@ -274,6 +225,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
274
225
|
&.btn--secondary {
|
275
226
|
--sd-btn-hs: var(--sd-colour-secondary-hs);
|
276
227
|
}
|
228
|
+
|
277
229
|
&.btn--primary,
|
278
230
|
&.btn--success,
|
279
231
|
&.btn--warning,
|
@@ -282,37 +234,119 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
282
234
|
&.btn--sd-green,
|
283
235
|
&.btn--secondary {
|
284
236
|
color: var(--sd-btn-txt);
|
237
|
+
|
285
238
|
.sd-spinner__path {
|
286
239
|
stroke: var(--sd-btn-txt);
|
287
240
|
}
|
288
241
|
}
|
289
242
|
}
|
243
|
+
|
290
244
|
&.btn--icon-only {
|
291
245
|
[class^="icon-"], [class*=" icon-"] {
|
292
246
|
margin: 0;
|
293
247
|
}
|
248
|
+
|
294
249
|
&.btn--icon-only-circle {
|
295
250
|
border-radius: $border-radius__base--full;
|
296
251
|
padding: 0;
|
297
252
|
width: $height__button--default;
|
253
|
+
|
298
254
|
&.btn--small {
|
299
255
|
width: $height__button--small;
|
300
256
|
}
|
257
|
+
|
301
258
|
&.btn--large {
|
302
259
|
width: $height__button--large;
|
303
260
|
}
|
304
261
|
}
|
305
262
|
}
|
263
|
+
|
306
264
|
&.btn--disabled, &[disabled] {
|
307
265
|
opacity: $button-opacity-disabled;
|
308
266
|
cursor: not-allowed;
|
309
267
|
pointer-events: none;
|
310
268
|
box-shadow: none !important;
|
269
|
+
|
311
270
|
&:hover, &:active {
|
312
271
|
cursor: not-allowed;
|
313
272
|
}
|
314
273
|
}
|
315
274
|
}
|
275
|
+
|
276
|
+
// Sizes
|
277
|
+
.btn--small {
|
278
|
+
padding: $padding-x__button--small;
|
279
|
+
height: $height__button--small;
|
280
|
+
font-size: $font-size__button--small;
|
281
|
+
}
|
282
|
+
|
283
|
+
.btn--large {
|
284
|
+
padding: $padding-x__button--large;
|
285
|
+
height: $height__button--large;
|
286
|
+
font-size: $font-size__button--large;
|
287
|
+
}
|
288
|
+
|
289
|
+
.btn--expanded {
|
290
|
+
width: 100%;
|
291
|
+
margin-right: 0;
|
292
|
+
margin-left: 0;
|
293
|
+
}
|
294
|
+
|
295
|
+
// Colours
|
296
|
+
.btn--primary, .btn--success, .btn--warning, .btn--alert, .btn--highlight, .btn--sd-green, .btn--secondary {
|
297
|
+
color: $white;
|
298
|
+
|
299
|
+
[class^="icon-"], [class*=" icon-"] {
|
300
|
+
color: $white;
|
301
|
+
}
|
302
|
+
|
303
|
+
.sd-spinner__path {
|
304
|
+
stroke: $white;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
.btn--primary {
|
309
|
+
--sd-btn-bg: var(--sd-colour-primary);
|
310
|
+
--sd-btn-bg--hover: var(--sd-colour-primary--hover);
|
311
|
+
--sd-btn-bg--active: var(--sd-colour-primary--active);
|
312
|
+
}
|
313
|
+
|
314
|
+
.btn--success {
|
315
|
+
--sd-btn-bg: var(--sd-colour-success);
|
316
|
+
--sd-btn-bg--hover: var(--sd-colour-success--hover);
|
317
|
+
--sd-btn-bg--active: var(--sd-colour-success--active);
|
318
|
+
}
|
319
|
+
|
320
|
+
.btn--warning {
|
321
|
+
--sd-btn-bg: var(--sd-colour-warning);
|
322
|
+
--sd-btn-bg--hover: var(--sd-colour-warning--hover);
|
323
|
+
--sd-btn-bg--active: var(--sd-colour-warning--active);
|
324
|
+
}
|
325
|
+
|
326
|
+
.btn--alert {
|
327
|
+
--sd-btn-bg: var(--sd-colour-alert);
|
328
|
+
--sd-btn-bg--hover: var(--sd-colour-alert--hover);
|
329
|
+
--sd-btn-bg--active: var(--sd-colour-alert--active);
|
330
|
+
}
|
331
|
+
|
332
|
+
.btn--highlight {
|
333
|
+
--sd-btn-bg: var(--sd-colour-highlight);
|
334
|
+
--sd-btn-bg--hover: var(--sd-colour-highlight--hover);
|
335
|
+
--sd-btn-bg--active: var(--sd-colour-highlight--active);
|
336
|
+
}
|
337
|
+
|
338
|
+
.btn--sd-green {
|
339
|
+
--sd-btn-bg: var(--sd-colour-superdesk);
|
340
|
+
--sd-btn-bg--hover: var(--sd-colour-superdesk--hover);
|
341
|
+
--sd-btn-bg--active: var(--sd-colour-superdesk--active);
|
342
|
+
}
|
343
|
+
|
344
|
+
.btn--secondary {
|
345
|
+
--sd-btn-bg: var(--sd-colour-secondary);
|
346
|
+
--sd-btn-bg--hover: var(--sd-colour-secondary--hover);
|
347
|
+
--sd-btn-bg--active: var(--sd-colour-secondary--active);
|
348
|
+
}
|
349
|
+
|
316
350
|
////////////////////////////// END NEW BUTTONS /////////////////////////////
|
317
351
|
|
318
352
|
// Plain Icon buttons
|
@@ -332,38 +366,47 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
332
366
|
text-decoration: none;
|
333
367
|
cursor: pointer;
|
334
368
|
flex-shrink: 0;
|
369
|
+
|
335
370
|
[class^="icon-"], [class*=" icon-"] {
|
336
371
|
color: var(--color-icon-default) !important;
|
337
372
|
vertical-align: baseline !important;
|
338
373
|
}
|
374
|
+
|
339
375
|
&:hover {
|
340
376
|
opacity: 1;
|
341
377
|
text-decoration: none;
|
342
378
|
background-color: hsla(214, 13%, 55%, 0.2);
|
343
379
|
}
|
380
|
+
|
344
381
|
&:focus-visible {
|
345
382
|
opacity: 1;
|
346
383
|
background-color: hsla(214, 13%, 55%, 0.2);
|
347
384
|
box-shadow: $icn-button-focus-box-shadow;
|
348
385
|
outline: none;
|
386
|
+
|
349
387
|
[class^="icon-"], [class*=" icon-"] {
|
350
388
|
opacity: 1;
|
351
389
|
}
|
352
390
|
}
|
391
|
+
|
353
392
|
&:active {
|
354
393
|
opacity: 1;
|
355
394
|
background-color: hsla(214, 13%, 55%, 0.3);
|
395
|
+
|
356
396
|
[class^="icon-"], [class*=" icon-"] {
|
357
397
|
color: $sd-colour-interactive;
|
358
398
|
opacity: 1;
|
359
399
|
}
|
360
400
|
}
|
401
|
+
|
361
402
|
&--disabled {
|
362
403
|
opacity: $icn-button-opacity-disabled;
|
404
|
+
|
363
405
|
&:hover, &:active, &:focus-visible {
|
364
406
|
background-color: transparent !important;
|
365
407
|
cursor: not-allowed;
|
366
408
|
opacity: $icn-button-opacity-disabled;
|
409
|
+
|
367
410
|
[class^="icon-"], [class*=" icon-"] {
|
368
411
|
opacity: 1;
|
369
412
|
color: inherit !important;
|
@@ -374,61 +417,74 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
374
417
|
|
375
418
|
.icn-btn {
|
376
419
|
@include icn-btn-style;
|
377
|
-
|
378
|
-
|
379
|
-
|
420
|
+
|
421
|
+
&.icn-btn--x-large.icn-btn--outline,
|
422
|
+
&.icn-btn--x-large.icn-btn--outlineWhite {
|
423
|
+
border-width: 2px;
|
380
424
|
}
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
425
|
+
}
|
426
|
+
|
427
|
+
.icn-btn--small {
|
428
|
+
height: $height__button--small;
|
429
|
+
width: $height__button--small;
|
430
|
+
}
|
431
|
+
|
432
|
+
.icn-btn--x-large {
|
433
|
+
height: $height__button--x-large;
|
434
|
+
width: $height__button--x-large;
|
435
|
+
|
436
|
+
[class^="icon-"], [class*=" icon-"] {
|
437
|
+
vertical-align: baseline !important;
|
438
|
+
font-size: 2.4rem;
|
439
|
+
height: 2.4rem;
|
440
|
+
width: 2.4rem;
|
441
|
+
line-height: 2.4rem;
|
392
442
|
}
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
443
|
+
|
444
|
+
}
|
445
|
+
|
446
|
+
.icn-btn--outline {
|
447
|
+
border: 1px solid currentColor;
|
448
|
+
|
449
|
+
&:active:not(.icn-btn--disabled) {
|
450
|
+
border-color: var(--sd-colour-interactive);
|
398
451
|
}
|
399
|
-
|
452
|
+
}
|
453
|
+
|
454
|
+
.icn-btn--outlineWhite {
|
455
|
+
color: hsla(214, 13%, 95%, 0.8) !important;
|
456
|
+
border: 1px solid currentColor;
|
457
|
+
|
458
|
+
[class^="icon-"], [class*=" icon-"] {
|
400
459
|
color: hsla(214, 13%, 95%, 0.8) !important;
|
401
|
-
|
460
|
+
}
|
461
|
+
|
462
|
+
&:hover:not(.icn-btn--disabled) {
|
463
|
+
color: hsla(214, 13%, 95%, 1) !important;
|
464
|
+
border-color: hsla(214, 13%, 95%, 1);
|
465
|
+
background-color: hsla(0, 0%, 0%, 0.4);
|
402
466
|
[class^="icon-"], [class*=" icon-"] {
|
403
|
-
color: hsla(214, 13%, 95%, 0.8) !important;
|
404
|
-
}
|
405
|
-
&:hover:not(.icn-btn--disabled) {
|
406
467
|
color: hsla(214, 13%, 95%, 1) !important;
|
407
|
-
border-color: hsla(214, 13%, 95%, 1);
|
408
|
-
background-color: hsla(0, 0%, 0%, 0.4);
|
409
|
-
[class^="icon-"], [class*=" icon-"] {
|
410
|
-
color: hsla(214, 13%, 95%, 1) !important;
|
411
|
-
}
|
412
|
-
}
|
413
|
-
&:active:not(.icn-btn--disabled) {
|
414
|
-
border-color: var(--sd-colour-interactive);
|
415
|
-
background-color: hsla(0, 0%, 0%, 0.6);
|
416
468
|
}
|
417
469
|
}
|
418
|
-
|
419
|
-
|
420
|
-
border-
|
470
|
+
|
471
|
+
&:active:not(.icn-btn--disabled) {
|
472
|
+
border-color: var(--sd-colour-interactive);
|
473
|
+
background-color: hsla(0, 0%, 0%, 0.6);
|
421
474
|
}
|
422
475
|
}
|
476
|
+
|
423
477
|
.p-dialog-header-close {
|
424
478
|
@include icn-btn-style;
|
425
479
|
height: $height__button--small;
|
426
480
|
width: $height__button--small;
|
481
|
+
|
427
482
|
&:hover {
|
428
483
|
opacity: 1;
|
429
484
|
text-decoration: none;
|
430
485
|
background-color: hsla(0, 0%, 61%, 0.2) !important;
|
431
486
|
}
|
487
|
+
|
432
488
|
&:active {
|
433
489
|
opacity: 1;
|
434
490
|
background-color: hsla(0, 0%, 61%, 0.3);
|
@@ -436,14 +492,13 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
436
492
|
}
|
437
493
|
|
438
494
|
// Button navigation
|
439
|
-
// --------------------------------------------------
|
440
|
-
|
441
495
|
.button-nav {
|
442
496
|
display: flex;
|
443
497
|
flex-direction: row;
|
444
498
|
align-content: center;
|
445
499
|
gap: $sd-base-increment;
|
446
500
|
}
|
501
|
+
|
447
502
|
.button-nav__btn {
|
448
503
|
color: var(--color-text);
|
449
504
|
display: inline-block;
|
@@ -463,9 +518,11 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
463
518
|
text-decoration: none;
|
464
519
|
cursor: pointer;
|
465
520
|
background-color: var(--sd-colour-bg__button-nav-btn);
|
521
|
+
|
466
522
|
&:hover {
|
467
523
|
background-color: var(--sd-colour-bg__button-nav-btn--hover);
|
468
524
|
}
|
525
|
+
|
469
526
|
&:active, &--active, &--active:hover {
|
470
527
|
background-color: var(--sd-colour-bg__button-nav-btn--active);
|
471
528
|
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.25);
|
@@ -477,6 +534,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
477
534
|
display: flex;
|
478
535
|
align-items: center;
|
479
536
|
gap: 6px;
|
537
|
+
|
480
538
|
[class^="icon-"], [class*=" icon-"] {
|
481
539
|
opacity: 0.6;
|
482
540
|
}
|
@@ -484,8 +542,6 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
484
542
|
|
485
543
|
|
486
544
|
// BUTTON GROUPS
|
487
|
-
// --------------------------------------------------
|
488
|
-
|
489
545
|
.button-group {
|
490
546
|
display: flex;
|
491
547
|
flex-direction: row;
|
@@ -495,83 +551,103 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
495
551
|
.btn {
|
496
552
|
margin: 0;
|
497
553
|
}
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
}
|
506
|
-
.button-group--inline {
|
507
|
-
.sd-navbtn {
|
508
|
-
border-inline-width: 0 1px;
|
509
|
-
}
|
510
|
-
}
|
511
|
-
}
|
512
|
-
&--inline {
|
513
|
-
margin-inline-end: 0;
|
514
|
-
.sd-navbtn {
|
515
|
-
border-inline-width: 0 1px;
|
516
|
-
}
|
554
|
+
}
|
555
|
+
|
556
|
+
.button-group--left, .button-group--start {
|
557
|
+
margin-inline-end: auto;
|
558
|
+
|
559
|
+
.sd-navbtn {
|
560
|
+
border-inline-width: 0 1px;
|
517
561
|
}
|
518
|
-
|
519
|
-
|
562
|
+
|
563
|
+
&.button-group--compact {
|
564
|
+
gap: 0.5 * $sd-base-increment;
|
520
565
|
}
|
521
|
-
|
522
|
-
|
523
|
-
margin-inline-end: auto;
|
566
|
+
|
567
|
+
.button-group--inline {
|
524
568
|
.sd-navbtn {
|
525
569
|
border-inline-width: 0 1px;
|
526
|
-
&:first-child {
|
527
|
-
border-inline-width: 1px 1px;
|
528
|
-
}
|
529
570
|
}
|
530
571
|
}
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
gap: $sd-base-increment;
|
539
|
-
}
|
540
|
-
&--loose {
|
541
|
-
gap: $sd-base-increment * 2;
|
542
|
-
}
|
543
|
-
&--compact {
|
544
|
-
gap: $sd-base-increment * 0.5;
|
545
|
-
}
|
546
|
-
&--no-space {
|
547
|
-
gap: unset;
|
572
|
+
}
|
573
|
+
|
574
|
+
.button-group--inline {
|
575
|
+
margin-inline-end: 0;
|
576
|
+
|
577
|
+
.sd-navbtn {
|
578
|
+
border-inline-width: 0 1px;
|
548
579
|
}
|
549
|
-
|
550
|
-
|
551
|
-
|
580
|
+
}
|
581
|
+
|
582
|
+
.button-group--right, .button-group--end {
|
583
|
+
margin-inline-start: auto;
|
584
|
+
}
|
585
|
+
|
586
|
+
.button-group--center {
|
587
|
+
margin-inline-start: auto;
|
588
|
+
margin-inline-end: auto;
|
589
|
+
|
590
|
+
.sd-navbtn {
|
591
|
+
border-inline-width: 0 1px;
|
592
|
+
&:first-child {
|
593
|
+
border-inline-width: 1px 1px;
|
594
|
+
}
|
552
595
|
}
|
553
596
|
}
|
554
597
|
|
598
|
+
.button-group--vertical {
|
599
|
+
flex-grow: 1;
|
600
|
+
flex-direction: column;
|
601
|
+
align-items: stretch;
|
602
|
+
justify-content: center;
|
603
|
+
}
|
604
|
+
|
605
|
+
.button-group--comfort {
|
606
|
+
gap: $sd-base-increment;
|
607
|
+
}
|
608
|
+
|
609
|
+
.button-group--loose {
|
610
|
+
gap: $sd-base-increment * 2;
|
611
|
+
}
|
612
|
+
|
613
|
+
.button-group--compact {
|
614
|
+
gap: $sd-base-increment * 0.5;
|
615
|
+
}
|
616
|
+
|
617
|
+
.button-group--no-space {
|
618
|
+
gap: unset;
|
619
|
+
}
|
620
|
+
|
621
|
+
.button-group--padded {
|
622
|
+
padding-inline-start: $sd-base-increment * 2;
|
623
|
+
padding-inline-end: $sd-base-increment * 2;
|
624
|
+
}
|
625
|
+
|
555
626
|
.button-group__divider {
|
556
627
|
width: 1px;
|
557
628
|
height: $sd-base-increment * 3;
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
629
|
+
}
|
630
|
+
|
631
|
+
.button-group__divider--mini {
|
632
|
+
padding: 0 !important;
|
633
|
+
width: 0;
|
634
|
+
border: none !important;
|
635
|
+
}
|
636
|
+
|
637
|
+
.button-group__divider--small {
|
638
|
+
@include sd-margin('0-5', 'x');
|
639
|
+
}
|
640
|
+
|
641
|
+
.button-group__divider--medium {
|
642
|
+
@include sd-margin('1', 'x');
|
643
|
+
}
|
644
|
+
|
645
|
+
.button-group__divider--large {
|
646
|
+
@include sd-margin('1-5', 'x');
|
647
|
+
}
|
648
|
+
|
649
|
+
.button-group__divider--border {
|
650
|
+
border-left: 1px dotted var(--sd-colour-line--strong);
|
575
651
|
}
|
576
652
|
|
577
653
|
.button-group--vertical {
|
@@ -579,23 +655,28 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
579
655
|
height: 1px;
|
580
656
|
width: auto;
|
581
657
|
@include sd-margin('0', 'x');
|
582
|
-
|
583
|
-
border-left: none;
|
584
|
-
border-top: 1px dotted var(--sd-colour-line--strong);
|
585
|
-
}
|
658
|
+
|
586
659
|
&.button-group__divider--mini {
|
587
660
|
@include sd-padding('1-5', 'top');
|
588
661
|
}
|
662
|
+
|
589
663
|
&.button-group__divider--small {
|
590
664
|
@include sd-margin('0-5', 'y');
|
591
665
|
}
|
666
|
+
|
592
667
|
&.button-group__divider--medium {
|
593
668
|
@include sd-margin('1', 'y');
|
594
669
|
}
|
670
|
+
|
595
671
|
&.button-group__divider--large {
|
596
672
|
@include sd-margin('1-5', 'y');
|
597
673
|
}
|
598
674
|
}
|
675
|
+
|
676
|
+
.button-group__divider--border {
|
677
|
+
border-left: none;
|
678
|
+
border-top: 1px dotted var(--sd-colour-line--strong);
|
679
|
+
}
|
599
680
|
}
|
600
681
|
|
601
682
|
.sd-create-btn {
|
@@ -612,6 +693,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
612
693
|
justify-content: center;
|
613
694
|
border: 0px solid var(--sd-colour-line--x-light);
|
614
695
|
border-inline-width: 1px 0;
|
696
|
+
|
615
697
|
.circle {
|
616
698
|
display: inline-block;
|
617
699
|
text-align: center;
|
@@ -625,6 +707,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
625
707
|
position: relative;
|
626
708
|
transition: all 0.2s ease;
|
627
709
|
}
|
710
|
+
|
628
711
|
&:hover {
|
629
712
|
.circle {
|
630
713
|
width: 3.4rem;
|
@@ -632,6 +715,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
632
715
|
margin-inline-start: 0;
|
633
716
|
}
|
634
717
|
}
|
718
|
+
|
635
719
|
&:active {
|
636
720
|
.circle {
|
637
721
|
width: 6.8rem;
|
@@ -641,6 +725,7 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
641
725
|
transition: all 0.05s ease;
|
642
726
|
}
|
643
727
|
}
|
728
|
+
|
644
729
|
i {
|
645
730
|
position: absolute;
|
646
731
|
z-index: 1;
|
@@ -678,16 +763,20 @@ $new-button-active-shadow-hollow: inset 0 0 0 1px;
|
|
678
763
|
justify-content: center;
|
679
764
|
z-index: 2;
|
680
765
|
}
|
766
|
+
|
681
767
|
.btn--loading {
|
682
768
|
color: transparent;
|
683
769
|
pointer-events: none;
|
684
770
|
}
|
771
|
+
|
685
772
|
.btn {
|
686
773
|
&[data-loading="true"] {
|
687
774
|
pointer-events: none;
|
775
|
+
|
688
776
|
.sd-spinner {
|
689
777
|
margin-inline-start: -0.3rem;
|
690
778
|
}
|
779
|
+
|
691
780
|
&.btn--icon-only {
|
692
781
|
.sd-spinner {
|
693
782
|
margin-inline-start: 0;
|