@adzen/doohbot 1.0.6 → 1.0.8
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/fesm2022/adzen-doohbot.mjs +1541 -1137
- package/fesm2022/adzen-doohbot.mjs.map +1 -1
- package/index.d.ts +87 -111
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/lib/app/chat/components/chat-button/chat-button.component.scss +43 -9
- package/src/lib/app/chat/components/chat-footer/chat-footer.component.scss +3 -3
- package/src/lib/app/chat/components/chat-header/chat-header.component.scss +29 -11
- package/src/lib/app/chat/components/{chat-history-sidebar/chat-history-sidebar.component.scss → chat-history/chat-history.component.scss} +46 -34
- package/src/lib/app/chat/components/chat-input/chat-input.component.scss +44 -21
- package/src/lib/app/chat/components/chat-message/chat-message.component.scss +178 -178
- package/src/lib/app/chat/components/chat-message-container/chat-message-container.component.scss +55 -24
- package/src/lib/app/chat/components/chat-window/chat-window.component.scss +282 -21
- package/src/lib/app/login/login-form.component.scss +24 -24
- package/src/lib/app/personalization/personalization-dialog.component.scss +17 -17
- package/src/lib/app/personalization/sections/account/account-section.component.scss +167 -166
- package/src/lib/app/personalization/sections/instruction/instruction-section.component.scss +47 -46
- package/src/lib/app/personalization/sections/preferences/preferences-section.component.scss +172 -170
- package/src/lib/app/personalization/sections/terms/terms-section.component.scss +58 -57
- package/src/lib/doohbot.component.scss +6 -12
- package/src/lib/shared/chips/chips.component.scss +8 -8
- package/src/lib/shared/confirmation-dialog/confirmation-dialog.component.scss +24 -0
- package/src/lib/shared/dropdown-menu/dropdown-menu.component.scss +5 -5
- package/src/lib/shared/input-dialog/input-dialog.component.scss +8 -8
- package/src/lib/shared/notification-banner/notification-banner.component.scss +342 -0
- package/src/lib/shared/snackbar/snackbar.component.scss +3 -3
- package/src/lib/styles/_theme.scss +101 -45
- package/src/lib/styles/material-override.scss +36 -26
- package/src/lib/styles/utility.scss +64 -12
- package/src/lib/theme/index.scss +7 -7
- package/src/lib/theme/palettes/aqua.scss +76 -62
- package/src/lib/theme/palettes/candy.scss +75 -61
- package/src/lib/theme/palettes/doohbot.scss +21 -7
- package/src/lib/theme/palettes/forest.scss +75 -61
- package/src/lib/theme/palettes/midnight.scss +75 -61
- package/src/lib/theme/palettes/slate.scss +75 -61
- package/src/lib/theme/palettes/sunset.scss +75 -61
- package/src/lib/shared/dialog/dialog.component.scss +0 -90
- package/src/lib/shared/menu-item/menu-item.component.scss +0 -0
- package/src/lib/theme/themes.scss +0 -7
- package/src/lib/theme/tokens/semantic.scss +0 -102
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
.banner-wrapper {
|
|
2
|
+
padding: 12px 16px;
|
|
3
|
+
width: 100%;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.glass-banner {
|
|
8
|
+
position: relative;
|
|
9
|
+
background: rgba(var(--db-bg-color-rgb), 0.7);
|
|
10
|
+
backdrop-filter: blur(12px);
|
|
11
|
+
border: 1px solid rgba(var(--db-primary-rgb), 0.2);
|
|
12
|
+
border-radius: 24px;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
box-shadow:
|
|
15
|
+
0 8px 32px rgba(var(--black-rgb), 0.08),
|
|
16
|
+
inset 0 0 0 1px rgba(var(--white-rgb), 0.1);
|
|
17
|
+
animation: banner-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.banner-glow {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: -50%;
|
|
23
|
+
left: -50%;
|
|
24
|
+
width: 200%;
|
|
25
|
+
height: 200%;
|
|
26
|
+
background: radial-gradient(
|
|
27
|
+
circle at center,
|
|
28
|
+
rgba(var(--db-primary-rgb), 0.05) 0%,
|
|
29
|
+
transparent 70%
|
|
30
|
+
);
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
animation: rotate-glow 10s linear infinite;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.banner-inner {
|
|
36
|
+
position: relative;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
padding: 20px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.header-section {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 16px;
|
|
45
|
+
margin-bottom: 24px;
|
|
46
|
+
padding: 0 20px; // Match .status-card horizontal padding
|
|
47
|
+
|
|
48
|
+
.icon-orb {
|
|
49
|
+
width: 36px;
|
|
50
|
+
height: 36px;
|
|
51
|
+
background: linear-gradient(135deg, var(--db-primary), rgba(var(--db-primary-rgb), 0.6));
|
|
52
|
+
border-radius: 12px;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
box-shadow: 0 4px 12px rgba(var(--db-primary-rgb), 0.3);
|
|
57
|
+
|
|
58
|
+
mat-icon {
|
|
59
|
+
color: white;
|
|
60
|
+
font-size: 20px;
|
|
61
|
+
width: 20px;
|
|
62
|
+
height: 20px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.text-content {
|
|
67
|
+
text-align: left;
|
|
68
|
+
|
|
69
|
+
h3 {
|
|
70
|
+
margin: 0;
|
|
71
|
+
font-size: 0.95rem;
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
color: var(--db-text-primary);
|
|
74
|
+
letter-spacing: -0.01em;
|
|
75
|
+
}
|
|
76
|
+
p {
|
|
77
|
+
margin: 2px 0 0 0;
|
|
78
|
+
font-size: 0.75rem;
|
|
79
|
+
color: var(--db-text-secondary);
|
|
80
|
+
opacity: 0.8;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.status-section {
|
|
86
|
+
margin-bottom: 24px;
|
|
87
|
+
padding: 0 20px;
|
|
88
|
+
|
|
89
|
+
.status-card {
|
|
90
|
+
background: rgba(var(--db-primary-rgb), 0.03); // Default subtle background
|
|
91
|
+
border: 1px solid rgba(var(--db-border-color-rgb), 0.2);
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: row;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 16px;
|
|
96
|
+
padding: 16px;
|
|
97
|
+
border-radius: 16px;
|
|
98
|
+
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
99
|
+
animation: banner-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
|
|
100
|
+
|
|
101
|
+
&.error {
|
|
102
|
+
background: rgba(239, 68, 68, 0.05);
|
|
103
|
+
border-color: rgba(239, 68, 68, 0.2);
|
|
104
|
+
|
|
105
|
+
.icon-orb {
|
|
106
|
+
background: rgba(239, 68, 68, 0.1);
|
|
107
|
+
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
|
|
108
|
+
mat-icon {
|
|
109
|
+
color: #ef4444;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.updating {
|
|
115
|
+
background: rgba(var(--db-primary-rgb), 0.05);
|
|
116
|
+
border-color: rgba(var(--db-primary-rgb), 0.2);
|
|
117
|
+
|
|
118
|
+
.icon-orb {
|
|
119
|
+
background: rgba(var(--db-primary-rgb), 0.1);
|
|
120
|
+
box-shadow: 0 4px 12px rgba(var(--db-primary-rgb), 0.1);
|
|
121
|
+
mat-icon {
|
|
122
|
+
color: var(--db-primary);
|
|
123
|
+
animation: rotate-glow 2s linear infinite;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.success {
|
|
129
|
+
background: rgba(16, 185, 129, 0.05);
|
|
130
|
+
border-color: rgba(16, 185, 129, 0.2);
|
|
131
|
+
|
|
132
|
+
.icon-orb {
|
|
133
|
+
background: rgba(16, 185, 129, 0.1);
|
|
134
|
+
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
|
|
135
|
+
mat-icon {
|
|
136
|
+
color: #10b981;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.icon-orb {
|
|
142
|
+
width: 40px;
|
|
143
|
+
height: 40px;
|
|
144
|
+
background: rgba(var(--db-border-color-rgb), 0.1);
|
|
145
|
+
border-radius: 12px;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
flex-shrink: 0;
|
|
150
|
+
|
|
151
|
+
mat-icon {
|
|
152
|
+
color: var(--db-text-secondary);
|
|
153
|
+
font-size: 24px;
|
|
154
|
+
width: 24px;
|
|
155
|
+
height: 24px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.status-text {
|
|
160
|
+
text-align: left;
|
|
161
|
+
flex: 1;
|
|
162
|
+
|
|
163
|
+
h4 {
|
|
164
|
+
margin: 0;
|
|
165
|
+
font-size: 0.9rem;
|
|
166
|
+
font-weight: 600;
|
|
167
|
+
color: var(--db-text-primary);
|
|
168
|
+
letter-spacing: -0.01em;
|
|
169
|
+
}
|
|
170
|
+
p {
|
|
171
|
+
margin: 2px 0 0 0;
|
|
172
|
+
font-size: 0.8rem;
|
|
173
|
+
color: var(--db-text-secondary);
|
|
174
|
+
line-height: 1.4;
|
|
175
|
+
opacity: 0.9;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.status-grid {
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
gap: 12px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.status-card {
|
|
188
|
+
position: relative;
|
|
189
|
+
background: rgba(var(--black-rgb), 0.03);
|
|
190
|
+
border: 1px solid transparent;
|
|
191
|
+
padding: 14px 20px;
|
|
192
|
+
border-radius: 16px;
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: row;
|
|
195
|
+
align-items: center;
|
|
196
|
+
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
197
|
+
overflow: hidden;
|
|
198
|
+
|
|
199
|
+
mat-icon {
|
|
200
|
+
font-size: 24px;
|
|
201
|
+
width: 36px; // Match .icon-orb width for text alignment
|
|
202
|
+
height: 24px;
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
justify-content: center;
|
|
206
|
+
color: var(--db-border-color);
|
|
207
|
+
transition: all 0.4s ease;
|
|
208
|
+
flex-shrink: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.status-label {
|
|
212
|
+
flex: 1;
|
|
213
|
+
font-size: 0.75rem;
|
|
214
|
+
font-weight: 500;
|
|
215
|
+
// text-transform: uppercase;
|
|
216
|
+
letter-spacing: 0.05em;
|
|
217
|
+
color: var(--db-text-secondary);
|
|
218
|
+
text-align: left;
|
|
219
|
+
white-space: nowrap;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.status-tag {
|
|
223
|
+
font-size: 0.6rem;
|
|
224
|
+
padding: 2px 6px;
|
|
225
|
+
border-radius: 10px;
|
|
226
|
+
text-transform: uppercase;
|
|
227
|
+
font-weight: 800;
|
|
228
|
+
letter-spacing: 0.5px;
|
|
229
|
+
background: rgba(var(--black-rgb), 0.05);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&.success {
|
|
233
|
+
background: var(--db-bg-color-rgb);
|
|
234
|
+
border-color: rgba(16, 185, 129, 0.15);
|
|
235
|
+
box-shadow: 0 4px 12px rgba(var(--black-rgb), 0.05);
|
|
236
|
+
|
|
237
|
+
mat-icon {
|
|
238
|
+
color: var(--db-text-primary);
|
|
239
|
+
font-size: 16px;
|
|
240
|
+
transform: scale(1.1);
|
|
241
|
+
filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.status-label {
|
|
245
|
+
color: var(--db-text-primary);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.status-tag {
|
|
249
|
+
background: rgba(16, 185, 129, 0.1);
|
|
250
|
+
color: #10b981;
|
|
251
|
+
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.card-glow {
|
|
255
|
+
position: absolute;
|
|
256
|
+
top: 0;
|
|
257
|
+
left: 0;
|
|
258
|
+
width: 100%;
|
|
259
|
+
height: 100%;
|
|
260
|
+
background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&.failed {
|
|
265
|
+
background: rgba(239, 68, 68, 0.02);
|
|
266
|
+
border-color: rgba(239, 68, 68, 0.2);
|
|
267
|
+
|
|
268
|
+
mat-icon {
|
|
269
|
+
color: var(--db-text-primary);
|
|
270
|
+
font-size: 16px;
|
|
271
|
+
animation: shake 0.5s ease-in-out;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.status-tag {
|
|
275
|
+
background: rgba(239, 68, 68, 0.1);
|
|
276
|
+
color: #ef4444;
|
|
277
|
+
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&.pending {
|
|
282
|
+
background: rgba(245, 158, 11, 0.02);
|
|
283
|
+
border-color: rgba(245, 158, 11, 0.2);
|
|
284
|
+
|
|
285
|
+
mat-icon {
|
|
286
|
+
color: var(--db-text-primary);
|
|
287
|
+
font-size: 16px;
|
|
288
|
+
animation: pulse-icon 2s infinite ease-in-out;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.status-tag {
|
|
292
|
+
background: rgba(245, 158, 11, 0.1);
|
|
293
|
+
color: #f59e0b;
|
|
294
|
+
border: 1px solid rgba(245, 158, 11, 0.2);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@keyframes shake {
|
|
300
|
+
0%,
|
|
301
|
+
100% {
|
|
302
|
+
transform: translateX(0);
|
|
303
|
+
}
|
|
304
|
+
25% {
|
|
305
|
+
transform: translateX(-2px);
|
|
306
|
+
}
|
|
307
|
+
75% {
|
|
308
|
+
transform: translateX(2px);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
@keyframes banner-reveal {
|
|
313
|
+
from {
|
|
314
|
+
opacity: 0;
|
|
315
|
+
transform: translateY(20px) scale(0.98);
|
|
316
|
+
}
|
|
317
|
+
to {
|
|
318
|
+
opacity: 1;
|
|
319
|
+
transform: translateY(0) scale(1);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@keyframes rotate-glow {
|
|
324
|
+
from {
|
|
325
|
+
transform: rotate(0deg);
|
|
326
|
+
}
|
|
327
|
+
to {
|
|
328
|
+
transform: rotate(360deg);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@keyframes pulse-icon {
|
|
333
|
+
0%,
|
|
334
|
+
100% {
|
|
335
|
+
opacity: 0.5;
|
|
336
|
+
transform: scale(0.95);
|
|
337
|
+
}
|
|
338
|
+
50% {
|
|
339
|
+
opacity: 0.8;
|
|
340
|
+
transform: scale(1);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
border-radius: 6px;
|
|
8
8
|
color: var(--white);
|
|
9
9
|
font-size: 12px;
|
|
10
|
-
box-shadow: var(--border-shadow
|
|
11
|
-
font-family: var(--font
|
|
10
|
+
box-shadow: var(--db-border-shadow);
|
|
11
|
+
font-family: var(--db-font);
|
|
12
12
|
width: 100%;
|
|
13
13
|
max-width: 360px;
|
|
14
14
|
box-sizing: border-box;
|
|
15
|
-
background-color: var(--
|
|
15
|
+
background-color: var(--db-bg-color); // Fallback
|
|
16
16
|
border: 1px solid transparent;
|
|
17
17
|
|
|
18
18
|
&.type-error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Include theming for Angular Material with `mat.theme()
|
|
1
|
+
// Include theming for Angular Material with `mat.theme()`./
|
|
2
2
|
@use 'sass:meta';
|
|
3
3
|
@use '@angular/material' as mat;
|
|
4
4
|
|
|
@@ -7,63 +7,119 @@
|
|
|
7
7
|
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
|
|
8
8
|
|
|
9
9
|
// Light theme
|
|
10
|
-
$light-theme: mat.define-theme(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
$light-theme: mat.define-theme(
|
|
11
|
+
(
|
|
12
|
+
color: (
|
|
13
|
+
theme-type: light,
|
|
14
|
+
primary: mat.$violet-palette,
|
|
15
|
+
tertiary: mat.$orange-palette,
|
|
16
|
+
),
|
|
17
|
+
typography: (
|
|
18
|
+
brand-family: 'Roboto',
|
|
19
|
+
plain-family: 'Roboto',
|
|
20
|
+
),
|
|
21
|
+
)
|
|
22
|
+
);
|
|
18
23
|
|
|
19
24
|
// Dark theme
|
|
20
|
-
$dark-theme: mat.define-theme(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
$dark-theme: mat.define-theme(
|
|
26
|
+
(
|
|
27
|
+
color: (
|
|
28
|
+
theme-type: dark,
|
|
29
|
+
primary: mat.$violet-palette,
|
|
30
|
+
tertiary: mat.$orange-palette,
|
|
31
|
+
),
|
|
32
|
+
typography: (
|
|
33
|
+
brand-family: 'Roboto',
|
|
34
|
+
plain-family: 'Roboto',
|
|
35
|
+
),
|
|
36
|
+
)
|
|
37
|
+
);
|
|
28
38
|
|
|
39
|
+
// ----------------------------------------------------------------
|
|
40
|
+
// :root — real default values (NOT self-references).
|
|
41
|
+
// Palette classes (.db-theme-*) will override these on their element.
|
|
42
|
+
// ----------------------------------------------------------------
|
|
29
43
|
:root {
|
|
30
|
-
|
|
31
|
-
|
|
44
|
+
--db-font: 'Roboto', Arial, sans-serif;
|
|
45
|
+
--db-primary: #4f46e5;
|
|
46
|
+
--db-primary-rgb: 79, 70, 229;
|
|
47
|
+
--db-secondary: #6366f1;
|
|
48
|
+
--db-bg-color: #ffffff;
|
|
49
|
+
--db-bg-chat-input: #f9fafb;
|
|
50
|
+
--db-bg-user-msg: #f3f4f6;
|
|
51
|
+
--db-bg-bot-msg: #f3f4f6;
|
|
52
|
+
--db-text-primary: #1f2937;
|
|
53
|
+
--db-text-secondary: #9ca3af;
|
|
54
|
+
--db-text-tertiary: #1f2937;
|
|
55
|
+
--db-text-hint: #9ca3af;
|
|
56
|
+
--db-text-user-msg: #111827;
|
|
57
|
+
--db-text-bot-msg: #111827;
|
|
58
|
+
--db-border-color: #cbd5e1;
|
|
59
|
+
--db-border-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
60
|
+
--db-border-top: #ffffff00;
|
|
61
|
+
--db-color-button: #4f46e5;
|
|
62
|
+
--db-color-typing: #cbd5e1;
|
|
63
|
+
--db-avatar-filter: none;
|
|
64
|
+
--white: #ffffff;
|
|
65
|
+
--black: #000000;
|
|
66
|
+
--grey: #6b7280;
|
|
67
|
+
--red: #fe0000;
|
|
68
|
+
--green: #00ce4b;
|
|
69
|
+
--orange: #ff6a00;
|
|
70
|
+
--blue: #0062ff;
|
|
71
|
+
--white-rgb: 255, 255, 255;
|
|
72
|
+
--black-rgb: 0, 0, 0;
|
|
73
|
+
}
|
|
32
74
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
--text-color: var(--db-text-main, #111827);
|
|
75
|
+
// ----------------------------------------------------------------
|
|
76
|
+
// Theme classes — Material applied ONLY here, not at :root.
|
|
77
|
+
// Palette class (.db-theme-*) is added alongside these by ThemeService.
|
|
78
|
+
// ----------------------------------------------------------------
|
|
79
|
+
.light-theme {
|
|
80
|
+
@include mat.all-component-themes($light-theme);
|
|
40
81
|
|
|
41
|
-
//
|
|
42
|
-
@include mat.theme-overrides(
|
|
82
|
+
// Wire Material color roles to our palette variables
|
|
83
|
+
@include mat.theme-overrides(
|
|
84
|
+
(
|
|
85
|
+
button-container-shape: 5px,
|
|
43
86
|
dialog-container-shape: 12px,
|
|
44
87
|
menu-container-shape: 5px,
|
|
45
88
|
card-container-shape: 12px,
|
|
46
89
|
form-field-container-shape: 5px,
|
|
47
90
|
|
|
48
|
-
|
|
49
|
-
primary:
|
|
50
|
-
|
|
51
|
-
surface: var(--
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// ---------- Theme classes (apply to html or body) ----------
|
|
58
|
-
.light-theme {
|
|
59
|
-
@include mat.all-component-themes($light-theme);
|
|
91
|
+
primary: var(--db-primary),
|
|
92
|
+
on-primary: #ffffff,
|
|
93
|
+
surface: var(--db-bg-color),
|
|
94
|
+
on-surface: var(--db-text-primary),
|
|
95
|
+
outline: var(--db-border-color),
|
|
96
|
+
)
|
|
97
|
+
);
|
|
60
98
|
}
|
|
61
99
|
|
|
62
100
|
.dark-theme {
|
|
63
101
|
@include mat.all-component-themes($dark-theme);
|
|
64
102
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
103
|
+
@include mat.theme-overrides(
|
|
104
|
+
(
|
|
105
|
+
button-container-shape: 5px,
|
|
106
|
+
dialog-container-shape: 12px,
|
|
107
|
+
menu-container-shape: 5px,
|
|
108
|
+
card-container-shape: 12px,
|
|
109
|
+
form-field-container-shape: 5px,
|
|
110
|
+
|
|
111
|
+
primary: var(--db-primary),
|
|
112
|
+
on-primary: #ffffff,
|
|
113
|
+
surface: var(--db-bg-color),
|
|
114
|
+
on-surface: var(--db-text-primary),
|
|
115
|
+
outline: var(--db-border-color),
|
|
116
|
+
)
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// ----------------------------------------------------------------
|
|
121
|
+
// CDK Overlay
|
|
122
|
+
// ----------------------------------------------------------------
|
|
123
|
+
.cdk-overlay-container {
|
|
124
|
+
z-index: 1000000 !important; // Must be higher than fullscreen chat window (999999)
|
|
125
|
+
}
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
// ==========================================
|
|
33
33
|
|
|
34
34
|
.mat-mdc-button-base {
|
|
35
|
-
transition:
|
|
35
|
+
transition:
|
|
36
|
+
transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
36
37
|
box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
|
|
37
38
|
|
|
38
39
|
&:hover {
|
|
@@ -86,25 +87,35 @@
|
|
|
86
87
|
// Global Dialog Styling
|
|
87
88
|
.mat-mdc-dialog-container {
|
|
88
89
|
border-radius: 12px !important;
|
|
89
|
-
--mdc-dialog-container-color: var(--
|
|
90
|
-
background-color: var(--
|
|
90
|
+
--mdc-dialog-container-color: var(--db-bg-color) !important;
|
|
91
|
+
background-color: var(--db-bg-color) !important;
|
|
92
|
+
|
|
93
|
+
// Remove animations
|
|
94
|
+
transition: none !important;
|
|
91
95
|
|
|
92
96
|
.mdc-dialog__surface {
|
|
93
97
|
border-radius: 12px !important;
|
|
94
98
|
overflow: hidden;
|
|
95
|
-
background-color: var(--
|
|
96
|
-
--mdc-dialog-surface-container-color: var(--
|
|
99
|
+
background-color: var(--db-bg-color) !important;
|
|
100
|
+
--mdc-dialog-surface-container-color: var(--db-bg-color) !important;
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
103
|
|
|
104
|
+
// Disable global Material Dialog animations
|
|
105
|
+
.cdk-overlay-pane,
|
|
106
|
+
.cdk-overlay-backdrop {
|
|
107
|
+
transition: none !important;
|
|
108
|
+
animation: none !important;
|
|
109
|
+
}
|
|
110
|
+
|
|
100
111
|
// Global Select & Dropdown Styling
|
|
101
112
|
.mat-mdc-select-panel {
|
|
102
113
|
border-radius: 12px !important;
|
|
103
114
|
padding: 8px 0 !important;
|
|
104
115
|
box-shadow: 0 8px 24px rgba(var(--black-rgb), 0.12) !important;
|
|
105
116
|
border: 1px solid rgba(var(--black-rgb), 0.05) !important;
|
|
106
|
-
background-color: var(--
|
|
107
|
-
--mdc-select-panel-container-color: var(--
|
|
117
|
+
background-color: var(--db-bg-color) !important;
|
|
118
|
+
--mdc-select-panel-container-color: var(--db-bg-color) !important;
|
|
108
119
|
|
|
109
120
|
// Hide scrollbar for cleaner look
|
|
110
121
|
&::-webkit-scrollbar {
|
|
@@ -116,7 +127,7 @@
|
|
|
116
127
|
|
|
117
128
|
&.mdc-list-item--selected:not(.mdc-list-item--disabled) {
|
|
118
129
|
.mdc-list-item__primary-text {
|
|
119
|
-
color: var(--primary
|
|
130
|
+
color: var(--db-primary) !important;
|
|
120
131
|
}
|
|
121
132
|
}
|
|
122
133
|
}
|
|
@@ -128,11 +139,11 @@
|
|
|
128
139
|
overflow: hidden !important;
|
|
129
140
|
border: 1px solid rgba(var(--black-rgb), 0.1) !important;
|
|
130
141
|
box-shadow: 0 8px 24px rgba(var(--black-rgb), 0.12) !important;
|
|
131
|
-
background-color: var(--
|
|
132
|
-
--mdc-menu-container-color: var(--
|
|
142
|
+
background-color: var(--db-bg-color) !important;
|
|
143
|
+
--mdc-menu-container-color: var(--db-bg-color) !important;
|
|
133
144
|
|
|
134
145
|
.mat-mdc-menu-item:hover {
|
|
135
|
-
background-color: color-mix(in srgb, var(--primary
|
|
146
|
+
background-color: color-mix(in srgb, var(--db-primary), transparent 92%) !important;
|
|
136
147
|
}
|
|
137
148
|
|
|
138
149
|
// Consistent item styling
|
|
@@ -146,7 +157,7 @@
|
|
|
146
157
|
font-size: 20px !important;
|
|
147
158
|
width: 20px !important;
|
|
148
159
|
height: 20px !important;
|
|
149
|
-
color: var(--
|
|
160
|
+
color: var(--db-text-secondary) !important;
|
|
150
161
|
}
|
|
151
162
|
}
|
|
152
163
|
}
|
|
@@ -186,7 +197,7 @@
|
|
|
186
197
|
}
|
|
187
198
|
|
|
188
199
|
.reset-btn {
|
|
189
|
-
background-color: var(--
|
|
200
|
+
background-color: var(--db-text-secondary) !important;
|
|
190
201
|
color: var(--white) !important;
|
|
191
202
|
border-radius: 8px !important;
|
|
192
203
|
padding: 0 24px !important;
|
|
@@ -194,12 +205,12 @@
|
|
|
194
205
|
font-weight: 500;
|
|
195
206
|
|
|
196
207
|
&:hover {
|
|
197
|
-
background-color: var(--text-
|
|
208
|
+
background-color: var(--db-text-primary) !important;
|
|
198
209
|
}
|
|
199
210
|
}
|
|
200
211
|
|
|
201
212
|
.save-btn {
|
|
202
|
-
background-color: var(--primary
|
|
213
|
+
background-color: var(--db-primary) !important;
|
|
203
214
|
color: var(--white) !important;
|
|
204
215
|
border-radius: 8px !important;
|
|
205
216
|
padding: 0 24px !important;
|
|
@@ -222,7 +233,7 @@
|
|
|
222
233
|
// Global Slide Toggle Styling
|
|
223
234
|
.mat-mdc-slide-toggle {
|
|
224
235
|
--mdc-switch-selected-handle-color: var(--white);
|
|
225
|
-
--mdc-switch-selected-track-color: var(--primary
|
|
236
|
+
--mdc-switch-selected-track-color: var(--db-primary);
|
|
226
237
|
--mdc-switch-selected-focus-handle-color: var(--white);
|
|
227
238
|
--mdc-switch-selected-hover-handle-color: var(--white);
|
|
228
239
|
--mdc-switch-selected-pressed-handle-color: var(--white);
|
|
@@ -236,7 +247,6 @@
|
|
|
236
247
|
|
|
237
248
|
// Sleek Form Field Overrides (Personalization Hub Style)
|
|
238
249
|
.mat-mdc-form-field {
|
|
239
|
-
|
|
240
250
|
// Container & Interaction
|
|
241
251
|
.mat-mdc-text-field-wrapper {
|
|
242
252
|
background: rgba(var(--black-rgb), 0.04) !important;
|
|
@@ -252,9 +262,9 @@
|
|
|
252
262
|
}
|
|
253
263
|
|
|
254
264
|
&.mat-focused .mat-mdc-text-field-wrapper {
|
|
255
|
-
border-color: var(--primary
|
|
256
|
-
box-shadow: 0 0 0 3px rgba(var(--primary-
|
|
257
|
-
background: var(--
|
|
265
|
+
border-color: var(--db-primary) !important;
|
|
266
|
+
box-shadow: 0 0 0 3px rgba(var(--db-primary-rgb), 0.1) !important;
|
|
267
|
+
background: var(--db-bg-color) !important;
|
|
258
268
|
}
|
|
259
269
|
|
|
260
270
|
// Input & Select Content Styling
|
|
@@ -269,10 +279,10 @@
|
|
|
269
279
|
.mat-mdc-select-value {
|
|
270
280
|
font-size: 0.95rem !important;
|
|
271
281
|
font-weight: 400 !important;
|
|
272
|
-
color: var(--text-
|
|
282
|
+
color: var(--db-text-primary) !important;
|
|
273
283
|
|
|
274
284
|
&::placeholder {
|
|
275
|
-
color: var(--
|
|
285
|
+
color: var(--db-text-secondary) !important;
|
|
276
286
|
opacity: 0.6;
|
|
277
287
|
}
|
|
278
288
|
}
|
|
@@ -331,8 +341,8 @@ input:-webkit-autofill,
|
|
|
331
341
|
input:-webkit-autofill:hover,
|
|
332
342
|
input:-webkit-autofill:focus,
|
|
333
343
|
input:-webkit-autofill:active {
|
|
334
|
-
-webkit-box-shadow: 0 0 0 30px var(--
|
|
335
|
-
-webkit-text-fill-color: var(--text-
|
|
336
|
-
caret-color: var(--text-
|
|
344
|
+
-webkit-box-shadow: 0 0 0 30px var(--db-bg-color) inset !important;
|
|
345
|
+
-webkit-text-fill-color: var(--db-text-primary) !important;
|
|
346
|
+
caret-color: var(--db-text-primary) !important;
|
|
337
347
|
transition: background-color 5000s ease-in-out 0s;
|
|
338
|
-
}
|
|
348
|
+
}
|