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
@@ -1,114 +1,119 @@
|
|
1
1
|
// EDITOR Themes
|
2
2
|
|
3
|
-
|
4
3
|
:root {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
4
|
+
--sd-editor-colour__main-bg: hsla(0, 0%, 100%, 1);
|
5
|
+
--sd-editor-colour__main-bg--alt: hsla(214, 13%, 96%, 1);
|
6
|
+
--sd-editor-colour__main-border: hsla(214, 13%, 12%, 0.2);
|
7
|
+
--sd-editor-colour__txt: hsla(0, 0%, 20%, 1);
|
8
|
+
--sd-editor-colour__txt--accent: var(--sd-colour-interactive);
|
9
|
+
--sd-editor-colour__quote-border: hsla(0, 0%, 20%, 0.5);
|
10
|
+
--sd-editor-colour__controls-bg: hsla(214, 13%, 96%, 1);
|
11
|
+
--sd-editor-colour__controls-border: hsla(214, 13%, 12%, 0.2);
|
12
|
+
--sd-editor-colour__button-bg--active: hsla(214, 13%, 96%, 0.2);
|
13
|
+
--sd-editor-colour__button-txt--active: var(--sd-colour-interactive);
|
14
|
+
--sd-editor-colour__field-label-bg: hsla(214, 13%, 12%, 0.5);
|
15
|
+
--sd-editor-colour__field-label-txt: hsla(214, 13%, 96%, 0.8);
|
16
|
+
|
17
|
+
--sd-editor-colour__float-toolbar-bg: hsla(214, 13%, 96%, 0.96);
|
18
|
+
|
19
|
+
--sd-editor-colour__comment-bg: hsla(54, 100%, 61%, 0.3);
|
20
|
+
--sd-editor-colour__annotation: hsla(91, 100%, 40%, 0.6);
|
21
|
+
--sd-editor-colour__removing: hsla(279, 64%, 47%, 1);
|
22
|
+
--sd-editor-colour__removing-bg: hsla(279, 64%, 47%, 0.12);
|
23
|
+
--sd-editor-colour__adding: hsla(82, 90%, 32%, 1);
|
24
|
+
--sd-editor-colour__adding-bg: hsla(82, 90%, 32%, 0.16);
|
26
25
|
}
|
26
|
+
|
27
27
|
.sd-editor--theme-default {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
28
|
+
--sd-editor-colour__main-bg: hsla(0, 0%, 100%, 1);
|
29
|
+
--sd-editor-colour__main-bg--alt: hsla(214, 13%, 96%, 1);
|
30
|
+
--sd-editor-colour__main-border: hsla(214, 13%, 12%, 0.2);
|
31
|
+
--sd-editor-colour__txt: hsla(0, 0%, 20%, 1);
|
32
|
+
--sd-editor-colour__txt--accent: var(--sd-colour-interactive);
|
33
|
+
--sd-editor-colour__quote-border: hsla(0, 0%, 20%, 0.5);
|
34
|
+
--sd-editor-colour__controls-bg: hsla(214, 13%, 96%, 1);
|
35
|
+
--sd-editor-colour__controls-border: hsla(214, 13%, 12%, 0.2);
|
36
|
+
--sd-editor-colour__button-bg--active: hsla(214, 13%, 99%, 0.9);
|
37
37
|
}
|
38
|
+
|
38
39
|
.sd-editor--theme-dark {
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
40
|
+
--sd-editor-colour__main-bg: hsla(214, 13%, 12%, 1);
|
41
|
+
--sd-editor-colour__main-bg--alt: hsla(214, 13%, 16%, 1);
|
42
|
+
--sd-editor-colour__main-border: hsla(214, 13%, 85%, 0.2);
|
43
|
+
--sd-editor-colour__txt: hsla(214, 13%, 85%, 1);
|
44
|
+
--sd-editor-colour__txt--accent: var(--sd-colour-interactive);
|
45
|
+
--sd-editor-colour__quote-border: hsla(214, 13%, 85%, 0.5);
|
46
|
+
--sd-editor-colour__controls-bg: hsla(214, 13%, 16%, 1);
|
47
|
+
--sd-editor-colour__controls-border: hsla(214, 13%, 85%, 0.2);
|
48
|
+
|
49
|
+
--sd-editor-colour__field-label-bg: hsla(214, 13%, 5%, 0.9);
|
50
|
+
|
51
|
+
--sd-editor-colour__float-toolbar-bg: hsla(214, 13%, 16%, 0.96);
|
52
|
+
|
53
|
+
--sd-editor-colour__comment-bg: hsla(54, 100%, 61%, 0.16);
|
54
|
+
--sd-editor-colour__annotation: hsla(91, 100%, 40%, 0.6);
|
55
|
+
--sd-editor-colour__removing: hsla(279, 64%, 47%, 1);
|
56
|
+
--sd-editor-colour__removing-bg: hsla(279, 64%, 47%, 0.12);
|
57
|
+
--sd-editor-colour__adding: hsla(82, 90%, 32%, 1);
|
58
|
+
--sd-editor-colour__adding-bg: hsla(82, 90%, 32%, 0.16);
|
58
59
|
}
|
60
|
+
|
59
61
|
.sd-editor--theme-blue {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
62
|
+
--sd-editor-colour__main-bg: hsla(212, 89%, 22%, 1);
|
63
|
+
--sd-editor-colour__main-bg--alt: hsla(212, 89%, 28%, 1);
|
64
|
+
--sd-editor-colour__main-border: hsla(214, 13%, 85%, 0.2);
|
65
|
+
--sd-editor-colour__txt: hsla(0, 0%, 100%, 1);
|
66
|
+
--sd-editor-colour__txt--accent: hsla(307, 100%, 50%, 1);
|
67
|
+
--sd-editor-colour__quote-border: hsla(214, 13%, 85%, 0.5);
|
68
|
+
--sd-editor-colour__controls-bg: hsla(212, 89%, 26%, 1);
|
69
|
+
--sd-editor-colour__controls-border: hsla(214, 13%, 85%, 0.2);
|
68
70
|
}
|
71
|
+
|
69
72
|
.sd-editor--theme-turquoise {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
73
|
+
--sd-editor-colour__main-bg: hsla(178, 49%, 57%, 1);
|
74
|
+
--sd-editor-colour__main-bg--alt: hsla(178, 49%, 64%, 1);
|
75
|
+
--sd-editor-colour__main-border: hsla(214, 13%, 12%, 0.2);
|
76
|
+
--sd-editor-colour__txt: hsla(213, 49%, 14%, 1);
|
77
|
+
--sd-editor-colour__txt--accent: hsla(307, 100%, 50%, 1);
|
78
|
+
--sd-editor-colour__quote-border: hsla(213, 49%, 14%, 0.5);
|
79
|
+
--sd-editor-colour__controls-bg: hsla(178, 49%, 61%, 1);
|
80
|
+
--sd-editor-colour__controls-border: hsla(214, 13%, 12%, 0.12);
|
81
|
+
|
82
|
+
--sd-editor-colour__comment-bg: hsla(54, 100%, 61%, 0.3);
|
83
|
+
--sd-editor-colour__annotation: hsla(91, 100%, 40%, 0.6);
|
84
|
+
--sd-editor-colour__removing: hsla(279, 64%, 47%, 1);
|
85
|
+
--sd-editor-colour__removing-bg: hsla(279, 64%, 47%, 0.12);
|
86
|
+
--sd-editor-colour__adding: hsla(82, 90%, 32%, 1);
|
87
|
+
--sd-editor-colour__adding-bg: hsla(82, 90%, 32%, 0.16);
|
85
88
|
}
|
89
|
+
|
86
90
|
.sd-editor--theme-military {
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
91
|
+
--sd-editor-colour__main-bg: hsla(70, 25%, 50%, 1);
|
92
|
+
--sd-editor-colour__main-bg--alt: hsla(70, 25%, 58%, 1);
|
93
|
+
--sd-editor-colour__main-border: hsla(214, 13%, 12%, 0.2);
|
94
|
+
--sd-editor-colour__txt: hsla(71, 25%, 13%, 1);
|
95
|
+
--sd-editor-colour__txt--accent: hsla(307, 100%, 50%, 1);
|
96
|
+
--sd-editor-colour__quote-border: hsla(71, 25%, 13%, 0.5);
|
97
|
+
--sd-editor-colour__controls-bg: hsla(70, 25%, 52%, 1);
|
98
|
+
--sd-editor-colour__controls-border: hsla(214, 13%, 12%, 0.12);
|
99
|
+
|
100
|
+
--sd-editor-colour__comment-bg: hsla(54, 100%, 61%, 0.3);
|
101
|
+
--sd-editor-colour__annotation: hsla(91, 100%, 40%, 0.6);
|
102
|
+
--sd-editor-colour__removing: hsla(279, 64%, 47%, 1);
|
103
|
+
--sd-editor-colour__removing-bg: hsla(279, 64%, 47%, 0.12);
|
104
|
+
--sd-editor-colour__adding: hsla(82, 100%, 20%, 1);
|
105
|
+
--sd-editor-colour__adding-bg: hsla(82, 90%, 22%, 0.16);
|
102
106
|
}
|
107
|
+
|
103
108
|
.sd-editor--theme-natural {
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
109
|
+
--sd-editor-colour__main-bg: hsla(51, 57%, 85%, 1);
|
110
|
+
--sd-editor-colour__main-bg--alt: hsla(51, 57%, 79%, 1);
|
111
|
+
--sd-editor-colour__main-border: hsla(214, 13%, 12%, 0.2);
|
112
|
+
--sd-editor-colour__txt: hsla(0, 18%, 10%, 1);
|
113
|
+
--sd-editor-colour__txt--accent: var(--sd-colour-interactive);
|
114
|
+
--sd-editor-colour__quote-border: hsla(0, 18%, 10%, .5);
|
115
|
+
--sd-editor-colour__controls-bg: hsla(51, 57%, 82%, 1);
|
116
|
+
--sd-editor-colour__controls-border: hsla(214, 13%, 85%, 0.2);
|
112
117
|
}
|
113
118
|
|
114
119
|
$color-swatch-border-color: transparent;
|
@@ -120,323 +125,369 @@ $color-swatch-inner-size: 6rem;
|
|
120
125
|
$theme-background: $white !default;
|
121
126
|
$theme-color: $sd-text !default;
|
122
127
|
|
123
|
-
|
124
128
|
// Theme fonts
|
125
129
|
$font-sans-1: $baseFontFamily;
|
126
130
|
$font-serif-1: $baseFontFamilySerif;
|
127
131
|
$font-monospace-1: $baseFontFamilyMono;
|
128
132
|
|
129
133
|
$theme-font-list: (
|
130
|
-
|
131
|
-
|
132
|
-
|
134
|
+
sans: $font-sans-1,
|
135
|
+
serif: $font-serif-1,
|
136
|
+
mono: $font-monospace-1,
|
133
137
|
);
|
134
138
|
|
135
139
|
$themes: (
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
'turquoise': (
|
149
|
-
'bg-color': #5AC7C3,
|
150
|
-
'text-color': #122235
|
151
|
-
),
|
152
|
-
'military': (
|
153
|
-
'bg-color': #949E5F,
|
154
|
-
'text-color': #252818
|
155
|
-
),
|
156
|
-
'natural': (
|
157
|
-
'bg-color': #EFE9C5,
|
158
|
-
'text-color': #1D1414
|
159
|
-
)
|
140
|
+
'default': ('bg-color': $white,
|
141
|
+
'text-color': $sd-text ),
|
142
|
+
'dark': ('bg-color': $grayDarker,
|
143
|
+
'text-color': #AACCD1),
|
144
|
+
'blue': ('bg-color': #06356A,
|
145
|
+
'text-color': $white ),
|
146
|
+
'turquoise': ('bg-color': #5AC7C3,
|
147
|
+
'text-color': #122235),
|
148
|
+
'military': ('bg-color': #949E5F,
|
149
|
+
'text-color': #252818),
|
150
|
+
'natural': ('bg-color': #EFE9C5,
|
151
|
+
'text-color': #1D1414)
|
160
152
|
);
|
161
153
|
|
162
154
|
$headline-font-size: (
|
163
|
-
|
164
|
-
|
165
|
-
|
155
|
+
small: 2.3rem,
|
156
|
+
medium: 2.8rem,
|
157
|
+
large: 3.2rem,
|
166
158
|
);
|
167
159
|
|
168
160
|
$abstract-font-size: (
|
169
|
-
|
170
|
-
|
171
|
-
|
161
|
+
small: 1.4rem,
|
162
|
+
medium: 1.6rem,
|
163
|
+
large: 1.8rem,
|
172
164
|
);
|
173
165
|
|
174
166
|
$body-font-size: (
|
175
|
-
|
176
|
-
|
177
|
-
|
167
|
+
small: 1.4rem,
|
168
|
+
medium: 1.6rem,
|
169
|
+
large: 1.8rem,
|
178
170
|
);
|
179
171
|
|
180
172
|
@mixin editor-lable-base() {
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
173
|
+
display: inline-flex;
|
174
|
+
align-items: center;
|
175
|
+
justify-content: center;
|
176
|
+
padding: 0 0.8rem;
|
177
|
+
height: 1.8rem;
|
178
|
+
vertical-align: middle;
|
179
|
+
border-radius: $border-radius__base--x-small;
|
180
|
+
text-transform: uppercase;
|
181
|
+
line-height: 1;
|
182
|
+
letter-spacing: 0.05em;
|
183
|
+
font-size: 1rem;
|
184
|
+
white-space: nowrap;
|
185
|
+
font-weight: 400;
|
186
|
+
background-color: var(--sd-editor-colour__field-label-bg);
|
187
|
+
color: $white;
|
188
|
+
font-family: "Roboto";
|
197
189
|
}
|
198
190
|
|
199
191
|
.color-swatch__list {
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
192
|
+
display: grid;
|
193
|
+
grid-template-columns: repeat(auto-fill, minmax(6.8rem, 6.8rem));
|
194
|
+
grid-gap: 0.9rem;
|
195
|
+
margin: 0.4rem 0 2.4rem 0;
|
204
196
|
}
|
197
|
+
|
205
198
|
@mixin color-swatch-base() {
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
199
|
+
height: $color-swatch-size;
|
200
|
+
width: $color-swatch-size;
|
201
|
+
padding: 0.2rem;
|
202
|
+
border-radius: $border-radius__base--full;
|
203
|
+
border: 2px solid $color-swatch-border-color;
|
211
204
|
}
|
205
|
+
|
212
206
|
@mixin color-swatch-inner-base() {
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
207
|
+
display: flex;
|
208
|
+
flex-direction: column;
|
209
|
+
align-items: center;
|
210
|
+
height: $color-swatch-inner-size;
|
211
|
+
width: $color-swatch-inner-size;
|
212
|
+
border-radius: $border-radius__base--full;
|
213
|
+
background-color: var(--sd-editor-colour__main-bg);
|
214
|
+
color: var(--sd-editor-colour__txt);
|
215
|
+
text-align: center;
|
216
|
+
font-size: 2rem;
|
217
|
+
line-height: $color-swatch-inner-size;
|
218
|
+
text-transform: uppercase;
|
219
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, .16), 0 0 1px rgba(0, 0, 0, .1);
|
220
|
+
cursor: pointer;
|
221
|
+
|
222
|
+
&:hover {
|
223
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, .26), 0 0 1px rgba(0, 0, 0, .2);
|
224
|
+
}
|
230
225
|
}
|
226
|
+
|
231
227
|
.color-swatch {
|
232
|
-
|
233
|
-
&--selected {
|
234
|
-
border-color: $color-swatch-border-active-color;
|
235
|
-
.color-swatch__inner {
|
236
|
-
box-shadow: none !important;
|
237
|
-
}
|
238
|
-
}
|
228
|
+
@include color-swatch-base();
|
239
229
|
}
|
230
|
+
|
231
|
+
.color-swatch--selected {
|
232
|
+
border-color: $color-swatch-border-active-color;
|
233
|
+
|
234
|
+
.color-swatch__inner {
|
235
|
+
box-shadow: none !important;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
240
239
|
.color-swatch__inner {
|
241
|
-
|
240
|
+
@include color-swatch-inner-base();
|
242
241
|
}
|
243
242
|
|
244
243
|
// ------ THEME PREVIEW ------ //
|
245
|
-
|
244
|
+
|
246
245
|
.text-field__headline {
|
247
|
-
|
248
|
-
|
246
|
+
font-weight: 500;
|
247
|
+
min-height: 6rem;
|
249
248
|
}
|
249
|
+
|
250
250
|
.text-field__abstract {
|
251
|
-
|
252
|
-
|
253
|
-
|
251
|
+
font-weight: 400;
|
252
|
+
font-style: italic;
|
253
|
+
min-height: 9.2rem;
|
254
254
|
}
|
255
|
+
|
255
256
|
.text-field__body {
|
256
|
-
|
257
|
-
|
257
|
+
font-weight: 300;
|
258
|
+
min-height: 9.2rem;
|
258
259
|
}
|
259
260
|
|
260
261
|
.theme-editor {
|
261
|
-
|
262
|
-
|
262
|
+
background-color: var(--sd-editor-colour__main-bg);
|
263
|
+
color: var(--sd-editor-colour__txt);
|
263
264
|
}
|
264
265
|
|
265
266
|
.theme-preview {
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
267
|
+
margin: 0 -2rem -2rem -2rem;
|
268
|
+
padding: 2rem;
|
269
|
+
background-color: var(--sd-editor-colour__main-bg);
|
270
|
+
color: var(--sd-editor-colour__txt);
|
271
|
+
|
272
|
+
.theme-preview__label {
|
273
|
+
opacity: 0.7;
|
274
|
+
transition: opacity 0.3s ease-out;
|
275
|
+
}
|
276
|
+
|
277
|
+
&:hover {
|
278
|
+
.theme-preview__label {
|
279
|
+
opacity: 1;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
@each $name,
|
284
|
+
$font in $theme-font-list {
|
285
|
+
&.sd-editor--font-#{$name} {
|
286
|
+
font-family: $font;
|
287
|
+
}
|
288
|
+
}
|
289
|
+
|
290
|
+
@each $name,
|
291
|
+
$size in $headline-font-size {
|
292
|
+
&.sd-editor--headline-#{$name} {
|
293
|
+
.text-field__headline {
|
294
|
+
font-size: $size;
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}
|
298
|
+
|
299
|
+
@each $name,
|
300
|
+
$size in $abstract-font-size {
|
301
|
+
&.sd-editor--abstract-#{$name} {
|
302
|
+
.text-field__abstract {
|
303
|
+
font-size: $size;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
@each $name,
|
309
|
+
$size in $body-font-size {
|
310
|
+
&.sd-editor--body-#{$name} {
|
311
|
+
.text-field__body {
|
312
|
+
font-size: $size;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
}
|
305
316
|
}
|
306
317
|
|
307
318
|
.theme-preview__block {
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
319
|
+
margin-bottom: 1.2rem;
|
320
|
+
|
321
|
+
&:last-child {
|
322
|
+
margin-bottom: 0;
|
323
|
+
}
|
324
|
+
|
325
|
+
.sd-checkbox--button-style,
|
326
|
+
.sd-checkbox--button-style:hover {
|
327
|
+
color: var(--sd-editor-colour__txt);
|
328
|
+
border-color: var(--sd-editor-colour__main-border);
|
329
|
+
|
330
|
+
&.checked {
|
331
|
+
border-color: var(--sd-colour-interactive--active) !important;
|
332
|
+
color: $white;
|
333
|
+
|
334
|
+
label {
|
335
|
+
color: $white !important;
|
336
|
+
}
|
337
|
+
}
|
338
|
+
}
|
339
|
+
|
340
|
+
.sd-checkbox--button-style label,
|
341
|
+
.sd-checkbox--button-style:hover label {
|
342
|
+
color: var(--sd-editor-colour__txt);
|
343
|
+
}
|
326
344
|
}
|
345
|
+
|
327
346
|
.theme-preview__label {
|
328
|
-
|
347
|
+
@include editor-lable-base();
|
329
348
|
}
|
349
|
+
|
330
350
|
.theme-preview__text-field {
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
351
|
+
display: flex;
|
352
|
+
line-height: 140%;
|
353
|
+
color: inherit;
|
354
|
+
font-family: inherit;
|
355
|
+
border-bottom: 1px dotted var(--sd-editor-colour__main-border);
|
356
|
+
margin-bottom: 0.8rem;
|
357
|
+
padding: 1rem 0 0.5rem;
|
358
|
+
flex-direction: column;
|
359
|
+
justify-content: flex-end;
|
340
360
|
}
|
361
|
+
|
341
362
|
.theme-preview__media-field {
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
363
|
+
display: flex;
|
364
|
+
color: inherit;
|
365
|
+
font-family: inherit;
|
366
|
+
margin-bottom: 0.8rem;
|
367
|
+
padding: 1rem 0 0.5rem;
|
368
|
+
flex-direction: column;
|
348
369
|
}
|
370
|
+
|
349
371
|
.theme-preview__button-bar {
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
372
|
+
text-align: end;
|
373
|
+
|
374
|
+
.sd-check__wrapper+.sd-check__wrapper {
|
375
|
+
margin-left: 0.2rem;
|
376
|
+
}
|
354
377
|
}
|
355
378
|
|
356
379
|
// ------ THEME IN EDITOR ------ //
|
357
380
|
|
358
|
-
|
359
381
|
.main-article {
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
382
|
+
background-color: var(--sd-editor-colour__main-bg);
|
383
|
+
color: var(--sd-editor-colour__txt);
|
384
|
+
|
385
|
+
.Editor3-root {
|
386
|
+
.DraftEditor-editorContainer {
|
387
|
+
blockquote {
|
388
|
+
margin: 0 0 0 4px;
|
389
|
+
box-shadow: -4px 0 0 var(--sd-editor-colour__quote-border);
|
390
|
+
font-style: italic;
|
391
|
+
font-weight: 400;
|
392
|
+
padding: 0.5em 0 0 1em;
|
393
|
+
}
|
394
|
+
}
|
395
|
+
}
|
373
396
|
}
|
374
397
|
|
375
398
|
.main-article {
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
399
|
+
|
400
|
+
@each $name,
|
401
|
+
$font in $theme-font-list {
|
402
|
+
&.sd-editor--font-#{$name} {
|
403
|
+
font-family: $font;
|
404
|
+
}
|
405
|
+
}
|
406
|
+
|
407
|
+
@each $name,
|
408
|
+
$size in $headline-font-size {
|
409
|
+
&.sd-editor--headline-#{$name} {
|
410
|
+
.headline .Editor3-root .DraftEditor-editorContainer {
|
411
|
+
font-size: $size;
|
412
|
+
}
|
413
|
+
|
414
|
+
// Editor 2
|
415
|
+
.headline .text-editor,
|
416
|
+
.headline p .text-editor,
|
417
|
+
.headline div .text-editor {
|
418
|
+
font-size: $size;
|
419
|
+
}
|
420
|
+
}
|
421
|
+
}
|
422
|
+
|
423
|
+
@each $name,
|
424
|
+
$size in $abstract-font-size {
|
425
|
+
&.sd-editor--abstract-#{$name} {
|
426
|
+
.abstract .Editor3-root .DraftEditor-editorContainer {
|
427
|
+
font-size: $size;
|
428
|
+
}
|
429
|
+
|
430
|
+
// Editor 2
|
431
|
+
.abstract,
|
432
|
+
.abstract p,
|
433
|
+
.abstract div {
|
434
|
+
font-size: $size;
|
435
|
+
}
|
436
|
+
}
|
437
|
+
}
|
438
|
+
|
439
|
+
@each $name,
|
440
|
+
$size in $body-font-size {
|
441
|
+
&.sd-editor--body-#{$name} {
|
442
|
+
.Editor3-root .DraftEditor-editorContainer {
|
443
|
+
font-size: $size;
|
444
|
+
|
445
|
+
h1 {
|
446
|
+
font-size: 2em;
|
447
|
+
}
|
448
|
+
|
449
|
+
h2 {
|
450
|
+
font-size: 1.5em;
|
451
|
+
line-height: 140%;
|
452
|
+
}
|
453
|
+
|
454
|
+
h3 {
|
455
|
+
font-size: 1.125em;
|
456
|
+
}
|
457
|
+
|
458
|
+
h4 {
|
459
|
+
font-size: 0.875em;
|
460
|
+
}
|
461
|
+
|
462
|
+
h5 {
|
463
|
+
font-size: 0.75em;
|
464
|
+
}
|
465
|
+
|
466
|
+
h6 {
|
467
|
+
font-size: 0.6875em;
|
468
|
+
color: inherit;
|
469
|
+
opacity: 0.7;
|
470
|
+
letter-spacing: 0.03em;
|
471
|
+
}
|
472
|
+
|
473
|
+
h1,
|
474
|
+
h2,
|
475
|
+
h3,
|
476
|
+
h4,
|
477
|
+
h5,
|
478
|
+
h6 {
|
479
|
+
line-height: 140%;
|
480
|
+
}
|
481
|
+
}
|
482
|
+
|
483
|
+
// Editor 2
|
484
|
+
.body-text .text-editor {
|
485
|
+
font-size: $size;
|
486
|
+
|
487
|
+
p {
|
488
|
+
font-size: $size;
|
489
|
+
}
|
490
|
+
}
|
491
|
+
}
|
492
|
+
}
|
442
493
|
}
|