@editora/toast 2.0.9 → 2.1.0
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/CHANGELOG.md +28 -0
- package/README.md +376 -860
- package/dist/core/ToastManager.d.ts +1 -1
- package/dist/core/ToastRenderer.d.ts +24 -3
- package/dist/core/ToastStack.d.ts +8 -0
- package/dist/core/icons.d.ts +2 -0
- package/dist/core/types.d.ts +3 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +13 -16
- package/dist/index.esm.js +490 -310
- package/dist/index.umd.js +1 -1
- package/dist/toast.css +467 -744
- package/package.json +1 -1
package/dist/toast.css
CHANGED
|
@@ -1,69 +1,75 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
|
-
Editora Toast
|
|
3
|
-
|
|
2
|
+
Editora Toast
|
|
3
|
+
A neutral, opaque card with a status icon. Colour is used for the
|
|
4
|
+
icon and, with richColors, a light tint; text and surface come from
|
|
5
|
+
tokens, so every theme below is only a set of tokens.
|
|
4
6
|
============================================================ */
|
|
5
7
|
|
|
6
8
|
/* ── Design tokens ─────────────────────────────────────────── */
|
|
7
9
|
:root {
|
|
8
10
|
/* Surface */
|
|
9
|
-
--et-bg: #
|
|
10
|
-
--et-bg-subtle: #
|
|
11
|
-
--et-border: rgba(0,0,0,.
|
|
12
|
-
--et-border-strong: rgba(0,0,0,.
|
|
11
|
+
--et-bg: #ffffff;
|
|
12
|
+
--et-bg-subtle: #f6f6f5;
|
|
13
|
+
--et-border: rgba(0,0,0,.09);
|
|
14
|
+
--et-border-strong: rgba(0,0,0,.16);
|
|
13
15
|
|
|
14
16
|
/* Text */
|
|
15
|
-
--et-text: #
|
|
16
|
-
--et-text-muted: #
|
|
17
|
-
--et-text-inverse: #
|
|
18
|
-
|
|
19
|
-
/*
|
|
20
|
-
--et-info: #
|
|
21
|
-
--et-success: #
|
|
22
|
-
--et-error: #
|
|
23
|
-
--et-warning: #
|
|
24
|
-
--et-loading: #
|
|
25
|
-
--et-promise: #
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
--et-info-tint: rgba(37,99,235,.
|
|
29
|
-
--et-info-ring: rgba(37,99,235,.
|
|
30
|
-
--et-success-tint: rgba(
|
|
31
|
-
--et-success-ring: rgba(
|
|
32
|
-
--et-error-tint: rgba(220,38,38,.
|
|
33
|
-
--et-error-ring: rgba(220,38,38,.
|
|
34
|
-
--et-warning-tint: rgba(
|
|
35
|
-
--et-warning-ring: rgba(
|
|
36
|
-
--et-loading-tint: rgba(
|
|
37
|
-
--et-loading-ring: rgba(
|
|
38
|
-
--et-promise-tint:
|
|
39
|
-
--et-promise-ring:
|
|
17
|
+
--et-text: #1c1917;
|
|
18
|
+
--et-text-muted: #6b6560;
|
|
19
|
+
--et-text-inverse: #fafaf9;
|
|
20
|
+
|
|
21
|
+
/* Accents (the icon, the rich-colors tint, the minimal theme's edge) */
|
|
22
|
+
--et-info: #2563eb;
|
|
23
|
+
--et-success: #15803d;
|
|
24
|
+
--et-error: #dc2626;
|
|
25
|
+
--et-warning: #b45309;
|
|
26
|
+
--et-loading: #4f46e5;
|
|
27
|
+
--et-promise: #4f46e5;
|
|
28
|
+
|
|
29
|
+
/* Tints and rings, used by richColors */
|
|
30
|
+
--et-info-tint: rgba(37,99,235,.08);
|
|
31
|
+
--et-info-ring: rgba(37,99,235,.28);
|
|
32
|
+
--et-success-tint: rgba(21,128,61,.08);
|
|
33
|
+
--et-success-ring: rgba(21,128,61,.28);
|
|
34
|
+
--et-error-tint: rgba(220,38,38,.07);
|
|
35
|
+
--et-error-ring: rgba(220,38,38,.28);
|
|
36
|
+
--et-warning-tint: rgba(180,83,9,.08);
|
|
37
|
+
--et-warning-ring: rgba(180,83,9,.30);
|
|
38
|
+
--et-loading-tint: rgba(79,70,229,.07);
|
|
39
|
+
--et-loading-ring: rgba(79,70,229,.26);
|
|
40
|
+
--et-promise-tint: var(--et-loading-tint);
|
|
41
|
+
--et-promise-ring: var(--et-loading-ring);
|
|
42
|
+
|
|
43
|
+
/* Optional: --et-action-bg and --et-action-ink colour the primary action button (by default it is filled
|
|
44
|
+
with the toast's text colour and lettered in its surface colour); --et-focus is the focus ring. */
|
|
40
45
|
|
|
41
46
|
/* Shape */
|
|
42
47
|
--et-radius: 12px;
|
|
43
|
-
--et-radius-sm:
|
|
44
|
-
--et-width:
|
|
48
|
+
--et-radius-sm: 8px;
|
|
49
|
+
--et-width: 356px;
|
|
45
50
|
--et-offset: 20px;
|
|
46
51
|
--et-gap: 8px;
|
|
47
52
|
--et-z: 2147483647;
|
|
48
53
|
|
|
49
54
|
/* Shadow */
|
|
50
55
|
--et-shadow:
|
|
51
|
-
0 1px
|
|
52
|
-
0 4px
|
|
53
|
-
0
|
|
56
|
+
0 0 0 1px rgba(0,0,0,.04),
|
|
57
|
+
0 2px 4px rgba(0,0,0,.04),
|
|
58
|
+
0 10px 28px rgba(0,0,0,.10);
|
|
54
59
|
|
|
55
60
|
/* Motion */
|
|
56
|
-
--et-dur-enter:
|
|
61
|
+
--et-dur-enter: 300ms;
|
|
57
62
|
--et-dur-exit: 200ms;
|
|
58
63
|
--et-ease-enter: cubic-bezier(.16,1,.3,1);
|
|
59
64
|
--et-ease-exit: cubic-bezier(.4,0,1,1);
|
|
65
|
+
--et-ease-move: cubic-bezier(.32,.72,0,1);
|
|
60
66
|
|
|
61
67
|
/* Typography */
|
|
62
68
|
--et-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
63
69
|
--et-font-size-title: 13.5px;
|
|
64
70
|
--et-font-size-body: 13px;
|
|
65
|
-
--et-font-size-desc:
|
|
66
|
-
--et-font-size-action:
|
|
71
|
+
--et-font-size-desc: 12.5px;
|
|
72
|
+
--et-font-size-action: 12.5px;
|
|
67
73
|
|
|
68
74
|
/* Legacy aliases */
|
|
69
75
|
--editora-toast-bg: var(--et-bg);
|
|
@@ -74,7 +80,6 @@
|
|
|
74
80
|
--editora-toast-border-radius: var(--et-radius);
|
|
75
81
|
--editora-toast-font-family: var(--et-font);
|
|
76
82
|
--editora-toast-font-size: var(--et-font-size-body);
|
|
77
|
-
--editora-toast-padding: 14px 16px;
|
|
78
83
|
--editora-toast-gap: var(--et-gap);
|
|
79
84
|
--editora-toast-z-index: var(--et-z);
|
|
80
85
|
--editora-toast-width: var(--et-width);
|
|
@@ -82,78 +87,146 @@
|
|
|
82
87
|
--editora-toast-mobile-offset: 12px;
|
|
83
88
|
}
|
|
84
89
|
|
|
85
|
-
/* ──
|
|
90
|
+
/* ── Dark: the system setting, or the app's own switch (a .dark class or a data attribute on the root) ── */
|
|
86
91
|
@media (prefers-color-scheme: dark) {
|
|
87
92
|
:root {
|
|
88
|
-
--et-bg: #
|
|
89
|
-
--et-bg-subtle: #
|
|
90
|
-
--et-border: rgba(255,255,255,.
|
|
91
|
-
--et-border-strong: rgba(255,255,255,.
|
|
92
|
-
--et-text: #
|
|
93
|
-
--et-text-muted: #
|
|
93
|
+
--et-bg: #19181a;
|
|
94
|
+
--et-bg-subtle: #232225;
|
|
95
|
+
--et-border: rgba(255,255,255,.10);
|
|
96
|
+
--et-border-strong: rgba(255,255,255,.18);
|
|
97
|
+
--et-text: #f5f5f4;
|
|
98
|
+
--et-text-muted: #a8a29e;
|
|
99
|
+
--et-text-inverse: #19181a;
|
|
100
|
+
--et-info: #60a5fa;
|
|
101
|
+
--et-success: #4ade80;
|
|
102
|
+
--et-error: #f87171;
|
|
103
|
+
--et-warning: #fbbf24;
|
|
104
|
+
--et-loading: #a5b4fc;
|
|
105
|
+
--et-promise: #a5b4fc;
|
|
106
|
+
--et-info-tint: rgba(96,165,250,.13);
|
|
107
|
+
--et-info-ring: rgba(96,165,250,.32);
|
|
108
|
+
--et-success-tint: rgba(74,222,128,.11);
|
|
109
|
+
--et-success-ring: rgba(74,222,128,.30);
|
|
110
|
+
--et-error-tint: rgba(248,113,113,.12);
|
|
111
|
+
--et-error-ring: rgba(248,113,113,.32);
|
|
112
|
+
--et-warning-tint: rgba(251,191,36,.11);
|
|
113
|
+
--et-warning-ring: rgba(251,191,36,.30);
|
|
114
|
+
--et-loading-tint: rgba(165,180,252,.12);
|
|
115
|
+
--et-loading-ring: rgba(165,180,252,.30);
|
|
94
116
|
--et-shadow:
|
|
95
|
-
0 1px
|
|
96
|
-
0 6px
|
|
97
|
-
0
|
|
98
|
-
|
|
99
|
-
--et-info-tint: rgba(59,130,246,.12);
|
|
100
|
-
--et-info-ring: rgba(59,130,246,.25);
|
|
101
|
-
--et-success-tint: rgba(34,197,94,.10);
|
|
102
|
-
--et-success-ring: rgba(34,197,94,.22);
|
|
103
|
-
--et-error-tint: rgba(248,113,113,.10);
|
|
104
|
-
--et-error-ring: rgba(248,113,113,.22);
|
|
105
|
-
--et-warning-tint: rgba(251,191,36,.10);
|
|
106
|
-
--et-warning-ring: rgba(251,191,36,.20);
|
|
107
|
-
--et-loading-tint: rgba(129,140,248,.10);
|
|
108
|
-
--et-loading-ring: rgba(129,140,248,.22);
|
|
109
|
-
--et-promise-tint: rgba(167,139,250,.10);
|
|
110
|
-
--et-promise-ring: rgba(167,139,250,.22);
|
|
111
|
-
|
|
112
|
-
--editora-toast-bg: var(--et-bg);
|
|
113
|
-
--editora-toast-color: var(--et-text);
|
|
114
|
-
--editora-toast-muted-color: var(--et-text-muted);
|
|
115
|
-
--editora-toast-border: var(--et-border);
|
|
116
|
-
--editora-toast-shadow: var(--et-shadow);
|
|
117
|
+
0 0 0 1px rgba(255,255,255,.04),
|
|
118
|
+
0 2px 6px rgba(0,0,0,.30),
|
|
119
|
+
0 12px 32px rgba(0,0,0,.45);
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
|
|
123
|
+
:root.dark,
|
|
124
|
+
:root[data-theme="dark"],
|
|
125
|
+
:root[data-bs-theme="dark"],
|
|
126
|
+
:root[data-color-scheme="dark"],
|
|
127
|
+
:root[data-mantine-color-scheme="dark"] {
|
|
128
|
+
--et-bg: #19181a;
|
|
129
|
+
--et-bg-subtle: #232225;
|
|
130
|
+
--et-border: rgba(255,255,255,.10);
|
|
131
|
+
--et-border-strong: rgba(255,255,255,.18);
|
|
132
|
+
--et-text: #f5f5f4;
|
|
133
|
+
--et-text-muted: #a8a29e;
|
|
134
|
+
--et-text-inverse: #19181a;
|
|
135
|
+
--et-info: #60a5fa;
|
|
136
|
+
--et-success: #4ade80;
|
|
137
|
+
--et-error: #f87171;
|
|
138
|
+
--et-warning: #fbbf24;
|
|
139
|
+
--et-loading: #a5b4fc;
|
|
140
|
+
--et-promise: #a5b4fc;
|
|
141
|
+
--et-info-tint: rgba(96,165,250,.13);
|
|
142
|
+
--et-info-ring: rgba(96,165,250,.32);
|
|
143
|
+
--et-success-tint: rgba(74,222,128,.11);
|
|
144
|
+
--et-success-ring: rgba(74,222,128,.30);
|
|
145
|
+
--et-error-tint: rgba(248,113,113,.12);
|
|
146
|
+
--et-error-ring: rgba(248,113,113,.32);
|
|
147
|
+
--et-warning-tint: rgba(251,191,36,.11);
|
|
148
|
+
--et-warning-ring: rgba(251,191,36,.30);
|
|
149
|
+
--et-loading-tint: rgba(165,180,252,.12);
|
|
150
|
+
--et-loading-ring: rgba(165,180,252,.30);
|
|
151
|
+
--et-shadow:
|
|
152
|
+
0 0 0 1px rgba(255,255,255,.04),
|
|
153
|
+
0 2px 6px rgba(0,0,0,.30),
|
|
154
|
+
0 12px 32px rgba(0,0,0,.45);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* An app that is light while the system is dark. */
|
|
158
|
+
:root.light,
|
|
159
|
+
:root[data-theme="light"],
|
|
160
|
+
:root[data-bs-theme="light"],
|
|
161
|
+
:root[data-color-scheme="light"],
|
|
162
|
+
:root[data-mantine-color-scheme="light"] {
|
|
163
|
+
--et-bg: #ffffff;
|
|
164
|
+
--et-bg-subtle: #f6f6f5;
|
|
165
|
+
--et-border: rgba(0,0,0,.09);
|
|
166
|
+
--et-border-strong: rgba(0,0,0,.16);
|
|
167
|
+
--et-text: #1c1917;
|
|
168
|
+
--et-text-muted: #6b6560;
|
|
169
|
+
--et-text-inverse: #fafaf9;
|
|
170
|
+
--et-info: #2563eb;
|
|
171
|
+
--et-success: #15803d;
|
|
172
|
+
--et-error: #dc2626;
|
|
173
|
+
--et-warning: #b45309;
|
|
174
|
+
--et-loading: #4f46e5;
|
|
175
|
+
--et-promise: #4f46e5;
|
|
176
|
+
--et-info-tint: rgba(37,99,235,.08);
|
|
177
|
+
--et-info-ring: rgba(37,99,235,.28);
|
|
178
|
+
--et-success-tint: rgba(21,128,61,.08);
|
|
179
|
+
--et-success-ring: rgba(21,128,61,.28);
|
|
180
|
+
--et-error-tint: rgba(220,38,38,.07);
|
|
181
|
+
--et-error-ring: rgba(220,38,38,.28);
|
|
182
|
+
--et-warning-tint: rgba(180,83,9,.08);
|
|
183
|
+
--et-warning-ring: rgba(180,83,9,.30);
|
|
184
|
+
--et-loading-tint: rgba(79,70,229,.07);
|
|
185
|
+
--et-loading-ring: rgba(79,70,229,.26);
|
|
186
|
+
--et-shadow:
|
|
187
|
+
0 0 0 1px rgba(0,0,0,.04),
|
|
188
|
+
0 2px 4px rgba(0,0,0,.04),
|
|
189
|
+
0 10px 28px rgba(0,0,0,.10);
|
|
190
|
+
}
|
|
191
|
+
|
|
120
192
|
/* ── Container ──────────────────────────────────────────────── */
|
|
193
|
+
/* The script sets the corner, the width and (while it lays the toasts out) the height. */
|
|
121
194
|
.editora-toast-container {
|
|
122
195
|
position: fixed;
|
|
123
196
|
z-index: var(--et-z);
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
gap: var(--et-gap);
|
|
127
|
-
pointer-events: none;
|
|
128
|
-
max-width: 100%;
|
|
197
|
+
width: var(--et-width);
|
|
198
|
+
max-width: calc(100vw - 2 * var(--et-offset));
|
|
129
199
|
box-sizing: border-box;
|
|
200
|
+
/* A stack that is hovered or focused opens; the container has to receive the pointer for that. */
|
|
201
|
+
pointer-events: auto;
|
|
130
202
|
}
|
|
131
203
|
|
|
132
|
-
.editora-toast-
|
|
133
|
-
.editora-toast-top-center { top: var(--et-offset); left: 50%; transform: translateX(-50%); }
|
|
134
|
-
.editora-toast-top-right { top: var(--et-offset); right: var(--et-offset); }
|
|
135
|
-
.editora-toast-bottom-left { bottom: var(--et-offset); left: var(--et-offset); }
|
|
136
|
-
.editora-toast-bottom-center { bottom: var(--et-offset); left: 50%; transform: translateX(-50%); }
|
|
137
|
-
.editora-toast-bottom-right { bottom: var(--et-offset); right: var(--et-offset); }
|
|
138
|
-
.editora-toast-center { top: 50%; left: 50%; transform: translate(-50%,-50%); align-items: center; }
|
|
204
|
+
.editora-toast-container[data-count="0"] { pointer-events: none; }
|
|
139
205
|
|
|
140
206
|
/* ── RTL ────────────────────────────────────────────────────── */
|
|
141
207
|
[dir="rtl"] .editora-toast-container,
|
|
142
208
|
.editora-toast-container[data-rtl="true"] { direction: rtl; }
|
|
143
209
|
[dir="rtl"] .editora-toast,
|
|
144
210
|
.editora-toast[data-rtl="true"] { direction: rtl; text-align: right; }
|
|
145
|
-
[
|
|
146
|
-
.editora-toast-
|
|
211
|
+
.editora-toast[data-rtl="true"] .editora-toast-close,
|
|
212
|
+
[dir="rtl"] .editora-toast .editora-toast-close { right: auto; left: 8px; }
|
|
213
|
+
.editora-toast[data-rtl="true"][data-closable="true"],
|
|
214
|
+
[dir="rtl"] .editora-toast[data-closable="true"] { padding-right: 14px; padding-left: 40px; }
|
|
215
|
+
.editora-toast[data-rtl="true"]:has(.editora-toast-icon) .editora-toast-actions,
|
|
216
|
+
[dir="rtl"] .editora-toast:has(.editora-toast-icon) .editora-toast-actions { margin-left: 0; margin-right: 28px; }
|
|
147
217
|
|
|
148
218
|
/* ── Toast base ─────────────────────────────────────────────── */
|
|
149
219
|
.editora-toast {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
220
|
+
--et-accent: var(--et-info);
|
|
221
|
+
|
|
222
|
+
position: absolute;
|
|
223
|
+
left: 0;
|
|
224
|
+
width: 100%;
|
|
225
|
+
box-sizing: border-box;
|
|
226
|
+
padding: 12px 14px;
|
|
154
227
|
background: var(--et-bg);
|
|
155
228
|
color: var(--et-text);
|
|
156
|
-
|
|
229
|
+
border: 1px solid var(--et-border);
|
|
157
230
|
border-radius: var(--et-radius);
|
|
158
231
|
box-shadow: var(--et-shadow);
|
|
159
232
|
font-family: var(--et-font);
|
|
@@ -163,37 +236,42 @@
|
|
|
163
236
|
touch-action: none;
|
|
164
237
|
overflow: hidden;
|
|
165
238
|
outline: none;
|
|
166
|
-
|
|
239
|
+
-webkit-font-smoothing: antialiased;
|
|
240
|
+
|
|
241
|
+
/* Where the stack layout (ToastStack) puts it; transform stays free for the enter, exit and swipe motion. */
|
|
242
|
+
translate: 0 var(--et-y, 0px);
|
|
243
|
+
scale: var(--et-s, 1);
|
|
244
|
+
|
|
167
245
|
opacity: 0;
|
|
168
|
-
transform: translateY(
|
|
246
|
+
transform: translateY(calc(var(--et-edge, 1) * 18px)) scale(.97);
|
|
169
247
|
transition:
|
|
170
248
|
opacity var(--et-dur-exit) var(--et-ease-exit),
|
|
171
249
|
transform var(--et-dur-exit) var(--et-ease-exit),
|
|
250
|
+
translate 380ms var(--et-ease-move),
|
|
251
|
+
scale 380ms var(--et-ease-move),
|
|
252
|
+
height 380ms var(--et-ease-move),
|
|
172
253
|
box-shadow 200ms ease;
|
|
173
254
|
}
|
|
174
255
|
|
|
256
|
+
.editora-toast-container[data-edge="bottom"] .editora-toast { bottom: 0; transform-origin: 50% 100%; }
|
|
257
|
+
.editora-toast-container[data-edge="top"] .editora-toast { top: 0; transform-origin: 50% 0; }
|
|
258
|
+
|
|
175
259
|
.editora-toast.show {
|
|
176
260
|
opacity: 1;
|
|
177
|
-
transform:
|
|
261
|
+
transform: none;
|
|
178
262
|
transition:
|
|
179
263
|
opacity var(--et-dur-enter) var(--et-ease-enter),
|
|
180
|
-
transform var(--et-dur-enter) var(--et-ease-enter)
|
|
181
|
-
|
|
264
|
+
transform var(--et-dur-enter) var(--et-ease-enter),
|
|
265
|
+
translate 380ms var(--et-ease-move),
|
|
266
|
+
scale 380ms var(--et-ease-move),
|
|
267
|
+
height 380ms var(--et-ease-move),
|
|
268
|
+
box-shadow 200ms ease;
|
|
182
269
|
}
|
|
183
270
|
|
|
184
271
|
.editora-toast.hiding {
|
|
185
272
|
opacity: 0;
|
|
186
|
-
transform: translateY(-
|
|
187
|
-
|
|
188
|
-
opacity var(--et-dur-exit) var(--et-ease-exit),
|
|
189
|
-
transform var(--et-dur-exit) var(--et-ease-exit);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.editora-toast:hover {
|
|
193
|
-
box-shadow:
|
|
194
|
-
0 2px 4px rgba(0,0,0,.06),
|
|
195
|
-
0 8px 20px rgba(0,0,0,.12),
|
|
196
|
-
0 0 0 1px rgba(0,0,0,.06);
|
|
273
|
+
transform: translateY(calc(var(--et-edge, 1) * 12px)) scale(.96);
|
|
274
|
+
pointer-events: none;
|
|
197
275
|
}
|
|
198
276
|
|
|
199
277
|
.editora-toast.spring-animation {
|
|
@@ -201,68 +279,46 @@
|
|
|
201
279
|
animation: none !important;
|
|
202
280
|
}
|
|
203
281
|
|
|
204
|
-
/*
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
*/
|
|
209
|
-
.editora-toast-info {
|
|
210
|
-
background: var(--et-info-tint);
|
|
211
|
-
border: 1px solid var(--et-info-ring);
|
|
212
|
-
box-shadow: 0 0 0 4px var(--et-info-tint), var(--et-shadow);
|
|
213
|
-
color: var(--et-text);
|
|
214
|
-
}
|
|
215
|
-
.editora-toast-info::before { background: var(--et-info); }
|
|
282
|
+
/* A deck: the toasts behind the first are only an edge. */
|
|
283
|
+
.editora-toast[data-collapsed="true"] { pointer-events: none; }
|
|
284
|
+
.editora-toast[data-collapsed="true"] > * { opacity: 0; transition: opacity 200ms ease; }
|
|
285
|
+
.editora-toast[data-hidden="true"] { opacity: 0 !important; pointer-events: none; }
|
|
216
286
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
.editora-toast-
|
|
287
|
+
/* ── Level accents ──────────────────────────────────────────── */
|
|
288
|
+
.editora-toast-info { --et-accent: var(--et-info); }
|
|
289
|
+
.editora-toast-success { --et-accent: var(--et-success); }
|
|
290
|
+
.editora-toast-error { --et-accent: var(--et-error); }
|
|
291
|
+
.editora-toast-warning { --et-accent: var(--et-warning); }
|
|
292
|
+
.editora-toast-loading,
|
|
293
|
+
.editora-toast-progress,
|
|
294
|
+
.editora-toast-promise { --et-accent: var(--et-loading); }
|
|
224
295
|
|
|
225
|
-
.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
color: var(--et-text);
|
|
296
|
+
/* richColors: the surface takes a light tint of the level's colour (still opaque). */
|
|
297
|
+
.editora-toast[data-rich-colors="true"]:not([data-theme="colored"]).editora-toast-info {
|
|
298
|
+
background: linear-gradient(var(--et-info-tint), var(--et-info-tint)), var(--et-bg);
|
|
299
|
+
border-color: var(--et-info-ring);
|
|
230
300
|
}
|
|
231
|
-
.editora-toast-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
background: var(--et-warning-tint);
|
|
235
|
-
border: 1px solid var(--et-warning-ring);
|
|
236
|
-
box-shadow: 0 0 0 4px var(--et-warning-tint), var(--et-shadow);
|
|
237
|
-
color: var(--et-text);
|
|
301
|
+
.editora-toast[data-rich-colors="true"]:not([data-theme="colored"]).editora-toast-success {
|
|
302
|
+
background: linear-gradient(var(--et-success-tint), var(--et-success-tint)), var(--et-bg);
|
|
303
|
+
border-color: var(--et-success-ring);
|
|
238
304
|
}
|
|
239
|
-
.editora-toast-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
.editora-toast-promise {
|
|
243
|
-
background: var(--et-loading-tint);
|
|
244
|
-
border: 1px solid var(--et-loading-ring);
|
|
245
|
-
box-shadow: 0 0 0 4px var(--et-loading-tint), var(--et-shadow);
|
|
246
|
-
color: var(--et-text);
|
|
305
|
+
.editora-toast[data-rich-colors="true"]:not([data-theme="colored"]).editora-toast-error {
|
|
306
|
+
background: linear-gradient(var(--et-error-tint), var(--et-error-tint)), var(--et-bg);
|
|
307
|
+
border-color: var(--et-error-ring);
|
|
247
308
|
}
|
|
248
|
-
.editora-toast-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
.editora-toast-
|
|
253
|
-
.editora-toast-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
.editora-toast-loading::before,
|
|
257
|
-
.editora-toast-promise::before {
|
|
258
|
-
content: '';
|
|
259
|
-
position: absolute;
|
|
260
|
-
left: 0; top: 0; bottom: 0;
|
|
261
|
-
width: 3px;
|
|
262
|
-
border-radius: var(--et-radius) 0 0 var(--et-radius);
|
|
309
|
+
.editora-toast[data-rich-colors="true"]:not([data-theme="colored"]).editora-toast-warning {
|
|
310
|
+
background: linear-gradient(var(--et-warning-tint), var(--et-warning-tint)), var(--et-bg);
|
|
311
|
+
border-color: var(--et-warning-ring);
|
|
312
|
+
}
|
|
313
|
+
.editora-toast[data-rich-colors="true"]:not([data-theme="colored"]).editora-toast-loading,
|
|
314
|
+
.editora-toast[data-rich-colors="true"]:not([data-theme="colored"]).editora-toast-promise {
|
|
315
|
+
background: linear-gradient(var(--et-loading-tint), var(--et-loading-tint)), var(--et-bg);
|
|
316
|
+
border-color: var(--et-loading-ring);
|
|
263
317
|
}
|
|
264
318
|
|
|
265
319
|
/* ── Content layout ─────────────────────────────────────────── */
|
|
320
|
+
.editora-toast[data-closable="true"] { padding-right: 40px; }
|
|
321
|
+
|
|
266
322
|
.editora-toast-content {
|
|
267
323
|
display: flex;
|
|
268
324
|
align-items: flex-start;
|
|
@@ -272,15 +328,18 @@
|
|
|
272
328
|
|
|
273
329
|
.editora-toast-icon {
|
|
274
330
|
flex-shrink: 0;
|
|
275
|
-
font-size: 15px;
|
|
276
|
-
line-height: 1;
|
|
277
|
-
margin-top: 1px;
|
|
278
331
|
display: flex;
|
|
279
332
|
align-items: center;
|
|
280
333
|
justify-content: center;
|
|
281
334
|
width: 18px;
|
|
282
335
|
height: 18px;
|
|
336
|
+
margin-top: 1px;
|
|
337
|
+
color: var(--et-accent);
|
|
338
|
+
font-size: 15px;
|
|
339
|
+
line-height: 1;
|
|
283
340
|
}
|
|
341
|
+
.editora-toast-icon svg { display: block; }
|
|
342
|
+
.editora-toast-icon[data-spin="true"] svg { animation: et-spin .8s linear infinite; }
|
|
284
343
|
|
|
285
344
|
.editora-toast-body { flex: 1; min-width: 0; }
|
|
286
345
|
|
|
@@ -288,31 +347,27 @@
|
|
|
288
347
|
font-size: var(--et-font-size-title);
|
|
289
348
|
font-weight: 600;
|
|
290
349
|
letter-spacing: -0.01em;
|
|
291
|
-
line-height: 1.
|
|
350
|
+
line-height: 1.35;
|
|
292
351
|
margin: 0;
|
|
293
|
-
color: var(--et-text)
|
|
352
|
+
color: var(--et-text);
|
|
294
353
|
}
|
|
295
354
|
|
|
296
355
|
.editora-toast-message {
|
|
297
|
-
flex: 1;
|
|
298
356
|
line-height: 1.45;
|
|
299
|
-
word-wrap: break-word;
|
|
300
357
|
overflow-wrap: anywhere;
|
|
301
|
-
color: var(--et-text)
|
|
358
|
+
color: var(--et-text);
|
|
302
359
|
}
|
|
360
|
+
.editora-toast-body > .editora-toast-message:only-child { font-weight: 500; }
|
|
303
361
|
|
|
304
362
|
.editora-toast-title + .editora-toast-message,
|
|
305
363
|
.editora-toast-title + .editora-toast-description,
|
|
306
|
-
.editora-toast-message + .editora-toast-description {
|
|
307
|
-
margin-top: 2px;
|
|
308
|
-
}
|
|
364
|
+
.editora-toast-message + .editora-toast-description { margin-top: 2px; }
|
|
309
365
|
|
|
310
366
|
.editora-toast-description {
|
|
311
|
-
color: var(--et-text-muted)
|
|
367
|
+
color: var(--et-text-muted);
|
|
312
368
|
font-size: var(--et-font-size-desc);
|
|
313
369
|
line-height: 1.45;
|
|
314
370
|
overflow-wrap: anywhere;
|
|
315
|
-
margin-top: 2px;
|
|
316
371
|
}
|
|
317
372
|
|
|
318
373
|
/* ── Actions ────────────────────────────────────────────────── */
|
|
@@ -321,647 +376,327 @@
|
|
|
321
376
|
gap: 6px;
|
|
322
377
|
margin-top: 10px;
|
|
323
378
|
flex-wrap: wrap;
|
|
324
|
-
justify-content: flex-
|
|
379
|
+
justify-content: flex-start;
|
|
325
380
|
}
|
|
381
|
+
.editora-toast:has(.editora-toast-icon) .editora-toast-actions { margin-left: 28px; }
|
|
326
382
|
|
|
327
383
|
.editora-toast-action {
|
|
328
384
|
height: 28px;
|
|
329
|
-
padding: 0
|
|
385
|
+
padding: 0 12px;
|
|
330
386
|
border: 1px solid var(--et-border-strong);
|
|
331
|
-
background:
|
|
387
|
+
background: transparent;
|
|
332
388
|
color: var(--et-text);
|
|
333
389
|
border-radius: var(--et-radius-sm);
|
|
334
390
|
font-size: var(--et-font-size-action);
|
|
335
391
|
font-weight: 500;
|
|
336
392
|
font-family: var(--et-font);
|
|
393
|
+
line-height: 1;
|
|
337
394
|
cursor: pointer;
|
|
338
|
-
letter-spacing: 0.01em;
|
|
339
|
-
transition:
|
|
340
|
-
background 150ms ease,
|
|
341
|
-
border-color 150ms ease,
|
|
342
|
-
transform 100ms ease,
|
|
343
|
-
box-shadow 150ms ease;
|
|
344
395
|
white-space: nowrap;
|
|
345
396
|
display: inline-flex;
|
|
346
397
|
align-items: center;
|
|
347
|
-
|
|
398
|
+
transition: background 150ms ease, border-color 150ms ease, transform 100ms ease, opacity 150ms ease;
|
|
348
399
|
}
|
|
349
|
-
|
|
350
|
-
.editora-toast-action:
|
|
351
|
-
background: var(--et-bg-subtle);
|
|
352
|
-
border-color: var(--et-border-strong);
|
|
353
|
-
box-shadow: 0 1px 3px rgba(0,0,0,.06);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.editora-toast-action:active { transform: scale(0.97); }
|
|
400
|
+
.editora-toast-action:hover { background: var(--et-bg-subtle); }
|
|
401
|
+
.editora-toast-action:active { transform: scale(.97); }
|
|
357
402
|
|
|
358
403
|
.editora-toast-action.primary {
|
|
359
|
-
background: var(--et-text);
|
|
360
|
-
border-color: var(--et-text);
|
|
361
|
-
color: var(--et-
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.editora-toast-action.primary:hover {
|
|
365
|
-
opacity: 0.88;
|
|
366
|
-
background: var(--et-text);
|
|
404
|
+
background: var(--et-action-bg, var(--et-text));
|
|
405
|
+
border-color: var(--et-action-bg, var(--et-text));
|
|
406
|
+
color: var(--et-action-ink, var(--et-bg));
|
|
367
407
|
}
|
|
408
|
+
.editora-toast-action.primary:hover { background: var(--et-action-bg, var(--et-text)); opacity: .88; }
|
|
368
409
|
|
|
369
410
|
/* ── Close button ───────────────────────────────────────────── */
|
|
370
411
|
.editora-toast-close {
|
|
371
412
|
position: absolute;
|
|
372
|
-
top:
|
|
373
|
-
right:
|
|
374
|
-
width:
|
|
375
|
-
height:
|
|
376
|
-
|
|
413
|
+
top: 8px;
|
|
414
|
+
right: 8px;
|
|
415
|
+
width: 24px;
|
|
416
|
+
height: 24px;
|
|
417
|
+
padding: 0;
|
|
418
|
+
display: grid;
|
|
419
|
+
place-items: center;
|
|
420
|
+
border: 0;
|
|
377
421
|
background: transparent;
|
|
378
422
|
color: var(--et-text-muted);
|
|
423
|
+
border-radius: 7px;
|
|
379
424
|
cursor: pointer;
|
|
380
|
-
font-size: 14px;
|
|
381
|
-
line-height: 1;
|
|
382
425
|
opacity: 0;
|
|
383
|
-
|
|
384
|
-
transition:
|
|
385
|
-
opacity 180ms ease,
|
|
386
|
-
transform 180ms var(--et-ease-enter),
|
|
387
|
-
background 150ms ease,
|
|
388
|
-
border-color 150ms ease,
|
|
389
|
-
color 150ms ease;
|
|
390
|
-
display: flex;
|
|
391
|
-
align-items: center;
|
|
392
|
-
justify-content: center;
|
|
393
|
-
border-radius: 6px;
|
|
426
|
+
transition: opacity 160ms ease, background 150ms ease, color 150ms ease;
|
|
394
427
|
z-index: 1;
|
|
395
428
|
}
|
|
429
|
+
.editora-toast-close svg { display: block; }
|
|
396
430
|
|
|
397
431
|
.editora-toast:hover .editora-toast-close,
|
|
398
432
|
.editora-toast:focus-within .editora-toast-close,
|
|
399
|
-
.editora-toast-close:focus {
|
|
400
|
-
opacity: 1;
|
|
401
|
-
transform: scale(1);
|
|
402
|
-
}
|
|
433
|
+
.editora-toast-close:focus-visible { opacity: 1; }
|
|
403
434
|
|
|
404
|
-
/* Touch devices have no hover, so the close button
|
|
435
|
+
/* Touch devices have no hover, so the close button would stay invisible there. */
|
|
405
436
|
@media (hover: none) {
|
|
406
|
-
.editora-toast-close {
|
|
407
|
-
opacity: 1;
|
|
408
|
-
transform: scale(1);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.editora-toast-close:hover {
|
|
413
|
-
background: var(--et-border);
|
|
414
|
-
border-color: var(--et-border-strong);
|
|
415
|
-
color: var(--et-text);
|
|
437
|
+
.editora-toast-close { opacity: 1; }
|
|
416
438
|
}
|
|
417
439
|
|
|
418
|
-
.editora-toast-close:
|
|
440
|
+
.editora-toast-close:hover { background: var(--et-bg-subtle); color: var(--et-text); }
|
|
441
|
+
.editora-toast-close:active { transform: scale(.92); }
|
|
419
442
|
|
|
420
|
-
/* ── Progress bar
|
|
421
|
-
.editora-toast-progress {
|
|
422
|
-
position:
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
border-radius: 0 0 var(--et-radius) var(--et-radius);
|
|
443
|
+
/* ── Progress bar (a toast's own progress option) ───────────── */
|
|
444
|
+
.editora-toast-progress-track {
|
|
445
|
+
position: relative;
|
|
446
|
+
height: 4px;
|
|
447
|
+
margin-top: 10px;
|
|
448
|
+
border-radius: 99px;
|
|
449
|
+
background: var(--et-border);
|
|
428
450
|
}
|
|
429
|
-
|
|
430
451
|
.editora-toast-progress-bar {
|
|
431
452
|
height: 100%;
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
transition: width
|
|
435
|
-
position: relative;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.editora-toast-progress-bar::after {
|
|
439
|
-
content: '';
|
|
440
|
-
position: absolute;
|
|
441
|
-
inset: 0;
|
|
442
|
-
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
|
|
443
|
-
animation: et-sheen 1.8s ease-in-out infinite;
|
|
453
|
+
border-radius: inherit;
|
|
454
|
+
background: var(--et-accent);
|
|
455
|
+
transition: width .25s ease;
|
|
444
456
|
}
|
|
445
|
-
|
|
446
457
|
.editora-toast-progress-text {
|
|
447
458
|
position: absolute;
|
|
448
|
-
top: -
|
|
449
|
-
right:
|
|
459
|
+
top: -17px;
|
|
460
|
+
right: 0;
|
|
450
461
|
font-size: 11px;
|
|
451
|
-
color: inherit;
|
|
452
|
-
opacity: 0.7;
|
|
453
462
|
font-variant-numeric: tabular-nums;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
/* ── Spinner ─────────────────────────────────────────────────── */
|
|
457
|
-
.editora-toast-spinner {
|
|
458
|
-
display: inline-block;
|
|
459
|
-
width: 14px;
|
|
460
|
-
height: 14px;
|
|
461
|
-
border: 1.5px solid var(--et-border-strong);
|
|
462
|
-
border-radius: 50%;
|
|
463
|
-
border-top-color: var(--et-loading);
|
|
464
|
-
animation: et-spin 0.7s linear infinite;
|
|
465
|
-
flex-shrink: 0;
|
|
463
|
+
color: var(--et-text-muted);
|
|
466
464
|
}
|
|
467
465
|
|
|
468
466
|
/* ── Groups ──────────────────────────────────────────────────── */
|
|
469
467
|
.editora-toast-group { margin-bottom: 4px; }
|
|
470
|
-
|
|
471
468
|
.editora-toast-group-header {
|
|
472
469
|
font-size: 10px;
|
|
473
470
|
font-weight: 600;
|
|
474
|
-
opacity:
|
|
471
|
+
opacity: .55;
|
|
475
472
|
margin-bottom: 4px;
|
|
476
473
|
text-transform: uppercase;
|
|
477
|
-
letter-spacing:
|
|
474
|
+
letter-spacing: .06em;
|
|
478
475
|
}
|
|
479
|
-
|
|
480
476
|
.editora-toast-group-collapsed { max-height: 40px; overflow: hidden; }
|
|
481
477
|
|
|
482
|
-
|
|
483
|
-
.editora-toast-container[data-stack="true"][data-expand="false"] { gap: 0; }
|
|
484
|
-
|
|
485
|
-
.editora-toast-container[data-stack="true"][data-expand="false"] .editora-toast:not([data-front="true"]) {
|
|
486
|
-
margin-top: calc(var(--et-gap) * -1);
|
|
487
|
-
transform:
|
|
488
|
-
translateY(calc(var(--editora-toast-before, 0) * -7px))
|
|
489
|
-
scale(calc(1 - (var(--editora-toast-before, 0) * 0.04)));
|
|
490
|
-
box-shadow:
|
|
491
|
-
0 1px 2px rgba(0,0,0,.04),
|
|
492
|
-
0 3px 10px rgba(0,0,0,.07),
|
|
493
|
-
0 0 0 1px rgba(0,0,0,.05);
|
|
494
|
-
filter: brightness(0.97);
|
|
495
|
-
transition: transform 250ms var(--et-ease-enter), filter 250ms ease;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.editora-toast-container[data-stack="true"][data-expand="false"]:hover,
|
|
499
|
-
.editora-toast-container[data-stack="true"][data-expand="false"]:focus-within,
|
|
500
|
-
.editora-toast-container[data-expand="true"] { gap: var(--et-gap); }
|
|
501
|
-
|
|
502
|
-
.editora-toast-container[data-stack="true"][data-expand="false"]:hover .editora-toast,
|
|
503
|
-
.editora-toast-container[data-stack="true"][data-expand="false"]:focus-within .editora-toast,
|
|
504
|
-
.editora-toast-container[data-expand="true"] .editora-toast {
|
|
505
|
-
margin-top: 0;
|
|
506
|
-
transform: translateY(0) scale(1);
|
|
507
|
-
filter: none;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
/* ── Keyframes ───────────────────────────────────────────────── */
|
|
511
|
-
@keyframes et-enter {
|
|
512
|
-
from { opacity: 0; transform: translateY(8px) scale(0.96); }
|
|
513
|
-
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
514
|
-
}
|
|
515
|
-
@keyframes et-spin { to { transform: rotate(360deg); } }
|
|
516
|
-
@keyframes et-sheen {
|
|
517
|
-
0% { transform: translateX(-100%); }
|
|
518
|
-
100% { transform: translateX(400%); }
|
|
519
|
-
}
|
|
478
|
+
@keyframes et-spin { to { transform: rotate(360deg); } }
|
|
520
479
|
|
|
521
480
|
/* ════════════════════════════════════════════════════════════
|
|
522
481
|
NAMED THEMES
|
|
523
|
-
Each
|
|
524
|
-
|
|
525
|
-
invisible-text combinations.
|
|
482
|
+
Each one is a set of tokens, plus a few properties for a look
|
|
483
|
+
that tokens cannot express (glass blur, neon edge, retro shadow).
|
|
526
484
|
════════════════════════════════════════════════════════════ */
|
|
527
485
|
|
|
528
|
-
/* ── LIGHT
|
|
486
|
+
/* ── LIGHT / DARK, whatever the page does ───────────────────── */
|
|
529
487
|
.editora-toast[data-theme="light"] {
|
|
530
|
-
--et-bg: #
|
|
531
|
-
--et-bg-subtle: #
|
|
532
|
-
--et-
|
|
533
|
-
--et-
|
|
534
|
-
--et-text
|
|
535
|
-
--et-
|
|
536
|
-
--et-
|
|
537
|
-
--et-
|
|
538
|
-
|
|
539
|
-
--et-
|
|
540
|
-
--et-
|
|
541
|
-
--et-
|
|
542
|
-
--et-
|
|
543
|
-
--et-
|
|
544
|
-
--et-
|
|
545
|
-
--et-
|
|
546
|
-
--et-
|
|
547
|
-
--et-
|
|
548
|
-
--et-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
.editora-toast-info etc. — causing dark-on-dark text.
|
|
556
|
-
Solution: also override the tint/ring variables so level
|
|
557
|
-
classes produce readable combinations on a dark surface.
|
|
558
|
-
*/
|
|
488
|
+
--et-bg: #ffffff;
|
|
489
|
+
--et-bg-subtle: #f6f6f5;
|
|
490
|
+
--et-border: rgba(0,0,0,.09);
|
|
491
|
+
--et-border-strong: rgba(0,0,0,.16);
|
|
492
|
+
--et-text: #1c1917;
|
|
493
|
+
--et-text-muted: #6b6560;
|
|
494
|
+
--et-info: #2563eb;
|
|
495
|
+
--et-success: #15803d;
|
|
496
|
+
--et-error: #dc2626;
|
|
497
|
+
--et-warning: #b45309;
|
|
498
|
+
--et-loading: #4f46e5;
|
|
499
|
+
--et-promise: #4f46e5;
|
|
500
|
+
--et-info-tint: rgba(37,99,235,.08);
|
|
501
|
+
--et-info-ring: rgba(37,99,235,.28);
|
|
502
|
+
--et-success-tint: rgba(21,128,61,.08);
|
|
503
|
+
--et-success-ring: rgba(21,128,61,.28);
|
|
504
|
+
--et-error-tint: rgba(220,38,38,.07);
|
|
505
|
+
--et-error-ring: rgba(220,38,38,.28);
|
|
506
|
+
--et-warning-tint: rgba(180,83,9,.08);
|
|
507
|
+
--et-warning-ring: rgba(180,83,9,.30);
|
|
508
|
+
--et-loading-tint: rgba(79,70,229,.07);
|
|
509
|
+
--et-loading-ring: rgba(79,70,229,.26);
|
|
510
|
+
--et-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.10);
|
|
511
|
+
}
|
|
512
|
+
|
|
559
513
|
.editora-toast[data-theme="dark"] {
|
|
560
|
-
--et-bg: #
|
|
561
|
-
--et-bg-subtle: #
|
|
562
|
-
--et-
|
|
563
|
-
--et-
|
|
564
|
-
--et-text
|
|
565
|
-
--et-
|
|
566
|
-
--et-
|
|
567
|
-
--et-
|
|
568
|
-
|
|
569
|
-
--et-
|
|
570
|
-
--et-
|
|
571
|
-
--et-
|
|
572
|
-
--et-
|
|
514
|
+
--et-bg: #19181a;
|
|
515
|
+
--et-bg-subtle: #232225;
|
|
516
|
+
--et-border: rgba(255,255,255,.10);
|
|
517
|
+
--et-border-strong: rgba(255,255,255,.18);
|
|
518
|
+
--et-text: #f5f5f4;
|
|
519
|
+
--et-text-muted: #a8a29e;
|
|
520
|
+
--et-info: #60a5fa;
|
|
521
|
+
--et-success: #4ade80;
|
|
522
|
+
--et-error: #f87171;
|
|
523
|
+
--et-warning: #fbbf24;
|
|
524
|
+
--et-loading: #a5b4fc;
|
|
525
|
+
--et-promise: #a5b4fc;
|
|
526
|
+
--et-info-tint: rgba(96,165,250,.13);
|
|
527
|
+
--et-info-ring: rgba(96,165,250,.32);
|
|
528
|
+
--et-success-tint: rgba(74,222,128,.11);
|
|
529
|
+
--et-success-ring: rgba(74,222,128,.30);
|
|
573
530
|
--et-error-tint: rgba(248,113,113,.12);
|
|
574
|
-
--et-error-ring: rgba(248,113,113,.
|
|
575
|
-
--et-warning-tint: rgba(251,191,36,.
|
|
576
|
-
--et-warning-ring: rgba(251,191,36,.
|
|
577
|
-
--et-loading-tint: rgba(
|
|
578
|
-
--et-loading-ring: rgba(
|
|
579
|
-
--et-
|
|
580
|
-
--et-promise-ring: rgba(167,139,250,.28);
|
|
531
|
+
--et-error-ring: rgba(248,113,113,.32);
|
|
532
|
+
--et-warning-tint: rgba(251,191,36,.11);
|
|
533
|
+
--et-warning-ring: rgba(251,191,36,.30);
|
|
534
|
+
--et-loading-tint: rgba(165,180,252,.12);
|
|
535
|
+
--et-loading-ring: rgba(165,180,252,.30);
|
|
536
|
+
--et-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 2px 6px rgba(0,0,0,.30), 0 12px 32px rgba(0,0,0,.45);
|
|
581
537
|
}
|
|
582
538
|
|
|
583
|
-
/* ── MINIMAL
|
|
539
|
+
/* ── MINIMAL: flat, with the level's colour as an edge ──────── */
|
|
584
540
|
.editora-toast[data-theme="minimal"] {
|
|
585
|
-
--et-bg: #
|
|
586
|
-
--et-bg-subtle: #
|
|
587
|
-
--et-text: #
|
|
588
|
-
--et-text-muted: #
|
|
589
|
-
--et-
|
|
590
|
-
--et-border:
|
|
591
|
-
--et-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
.editora-toast[data-theme="minimal"].editora-toast-success {
|
|
604
|
-
background: #fff !important;
|
|
605
|
-
border-left: 3px solid var(--et-success) !important;
|
|
606
|
-
}
|
|
607
|
-
.editora-toast[data-theme="minimal"].editora-toast-error {
|
|
608
|
-
background: #fff !important;
|
|
609
|
-
border-left: 3px solid var(--et-error) !important;
|
|
610
|
-
}
|
|
611
|
-
.editora-toast[data-theme="minimal"].editora-toast-warning {
|
|
612
|
-
background: #fff !important;
|
|
613
|
-
border-left: 3px solid var(--et-warning) !important;
|
|
614
|
-
}
|
|
615
|
-
.editora-toast[data-theme="minimal"].editora-toast-loading,
|
|
616
|
-
.editora-toast[data-theme="minimal"].editora-toast-promise {
|
|
617
|
-
background: #fff !important;
|
|
618
|
-
border-left: 3px solid var(--et-loading) !important;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
/* ── COLORED ─────────────────────────────────────────────────── */
|
|
622
|
-
/*
|
|
623
|
-
FIX: set ALL text tokens to white + matching white-alpha
|
|
624
|
-
variants for bg/border so action buttons stay readable
|
|
625
|
-
on the saturated background.
|
|
626
|
-
*/
|
|
541
|
+
--et-bg: #ffffff;
|
|
542
|
+
--et-bg-subtle: #f6f6f5;
|
|
543
|
+
--et-text: #1c1917;
|
|
544
|
+
--et-text-muted: #6b6560;
|
|
545
|
+
--et-border: rgba(0,0,0,.14);
|
|
546
|
+
--et-border-strong: rgba(0,0,0,.22);
|
|
547
|
+
--et-info: #2563eb;
|
|
548
|
+
--et-success: #15803d;
|
|
549
|
+
--et-error: #dc2626;
|
|
550
|
+
--et-warning: #b45309;
|
|
551
|
+
--et-loading: #4f46e5;
|
|
552
|
+
border-radius: 6px;
|
|
553
|
+
box-shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
554
|
+
border-left: 3px solid var(--et-accent);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/* ── COLORED: the whole card in the level's colour ──────────── */
|
|
627
558
|
.editora-toast[data-theme="colored"] {
|
|
628
|
-
--et-
|
|
629
|
-
--et-
|
|
630
|
-
--et-
|
|
631
|
-
--et-
|
|
632
|
-
--et-
|
|
633
|
-
--et-
|
|
634
|
-
--et-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
644
|
-
.editora-toast[data-theme="colored"].editora-toast-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
649
|
-
.editora-toast[data-theme="colored"].editora-toast-error {
|
|
650
|
-
background: var(--et-error) !important;
|
|
651
|
-
border: none !important;
|
|
652
|
-
box-shadow: 0 4px 14px rgba(220,38,38,.4) !important;
|
|
653
|
-
color: #fff !important;
|
|
654
|
-
}
|
|
655
|
-
.editora-toast[data-theme="colored"].editora-toast-warning {
|
|
656
|
-
background: var(--et-warning) !important;
|
|
657
|
-
border: none !important;
|
|
658
|
-
box-shadow: 0 4px 14px rgba(217,119,6,.4) !important;
|
|
659
|
-
color: #fff !important;
|
|
660
|
-
}
|
|
661
|
-
.editora-toast[data-theme="colored"].editora-toast-loading,
|
|
662
|
-
.editora-toast[data-theme="colored"].editora-toast-promise {
|
|
663
|
-
background: var(--et-loading) !important;
|
|
664
|
-
border: none !important;
|
|
665
|
-
box-shadow: 0 4px 14px rgba(99,102,241,.4) !important;
|
|
666
|
-
color: #fff !important;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/* ── GLASS ───────────────────────────────────────────────────── */
|
|
670
|
-
/*
|
|
671
|
-
FIX: glass is designed for dark/image backdrops. Text must
|
|
672
|
-
be white. All token overrides are explicit so nothing leaks
|
|
673
|
-
from a parent dark-mode class.
|
|
674
|
-
*/
|
|
559
|
+
--et-info: #2563eb;
|
|
560
|
+
--et-success: #15803d;
|
|
561
|
+
--et-error: #c81e1e;
|
|
562
|
+
--et-warning: #b45309;
|
|
563
|
+
--et-loading: #4f46e5;
|
|
564
|
+
--et-text: #ffffff;
|
|
565
|
+
--et-text-muted: rgba(255,255,255,.95);
|
|
566
|
+
--et-bg-subtle: rgba(255,255,255,.16);
|
|
567
|
+
--et-border: rgba(255,255,255,.22);
|
|
568
|
+
--et-border-strong: rgba(255,255,255,.38);
|
|
569
|
+
--et-action-bg: #ffffff;
|
|
570
|
+
--et-action-ink: var(--et-accent);
|
|
571
|
+
background: var(--et-accent);
|
|
572
|
+
border-color: transparent;
|
|
573
|
+
box-shadow: 0 8px 22px rgba(0,0,0,.22);
|
|
574
|
+
}
|
|
575
|
+
.editora-toast[data-theme="colored"] .editora-toast-icon { color: #ffffff; }
|
|
576
|
+
.editora-toast[data-theme="colored"] .editora-toast-progress-bar { background: #ffffff; }
|
|
577
|
+
|
|
578
|
+
/* ── GLASS: frosted dark glass, readable on any page ────────── */
|
|
675
579
|
.editora-toast[data-theme="glass"] {
|
|
676
|
-
--et-
|
|
677
|
-
--et-
|
|
678
|
-
--et-text
|
|
679
|
-
--et-
|
|
680
|
-
--et-
|
|
681
|
-
--et-border:
|
|
682
|
-
--et-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
--et-error-ring: rgba(255,255,255,.18);
|
|
696
|
-
--et-warning-tint: rgba(255,255,255,.04);
|
|
697
|
-
--et-warning-ring: rgba(255,255,255,.18);
|
|
698
|
-
--et-loading-tint: rgba(255,255,255,.04);
|
|
699
|
-
--et-loading-ring: rgba(255,255,255,.18);
|
|
700
|
-
}
|
|
701
|
-
.editora-toast[data-theme="glass"].editora-toast-info,
|
|
702
|
-
.editora-toast[data-theme="glass"].editora-toast-success,
|
|
703
|
-
.editora-toast[data-theme="glass"].editora-toast-error,
|
|
704
|
-
.editora-toast[data-theme="glass"].editora-toast-warning,
|
|
705
|
-
.editora-toast[data-theme="glass"].editora-toast-loading,
|
|
706
|
-
.editora-toast[data-theme="glass"].editora-toast-promise {
|
|
707
|
-
background: rgba(255,255,255,.12) !important;
|
|
708
|
-
border: 1px solid rgba(255,255,255,.22) !important;
|
|
709
|
-
}
|
|
710
|
-
.editora-toast[data-theme="glass"].editora-toast-info::before { background: #60a5fa; }
|
|
711
|
-
.editora-toast[data-theme="glass"].editora-toast-success::before { background: #4ade80; }
|
|
712
|
-
.editora-toast[data-theme="glass"].editora-toast-error::before { background: #f87171; }
|
|
713
|
-
.editora-toast[data-theme="glass"].editora-toast-warning::before { background: #fbbf24; }
|
|
714
|
-
.editora-toast[data-theme="glass"].editora-toast-loading::before,
|
|
715
|
-
.editora-toast[data-theme="glass"].editora-toast-promise::before { background: #818cf8; }
|
|
716
|
-
|
|
717
|
-
/* ── NEON ────────────────────────────────────────────────────── */
|
|
718
|
-
/*
|
|
719
|
-
FIX: was missing --et-text-muted override so description
|
|
720
|
-
text was falling back to #78716C (nearly invisible on #09090B).
|
|
721
|
-
*/
|
|
580
|
+
--et-bg: rgba(24,24,27,.72);
|
|
581
|
+
--et-bg-subtle: rgba(255,255,255,.10);
|
|
582
|
+
--et-text: #ffffff;
|
|
583
|
+
--et-text-muted: rgba(255,255,255,.86);
|
|
584
|
+
--et-border: rgba(255,255,255,.16);
|
|
585
|
+
--et-border-strong: rgba(255,255,255,.30);
|
|
586
|
+
--et-info: #7dd3fc;
|
|
587
|
+
--et-success: #86efac;
|
|
588
|
+
--et-error: #fca5a5;
|
|
589
|
+
--et-warning: #fcd34d;
|
|
590
|
+
--et-loading: #c4b5fd;
|
|
591
|
+
--et-action-bg: #ffffff;
|
|
592
|
+
--et-action-ink: #18181b;
|
|
593
|
+
-webkit-backdrop-filter: blur(22px) saturate(170%);
|
|
594
|
+
backdrop-filter: blur(22px) saturate(170%);
|
|
595
|
+
box-shadow: 0 10px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/* ── NEON ───────────────────────────────────────────────────── */
|
|
722
599
|
.editora-toast[data-theme="neon"] {
|
|
723
|
-
--et-
|
|
724
|
-
--et-
|
|
725
|
-
--et-text
|
|
726
|
-
--et-
|
|
727
|
-
--et-
|
|
728
|
-
--et-border:
|
|
729
|
-
--et-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
--et-
|
|
734
|
-
--et-
|
|
735
|
-
--et-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
--et-warning-tint: rgba(251,191,36,.08);
|
|
740
|
-
--et-warning-ring: rgba(251,191,36,.20);
|
|
741
|
-
--et-loading-tint: rgba(129,140,248,.08);
|
|
742
|
-
--et-loading-ring: rgba(129,140,248,.22);
|
|
743
|
-
}
|
|
744
|
-
.editora-toast[data-theme="neon"]::before { display: none !important; }
|
|
745
|
-
/* Neon glow replaces the accent stripe */
|
|
746
|
-
.editora-toast[data-theme="neon"].editora-toast-info {
|
|
747
|
-
background: var(--et-info-tint) !important;
|
|
748
|
-
border: 1px solid #38bdf8 !important;
|
|
749
|
-
box-shadow: 0 0 18px rgba(56,189,248,.22), 0 4px 12px rgba(0,0,0,.5) !important;
|
|
750
|
-
}
|
|
751
|
-
.editora-toast[data-theme="neon"].editora-toast-success {
|
|
752
|
-
background: var(--et-success-tint) !important;
|
|
753
|
-
border: 1px solid #4ade80 !important;
|
|
754
|
-
box-shadow: 0 0 18px rgba(74,222,128,.22), 0 4px 12px rgba(0,0,0,.5) !important;
|
|
755
|
-
}
|
|
756
|
-
.editora-toast[data-theme="neon"].editora-toast-error {
|
|
757
|
-
background: var(--et-error-tint) !important;
|
|
758
|
-
border: 1px solid #f87171 !important;
|
|
759
|
-
box-shadow: 0 0 18px rgba(248,113,113,.22), 0 4px 12px rgba(0,0,0,.5) !important;
|
|
760
|
-
}
|
|
761
|
-
.editora-toast[data-theme="neon"].editora-toast-warning {
|
|
762
|
-
background: var(--et-warning-tint) !important;
|
|
763
|
-
border: 1px solid #fbbf24 !important;
|
|
764
|
-
box-shadow: 0 0 18px rgba(251,191,36,.22), 0 4px 12px rgba(0,0,0,.5) !important;
|
|
765
|
-
}
|
|
766
|
-
.editora-toast[data-theme="neon"].editora-toast-loading,
|
|
767
|
-
.editora-toast[data-theme="neon"].editora-toast-promise {
|
|
768
|
-
background: var(--et-loading-tint) !important;
|
|
769
|
-
border: 1px solid #818cf8 !important;
|
|
770
|
-
box-shadow: 0 0 18px rgba(129,140,248,.22), 0 4px 12px rgba(0,0,0,.5) !important;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
/* ── OCEAN ───────────────────────────────────────────────────── */
|
|
600
|
+
--et-bg: #09090b;
|
|
601
|
+
--et-bg-subtle: #18181b;
|
|
602
|
+
--et-text: #e4e4e7;
|
|
603
|
+
--et-text-muted: #a1a1aa;
|
|
604
|
+
--et-border: rgba(255,255,255,.08);
|
|
605
|
+
--et-border-strong: rgba(255,255,255,.20);
|
|
606
|
+
--et-info: #38bdf8;
|
|
607
|
+
--et-success: #4ade80;
|
|
608
|
+
--et-error: #f87171;
|
|
609
|
+
--et-warning: #fbbf24;
|
|
610
|
+
--et-loading: #a5b4fc;
|
|
611
|
+
border-color: var(--et-accent);
|
|
612
|
+
box-shadow: 0 0 18px color-mix(in srgb, var(--et-accent) 28%, transparent), 0 4px 12px rgba(0,0,0,.5);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/* ── OCEAN, FOREST, SUNSET, MIDNIGHT ────────────────────────── */
|
|
774
616
|
.editora-toast[data-theme="ocean"] {
|
|
775
|
-
--et-text: #E0F2FE;
|
|
776
|
-
--et-text-muted: rgba(224,242,254,.72);
|
|
777
|
-
--et-text-inverse: #0f2942;
|
|
778
617
|
--et-bg: #0f2942;
|
|
779
618
|
--et-bg-subtle: #1a3d5c;
|
|
619
|
+
--et-text: #e0f2fe;
|
|
620
|
+
--et-text-muted: rgba(224,242,254,.76);
|
|
780
621
|
--et-border: rgba(186,230,253,.18);
|
|
781
|
-
--et-border-strong: rgba(186,230,253,.
|
|
782
|
-
--et-info
|
|
783
|
-
--et-
|
|
784
|
-
--et-
|
|
785
|
-
--et-
|
|
786
|
-
--et-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
--et-loading-tint: rgba(129,140,248,.12);
|
|
791
|
-
--et-loading-ring: rgba(129,140,248,.28);
|
|
792
|
-
background: linear-gradient(135deg, #0f2942 0%, #1a3d5c 100%) !important;
|
|
793
|
-
color: #e0f2fe !important;
|
|
794
|
-
border: 1px solid rgba(186,230,253,.15) !important;
|
|
795
|
-
box-shadow: 0 8px 28px rgba(15,41,66,.4) !important;
|
|
796
|
-
}
|
|
797
|
-
.editora-toast[data-theme="ocean"].editora-toast-info::before { background: #38bdf8; }
|
|
798
|
-
.editora-toast[data-theme="ocean"].editora-toast-success::before { background: #34d399; }
|
|
799
|
-
.editora-toast[data-theme="ocean"].editora-toast-error::before { background: #fb7185; }
|
|
800
|
-
.editora-toast[data-theme="ocean"].editora-toast-warning::before { background: #fbbf24; }
|
|
801
|
-
.editora-toast[data-theme="ocean"].editora-toast-loading::before,
|
|
802
|
-
.editora-toast[data-theme="ocean"].editora-toast-promise::before { background: #818cf8; }
|
|
803
|
-
|
|
804
|
-
/* ── FOREST ──────────────────────────────────────────────────── */
|
|
622
|
+
--et-border-strong: rgba(186,230,253,.32);
|
|
623
|
+
--et-info: #38bdf8;
|
|
624
|
+
--et-success: #34d399;
|
|
625
|
+
--et-error: #fb7185;
|
|
626
|
+
--et-warning: #fbbf24;
|
|
627
|
+
--et-loading: #a5b4fc;
|
|
628
|
+
background: linear-gradient(135deg, #0f2942 0%, #1a3d5c 100%);
|
|
629
|
+
box-shadow: 0 8px 28px rgba(15,41,66,.4);
|
|
630
|
+
}
|
|
805
631
|
.editora-toast[data-theme="forest"] {
|
|
806
|
-
--et-text: #DCFCE7;
|
|
807
|
-
--et-text-muted: rgba(220,252,231,.72);
|
|
808
|
-
--et-text-inverse: #052e16;
|
|
809
632
|
--et-bg: #052e16;
|
|
810
633
|
--et-bg-subtle: #14532d;
|
|
811
|
-
--et-
|
|
812
|
-
--et-
|
|
813
|
-
--et-
|
|
814
|
-
--et-
|
|
815
|
-
--et-
|
|
816
|
-
--et-success
|
|
817
|
-
--et-error
|
|
818
|
-
--et-
|
|
819
|
-
--et-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
background: linear-gradient(135deg, #052e16 0%, #14532d 100%) !important;
|
|
824
|
-
color: #dcfce7 !important;
|
|
825
|
-
border: 1px solid rgba(220,252,231,.12) !important;
|
|
826
|
-
box-shadow: 0 8px 28px rgba(5,46,22,.4) !important;
|
|
827
|
-
}
|
|
828
|
-
.editora-toast[data-theme="forest"].editora-toast-info::before { background: #4ade80; }
|
|
829
|
-
.editora-toast[data-theme="forest"].editora-toast-success::before { background: #86efac; }
|
|
830
|
-
.editora-toast[data-theme="forest"].editora-toast-error::before { background: #fca5a5; }
|
|
831
|
-
.editora-toast[data-theme="forest"].editora-toast-warning::before { background: #fde68a; }
|
|
832
|
-
.editora-toast[data-theme="forest"].editora-toast-loading::before,
|
|
833
|
-
.editora-toast[data-theme="forest"].editora-toast-promise::before { background: #6ee7b7; }
|
|
834
|
-
|
|
835
|
-
/* ── SUNSET ──────────────────────────────────────────────────── */
|
|
634
|
+
--et-text: #dcfce7;
|
|
635
|
+
--et-text-muted: rgba(220,252,231,.76);
|
|
636
|
+
--et-border: rgba(220,252,231,.16);
|
|
637
|
+
--et-border-strong: rgba(220,252,231,.30);
|
|
638
|
+
--et-info: #4ade80;
|
|
639
|
+
--et-success: #86efac;
|
|
640
|
+
--et-error: #fca5a5;
|
|
641
|
+
--et-warning: #fde68a;
|
|
642
|
+
--et-loading: #6ee7b7;
|
|
643
|
+
background: linear-gradient(135deg, #052e16 0%, #14532d 100%);
|
|
644
|
+
box-shadow: 0 8px 28px rgba(5,46,22,.4);
|
|
645
|
+
}
|
|
836
646
|
.editora-toast[data-theme="sunset"] {
|
|
837
|
-
--et-text: #FED7AA;
|
|
838
|
-
--et-text-muted: rgba(254,215,170,.72);
|
|
839
|
-
--et-text-inverse: #431407;
|
|
840
647
|
--et-bg: #431407;
|
|
841
648
|
--et-bg-subtle: #7c2d12;
|
|
842
|
-
--et-
|
|
843
|
-
--et-
|
|
844
|
-
--et-
|
|
845
|
-
--et-
|
|
846
|
-
--et-
|
|
847
|
-
--et-success
|
|
848
|
-
--et-error
|
|
849
|
-
--et-
|
|
850
|
-
--et-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
background: linear-gradient(135deg, #431407 0%, #7c2d12 100%) !important;
|
|
855
|
-
color: #fed7aa !important;
|
|
856
|
-
border: 1px solid rgba(254,215,170,.12) !important;
|
|
857
|
-
box-shadow: 0 8px 28px rgba(67,20,7,.4) !important;
|
|
858
|
-
}
|
|
859
|
-
.editora-toast[data-theme="sunset"].editora-toast-info::before { background: #fb923c; }
|
|
860
|
-
.editora-toast[data-theme="sunset"].editora-toast-success::before { background: #fbbf24; }
|
|
861
|
-
.editora-toast[data-theme="sunset"].editora-toast-error::before { background: #f87171; }
|
|
862
|
-
.editora-toast[data-theme="sunset"].editora-toast-warning::before { background: #fde68a; }
|
|
863
|
-
.editora-toast[data-theme="sunset"].editora-toast-loading::before,
|
|
864
|
-
.editora-toast[data-theme="sunset"].editora-toast-promise::before { background: #c084fc; }
|
|
865
|
-
|
|
866
|
-
/* ── MIDNIGHT ────────────────────────────────────────────────── */
|
|
649
|
+
--et-text: #fed7aa;
|
|
650
|
+
--et-text-muted: rgba(254,215,170,.78);
|
|
651
|
+
--et-border: rgba(254,215,170,.16);
|
|
652
|
+
--et-border-strong: rgba(254,215,170,.30);
|
|
653
|
+
--et-info: #fb923c;
|
|
654
|
+
--et-success: #fbbf24;
|
|
655
|
+
--et-error: #fca5a5;
|
|
656
|
+
--et-warning: #fde68a;
|
|
657
|
+
--et-loading: #d8b4fe;
|
|
658
|
+
background: linear-gradient(135deg, #431407 0%, #7c2d12 100%);
|
|
659
|
+
box-shadow: 0 8px 28px rgba(67,20,7,.4);
|
|
660
|
+
}
|
|
867
661
|
.editora-toast[data-theme="midnight"] {
|
|
868
|
-
--et-text: #E2E8F0;
|
|
869
|
-
--et-text-muted: rgba(226,232,240,.68);
|
|
870
|
-
--et-text-inverse: #0a0a0f;
|
|
871
662
|
--et-bg: #0a0a0f;
|
|
872
|
-
--et-bg-subtle: #
|
|
873
|
-
--et-
|
|
874
|
-
--et-
|
|
875
|
-
--et-
|
|
876
|
-
--et-
|
|
877
|
-
--et-
|
|
878
|
-
--et-success
|
|
879
|
-
--et-error
|
|
880
|
-
--et-
|
|
881
|
-
--et-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
color: #e2e8f0 !important;
|
|
887
|
-
border: 1px solid rgba(226,232,240,.07) !important;
|
|
888
|
-
box-shadow: 0 8px 28px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04) !important;
|
|
889
|
-
}
|
|
890
|
-
.editora-toast[data-theme="midnight"].editora-toast-info::before { background: #60a5fa; }
|
|
891
|
-
.editora-toast[data-theme="midnight"].editora-toast-success::before { background: #34d399; }
|
|
892
|
-
.editora-toast[data-theme="midnight"].editora-toast-error::before { background: #f87171; }
|
|
893
|
-
.editora-toast[data-theme="midnight"].editora-toast-warning::before { background: #fbbf24; }
|
|
894
|
-
.editora-toast[data-theme="midnight"].editora-toast-loading::before,
|
|
895
|
-
.editora-toast[data-theme="midnight"].editora-toast-promise::before { background: #818cf8; }
|
|
896
|
-
|
|
897
|
-
/* ── RETRO ───────────────────────────────────────────────────── */
|
|
898
|
-
/*
|
|
899
|
-
FIX: retro is a light theme (cream bg) so text must be dark.
|
|
900
|
-
Also kill the tinted backgrounds from level classes.
|
|
901
|
-
*/
|
|
663
|
+
--et-bg-subtle: #14141f;
|
|
664
|
+
--et-text: #e2e8f0;
|
|
665
|
+
--et-text-muted: rgba(226,232,240,.72);
|
|
666
|
+
--et-border: rgba(226,232,240,.10);
|
|
667
|
+
--et-border-strong: rgba(226,232,240,.22);
|
|
668
|
+
--et-info: #60a5fa;
|
|
669
|
+
--et-success: #34d399;
|
|
670
|
+
--et-error: #f87171;
|
|
671
|
+
--et-warning: #fbbf24;
|
|
672
|
+
--et-loading: #a5b4fc;
|
|
673
|
+
box-shadow: 0 8px 28px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/* ── RETRO ──────────────────────────────────────────────────── */
|
|
902
677
|
.editora-toast[data-theme="retro"] {
|
|
903
|
-
--et-
|
|
904
|
-
--et-
|
|
905
|
-
--et-text
|
|
906
|
-
--et-
|
|
907
|
-
--et-
|
|
908
|
-
--et-border:
|
|
909
|
-
--et-
|
|
910
|
-
|
|
911
|
-
--et-
|
|
912
|
-
--et-
|
|
913
|
-
--et-
|
|
914
|
-
--et-
|
|
915
|
-
|
|
916
|
-
--et-
|
|
917
|
-
|
|
918
|
-
--et-warning-ring: transparent;
|
|
919
|
-
--et-loading-tint: transparent;
|
|
920
|
-
--et-loading-ring: transparent;
|
|
921
|
-
background: #FEFCE8 !important;
|
|
922
|
-
color: #1C1917 !important;
|
|
923
|
-
border: 2px solid #1C1917 !important;
|
|
924
|
-
border-radius: 6px !important;
|
|
925
|
-
box-shadow: 4px 4px 0 #1C1917 !important;
|
|
926
|
-
font-family: 'Courier New', 'Courier', monospace !important;
|
|
927
|
-
}
|
|
928
|
-
.editora-toast[data-theme="retro"]::before { display: none !important; }
|
|
929
|
-
/* Level border colours replace the level tinted backgrounds */
|
|
930
|
-
.editora-toast[data-theme="retro"].editora-toast-info {
|
|
931
|
-
background: #FEFCE8 !important;
|
|
932
|
-
border-color: #2563EB !important;
|
|
933
|
-
box-shadow: 4px 4px 0 #2563EB !important;
|
|
934
|
-
}
|
|
935
|
-
.editora-toast[data-theme="retro"].editora-toast-success {
|
|
936
|
-
background: #FEFCE8 !important;
|
|
937
|
-
border-color: #16A34A !important;
|
|
938
|
-
box-shadow: 4px 4px 0 #16A34A !important;
|
|
939
|
-
}
|
|
940
|
-
.editora-toast[data-theme="retro"].editora-toast-error {
|
|
941
|
-
background: #FEFCE8 !important;
|
|
942
|
-
border-color: #DC2626 !important;
|
|
943
|
-
box-shadow: 4px 4px 0 #DC2626 !important;
|
|
944
|
-
}
|
|
945
|
-
.editora-toast[data-theme="retro"].editora-toast-warning {
|
|
946
|
-
background: #FEFCE8 !important;
|
|
947
|
-
border-color: #D97706 !important;
|
|
948
|
-
box-shadow: 4px 4px 0 #D97706 !important;
|
|
949
|
-
}
|
|
950
|
-
.editora-toast[data-theme="retro"].editora-toast-loading,
|
|
951
|
-
.editora-toast[data-theme="retro"].editora-toast-promise {
|
|
952
|
-
background: #FEFCE8 !important;
|
|
953
|
-
border-color: #6366F1 !important;
|
|
954
|
-
box-shadow: 4px 4px 0 #6366F1 !important;
|
|
678
|
+
--et-bg: #fefce8;
|
|
679
|
+
--et-bg-subtle: #fef9c3;
|
|
680
|
+
--et-text: #1c1917;
|
|
681
|
+
--et-text-muted: #57534e;
|
|
682
|
+
--et-border: #1c1917;
|
|
683
|
+
--et-border-strong: #1c1917;
|
|
684
|
+
--et-info: #1d4ed8;
|
|
685
|
+
--et-success: #15803d;
|
|
686
|
+
--et-error: #b91c1c;
|
|
687
|
+
--et-warning: #b45309;
|
|
688
|
+
--et-loading: #4338ca;
|
|
689
|
+
border: 2px solid var(--et-accent);
|
|
690
|
+
border-radius: 6px;
|
|
691
|
+
box-shadow: 4px 4px 0 var(--et-accent);
|
|
692
|
+
font-family: 'Courier New', Courier, monospace;
|
|
955
693
|
}
|
|
956
694
|
|
|
957
695
|
/* ── Accessibility ───────────────────────────────────────────── */
|
|
958
|
-
.editora-toast:focus-visible
|
|
959
|
-
outline: 2px solid var(--et-info);
|
|
960
|
-
outline-offset: 2px;
|
|
961
|
-
}
|
|
696
|
+
.editora-toast:focus-visible,
|
|
962
697
|
.editora-toast-action:focus-visible,
|
|
963
698
|
.editora-toast-close:focus-visible {
|
|
964
|
-
outline: 2px solid var(--et-info);
|
|
699
|
+
outline: 2px solid var(--et-focus, var(--et-info));
|
|
965
700
|
outline-offset: 2px;
|
|
966
701
|
}
|
|
967
702
|
|
|
@@ -971,11 +706,9 @@
|
|
|
971
706
|
.editora-toast.show,
|
|
972
707
|
.editora-toast.hiding {
|
|
973
708
|
transition: opacity 100ms ease !important;
|
|
974
|
-
animation: none !important;
|
|
975
709
|
transform: none !important;
|
|
976
710
|
}
|
|
977
|
-
.editora-toast-
|
|
978
|
-
.editora-toast-spinner { animation: et-spin 1.2s linear infinite; }
|
|
711
|
+
.editora-toast-icon[data-spin="true"] svg { animation-duration: 1.6s; }
|
|
979
712
|
}
|
|
980
713
|
|
|
981
714
|
/* ── Mobile ──────────────────────────────────────────────────── */
|
|
@@ -984,23 +717,13 @@
|
|
|
984
717
|
left: max(12px, env(safe-area-inset-left)) !important;
|
|
985
718
|
right: max(12px, env(safe-area-inset-right)) !important;
|
|
986
719
|
width: auto !important;
|
|
720
|
+
max-width: none !important;
|
|
987
721
|
transform: none !important;
|
|
988
722
|
}
|
|
989
|
-
.editora-toast {
|
|
990
|
-
|
|
991
|
-
width: 100%;
|
|
992
|
-
max-width: none;
|
|
993
|
-
border-radius: 10px;
|
|
994
|
-
}
|
|
995
|
-
.editora-toast-center {
|
|
996
|
-
top: max(12px, env(safe-area-inset-top));
|
|
997
|
-
left: max(12px, env(safe-area-inset-left));
|
|
998
|
-
right: max(12px, env(safe-area-inset-right));
|
|
999
|
-
transform: none;
|
|
1000
|
-
align-items: stretch;
|
|
723
|
+
.editora-toast-container[data-position="center"] {
|
|
724
|
+
top: max(12px, env(safe-area-inset-top)) !important;
|
|
1001
725
|
}
|
|
1002
|
-
.editora-toast-
|
|
1003
|
-
.editora-toast-action { flex: 1; justify-content: center; }
|
|
726
|
+
.editora-toast-action { flex: 1; justify-content: center; }
|
|
1004
727
|
}
|
|
1005
728
|
|
|
1006
729
|
/* ── Backward-compat ─────────────────────────────────────────── */
|
|
@@ -1009,7 +732,7 @@
|
|
|
1009
732
|
top: 10px; right: 10px;
|
|
1010
733
|
background: none; border: none;
|
|
1011
734
|
color: inherit; cursor: pointer;
|
|
1012
|
-
font-size: 16px; opacity:
|
|
1013
|
-
transition: opacity
|
|
735
|
+
font-size: 16px; opacity: .5;
|
|
736
|
+
transition: opacity .2s ease;
|
|
1014
737
|
}
|
|
1015
|
-
.editora-toast .close:hover { opacity: 1; }
|
|
738
|
+
.editora-toast .close:hover { opacity: 1; }
|