superdesk-ui-framework 3.0.42 → 3.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/styles/_accessibility.scss +349 -310
- package/app/styles/_alerts.scss +102 -71
- package/app/styles/_animations.scss +29 -16
- package/app/styles/_avatar.scss +159 -140
- package/app/styles/_badge.scss +11 -5
- package/app/styles/_big-icon-font.scss +21 -9
- package/app/styles/_boxed-list.scss +72 -47
- package/app/styles/_buttons.scss +266 -177
- package/app/styles/_carousel.scss +58 -45
- package/app/styles/_content-divider.scss +28 -2
- package/app/styles/_drag-drop.scss +3 -0
- package/app/styles/_empty-states.scss +21 -13
- package/app/styles/_hamburger.scss +142 -144
- package/app/styles/_helpers.scss +297 -93
- package/app/styles/_icon-font.scss +75 -43
- package/app/styles/_icon-labels.scss +11 -1
- package/app/styles/_labels.scss +27 -14
- package/app/styles/_loaders.scss +2 -1
- package/app/styles/_master-desk.scss +67 -31
- package/app/styles/_mixins.scss +40 -20
- package/app/styles/_modals.scss +112 -56
- package/app/styles/_panel-info.scss +38 -34
- package/app/styles/_popover.scss +0 -1
- package/app/styles/_publisher-styles.scss +132 -122
- package/app/styles/_sd-tag-input.scss +104 -24
- package/app/styles/_simple-list.scss +89 -66
- package/app/styles/_spinner.scss +24 -17
- package/app/styles/_table-list.scss +114 -80
- package/app/styles/_tables.scss +14 -2
- package/app/styles/_tabs-vertical.scss +46 -43
- package/app/styles/_tabs.scss +97 -87
- package/app/styles/_tag-labels.scss +26 -11
- package/app/styles/_thumb-carousel.scss +37 -11
- package/app/styles/_toggle-box.scss +27 -7
- package/app/styles/_toggle-button.scss +5 -1
- package/app/styles/_tooltips.scss +284 -272
- package/app/styles/components/_card-item.scss +268 -192
- package/app/styles/components/_list-item.scss +261 -175
- package/app/styles/components/_sd-circular-progress.scss +109 -79
- package/app/styles/components/_sd-collapse-box.scss +45 -33
- package/app/styles/components/_sd-comment-box.scss +17 -12
- package/app/styles/components/_sd-dropzone.scss +32 -15
- package/app/styles/components/_sd-editor-popup.scss +29 -15
- package/app/styles/components/_sd-grid-item.scss +349 -237
- package/app/styles/components/_sd-loader.scss +1 -2
- package/app/styles/components/_sd-media-carousel.scss +119 -78
- package/app/styles/components/_sd-notification-panel.scss +2 -1
- package/app/styles/components/_sd-pagination.scss +27 -19
- package/app/styles/components/_sd-photo-preview.scss +82 -41
- package/app/styles/components/_sd-searchbar.scss +79 -51
- package/app/styles/components/_sd-toaster.scss +52 -30
- package/app/styles/components/_subnav.scss +230 -135
- package/app/styles/components/_theme-selector.scss +78 -53
- package/app/styles/components/sd-slider.scss +11 -7
- package/app/styles/design-tokens/_design-tokens-general.scss +31 -27
- package/app/styles/design-tokens/_new-colors.scss +3 -1
- package/app/styles/dropdowns/_basic-dropdown.scss +164 -86
- package/app/styles/dropdowns/_input-dropdown.scss +5 -2
- package/app/styles/dropdowns/_navigation_dropdown.scss +18 -4
- package/app/styles/dropdowns/_nested-dropdown.scss +11 -2
- package/app/styles/dropdowns/_other_dropdown.scss +9 -3
- package/app/styles/editor/_editor-buttons.scss +10 -6
- package/app/styles/editor/_editor-themes.scss +401 -350
- package/app/styles/form-elements/_autocomplete.scss +7 -1
- package/app/styles/form-elements/_checkbox.scss +230 -159
- package/app/styles/form-elements/_forms-general.scss +345 -285
- package/app/styles/form-elements/_input-preview.scss +15 -9
- package/app/styles/form-elements/_input-wrap.scss +77 -71
- package/app/styles/form-elements/_inputs.scss +668 -489
- package/app/styles/form-elements/_radio.scss +10 -5
- package/app/styles/form-elements/_switch.scss +27 -16
- package/app/styles/grids/_basic-grid.scss +83 -64
- package/app/styles/grids/_grid-layout.scss +301 -165
- package/app/styles/grids/_layout-grid.scss +85 -59
- package/app/styles/grids/_sd-kanban-list.scss +14 -4
- package/app/styles/interface-elements/_side-panel.scss +279 -200
- package/app/styles/layout/_basic-layout.scss +36 -34
- package/app/styles/layout/_container.scss +38 -31
- package/app/styles/layout/_editor.scss +57 -17
- package/app/styles/layout/_general.scss +81 -67
- package/app/styles/menus/_sd-bottom-tabs.scss +21 -12
- package/app/styles/menus/_sd-content-navigation.scss +20 -16
- package/app/styles/menus/_sd-left-navigation.scss +62 -49
- package/app/styles/menus/_sd-sidebar-menu.scss +365 -323
- package/app/styles/menus/_sd-top-menu.scss +16 -7
- package/app/styles/primereact/_pr-autocomplete.scss +2 -0
- package/app/styles/primereact/_pr-datepicker.scss +13 -2
- package/app/styles/primereact/_pr-dialog.scss +55 -47
- package/app/styles/primereact/_pr-dropdown.scss +27 -22
- package/app/styles/primereact/_pr-general.scss +3 -0
- package/app/styles/primereact/_pr-menu.scss +2 -1
- package/app/styles/primereact/_pr-skeleton.scss +1 -0
- package/app/styles/primereact/_pr-tag-input.scss +1 -0
- package/app/styles/variables/_colors.scss +168 -170
- package/app/styles/variables/_typography.scss +1 -2
- package/app-typescript/components/Form/InputWrapper.tsx +1 -1
- package/app-typescript/components/Menu.tsx +1 -1
- package/dist/examples.bundle.css +18 -16
- package/dist/examples.bundle.js +5 -7
- package/dist/superdesk-ui.bundle.css +4265 -3552
- package/dist/superdesk-ui.bundle.js +4 -6
- package/package.json +2 -2
- package/react/components/Form/InputWrapper.d.ts +1 -1
- package/react/components/Menu.js +1 -1
@@ -4,7 +4,9 @@ $board-header-border-color: var(--color-kanban-border);
|
|
4
4
|
display: grid;
|
5
5
|
grid-template-rows: auto 1fr;
|
6
6
|
}
|
7
|
+
|
7
8
|
.sd-board__header {
|
9
|
+
@include sd-padding('0-5', 'bottom');
|
8
10
|
grid-row: 1/2;
|
9
11
|
position: relative;
|
10
12
|
min-height: 2rem;
|
@@ -12,15 +14,17 @@ $board-header-border-color: var(--color-kanban-border);
|
|
12
14
|
flex-direction: row;
|
13
15
|
align-items: center;
|
14
16
|
border-bottom: 4px solid $board-header-border-color;
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
}
|
18
|
+
|
19
|
+
.sd-board__header--clickable {
|
20
|
+
transition: border-color ease-in-out .2s;
|
21
|
+
cursor: pointer;
|
22
|
+
|
23
|
+
&:hover {
|
24
|
+
border-bottom-color: $sd-colour-interactive;
|
22
25
|
}
|
23
26
|
}
|
27
|
+
|
24
28
|
.sd-board__header-title {
|
25
29
|
text-transform: uppercase;
|
26
30
|
font-size: 1.2rem;
|
@@ -29,69 +33,82 @@ $board-header-border-color: var(--color-kanban-border);
|
|
29
33
|
flex-grow: 1;
|
30
34
|
color: var(--color-text);
|
31
35
|
}
|
36
|
+
|
32
37
|
.sd-board__content {
|
33
38
|
grid-row: 2/3;
|
34
39
|
}
|
35
40
|
|
36
41
|
.sd-board__content-block {
|
42
|
+
@include sd-shadow('z2');
|
37
43
|
border-radius: $border-radius__base--x-small;
|
38
44
|
background-color: var(--sd-item__main-Bg);
|
39
45
|
display: flex;
|
40
46
|
flex-direction: column;
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
47
|
+
}
|
48
|
+
|
49
|
+
.sd-board__content-block--clickable {
|
50
|
+
transition: box-shadow ease-in-out .2s;
|
51
|
+
cursor: pointer;
|
52
|
+
|
53
|
+
&:hover {
|
54
|
+
@include sd-shadow('z3');
|
55
|
+
outline: 1px solid var(--sd-colour-interactive--alpha-50);
|
49
56
|
}
|
50
57
|
}
|
58
|
+
|
51
59
|
.sd-board__list {
|
52
60
|
display: flex;
|
53
61
|
flex-direction: column;
|
54
62
|
}
|
63
|
+
|
55
64
|
.sd-board__list-item {
|
65
|
+
@include sd-padding('1-5', 'x');
|
66
|
+
@include sd-padding('1', 'y');
|
56
67
|
border-bottom: 1px solid var(--sd-colour-line--light);
|
57
68
|
display: flex;
|
58
69
|
flex-direction: row;
|
59
70
|
align-items: center;
|
60
|
-
|
61
|
-
@include sd-padding('1', 'y');
|
71
|
+
|
62
72
|
&:last-child {
|
63
73
|
border-bottom: none;
|
64
74
|
}
|
65
75
|
}
|
76
|
+
|
66
77
|
.sd-board__list-item-title {
|
67
78
|
flex-grow: 1;
|
68
79
|
text-transform: uppercase;
|
69
80
|
font-size: 1.2rem;
|
70
81
|
color: var(--color-text-light);
|
82
|
+
|
71
83
|
&.sd-board__list-item-title--to-do {
|
72
84
|
color: var(--color-assignment-to-do);
|
73
85
|
}
|
86
|
+
|
74
87
|
&.sd-board__list-item-title--progress {
|
75
88
|
color: var(--color-assignment-progress);
|
76
89
|
}
|
90
|
+
|
77
91
|
&.sd-board__list-item-title--completed {
|
78
92
|
color: var(--color-assignment-completed);
|
79
93
|
}
|
94
|
+
|
80
95
|
&.sd-board__list-item-title--to-do,
|
81
96
|
&.sd-board__list-item-title--progress,
|
82
97
|
&.sd-board__list-item-title--completed {
|
83
98
|
font-weight: 500;
|
84
99
|
}
|
85
100
|
}
|
101
|
+
|
86
102
|
.sd-board__list-item-badge {
|
87
103
|
@include sd-margin('0-5', 'right');
|
88
104
|
}
|
105
|
+
|
89
106
|
.sd-board__item-count--large {
|
107
|
+
@include sd-margin('1', 'right');
|
90
108
|
color: var(--color-text-light);
|
91
109
|
font-size: 3.6rem;
|
92
110
|
font-weight: 300;
|
93
111
|
line-height: 4rem;
|
94
|
-
@include sd-margin('1', 'right');
|
95
112
|
}
|
96
113
|
|
97
114
|
.sd-board__count-label {
|
@@ -101,15 +118,18 @@ $board-header-border-color: var(--color-kanban-border);
|
|
101
118
|
font-weight: 400;
|
102
119
|
color: var(--sd-colour-bg--10);
|
103
120
|
max-width: 10rem;
|
104
|
-
|
105
|
-
max-width: 14rem;
|
106
|
-
}
|
121
|
+
|
107
122
|
strong {
|
108
123
|
font-weight: 500;
|
109
124
|
color: var(--sd-colour-bg--07);
|
110
125
|
font-size: 1.3rem;
|
111
126
|
}
|
112
127
|
}
|
128
|
+
|
129
|
+
.sd-board__count-label--l {
|
130
|
+
max-width: 14rem;
|
131
|
+
}
|
132
|
+
|
113
133
|
.sd-board__doughnut-chart {
|
114
134
|
position: relative;
|
115
135
|
height: 4rem;
|
@@ -122,6 +142,7 @@ $board-header-border-color: var(--color-kanban-border);
|
|
122
142
|
margin-left: auto;
|
123
143
|
margin-right: - $sd-base-increment/2;
|
124
144
|
}
|
145
|
+
|
125
146
|
.sd-board__doughnut-chart-number {
|
126
147
|
position: absolute;
|
127
148
|
height: 2.4rem;
|
@@ -136,7 +157,6 @@ $board-header-border-color: var(--color-kanban-border);
|
|
136
157
|
text-align: center;
|
137
158
|
}
|
138
159
|
|
139
|
-
|
140
160
|
.sd-inset-search {
|
141
161
|
display: flex;
|
142
162
|
align-items: stretch;
|
@@ -148,14 +168,17 @@ $board-header-border-color: var(--color-kanban-border);
|
|
148
168
|
border: 1px solid var(--sd-colour-line--medium);
|
149
169
|
color: inherit;
|
150
170
|
box-shadow: inset 0 1px 2px 0 rgba(0,0,0,0.12);
|
171
|
+
|
151
172
|
&:hover {
|
152
173
|
border-color: var(--sd-colour-line--strong);
|
153
174
|
box-shadow: inset 0 1px 3px 0 hsla(0, 0%, 0%, 0.18);
|
154
175
|
}
|
176
|
+
|
155
177
|
&:focus-within {
|
156
178
|
border-color: var(--sd-colour-interactive);
|
157
179
|
box-shadow: inset 0 0 0 3px var(--sd-colour-interactive--alpha-30);
|
158
180
|
}
|
181
|
+
|
159
182
|
&::before {
|
160
183
|
content: "\e618";
|
161
184
|
z-index: 1;
|
@@ -171,6 +194,7 @@ $board-header-border-color: var(--color-kanban-border);
|
|
171
194
|
opacity: 0.4;
|
172
195
|
}
|
173
196
|
}
|
197
|
+
|
174
198
|
.sd-inset-search__input,
|
175
199
|
input.sd-inset-search__input {
|
176
200
|
flex-grow: 1;
|
@@ -185,12 +209,15 @@ input.sd-inset-search__input {
|
|
185
209
|
padding: 0 1rem 0 3rem;
|
186
210
|
height: auto;
|
187
211
|
color: inherit;
|
212
|
+
|
188
213
|
&::-ms-clear {
|
189
214
|
display: none;
|
190
215
|
}
|
216
|
+
|
191
217
|
&:focus {
|
192
218
|
box-shadow: unset !important;
|
193
219
|
}
|
220
|
+
|
194
221
|
&::placeholder {
|
195
222
|
opacity: 0.8;
|
196
223
|
font-weight: 300;
|
@@ -208,32 +235,38 @@ input.sd-inset-search__input {
|
|
208
235
|
padding: 0;
|
209
236
|
opacity: 0.35;
|
210
237
|
transition: opacity 0.2s ease-out;
|
238
|
+
|
211
239
|
i {
|
212
240
|
color: inherit;
|
213
241
|
}
|
242
|
+
|
214
243
|
&:hover {
|
215
244
|
opacity: 0.75;
|
216
245
|
}
|
246
|
+
|
217
247
|
&:active {
|
218
248
|
opacity: 1;
|
219
249
|
}
|
220
250
|
}
|
221
251
|
|
222
252
|
.sd-board__subheader {
|
253
|
+
@include sd-padding('0-5', 'bottom');
|
223
254
|
position: relative;
|
224
255
|
min-height: 2rem;
|
225
256
|
display: flex;
|
226
257
|
flex-direction: row;
|
227
258
|
align-items: center;
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
259
|
+
}
|
260
|
+
|
261
|
+
.sd-board__subheader--clickable {
|
262
|
+
transition: border-color ease-in-out .2s;
|
263
|
+
cursor: pointer;
|
264
|
+
|
265
|
+
&:hover {
|
266
|
+
border-bottom-color: $sd-colour-interactive;
|
235
267
|
}
|
236
268
|
}
|
269
|
+
|
237
270
|
.sd-board__subheader-title {
|
238
271
|
text-transform: uppercase;
|
239
272
|
font-size: 1.1rem;
|
@@ -243,6 +276,7 @@ input.sd-inset-search__input {
|
|
243
276
|
color: var(--color-text);
|
244
277
|
opacity: 0.75;
|
245
278
|
}
|
279
|
+
|
246
280
|
.sd-list-item-group + .sd-board__subheader {
|
247
281
|
@include sd-margin('2', 'top');
|
248
282
|
}
|
@@ -253,6 +287,7 @@ input.sd-inset-search__input {
|
|
253
287
|
margin: 0 1.2rem;
|
254
288
|
min-width: 24rem;
|
255
289
|
}
|
290
|
+
|
256
291
|
.sd-board__content {
|
257
292
|
padding: 0.6rem 0.3rem 0.6rem 0.3rem;
|
258
293
|
overflow-y: auto;
|
@@ -261,6 +296,7 @@ input.sd-inset-search__input {
|
|
261
296
|
|
262
297
|
.user-items--locked {
|
263
298
|
color: #c4170b;
|
299
|
+
|
264
300
|
i {
|
265
301
|
color: #c4170b;
|
266
302
|
font-size: 1.2rem;
|
@@ -268,11 +304,11 @@ input.sd-inset-search__input {
|
|
268
304
|
height: 1.2rem;
|
269
305
|
opacity: 1 !important;
|
270
306
|
}
|
271
|
-
|
272
307
|
}
|
273
308
|
|
274
309
|
.user-items--assigned {
|
275
310
|
color: #009688;
|
311
|
+
|
276
312
|
i {
|
277
313
|
color: #009688;
|
278
314
|
font-size: 1.4rem;
|
@@ -280,4 +316,4 @@ input.sd-inset-search__input {
|
|
280
316
|
height: 1.4rem;
|
281
317
|
opacity: 1 !important;
|
282
318
|
}
|
283
|
-
}
|
319
|
+
}
|
package/app/styles/_mixins.scss
CHANGED
@@ -1,68 +1,84 @@
|
|
1
1
|
@import 'variables';
|
2
|
+
|
2
3
|
@mixin clearfix {
|
3
4
|
*zoom: 1;
|
5
|
+
|
4
6
|
&:before,
|
5
7
|
&:after {
|
6
8
|
display: table;
|
7
9
|
content: "";
|
8
10
|
}
|
11
|
+
|
9
12
|
&:after {
|
10
13
|
clear: both;
|
11
14
|
}
|
12
15
|
}
|
16
|
+
|
13
17
|
// Border radius
|
14
18
|
@mixin border-radius($radius) {
|
15
|
-
|
19
|
+
border-radius: $radius;
|
16
20
|
}
|
21
|
+
|
17
22
|
@mixin box-shadow-both($shadow1 , $shadow2) {
|
18
23
|
box-shadow: $shadow1, $shadow2;
|
19
24
|
}
|
25
|
+
|
20
26
|
// Text overflow ellipsis
|
21
27
|
@mixin text-overflow() {
|
22
28
|
overflow: hidden;
|
23
29
|
white-space: nowrap;
|
24
30
|
text-overflow: ellipsis;
|
25
31
|
}
|
32
|
+
|
26
33
|
// Font weight
|
27
34
|
@mixin text-light() {
|
28
35
|
font-weight: 300;
|
29
36
|
}
|
37
|
+
|
30
38
|
@mixin text-normal() {
|
31
39
|
font-weight: 400;
|
32
40
|
}
|
41
|
+
|
33
42
|
@mixin text-semibold() {
|
34
43
|
font-weight: 500;
|
35
44
|
}
|
45
|
+
|
36
46
|
@mixin text-bold() {
|
37
47
|
font-weight: 700;
|
38
48
|
}
|
49
|
+
|
39
50
|
@mixin text-extrabold() {
|
40
51
|
font-weight: 800;
|
41
52
|
}
|
53
|
+
|
42
54
|
// Box sizing
|
43
55
|
@mixin box-sizing($boxmodel) {
|
44
|
-
|
56
|
+
box-sizing: $boxmodel;
|
45
57
|
}
|
58
|
+
|
46
59
|
@mixin border-box() {
|
47
60
|
@include box-sizing(border-box);
|
48
61
|
}
|
62
|
+
|
49
63
|
// Opacity
|
50
64
|
@mixin opacity($opacity: 100) {
|
51
65
|
opacity: $opacity / 100;
|
52
|
-
|
66
|
+
filter: "alpha(opacity=#{$opacity})";
|
53
67
|
}
|
68
|
+
|
54
69
|
// Box shadow
|
55
70
|
@mixin box-shadow($top, $left, $blur, $spread, $color, $inset: false) {
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
71
|
+
@if $inset {
|
72
|
+
-webkit-box-shadow:inset $top $left $blur $spread $color;
|
73
|
+
-moz-box-shadow:inset $top $left $blur $spread $color;
|
74
|
+
box-shadow:inset $top $left $blur $spread $color;
|
75
|
+
} @else {
|
76
|
+
-webkit-box-shadow: $top $left $blur $spread $color;
|
77
|
+
-moz-box-shadow: $top $left $blur $spread $color;
|
78
|
+
box-shadow: $top $left $blur $spread $color;
|
79
|
+
}
|
65
80
|
}
|
81
|
+
|
66
82
|
// Transition -- example: @include transition(padding, 1s, ease-in-out);
|
67
83
|
@mixin transition($transition-property, $transition-time, $method) {
|
68
84
|
-webkit-transition: $transition-property $transition-time $method;
|
@@ -94,43 +110,47 @@
|
|
94
110
|
box-shadow: var(--sd-shadow__sliding-toolbar);
|
95
111
|
gap: $sd-base-increment;
|
96
112
|
height: $nav-height;
|
113
|
+
|
97
114
|
&--right {
|
98
115
|
text-align: end;
|
99
116
|
justify-content: flex-end;
|
100
117
|
}
|
118
|
+
|
101
119
|
.sliding-toolbar__inner {
|
102
120
|
flex-grow: 1;
|
103
121
|
display: flex;
|
104
122
|
align-items: center;
|
105
123
|
gap: $sd-base-increment;
|
124
|
+
|
106
125
|
&--right {
|
107
126
|
text-align: end;
|
108
127
|
}
|
109
128
|
}
|
129
|
+
|
110
130
|
.sliding-toolbar__info-text {
|
111
131
|
font-weight: 400;
|
112
132
|
opacity: 0.75;
|
113
133
|
font-size: 1.4rem;
|
114
134
|
}
|
115
135
|
}
|
136
|
+
|
116
137
|
.sliding-toolbar {
|
117
138
|
@include sliding-toolbar();
|
139
|
+
|
118
140
|
&--static {
|
119
141
|
position: static;
|
120
142
|
animation: none;
|
121
143
|
}
|
122
144
|
}
|
123
145
|
|
124
|
-
|
125
|
-
|
126
146
|
// User select
|
127
147
|
// For selecting text on the page
|
128
148
|
@mixin user-select($select) {
|
129
149
|
-webkit-user-select: $select;
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
-webkit-touch-callout: $select;
|
134
|
-
|
135
|
-
|
150
|
+
-moz-user-select: $select;
|
151
|
+
-o-user-select: $select;
|
152
|
+
user-select: $select;
|
153
|
+
-webkit-touch-callout: $select;
|
154
|
+
-khtml-user-select: $select;
|
155
|
+
-ms-user-select: $select;
|
136
156
|
}
|