superdesk-ui-framework 7.0.0-dev-hg0 → 7.0.0-dev-hg2
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_big-icons.eot +0 -0
- package/app/fonts/sd_big-icons.svg +69 -0
- package/app/fonts/sd_big-icons.ttf +0 -0
- package/app/fonts/sd_big-icons.woff +0 -0
- package/app/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +202 -0
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/img/AvatarDefaultImage.svg +6 -0
- package/app/img/DotsSmall-dark.svg +14 -0
- package/app/img/OneDot.svg +3 -0
- package/app/img/SD-logo.svg +52 -0
- package/app/img/dots.svg +3 -0
- package/app/img/empty_states/empty-state--large-1.svg +221 -0
- package/app/img/empty_states/empty-state--large-2.svg +207 -0
- package/app/img/empty_states/empty-state--large-3.svg +231 -0
- package/app/img/empty_states/empty-state--large-dashboard.svg +642 -0
- package/app/img/empty_states/empty-state--small-1.svg +112 -0
- package/app/img/empty_states/empty-state--small-2.svg +49 -0
- package/app/img/empty_states/empty-state--small-3.svg +47 -0
- package/app/img/icon_illustrations/IconIllustration__headlines.svg +25 -0
- package/app/img/icon_illustrations/IconIllustration__keywords.svg +46 -0
- package/app/img/icon_illustrations/IconIllustration__optimise.svg +38 -0
- package/app/img/icon_illustrations/IconIllustration__summary.svg +27 -0
- package/app/img/icon_illustrations/IconIllustration__translate.svg +12 -0
- package/app/img/icon_image_stack--white.svg +16 -0
- package/app/img/icon_image_stack.svg +16 -0
- package/app/img/spinner.svg +3 -0
- package/app/img/spinning-wheel.gif +0 -0
- package/app/img/theme-thumbnail.png +0 -0
- package/app/img/themes/theme-base.svg +1 -0
- package/app/img/themes/theme-contrast.svg +45 -0
- package/app/img/themes/theme-dark.svg +1 -0
- package/app/img/themes/theme-light.svg +1 -0
- package/app/img/three-dots.svg +33 -0
- package/app/styles/_accessibility.scss +358 -0
- package/app/styles/_alerts.scss +392 -0
- package/app/styles/_animations.scss +73 -0
- package/app/styles/_avatar.scss +526 -0
- package/app/styles/_badge.scss +106 -0
- package/app/styles/_big-icon-font.scss +182 -0
- package/app/styles/_boxed-list.scss +284 -0
- package/app/styles/_buttons.scss +874 -0
- package/app/styles/_carousel.scss +232 -0
- package/app/styles/_content-divider.scss +233 -0
- package/app/styles/_design-tokens.scss +6 -0
- package/app/styles/_drag-drop.scss +26 -0
- package/app/styles/_drag-handle.scss +48 -0
- package/app/styles/_empty-states.scss +81 -0
- package/app/styles/_expand-button.scss +31 -0
- package/app/styles/_hamburger.scss +160 -0
- package/app/styles/_helpers.scss +2220 -0
- package/app/styles/_icon-font.scss +488 -0
- package/app/styles/_icon-labels.scss +140 -0
- package/app/styles/_labels.scss +184 -0
- package/app/styles/_loaders.scss +29 -0
- package/app/styles/_master-desk.scss +323 -0
- package/app/styles/_mixins.scss +164 -0
- package/app/styles/_modals.scss +452 -0
- package/app/styles/_normalize.scss +466 -0
- package/app/styles/_panel-info.scss +48 -0
- package/app/styles/_popover.scss +29 -0
- package/app/styles/_pr-superdesk-theme.scss +4 -0
- package/app/styles/_publisher-styles.scss +195 -0
- package/app/styles/_reboot.scss +65 -0
- package/app/styles/_sd-tag-input.scss +715 -0
- package/app/styles/_simple-list.scss +158 -0
- package/app/styles/_spinner.scss +47 -0
- package/app/styles/_table-list.scss +385 -0
- package/app/styles/_tables.scss +150 -0
- package/app/styles/_tabs-vertical.scss +58 -0
- package/app/styles/_tabs.scss +232 -0
- package/app/styles/_tag-labels.scss +210 -0
- package/app/styles/_thumb-carousel.scss +247 -0
- package/app/styles/_time.scss +113 -0
- package/app/styles/_toggle-box.scss +175 -0
- package/app/styles/_toggle-button.scss +46 -0
- package/app/styles/_tooltips.scss +431 -0
- package/app/styles/_variables.scss +4 -0
- package/app/styles/app.scss +127 -0
- package/app/styles/components/_calendar-week-day.scss +99 -0
- package/app/styles/components/_card-item.scss +586 -0
- package/app/styles/components/_list-item.scss +694 -0
- package/app/styles/components/_load-more-indicator.scss +15 -0
- package/app/styles/components/_overflow-stack.scss +120 -0
- package/app/styles/components/_sd-circular-progress.scss +239 -0
- package/app/styles/components/_sd-collapse-box.scss +292 -0
- package/app/styles/components/_sd-comment-box.scss +42 -0
- package/app/styles/components/_sd-dropzone.scss +134 -0
- package/app/styles/components/_sd-editor-popup.scss +106 -0
- package/app/styles/components/_sd-grid-item.scss +865 -0
- package/app/styles/components/_sd-loader.scss +39 -0
- package/app/styles/components/_sd-media-carousel.scss +408 -0
- package/app/styles/components/_sd-notification-panel.scss +51 -0
- package/app/styles/components/_sd-pagination.scss +51 -0
- package/app/styles/components/_sd-photo-preview.scss +508 -0
- package/app/styles/components/_sd-searchbar.scss +276 -0
- package/app/styles/components/_sd-toaster.scss +226 -0
- package/app/styles/components/_subnav.scss +777 -0
- package/app/styles/components/_theme-selector.scss +221 -0
- package/app/styles/components/sd-slider.scss +125 -0
- package/app/styles/design-tokens/_brand-colors.scss +36 -0
- package/app/styles/design-tokens/_component-tokens.scss +11 -0
- package/app/styles/design-tokens/_design-tokens-general.scss +145 -0
- package/app/styles/design-tokens/_new-colors.scss +820 -0
- package/app/styles/design-tokens/_primitives.scss +161 -0
- package/app/styles/design-tokens/_semantic-colors.scss +161 -0
- package/app/styles/dropdowns/_basic-dropdown.scss +760 -0
- package/app/styles/dropdowns/_input-dropdown.scss +26 -0
- package/app/styles/dropdowns/_navigation_dropdown.scss +126 -0
- package/app/styles/dropdowns/_nested-dropdown.scss +95 -0
- package/app/styles/dropdowns/_other_dropdown.scss +59 -0
- package/app/styles/dropdowns/dropdown2.scss +4 -0
- package/app/styles/editor/_editor-buttons.scss +61 -0
- package/app/styles/editor/_editor-themes.scss +550 -0
- package/app/styles/form-elements/_autocomplete.scss +54 -0
- package/app/styles/form-elements/_checkbox.scss +770 -0
- package/app/styles/form-elements/_forms-general.scss +543 -0
- package/app/styles/form-elements/_input-preview.scss +80 -0
- package/app/styles/form-elements/_input-wrap.scss +147 -0
- package/app/styles/form-elements/_inputs.scss +1425 -0
- package/app/styles/form-elements/_radio.scss +65 -0
- package/app/styles/form-elements/_select-grid.scss +81 -0
- package/app/styles/form-elements/_switch.scss +109 -0
- package/app/styles/grids/_basic-grid.scss +206 -0
- package/app/styles/grids/_grid-layout.scss +1162 -0
- package/app/styles/grids/_layout-grid.scss +176 -0
- package/app/styles/grids/_sd-kanban-list.scss +92 -0
- package/app/styles/index.js +1 -0
- package/app/styles/interface-elements/_side-panel.scss +595 -0
- package/app/styles/layout/_basic-layout.scss +149 -0
- package/app/styles/layout/_container.scss +45 -0
- package/app/styles/layout/_editor.scss +464 -0
- package/app/styles/layout/_general.scss +92 -0
- package/app/styles/menus/_sd-bottom-tabs.scss +79 -0
- package/app/styles/menus/_sd-content-navigation.scss +50 -0
- package/app/styles/menus/_sd-left-navigation.scss +126 -0
- package/app/styles/menus/_sd-sidebar-menu.scss +465 -0
- package/app/styles/menus/_sd-top-menu.scss +105 -0
- package/app/styles/pr-superdesk-theme.scss +7 -0
- package/app/styles/primereact/_pr-autocomplete.scss +27 -0
- package/app/styles/primereact/_pr-datepicker.scss +288 -0
- package/app/styles/primereact/_pr-dialog.scss +399 -0
- package/app/styles/primereact/_pr-dropdown.scss +233 -0
- package/app/styles/primereact/_pr-general.scss +72 -0
- package/app/styles/primereact/_pr-menu.scss +60 -0
- package/app/styles/primereact/_pr-skeleton.scss +36 -0
- package/app/styles/primereact/_pr-tag-input.scss +66 -0
- package/app/styles/variables/_colors.scss +275 -0
- package/app/styles/variables/_dimensions.scss +89 -0
- package/app/styles/variables/_form-elements.scss +0 -0
- package/app/styles/variables/_typography.scss +20 -0
- package/dist/esm/components/EmptyState.d.ts.map +1 -1
- package/dist/esm/components/EmptyState.js +22 -1
- package/dist/esm/components/EmptyState.js.map +1 -1
- package/dist/fonts/sd_big-icons.eot +0 -0
- package/dist/fonts/sd_big-icons.svg +69 -0
- package/dist/fonts/sd_big-icons.ttf +0 -0
- package/dist/fonts/sd_big-icons.woff +0 -0
- package/dist/fonts/sd_icons.eot +0 -0
- package/dist/fonts/sd_icons.svg +202 -0
- package/dist/fonts/sd_icons.ttf +0 -0
- package/dist/fonts/sd_icons.woff +0 -0
- package/dist/img/AvatarDefaultImage.svg +6 -0
- package/dist/img/DotsSmall-dark.svg +14 -0
- package/dist/img/OneDot.svg +3 -0
- package/dist/img/SD-logo.svg +52 -0
- package/dist/img/dots.svg +3 -0
- package/dist/img/empty_states/empty-state--large-1.svg +221 -0
- package/dist/img/empty_states/empty-state--large-2.svg +207 -0
- package/dist/img/empty_states/empty-state--large-3.svg +231 -0
- package/dist/img/empty_states/empty-state--large-dashboard.svg +642 -0
- package/dist/img/empty_states/empty-state--small-1.svg +112 -0
- package/dist/img/empty_states/empty-state--small-2.svg +49 -0
- package/dist/img/empty_states/empty-state--small-3.svg +47 -0
- package/dist/img/icon_illustrations/IconIllustration__headlines.svg +25 -0
- package/dist/img/icon_illustrations/IconIllustration__keywords.svg +46 -0
- package/dist/img/icon_illustrations/IconIllustration__optimise.svg +38 -0
- package/dist/img/icon_illustrations/IconIllustration__summary.svg +27 -0
- package/dist/img/icon_illustrations/IconIllustration__translate.svg +12 -0
- package/dist/img/icon_image_stack--white.svg +16 -0
- package/dist/img/icon_image_stack.svg +16 -0
- package/dist/img/spinner.svg +3 -0
- package/dist/img/spinning-wheel.gif +0 -0
- package/dist/img/theme-thumbnail.png +0 -0
- package/dist/img/themes/theme-base.svg +1 -0
- package/dist/img/themes/theme-contrast.svg +45 -0
- package/dist/img/themes/theme-dark.svg +1 -0
- package/dist/img/themes/theme-light.svg +1 -0
- package/dist/img/three-dots.svg +33 -0
- package/dist/superdesk-ui.bundle.js +1 -1
- package/package.json +10 -3
- package/react/components/EmptyState.d.ts.map +1 -1
- package/react/components/EmptyState.js +22 -1
- package/react/components/EmptyState.js.map +1 -1
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
@use "../variables/colors";
|
|
2
|
+
@use "../variables/dimensions";
|
|
3
|
+
|
|
4
|
+
// Large Searchbar
|
|
5
|
+
// Large searchbar is usualy used inside the 'subnav' component, hence the flex-grow property;
|
|
6
|
+
|
|
7
|
+
.sd-searchbar {
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
position: relative;
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
transition: all 0.2s ease-out;
|
|
14
|
+
height: 100%; // adapts to the height of the parent element, usually .subnav.
|
|
15
|
+
min-height: dimensions.$height-input--default;
|
|
16
|
+
max-height: dimensions.$subnav-height;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sd-searchbar--focused {
|
|
20
|
+
background-color: var(--sd-colour-bg__searchbar);
|
|
21
|
+
box-shadow:
|
|
22
|
+
inset 0 0 0 1px var(--sd-colour-interactive--alpha-50),
|
|
23
|
+
inset 0 0 0 6px var(--sd-colour-interactive--alpha-20);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sd-searchbar--border-r {
|
|
27
|
+
border-inline-end: 1px solid var(--sd-colour-line--x-light);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sd-searchbar--border-l {
|
|
31
|
+
border-inline-start: 1px solid var(--sd-colour-line--x-light);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sd-searchbar--border-l-r {
|
|
35
|
+
border-inline-end: 1px solid var(--sd-colour-line--x-light);
|
|
36
|
+
border-inline-start: 1px solid var(--sd-colour-line--x-light);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.sd-searchbar--border-bottom {
|
|
40
|
+
border-block-end: 1px solid var(--sd-colour-line--light);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sd-searchbar--small {
|
|
44
|
+
height: 3.6rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sd-searchbar--boxed {
|
|
48
|
+
height: 4rem;
|
|
49
|
+
border-radius: dimensions.$border-radius__base--medium;
|
|
50
|
+
border: 1px solid var(--color-border-line--medium);
|
|
51
|
+
background-color: var(--sd-colour-bg__searchbar);
|
|
52
|
+
box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.14);
|
|
53
|
+
transition: box-shadow 0.2s ease-out;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
border-color: rgba(123, 123, 123, 0.6);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.sd-searchbar--focused,
|
|
60
|
+
&:focus-within {
|
|
61
|
+
transition: box-shadow 0.2s ease-out;
|
|
62
|
+
border-color: var(--sd-colour-interactive--alpha-70);
|
|
63
|
+
box-shadow:
|
|
64
|
+
inset 0 0 0 1px var(--sd-colour-interactive--alpha-50),
|
|
65
|
+
inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.sd-searchbar--invalid {
|
|
69
|
+
border-color: rgba(229, 28, 35, 0.75);
|
|
70
|
+
box-shadow:
|
|
71
|
+
inset 0 0 0 1px rgba(229, 28, 35, 0.1),
|
|
72
|
+
inset 0 0 0 4px rgba(229, 28, 35, 0.1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.sd-searchbar--disabled {
|
|
76
|
+
opacity: 0.5;
|
|
77
|
+
cursor: not-allowed !important;
|
|
78
|
+
|
|
79
|
+
.sd-searchbar__input {
|
|
80
|
+
cursor: not-allowed !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
border-color: rgba(123, 123, 123, 0.4);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dropdown {
|
|
89
|
+
background-color: var(--sd-colour-bg__searchbar);
|
|
90
|
+
border-radius: var(--b-radius--medium) 0 0 var(--b-radius--medium);
|
|
91
|
+
border-inline-end: 1px solid var(--color-border-line--medium);
|
|
92
|
+
margin-inline-end: 1px;
|
|
93
|
+
transition: box-shadow 0.2s ease-out;
|
|
94
|
+
.dropdown__toggle {
|
|
95
|
+
height: 100%;
|
|
96
|
+
padding-inline: var(--space--1-5);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.sd-input {
|
|
100
|
+
height: 100%;
|
|
101
|
+
border-inline-end: 1px solid var(--color-border-line--medium);
|
|
102
|
+
z-index: 1;
|
|
103
|
+
position: relative;
|
|
104
|
+
background-color: var(--sd-colour-bg__searchbar);
|
|
105
|
+
border-radius: var(--b-radius--medium) 0 0 var(--b-radius--medium);
|
|
106
|
+
transition: box-shadow 0.2s ease-out;
|
|
107
|
+
.sd-input__input {
|
|
108
|
+
background-color: transparent;
|
|
109
|
+
border: none;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
&.sd-searchbar--focused,
|
|
113
|
+
&:focus-within {
|
|
114
|
+
.dropdown,
|
|
115
|
+
.sd-input {
|
|
116
|
+
border-inline-end-color: var(--sd-colour-interactive--alpha-50);
|
|
117
|
+
box-shadow:
|
|
118
|
+
inset 0 0 0 1px var(--sd-colour-interactive--alpha-50),
|
|
119
|
+
3px 0 0 var(--sd-colour-interactive--alpha-10);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.sd-searchbar__input,
|
|
125
|
+
input[type="text"].sd-searchbar__input,
|
|
126
|
+
input[type="search"].sd-searchbar__input {
|
|
127
|
+
flex-grow: 1;
|
|
128
|
+
flex-shrink: 1;
|
|
129
|
+
font-size: 1.4rem;
|
|
130
|
+
padding: 0;
|
|
131
|
+
color: var(--color-text);
|
|
132
|
+
align-self: auto;
|
|
133
|
+
background-color: transparent;
|
|
134
|
+
border: 0;
|
|
135
|
+
box-shadow: none !important;
|
|
136
|
+
padding-inline-end: 1rem;
|
|
137
|
+
height: auto;
|
|
138
|
+
|
|
139
|
+
&::placeholder {
|
|
140
|
+
color: var(--color-text-muted);
|
|
141
|
+
font-weight: 300;
|
|
142
|
+
letter-spacing: 0.03rem;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.sd-searchbar__icon {
|
|
147
|
+
flex-grow: 0;
|
|
148
|
+
flex-shrink: 1;
|
|
149
|
+
align-self: auto;
|
|
150
|
+
width: dimensions.$subnav-height;
|
|
151
|
+
position: relative;
|
|
152
|
+
opacity: 0.4;
|
|
153
|
+
margin: 0;
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
|
|
158
|
+
&::after {
|
|
159
|
+
content: "\e618";
|
|
160
|
+
width: 16px;
|
|
161
|
+
height: 16px;
|
|
162
|
+
line-height: 16px;
|
|
163
|
+
font-family: "sd_icons";
|
|
164
|
+
font-size: 16px;
|
|
165
|
+
font-style: normal;
|
|
166
|
+
font-weight: normal;
|
|
167
|
+
font-variant: normal;
|
|
168
|
+
text-transform: none;
|
|
169
|
+
color: colors.$sd-text;
|
|
170
|
+
-webkit-font-smoothing: antialiased;
|
|
171
|
+
-moz-osx-font-smoothing: grayscale;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.sd-searchbar--boxed {
|
|
176
|
+
.sd-searchbar__icon {
|
|
177
|
+
width: 4rem;
|
|
178
|
+
margin-inline-end: 0;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.sd-searchbar__search-btn {
|
|
183
|
+
height: 2.8rem;
|
|
184
|
+
width: 2.8rem;
|
|
185
|
+
flex-grow: 0;
|
|
186
|
+
flex-shrink: 0;
|
|
187
|
+
align-self: center;
|
|
188
|
+
margin: 0;
|
|
189
|
+
margin-inline-end: 0.8rem;
|
|
190
|
+
padding: 0;
|
|
191
|
+
opacity: 0.8;
|
|
192
|
+
transition: all 0.2s ease-out;
|
|
193
|
+
background-color: var(--sd-colour-interactive--alpha-30);
|
|
194
|
+
border-radius: var(--b-radius--full);
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
|
|
199
|
+
i {
|
|
200
|
+
transition: color 0.2s ease-out;
|
|
201
|
+
color: var(--sd-colour-interactive);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&:hover {
|
|
205
|
+
background-color: var(--sd-colour-interactive--alpha-80);
|
|
206
|
+
i {
|
|
207
|
+
color: var(--color-text-ondark);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:active {
|
|
212
|
+
background-color: var(--sd-colour-interactive);
|
|
213
|
+
opacity: 1;
|
|
214
|
+
i {
|
|
215
|
+
color: var(--color-text-ondark);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.sd-searchbar__search-btn--active {
|
|
221
|
+
background-color: var(--sd-colour-interactive);
|
|
222
|
+
opacity: 1;
|
|
223
|
+
|
|
224
|
+
i {
|
|
225
|
+
color: var(--color-text-ondark);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
[dir="rtl"] {
|
|
230
|
+
.sd-searchbar__search-btn {
|
|
231
|
+
i.icon-chevron-right-thin {
|
|
232
|
+
transform: rotate(180deg);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.sd-searchbar__cancel {
|
|
238
|
+
height: 1.6rem;
|
|
239
|
+
width: 1.6rem;
|
|
240
|
+
align-self: center;
|
|
241
|
+
flex-grow: 0;
|
|
242
|
+
flex-shrink: 0;
|
|
243
|
+
margin: 0;
|
|
244
|
+
margin-inline-end: 1rem;
|
|
245
|
+
padding: 0;
|
|
246
|
+
opacity: 0.35;
|
|
247
|
+
transition: opacity 0.2s ease-out;
|
|
248
|
+
color: currentColor;
|
|
249
|
+
|
|
250
|
+
i {
|
|
251
|
+
color: var(--color-text);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&:hover {
|
|
255
|
+
opacity: 0.7;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&:active {
|
|
259
|
+
opacity: 1;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
.sd-searchbar__message-box {
|
|
263
|
+
font-size: 1.3rem;
|
|
264
|
+
line-height: 1.4rem;
|
|
265
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
266
|
+
color: var(--color-text-muted);
|
|
267
|
+
font-weight: 300;
|
|
268
|
+
margin: 0.5rem 0;
|
|
269
|
+
letter-spacing: 0.03em;
|
|
270
|
+
display: block;
|
|
271
|
+
margin-block-start: 8px;
|
|
272
|
+
|
|
273
|
+
.sd-searchbar__message {
|
|
274
|
+
color: var(--color-alert-text);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
@use "../variables/colors";
|
|
2
|
+
@use "../variables/dimensions";
|
|
3
|
+
|
|
4
|
+
$sd-toast-height: 4rem !default;
|
|
5
|
+
$sd-toast-min-width: 32rem !default;
|
|
6
|
+
$sd-toast-max-width: 56rem !default;
|
|
7
|
+
$sd-toast-margin: 2rem !default;
|
|
8
|
+
|
|
9
|
+
$sd-toast-position-top: 5.6rem;
|
|
10
|
+
$sd-toast-z-index: 9999;
|
|
11
|
+
|
|
12
|
+
$sd-toast-colour-bg: var(--sd-colour-panel-bg--000);
|
|
13
|
+
$sd-toast-colour-text: colors.$sd-text-light;
|
|
14
|
+
$sd-toast-shadow: var(--sd-shadow__toast);
|
|
15
|
+
|
|
16
|
+
$toast-palette: colors.$sd-basic-palette;
|
|
17
|
+
$sd-toast-position-top: 5.6rem;
|
|
18
|
+
$sd-toast-z-index: 9999;
|
|
19
|
+
|
|
20
|
+
$toast-sizes: (
|
|
21
|
+
fixed-s: 32rem,
|
|
22
|
+
fixed-m: 40rem,
|
|
23
|
+
fixed-l: 48rem,
|
|
24
|
+
fixed-xl: 56rem,
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
.sd-toast__container {
|
|
28
|
+
display: flex!important;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: center;
|
|
31
|
+
position: fixed;
|
|
32
|
+
inset-inline-end: 0;
|
|
33
|
+
inset-inline-start: 0;
|
|
34
|
+
z-index: $sd-toast-z-index;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
padding: 0 20px 20px;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
|
|
39
|
+
&.sd-toast__container--top {
|
|
40
|
+
inset-block-start: $sd-toast-position-top;
|
|
41
|
+
inset-block-end: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.sd-toast__container--top-left {
|
|
45
|
+
inset-block-start: $sd-toast-position-top;
|
|
46
|
+
inset-block-end: auto;
|
|
47
|
+
align-items: flex-start;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.sd-toast__container--top-right {
|
|
51
|
+
inset-block-start: $sd-toast-position-top;
|
|
52
|
+
inset-block-end: auto;
|
|
53
|
+
align-items: flex-end;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.sd-toast__container--bottom {
|
|
57
|
+
flex-direction: column-reverse;
|
|
58
|
+
inset-block-start: auto;
|
|
59
|
+
inset-block-end: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.sd-toast__container--bottom-left {
|
|
63
|
+
flex-direction: column-reverse;
|
|
64
|
+
inset-block-start: auto;
|
|
65
|
+
inset-block-end: 0;
|
|
66
|
+
align-items: flex-start;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.sd-toast__container--bottom-right {
|
|
70
|
+
flex-direction: column-reverse;
|
|
71
|
+
inset-block-start: auto;
|
|
72
|
+
inset-block-end: 0;
|
|
73
|
+
align-items: flex-end;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.sd-toast {
|
|
78
|
+
padding: var(--space--1-5);
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: flex-start;
|
|
81
|
+
position: relative!important;
|
|
82
|
+
margin: 2rem 0 0;
|
|
83
|
+
border-radius: dimensions.$border-radius__base--medium;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
box-shadow: $sd-toast-shadow;
|
|
86
|
+
background-color: $sd-toast-colour-bg;
|
|
87
|
+
min-width: $sd-toast-min-width;
|
|
88
|
+
max-width: $sd-toast-max-width;
|
|
89
|
+
pointer-events: all;
|
|
90
|
+
|
|
91
|
+
&.sd-toast--appear ~ .sd-toast,
|
|
92
|
+
&.sd-toast--enter ~ .sd-toast {
|
|
93
|
+
transform: translateY(-40px);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.sd-toast__icon {
|
|
97
|
+
[class^="icon-"] {
|
|
98
|
+
color: inherit;
|
|
99
|
+
display: block;
|
|
100
|
+
margin: 0.6rem 0.4rem 0.6rem 0.6rem;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.sd-toast--exit ~ .sd-toast {
|
|
105
|
+
transform: translateY(0);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.sd-toast--exit-active ~ .sd-toast {
|
|
109
|
+
transform: translateY(-40px);
|
|
110
|
+
transition-property: transform;
|
|
111
|
+
transition-duration: .1s;
|
|
112
|
+
transition-timing-function: cubic-bezier(.4, 1, .75, .9);
|
|
113
|
+
transition-delay: 50ms;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@each $name, $color in $toast-palette {
|
|
117
|
+
&.sd-toast--#{$name} {
|
|
118
|
+
&::before {
|
|
119
|
+
content: "";
|
|
120
|
+
width: 4px;
|
|
121
|
+
height: 100%;
|
|
122
|
+
position: absolute;
|
|
123
|
+
inset-block-start: 0px;
|
|
124
|
+
inset-inline-start: 0px;
|
|
125
|
+
background-color: $color;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.sd-toast__icon {
|
|
129
|
+
color: $color;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@each $name, $size in $toast-sizes {
|
|
134
|
+
&.sd-toast--#{$name} {
|
|
135
|
+
width: $size;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.sd-toast--appear,
|
|
141
|
+
.sd-toast--enter {
|
|
142
|
+
transform: translateY(-40px);
|
|
143
|
+
height: 0px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.sd-toast--appear-active,
|
|
147
|
+
.sd-toast--enter-active {
|
|
148
|
+
transform: translateY(0);
|
|
149
|
+
transition-property: transform, height;
|
|
150
|
+
transition-duration:.3s;
|
|
151
|
+
transition-timing-function: cubic-bezier(.54, 1.12, .38, 1.11);
|
|
152
|
+
transition-delay: 0;
|
|
153
|
+
-webkit-transition-delay: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.sd-toast--exit {
|
|
157
|
+
opacity: 1;
|
|
158
|
+
-webkit-filter: blur(0);
|
|
159
|
+
filter: blur(0);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.sd-toast--exit-active {
|
|
163
|
+
opacity: 0;
|
|
164
|
+
filter: blur(10px);
|
|
165
|
+
transition-property: opacity, filter;
|
|
166
|
+
transition-duration: .3s;
|
|
167
|
+
transition-timing-function: cubic-bezier(.4, 1, .75, .9);
|
|
168
|
+
transition-delay: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.sd-toast__message {
|
|
172
|
+
flex: 1 1 auto;
|
|
173
|
+
padding: 0.4rem 1.2rem 0.4rem 1.2rem;
|
|
174
|
+
font-size: 1.4rem;
|
|
175
|
+
line-height: 150%;
|
|
176
|
+
color: $sd-toast-colour-text;
|
|
177
|
+
|
|
178
|
+
p + p {
|
|
179
|
+
margin-block-start: 0.8rem;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.sd-toast__message-header {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: row;
|
|
186
|
+
margin-block-end: 0.2rem;
|
|
187
|
+
color: colors.$sd-text;
|
|
188
|
+
|
|
189
|
+
time {
|
|
190
|
+
font-size: 1.2rem;
|
|
191
|
+
color: $sd-toast-colour-text;
|
|
192
|
+
margin-inline-end: 0.2rem;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.sd-toast__heading {
|
|
196
|
+
flex-grow: 1;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.sd-toast__heading, h4 {
|
|
201
|
+
font-size: inherit;
|
|
202
|
+
font-weight: 600;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.sd-toast__actions {
|
|
206
|
+
flex: 0 0 auto;
|
|
207
|
+
opacity: 0.4;
|
|
208
|
+
margin: -0.2rem -0.4rem 0 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.sd-toast__icon {
|
|
212
|
+
flex: 0 0 auto;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.sd-toast__avatar {
|
|
216
|
+
flex: 0 0 auto;
|
|
217
|
+
margin: 0.6rem 0.4rem 0.6rem 0.6rem;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.sd-toast__container--bottom .sd-toast, .sd-toast__container--bottom-left .sd-toast, .sd-toast__container--bottom-right .sd-toast {
|
|
221
|
+
&.sd-toast--enter:not(.sd-toast--enter-active),
|
|
222
|
+
&.sd-toast--enter:not(.sd-toast--enter-active) ~ .sd-toast,
|
|
223
|
+
&.sd-toast--leave-active ~ .sd-toast {
|
|
224
|
+
transform: translateY($sd-toast-margin + $sd-toast-height);
|
|
225
|
+
}
|
|
226
|
+
}
|