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