superdesk-ui-framework 3.0.1-beta.9 → 3.0.2
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/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +1 -0
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/scripts/toggleBoxNext.js +1 -1
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_buttons.scss +11 -6
- package/app/styles/_content-divider.scss +63 -8
- package/app/styles/_helpers.scss +24 -1
- package/app/styles/_icon-font.scss +11 -10
- package/app/styles/_labels.scss +0 -1
- package/app/styles/_master-desk.scss +5 -4
- package/app/styles/_modals.scss +7 -3
- package/app/styles/_normalize.scss +4 -0
- package/app/styles/_sd-tag-input.scss +56 -2
- package/app/styles/_simple-list.scss +0 -2
- package/app/styles/_table-list.scss +116 -12
- package/app/styles/app.scss +3 -0
- package/app/styles/components/_list-item.scss +23 -16
- package/app/styles/components/_sd-collapse-box.scss +6 -6
- package/app/styles/components/_sd-comment-box.scss +8 -4
- package/app/styles/components/_sd-editor-popup.scss +4 -4
- package/app/styles/components/_sd-media-carousel.scss +37 -2
- package/app/styles/components/_sd-pagination.scss +41 -0
- package/app/styles/components/_sd-photo-preview.scss +2 -2
- package/app/styles/components/_subnav.scss +470 -470
- package/app/styles/design-tokens/_new-colors.scss +29 -12
- package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
- package/app/styles/form-elements/_input-wrap.scss +138 -0
- package/app/styles/form-elements/_inputs.scss +230 -61
- package/app/styles/grids/_grid-layout.scss +13 -14
- package/app/styles/interface-elements/_side-panel.scss +1 -1
- package/app/styles/layout/_editor.scss +6 -0
- package/app/styles/menus/_sd-sidebar-menu.scss +1 -1
- package/app/styles/primereact/_pr-datepicker.scss +16 -2
- package/app/styles/primereact/_pr-dialog.scss +9 -0
- package/app/styles/primereact/_pr-menu.scss +6 -5
- package/app/styles/variables/_colors.scss +47 -47
- package/app/template/search-handler.html +2 -2
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/DatePicker.tsx +8 -9
- package/app-typescript/components/Dropdown.tsx +127 -82
- package/app-typescript/components/DurationInput.tsx +39 -14
- package/app-typescript/components/Form/FormLabel.tsx +8 -1
- package/app-typescript/components/Form/InputBase.tsx +12 -2
- package/app-typescript/components/Input.tsx +4 -4
- package/app-typescript/components/Label.tsx +17 -1
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +2 -1
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +21 -2
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
- package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
- package/app-typescript/components/Layouts/CoreLayout.tsx +3 -1
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +10 -1
- package/app-typescript/components/Lists/ContentList.tsx +64 -30
- package/app-typescript/components/Lists/TableList.tsx +255 -53
- package/app-typescript/components/Menu.tsx +2 -2
- package/app-typescript/components/Modal.tsx +6 -2
- package/app-typescript/components/MultiSelect.tsx +2 -2
- package/app-typescript/components/NavButton.tsx +2 -1
- package/app-typescript/components/Navigation/SideBarMenu.tsx +30 -4
- package/app-typescript/components/SearchBar.tsx +11 -3
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/components/TimePicker.tsx +2 -13
- package/app-typescript/components/TreeSelect.tsx +286 -180
- package/app-typescript/index.ts +1 -0
- package/dist/examples.bundle.css +110 -71
- package/dist/examples.bundle.js +24358 -22168
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +505 -2
- package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +17 -19
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +22 -23
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +226 -25
- package/dist/react/ContentDivider.tsx +22 -18
- package/dist/react/ContentList.tsx +188 -12
- package/dist/react/DatePicker.tsx +50 -2
- package/dist/react/Dropdowns.tsx +580 -48
- package/dist/react/DurationInput.tsx +7 -3
- package/dist/react/Inputs.tsx +1 -7
- package/dist/react/Modal.tsx +154 -22
- package/dist/react/MultiSelect.tsx +5 -5
- package/dist/react/NavButtons.tsx +31 -1
- package/dist/react/TableList.tsx +52 -139
- package/dist/react/Togglebox.tsx +1 -1
- package/dist/react/TreeSelect.tsx +167 -176
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +1 -0
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +1100 -407
- package/dist/superdesk-ui.bundle.js +6594 -4035
- package/dist/vendor.bundle.js +27 -27
- package/examples/css/docs-page.css +4 -4
- package/examples/index.js +4 -0
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +505 -2
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +17 -19
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +22 -23
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +226 -25
- package/examples/pages/react/ContentDivider.tsx +22 -18
- package/examples/pages/react/ContentList.tsx +188 -12
- package/examples/pages/react/DatePicker.tsx +50 -2
- package/examples/pages/react/Dropdowns.tsx +580 -48
- package/examples/pages/react/DurationInput.tsx +7 -3
- package/examples/pages/react/Inputs.tsx +1 -7
- package/examples/pages/react/Modal.tsx +154 -22
- package/examples/pages/react/MultiSelect.tsx +5 -5
- package/examples/pages/react/NavButtons.tsx +31 -1
- package/examples/pages/react/TableList.tsx +52 -139
- package/examples/pages/react/Togglebox.tsx +1 -1
- package/examples/pages/react/TreeSelect.tsx +167 -176
- package/package.json +3 -5
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +2 -0
- package/react/components/DatePicker.d.ts +2 -2
- package/react/components/DatePicker.js +3 -3
- package/react/components/Dropdown.d.ts +6 -5
- package/react/components/Dropdown.js +57 -30
- package/react/components/DurationInput.d.ts +1 -1
- package/react/components/DurationInput.js +46 -17
- 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/react/components/Input.d.ts +3 -3
- package/react/components/Input.js +2 -1
- package/react/components/Label.d.ts +1 -0
- package/react/components/Label.js +17 -2
- package/react/components/Layouts/AuthoringFrame.d.ts +1 -0
- package/react/components/Layouts/AuthoringFrame.js +1 -1
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts +9 -2
- package/react/components/Layouts/AuthoringFrameRightBar.js +14 -3
- package/react/components/Layouts/AuthoringInnerHeader.js +1 -1
- package/react/components/Layouts/AuthoringMain.js +1 -1
- package/react/components/Layouts/CoreLayout.d.ts +2 -0
- package/react/components/Layouts/CoreLayout.js +1 -1
- package/react/components/Layouts/CoreLayoutMain.d.ts +2 -0
- package/react/components/Layouts/CoreLayoutMain.js +8 -1
- package/react/components/Lists/ContentList.d.ts +6 -0
- package/react/components/Lists/ContentList.js +42 -16
- package/react/components/Lists/TableList.d.ts +30 -8
- package/react/components/Lists/TableList.js +127 -24
- package/react/components/Menu.js +1 -1
- package/react/components/Modal.d.ts +2 -0
- package/react/components/Modal.js +3 -3
- package/react/components/MultiSelect.d.ts +40 -0
- package/react/components/MultiSelect.js +73 -0
- package/react/components/NavButton.d.ts +1 -1
- package/react/components/Navigation/SideBarMenu.d.ts +6 -0
- package/react/components/Navigation/SideBarMenu.js +19 -2
- package/react/components/SearchBar.d.ts +1 -1
- package/react/components/SearchBar.js +15 -7
- package/react/components/TimePicker.d.ts +1 -5
- package/react/components/TimePicker.js +3 -7
- package/react/components/TreeSelect.d.ts +12 -5
- package/react/components/TreeSelect.js +189 -116
- package/react/index.d.ts +1 -0
- package/react/index.js +3 -0
- package/patches/@superdesk+primereact+5.0.2-4.patch +0 -66
@@ -5,6 +5,8 @@
|
|
5
5
|
display: flex;
|
6
6
|
flex-direction: column;
|
7
7
|
align-self: stretch;
|
8
|
+
overflow: hidden !important;
|
9
|
+
padding: 1px;
|
8
10
|
//gap: $sd-base-increment * 1.5;
|
9
11
|
&--comfortable {
|
10
12
|
gap: $sd-base-increment * 2;
|
@@ -14,32 +16,26 @@
|
|
14
16
|
}
|
15
17
|
}
|
16
18
|
|
19
|
+
.table-list--read-only {
|
20
|
+
pointer-events: none;
|
21
|
+
cursor: default;
|
22
|
+
}
|
23
|
+
|
17
24
|
$table-list-palette: $sd-basic-palette;
|
18
25
|
|
19
26
|
.table-list__item {
|
20
27
|
display: grid;
|
21
|
-
z-index: 1;
|
22
28
|
align-items: center;
|
23
29
|
grid-template-columns: [contentCol] 1fr [actionsVisible] auto [actionsHidden] auto;
|
24
30
|
position: relative;
|
25
31
|
flex-direction: row;
|
26
|
-
padding:
|
32
|
+
padding: $sd-base-increment;
|
27
33
|
min-height: 4.2rem;
|
28
34
|
border-radius: var(--b-radius--medium);
|
29
35
|
background-color: var(--sd-item__main-Bg);
|
30
36
|
border: 1px solid var(--sd-colour-line--light);
|
31
37
|
transition: all 0.2s ease-in-out;
|
32
38
|
inset-inline-start: 0;
|
33
|
-
&::before {
|
34
|
-
content: "";
|
35
|
-
width: 6px;
|
36
|
-
position: absolute;
|
37
|
-
inset-block: 3px;
|
38
|
-
inset-inline-start: 3px;
|
39
|
-
background-color: var(--sd-colour-panel-bg--100);
|
40
|
-
z-index: 1;
|
41
|
-
border-radius: 2px;
|
42
|
-
}
|
43
39
|
|
44
40
|
&--margin {
|
45
41
|
margin-bottom: $sd-base-increment;
|
@@ -89,6 +85,10 @@ $table-list-palette: $sd-basic-palette;
|
|
89
85
|
}
|
90
86
|
}
|
91
87
|
}
|
88
|
+
&--locked {
|
89
|
+
border-color: hsla(350, 70%, 60%, 0.75);
|
90
|
+
border-left-color: hsla(350, 70%, 60%, 0.75) !important;
|
91
|
+
}
|
92
92
|
&.table-list__item--selected.table-list__item--clickable {
|
93
93
|
&:hover {
|
94
94
|
box-shadow: var(--sd-shadow__item--selected-thin);
|
@@ -117,6 +117,39 @@ $table-list-palette: $sd-basic-palette;
|
|
117
117
|
}
|
118
118
|
}
|
119
119
|
|
120
|
+
.table-list__add-item {
|
121
|
+
display: grid;
|
122
|
+
align-items: center;
|
123
|
+
//grid-template-columns: [contentCol] 1fr [actionsVisible] auto [actionsHidden] auto;
|
124
|
+
position: relative;
|
125
|
+
flex-direction: row;
|
126
|
+
padding: 8px;
|
127
|
+
min-height: 4.2rem;
|
128
|
+
border-radius: var(--b-radius--medium);
|
129
|
+
background-color: transparent;
|
130
|
+
border: 1px dashed var(--sd-colour-line--medium);
|
131
|
+
transition: all 0.2s ease-in-out;
|
132
|
+
inset-inline-start: 0;
|
133
|
+
|
134
|
+
&--container {
|
135
|
+
display: flex;
|
136
|
+
justify-content: center;
|
137
|
+
align-items: center;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
.table-list__item-border {
|
142
|
+
width: 6px;
|
143
|
+
background-color: var(--sd-colour-panel-bg--100);
|
144
|
+
z-index: 2;
|
145
|
+
position: absolute;
|
146
|
+
inset-block: 3px;
|
147
|
+
inset-inline-start: 3px;
|
148
|
+
border-radius: 2px;
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
|
120
153
|
.table-list__item-content {
|
121
154
|
grid-column: contentCol;
|
122
155
|
grid-row: mainRow;
|
@@ -128,6 +161,15 @@ $table-list-palette: $sd-basic-palette;
|
|
128
161
|
align-items: center;
|
129
162
|
gap:8px;
|
130
163
|
}
|
164
|
+
.table-list__item-border {
|
165
|
+
width: 6px;
|
166
|
+
background-color: var(--sd-colour-panel-bg--100);
|
167
|
+
z-index: 2;
|
168
|
+
position: absolute;
|
169
|
+
inset-block: 3px;
|
170
|
+
inset-inline-start: 3px;
|
171
|
+
border-radius: 2px;
|
172
|
+
}
|
131
173
|
.table-list__item-content-block {
|
132
174
|
display: flex;
|
133
175
|
align-items: center;
|
@@ -224,6 +266,7 @@ $table-list-palette: $sd-basic-palette;
|
|
224
266
|
transition: all ease 0.3s;
|
225
267
|
}
|
226
268
|
}
|
269
|
+
|
227
270
|
.table-list__add-bar {
|
228
271
|
height: 12px;
|
229
272
|
display: flex;
|
@@ -237,8 +280,69 @@ $table-list-palette: $sd-basic-palette;
|
|
237
280
|
background-color: var(--sd-colour-panel-bg--000);
|
238
281
|
transform: scale(0.5);
|
239
282
|
}
|
283
|
+
|
240
284
|
.side-panel__content-block {
|
241
285
|
.table-list__item-content {
|
242
286
|
grid-template-columns: [columnLeft] 140px [columncenter] 1fr [columnRight] auto;
|
243
287
|
}
|
244
288
|
}
|
289
|
+
|
290
|
+
.table-list--gap-s {
|
291
|
+
gap: $sd-base-increment;
|
292
|
+
}
|
293
|
+
|
294
|
+
.table-list__item--draggable {
|
295
|
+
&.table-list__item--drag-handles-always {
|
296
|
+
border-left-width: 16px;
|
297
|
+
border-left-color: var(--sd-colour-line--medium);
|
298
|
+
&::after {
|
299
|
+
content: "";
|
300
|
+
width: 20px;
|
301
|
+
position: absolute;
|
302
|
+
inset-block: -1px;
|
303
|
+
inset-inline-start: -18px;
|
304
|
+
background-image: url(../img/dots.svg);
|
305
|
+
background-repeat: no-repeat;
|
306
|
+
background-position: center center;
|
307
|
+
z-index: 2;
|
308
|
+
border-radius: var(--b-radius--small);
|
309
|
+
opacity: 0.85;
|
310
|
+
}
|
311
|
+
&:hover {
|
312
|
+
border-left-color: var(--sd-colour-line--strong);
|
313
|
+
&::after {
|
314
|
+
cursor: grab;
|
315
|
+
}
|
316
|
+
}
|
317
|
+
&:active {
|
318
|
+
border-color: var(--sd-colour-interactive);
|
319
|
+
cursor: grabbing;
|
320
|
+
&::after {
|
321
|
+
opacity: 1 !important;
|
322
|
+
cursor: grabbing;
|
323
|
+
}
|
324
|
+
}
|
325
|
+
}
|
326
|
+
&.table-list__item--drag-handles-none {
|
327
|
+
border-left-width: 1px;
|
328
|
+
&::after {
|
329
|
+
content: "";
|
330
|
+
width: 0;
|
331
|
+
opacity: 0;
|
332
|
+
}
|
333
|
+
&:hover {
|
334
|
+
border-left-color: var(--sd-colour-line--strong);
|
335
|
+
&::after {
|
336
|
+
cursor: grab;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
&:active {
|
340
|
+
border-color: var(--sd-colour-interactive);
|
341
|
+
cursor: grabbing;
|
342
|
+
&::after {
|
343
|
+
opacity: 1 !important;
|
344
|
+
cursor: grabbing;
|
345
|
+
}
|
346
|
+
}
|
347
|
+
}
|
348
|
+
}
|
package/app/styles/app.scss
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
@import 'components/theme-selector';
|
70
70
|
@import 'components/sd-dropzone';
|
71
71
|
@import 'components/sd-notification-panel';
|
72
|
+
@import 'components/sd-pagination';
|
72
73
|
|
73
74
|
// Dropdowns
|
74
75
|
@import 'dropdowns/basic-dropdown';
|
@@ -85,6 +86,7 @@
|
|
85
86
|
@import 'form-elements/radio';
|
86
87
|
@import 'form-elements/autocomplete';
|
87
88
|
@import 'form-elements/select-grid';
|
89
|
+
@import 'form-elements/input-wrap';
|
88
90
|
|
89
91
|
// Menus
|
90
92
|
@import 'menus/sd-sidebar-menu';
|
@@ -106,6 +108,7 @@
|
|
106
108
|
@import 'pr-superdesk-theme';
|
107
109
|
@import 'primereact/pr-dialog';
|
108
110
|
@import 'primereact/pr-menu';
|
111
|
+
@import 'primereact/pr-skeleton';
|
109
112
|
|
110
113
|
// React Components
|
111
114
|
@import 'avatar';
|
@@ -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
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
.comment-box__reply-item {
|
2
|
-
border-bottom: 1px solid
|
2
|
+
border-bottom: 1px solid var(--sd-colour-line--light);
|
3
3
|
}
|
4
4
|
|
5
5
|
.comment-box__input {
|
6
6
|
padding: 0.4rem;
|
7
|
-
border-radius: $border-radius__base--
|
8
|
-
border: 1px solid
|
7
|
+
border-radius: $border-radius__base--small;
|
8
|
+
border: 1px solid var(--sd-colour-line--light);
|
9
9
|
height: 2.8rem;
|
10
10
|
resize: none;
|
11
11
|
}
|
@@ -13,7 +13,10 @@
|
|
13
13
|
display: none;
|
14
14
|
padding-top: 1rem;
|
15
15
|
&--active {
|
16
|
-
display:
|
16
|
+
display: flex;
|
17
|
+
justify-content: flex-end;
|
18
|
+
align-items: center;
|
19
|
+
gap: var(--gap--small);
|
17
20
|
}
|
18
21
|
}
|
19
22
|
.comment-box__button-toolbar {
|
@@ -22,6 +25,7 @@
|
|
22
25
|
flex-direction: row;
|
23
26
|
align-items: center;
|
24
27
|
justify-content: flex-start;
|
28
|
+
gap: var(--gap--small);
|
25
29
|
&--right {
|
26
30
|
justify-content: flex-end;
|
27
31
|
}
|
@@ -17,11 +17,11 @@ $editor-popup-padding: 1.6rem;
|
|
17
17
|
|
18
18
|
.editor-popup__main {
|
19
19
|
display: flex;
|
20
|
-
color:
|
20
|
+
color: var(--color-text);
|
21
21
|
width: 32rem;
|
22
22
|
max-height: 100%;
|
23
23
|
&.editor-popup__main--floating {
|
24
|
-
background-color:
|
24
|
+
background-color: var(--color-dropdown-menu-Bg);
|
25
25
|
z-index: 2;
|
26
26
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 3px 1px -2px rgba(0, 0, 0, 0.1);
|
27
27
|
}
|
@@ -84,6 +84,6 @@ $editor-popup-padding: 1.6rem;
|
|
84
84
|
}
|
85
85
|
|
86
86
|
.editor-popup__secondary-content {
|
87
|
-
background-color:
|
88
|
-
border-top: 1px solid
|
87
|
+
background-color: hsla(214, 13%, 48%, 0.05);
|
88
|
+
border-top: 1px solid var(--sd-colour-line--light);
|
89
89
|
}
|
@@ -290,8 +290,10 @@ $background-active: scale-color($background, $alpha: 100%))
|
|
290
290
|
font-weight: 300;
|
291
291
|
line-height: 140%;
|
292
292
|
border: 1px solid transparent;
|
293
|
-
transition: all ease-in-out 0.2s;
|
294
|
-
|
293
|
+
transition: all ease-in-out 0.2s;
|
294
|
+
background-color: transparent;
|
295
|
+
&[contenteditable="true"],
|
296
|
+
&textarea:not(disabled) {
|
295
297
|
&:hover {
|
296
298
|
border-color: var(--sd-colour-interactive--alpha-60);
|
297
299
|
}
|
@@ -312,6 +314,39 @@ $background-active: scale-color($background, $alpha: 100%))
|
|
312
314
|
}
|
313
315
|
|
314
316
|
}
|
317
|
+
textarea.sd-media-carousel__media-caption,
|
318
|
+
textarea.sd-media-carousel__media-title {
|
319
|
+
color: inherit;
|
320
|
+
position: relative;
|
321
|
+
padding: 1.2rem;
|
322
|
+
width: 100%;
|
323
|
+
font-size: 1.4rem;
|
324
|
+
text-align: start;
|
325
|
+
font-weight: 300;
|
326
|
+
line-height: 140%;
|
327
|
+
border: 1px solid transparent;
|
328
|
+
transition: all ease-in-out 0.2s;
|
329
|
+
background-color: transparent;
|
330
|
+
&:not(disabled) {
|
331
|
+
&:hover {
|
332
|
+
border-color: var(--sd-colour-interactive--alpha-60);
|
333
|
+
}
|
334
|
+
&:focus {
|
335
|
+
border-color: $sd-colour-interactive;
|
336
|
+
box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-30);
|
337
|
+
}
|
338
|
+
&:empty {
|
339
|
+
&:before {
|
340
|
+
position: absolute;
|
341
|
+
content: attr(sd-placeholder) " ";
|
342
|
+
opacity: 0.55;
|
343
|
+
color: inherit;
|
344
|
+
font-weight: 300;
|
345
|
+
cursor: text;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
315
350
|
.sd-media-carousel__media-caption {
|
316
351
|
min-height: 4rem;
|
317
352
|
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
.sd-pagination {
|
2
|
+
display: flex;
|
3
|
+
align-items: center;
|
4
|
+
justify-content: center;
|
5
|
+
gap: var(--gap--small);
|
6
|
+
&--align-start {
|
7
|
+
justify-content: flex-start;
|
8
|
+
}
|
9
|
+
&--align-end {
|
10
|
+
justify-content: flex-end;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
.sd-pagination__item {
|
14
|
+
display: flex;
|
15
|
+
align-items: center;
|
16
|
+
justify-content: center;
|
17
|
+
height: $sd-base-increment * 4;
|
18
|
+
min-width: $sd-base-increment * 4;
|
19
|
+
border-radius: var(--b-radius--full);
|
20
|
+
transition: all 0.2s ease;
|
21
|
+
border: 1px solid transparent;
|
22
|
+
&:hover {
|
23
|
+
border: 1px solid var(--sd-colour-interactive--alpha-30);
|
24
|
+
}
|
25
|
+
&:active {
|
26
|
+
background-color: var(--sd-colour-interactive--alpha-10);
|
27
|
+
border: 1px solid var(--sd-colour-interactive);
|
28
|
+
}
|
29
|
+
&--active {
|
30
|
+
background-color: var(--sd-colour-interactive--alpha-10);
|
31
|
+
color: var(--sd-colour-interactive);
|
32
|
+
}
|
33
|
+
&:disabled,
|
34
|
+
&--disabled {
|
35
|
+
opacity: 0.5;
|
36
|
+
pointer-events: none;
|
37
|
+
}
|
38
|
+
&--more {
|
39
|
+
pointer-events: none;
|
40
|
+
}
|
41
|
+
}
|
@@ -338,11 +338,11 @@ $photo-nav-transition: all 0.2s ease-out;
|
|
338
338
|
}
|
339
339
|
|
340
340
|
.sd-photo-preview__slide-in-button {
|
341
|
-
position: absolute;
|
341
|
+
position: absolute !important;
|
342
342
|
top: 2.4rem;
|
343
343
|
right: 0;
|
344
344
|
z-index: 2;
|
345
|
-
background-color:
|
345
|
+
background-color: hsla(0, 0%, 100%, 0.1);
|
346
346
|
height:4.8rem;
|
347
347
|
width:4.8rem;
|
348
348
|
color: $white;
|