@aseansc/ui 5.2.1 → 5.2.2

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/tokens/preset.css DELETED
@@ -1,1327 +0,0 @@
1
- @charset "UTF-8";
2
- /*
3
- * @aseansc/ui — Preset CSS
4
- *
5
- * Consumer app import file này 1 lần vào styles.scss bằng CSS @import
6
- * (không dùng Sass @use — xem tools/scripts/build-ui-preset-css.mjs):
7
- * @import "@aseansc/ui/preset.css";
8
- *
9
- * File này cung cấp:
10
- * 1. TailwindCSS v4 base + utilities
11
- * 2. tailwindcss-primeui plugin (Tailwind utilities cho PrimeNG CSS vars)
12
- * 3. PrimeIcons font
13
- * 4. ASC design tokens (CSS custom properties)
14
- * 5. Base resets
15
- *
16
- * Bản build (dist/libs/ui/tokens/preset.css) được tools/scripts/build-ui-preset-css.mjs
17
- * biên dịch lại từ file này và tự thêm 1 khai báo @source trỏ vào bundle fesm2022 ngay sau
18
- * @import "tailwindcss" — nhờ đó Tailwind ở app consumer tự nhận diện được các class
19
- * dùng trong template của @aseansc/ui mà không cần khai báo @source thủ công.
20
- */
21
- /* Font Inter — self-host trong package (tokens/fonts/*.woff2) thay vì load
22
- qua Google Fonts CDN: build production của Angular tự động "inline fonts"
23
- (fetch CSS + font qua HTTPS lúc build) — fail ở môi trường build không có
24
- internet ra ngoài hoặc sau proxy chặn TLS (rất phổ biến trong mạng nội bộ
25
- doanh nghiệp). Self-host loại bỏ hoàn toàn network call lúc build/runtime.
26
- Chỉ bundle 3 subset cần dùng (latin, latin-ext, vietnamese) — bỏ
27
- cyrillic/greek vì app chỉ dùng tiếng Việt/Anh. File là variable font nên
28
- 1 file dùng chung cho mọi font-weight (400/500/600/700). */
29
- @import "primeicons/primeicons.css";
30
- @font-face {
31
- font-family: "Inter";
32
- font-style: normal;
33
- font-weight: 400 700;
34
- font-display: swap;
35
- src: url("./fonts/inter-latin.woff2") format("woff2");
36
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
37
- }
38
- @font-face {
39
- font-family: "Inter";
40
- font-style: normal;
41
- font-weight: 400 700;
42
- font-display: swap;
43
- src: url("./fonts/inter-latin-ext.woff2") format("woff2");
44
- unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
45
- }
46
- @font-face {
47
- font-family: "Inter";
48
- font-style: normal;
49
- font-weight: 400 700;
50
- font-display: swap;
51
- src: url("./fonts/inter-vietnamese.woff2") format("woff2");
52
- unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
53
- }
54
- :root {
55
- --asc-color-primary-lighter: #ffebea;
56
- --asc-color-primary-light: #ffd8d6;
57
- --asc-color-primary-subtle: #ffb1ac;
58
- --asc-color-primary: #f74036;
59
- --asc-color-primary-hover: #e6271b;
60
- --asc-color-primary-active: #b7251d;
61
- --asc-color-primary-text: #ffffff;
62
- --asc-color-success: #10b981;
63
- --asc-color-success-bg: #ecfdf5;
64
- --asc-color-success-border: #dcfce7;
65
- --asc-color-warning: #f59e0b;
66
- --asc-color-warning-bg: #fefce8;
67
- --asc-color-warning-border: #fef9c3;
68
- --asc-color-danger: #ef4444;
69
- --asc-color-danger-bg: #fef2f2;
70
- --asc-color-danger-border: #fee2e2;
71
- --asc-color-info: #3b82f6;
72
- --asc-color-info-bg: #eff6ff;
73
- --asc-color-info-border: #dbeafe;
74
- --asc-surface-ground: #fafafc;
75
- --asc-surface-base: #ffffff;
76
- --asc-surface-overlay: #ffffff;
77
- --asc-surface-hover: #f2f3f5;
78
- --asc-surface-active: #dedfe0;
79
- --asc-surface-0: #ffffff;
80
- --asc-surface-50: #ffffff;
81
- --asc-formfield-bg: #ffffff;
82
- --asc-formfield-focus-border-color: #a7a7a8;
83
- --asc-formfield-disabled-border-color: #f2f3f5;
84
- --asc-input-clear-bg: #dedfe0;
85
- --asc-input-clear-bg-hover: #c0c0c2;
86
- --asc-input-clear-color: #ffffff;
87
- --asc-border-color: #dedfe0;
88
- --asc-border-color-strong: #a7a7a8;
89
- --asc-border-color-focus: #3b82f6;
90
- --asc-border-color-invalid: #ef4444;
91
- --asc-border-color-brand: #f74036;
92
- --asc-text-primary: #0f0f0f;
93
- --asc-text-secondary: #5b5b5c;
94
- --asc-text-muted: #747475;
95
- --asc-text-disabled: #c0c0c2;
96
- --asc-text-inverse: #ffffff;
97
- --asc-text-placeholder: #747475;
98
- --asc-text-link: #2563eb;
99
- --asc-text-link-hover: #1d4ed8;
100
- --asc-text-invalid: #ef4444;
101
- --asc-text-brand: #f74036;
102
- --asc-table-header-color: #A3A3A3;
103
- --asc-table-border-color: #0C0C0D1A;
104
- --asc-icon-primary: #0f0f0f;
105
- --asc-icon-secondary: #8d8e8f;
106
- --asc-icon-disabled: #c0c0c2;
107
- --asc-icon-brand: #f74036;
108
- --asc-icon-link: #2563eb;
109
- --asc-icon-danger: #ef4444;
110
- --asc-icon-success: #10b981;
111
- --asc-icon-info: #3b82f6;
112
- --asc-font-family: 'Inter', -apple-system, BlinkMacSystemFont,
113
- 'Segoe UI', sans-serif;
114
- --asc-font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
115
- --asc-font-size-base: 14px;
116
- --asc-line-height-base: 1.5;
117
- --asc-space-component-xs: 4px;
118
- --asc-space-component-sm: 8px;
119
- --asc-space-component-md: 12px;
120
- --asc-space-component-lg: 16px;
121
- --asc-space-component-xl: 24px;
122
- --asc-radius-sm: 4px;
123
- --asc-radius-md: 6px;
124
- --asc-radius-lg: 8px;
125
- --asc-radius-xl: 12px;
126
- --asc-radius-full: 9999px;
127
- --asc-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
128
- --asc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
129
- --asc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
130
- --asc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
131
- --asc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
132
- --asc-text-xs: 12px;
133
- --asc-text-sm: 14px;
134
- --asc-text-md: 16px;
135
- --asc-text-lg: 18px;
136
- --asc-text-xl: 20px;
137
- --asc-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
138
- --asc-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
139
- --asc-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
140
- --asc-z-dropdown: 1000;
141
- --asc-z-sticky: 1020;
142
- --asc-z-fixed: 1030;
143
- --asc-z-modal-bg: 1040;
144
- --asc-z-modal: 1050;
145
- --asc-z-popover: 1060;
146
- --asc-z-tooltip: 1100;
147
- --asc-z-toast: 1200;
148
- --asc-h-xs: 24px;
149
- --asc-h-sm: 36px;
150
- --asc-h-md: 40px;
151
- --asc-h-lg: 48px;
152
- --asc-h-xl: 56px;
153
- --asc-button-solid-text: #FCFCFC;
154
- --asc-button-outline-border: #525252;
155
- --asc-button-outline-text: #262626;
156
- --asc-button-outline-bg-hover: #f2f3f5;
157
- --asc-button-outline-bg-active: #dedfe0;
158
- --asc-button-disabled-opacity: 0.35;
159
- }
160
-
161
- .app-dark {
162
- --asc-color-primary-lighter: #6e0f0a;
163
- --asc-color-primary-light: #921a13;
164
- --asc-color-primary-subtle: #b7251d;
165
- --asc-color-primary: #f74036;
166
- --asc-color-primary-hover: #ff6259;
167
- --asc-color-primary-active: #ff8983;
168
- --asc-color-success-bg: #022c22;
169
- --asc-color-warning-bg: #422006;
170
- --asc-color-danger-bg: #5c0a05;
171
- --asc-color-info-bg: #172554;
172
- --asc-surface-ground: #0c0c0d;
173
- --asc-surface-base: #282829;
174
- --asc-surface-overlay: #282829;
175
- --asc-surface-hover: #282829;
176
- --asc-surface-active: #424242;
177
- --asc-border-color: #424242;
178
- --asc-border-color-strong: #747475;
179
- --asc-border-color-focus: #60a5fa;
180
- --asc-border-color-brand: #f74036;
181
- --asc-text-primary: #fafafc;
182
- --asc-table-header-color: #fafafc;
183
- --asc-text-secondary: #c0c0c2;
184
- --asc-text-muted: #a7a7a8;
185
- --asc-text-disabled: #5b5b5c;
186
- --asc-text-placeholder: #a7a7a8;
187
- --asc-text-link: #60a5fa;
188
- --asc-text-link-hover: #60a5fa;
189
- --asc-text-brand: #f74036;
190
- --asc-icon-primary: #fafafc;
191
- --asc-icon-secondary: #8d8e8f;
192
- --asc-icon-disabled: #5b5b5c;
193
- --asc-icon-brand: #f74036;
194
- --asc-icon-link: #2563eb;
195
- --asc-icon-danger: #ef4444;
196
- --asc-icon-success: #10b981;
197
- --asc-icon-info: #3b82f6;
198
- --asc-button-outline-border: #8d8e8f;
199
- --asc-button-outline-text: #fafafc;
200
- --asc-button-outline-bg-hover: #282829;
201
- --asc-button-outline-bg-active: #424242;
202
- --asc-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
203
- --asc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
204
- --asc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
205
- --asc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
206
- --asc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
207
- }
208
-
209
- .asc-typo-h1-80-bold {
210
- font-family: var(--asc-font-family);
211
- font-size: 80px;
212
- line-height: 96px;
213
- font-weight: 700;
214
- text-decoration: none;
215
- letter-spacing: 0;
216
- margin: 0;
217
- }
218
-
219
- .asc-typo-h1-80-semibold {
220
- font-family: var(--asc-font-family);
221
- font-size: 80px;
222
- line-height: 96px;
223
- font-weight: 600;
224
- text-decoration: none;
225
- letter-spacing: 0;
226
- margin: 0;
227
- }
228
-
229
- .asc-typo-h2-64-bold {
230
- font-family: var(--asc-font-family);
231
- font-size: 64px;
232
- line-height: 77px;
233
- font-weight: 700;
234
- text-decoration: none;
235
- letter-spacing: 0;
236
- margin: 0;
237
- }
238
-
239
- .asc-typo-h2-64-semibold {
240
- font-family: var(--asc-font-family);
241
- font-size: 64px;
242
- line-height: 77px;
243
- font-weight: 600;
244
- text-decoration: none;
245
- letter-spacing: 0;
246
- margin: 0;
247
- }
248
-
249
- .asc-typo-h3-48-bold {
250
- font-family: var(--asc-font-family);
251
- font-size: 48px;
252
- line-height: 58px;
253
- font-weight: 700;
254
- text-decoration: none;
255
- letter-spacing: 0;
256
- margin: 0;
257
- }
258
-
259
- .asc-typo-h3-48-semibold {
260
- font-family: var(--asc-font-family);
261
- font-size: 48px;
262
- line-height: 58px;
263
- font-weight: 600;
264
- text-decoration: none;
265
- letter-spacing: 0;
266
- margin: 0;
267
- }
268
-
269
- .asc-typo-h4-40-bold {
270
- font-family: var(--asc-font-family);
271
- font-size: 40px;
272
- line-height: 48px;
273
- font-weight: 700;
274
- text-decoration: none;
275
- letter-spacing: 0;
276
- margin: 0;
277
- }
278
-
279
- .asc-typo-h4-40-semibold {
280
- font-family: var(--asc-font-family);
281
- font-size: 40px;
282
- line-height: 48px;
283
- font-weight: 600;
284
- text-decoration: none;
285
- letter-spacing: 0;
286
- margin: 0;
287
- }
288
-
289
- .asc-typo-h5-32-bold {
290
- font-family: var(--asc-font-family);
291
- font-size: 32px;
292
- line-height: 39px;
293
- font-weight: 700;
294
- text-decoration: none;
295
- letter-spacing: 0;
296
- margin: 0;
297
- }
298
-
299
- .asc-typo-h5-32-semibold {
300
- font-family: var(--asc-font-family);
301
- font-size: 32px;
302
- line-height: 39px;
303
- font-weight: 600;
304
- text-decoration: none;
305
- letter-spacing: 0;
306
- margin: 0;
307
- }
308
-
309
- .asc-typo-title-24-regular {
310
- font-family: var(--asc-font-family);
311
- font-size: 24px;
312
- line-height: 36px;
313
- font-weight: 400;
314
- text-decoration: none;
315
- letter-spacing: 0;
316
- margin: 0;
317
- }
318
-
319
- .asc-typo-title-24-medium {
320
- font-family: var(--asc-font-family);
321
- font-size: 24px;
322
- line-height: 36px;
323
- font-weight: 500;
324
- text-decoration: none;
325
- letter-spacing: 0;
326
- margin: 0;
327
- }
328
-
329
- .asc-typo-title-24-semibold {
330
- font-family: var(--asc-font-family);
331
- font-size: 24px;
332
- line-height: 36px;
333
- font-weight: 600;
334
- text-decoration: none;
335
- letter-spacing: 0;
336
- margin: 0;
337
- }
338
-
339
- .asc-typo-title-24-bold {
340
- font-family: var(--asc-font-family);
341
- font-size: 24px;
342
- line-height: 36px;
343
- font-weight: 700;
344
- text-decoration: none;
345
- letter-spacing: 0;
346
- margin: 0;
347
- }
348
-
349
- .asc-typo-title-20-regular {
350
- font-family: var(--asc-font-family);
351
- font-size: 20px;
352
- line-height: 30px;
353
- font-weight: 400;
354
- text-decoration: none;
355
- letter-spacing: 0;
356
- margin: 0;
357
- }
358
-
359
- .asc-typo-title-20-medium {
360
- font-family: var(--asc-font-family);
361
- font-size: 20px;
362
- line-height: 30px;
363
- font-weight: 500;
364
- text-decoration: none;
365
- letter-spacing: 0;
366
- margin: 0;
367
- }
368
-
369
- .asc-typo-title-20-semibold {
370
- font-family: var(--asc-font-family);
371
- font-size: 20px;
372
- line-height: 30px;
373
- font-weight: 600;
374
- text-decoration: none;
375
- letter-spacing: 0;
376
- margin: 0;
377
- }
378
-
379
- .asc-typo-title-20-bold {
380
- font-family: var(--asc-font-family);
381
- font-size: 20px;
382
- line-height: 30px;
383
- font-weight: 700;
384
- text-decoration: none;
385
- letter-spacing: 0;
386
- margin: 0;
387
- }
388
-
389
- .asc-typo-text-18-regular {
390
- font-family: var(--asc-font-family);
391
- font-size: 18px;
392
- line-height: 27px;
393
- font-weight: 400;
394
- text-decoration: none;
395
- letter-spacing: 0;
396
- margin: 0;
397
- }
398
-
399
- .asc-typo-text-18-medium {
400
- font-family: var(--asc-font-family);
401
- font-size: 18px;
402
- line-height: 27px;
403
- font-weight: 500;
404
- text-decoration: none;
405
- letter-spacing: 0;
406
- margin: 0;
407
- }
408
-
409
- .asc-typo-text-18-semibold {
410
- font-family: var(--asc-font-family);
411
- font-size: 18px;
412
- line-height: 27px;
413
- font-weight: 600;
414
- text-decoration: none;
415
- letter-spacing: 0;
416
- margin: 0;
417
- }
418
-
419
- .asc-typo-text-18-bold {
420
- font-family: var(--asc-font-family);
421
- font-size: 18px;
422
- line-height: 27px;
423
- font-weight: 700;
424
- text-decoration: none;
425
- letter-spacing: 0;
426
- margin: 0;
427
- }
428
-
429
- .asc-typo-text-16-regular {
430
- font-family: var(--asc-font-family);
431
- font-size: 16px;
432
- line-height: 24px;
433
- font-weight: 400;
434
- text-decoration: none;
435
- letter-spacing: 0;
436
- margin: 0;
437
- }
438
-
439
- .asc-typo-text-16-medium {
440
- font-family: var(--asc-font-family);
441
- font-size: 16px;
442
- line-height: 24px;
443
- font-weight: 500;
444
- text-decoration: none;
445
- letter-spacing: 0;
446
- margin: 0;
447
- }
448
-
449
- .asc-typo-text-16-semibold {
450
- font-family: var(--asc-font-family);
451
- font-size: 16px;
452
- line-height: 24px;
453
- font-weight: 600;
454
- text-decoration: none;
455
- letter-spacing: 0;
456
- margin: 0;
457
- }
458
-
459
- .asc-typo-text-16-bold {
460
- font-family: var(--asc-font-family);
461
- font-size: 16px;
462
- line-height: 24px;
463
- font-weight: 700;
464
- text-decoration: none;
465
- letter-spacing: 0;
466
- margin: 0;
467
- }
468
-
469
- .asc-typo-text-16-underline {
470
- font-family: var(--asc-font-family);
471
- font-size: 16px;
472
- line-height: 24px;
473
- font-weight: 400;
474
- text-decoration: underline;
475
- letter-spacing: 0;
476
- margin: 0;
477
- }
478
-
479
- .asc-typo-text-16-strikethrough {
480
- font-family: var(--asc-font-family);
481
- font-size: 16px;
482
- line-height: 24px;
483
- font-weight: 400;
484
- text-decoration: line-through;
485
- letter-spacing: 0;
486
- margin: 0;
487
- }
488
-
489
- .asc-typo-text-16-button {
490
- font-family: var(--asc-font-family);
491
- font-size: 16px;
492
- line-height: 24px;
493
- font-weight: 600;
494
- text-decoration: none;
495
- letter-spacing: 0;
496
- margin: 0;
497
- }
498
-
499
- .asc-typo-text-14-regular {
500
- font-family: var(--asc-font-family);
501
- font-size: 14px;
502
- line-height: 20px;
503
- font-weight: 400;
504
- text-decoration: none;
505
- letter-spacing: 0;
506
- margin: 0;
507
- }
508
-
509
- .asc-typo-text-14-medium {
510
- font-family: var(--asc-font-family);
511
- font-size: 14px;
512
- line-height: 20px;
513
- font-weight: 500;
514
- text-decoration: none;
515
- letter-spacing: 0;
516
- margin: 0;
517
- }
518
-
519
- .asc-typo-text-14-semibold {
520
- font-family: var(--asc-font-family);
521
- font-size: 14px;
522
- line-height: 20px;
523
- font-weight: 600;
524
- text-decoration: none;
525
- letter-spacing: 0;
526
- margin: 0;
527
- }
528
-
529
- .asc-typo-text-14-bold {
530
- font-family: var(--asc-font-family);
531
- font-size: 14px;
532
- line-height: 20px;
533
- font-weight: 700;
534
- text-decoration: none;
535
- letter-spacing: 0;
536
- margin: 0;
537
- }
538
-
539
- .asc-typo-text-14-underline {
540
- font-family: var(--asc-font-family);
541
- font-size: 14px;
542
- line-height: 20px;
543
- font-weight: 400;
544
- text-decoration: underline;
545
- letter-spacing: 0;
546
- margin: 0;
547
- }
548
-
549
- .asc-typo-text-14-strikethrough {
550
- font-family: var(--asc-font-family);
551
- font-size: 14px;
552
- line-height: 20px;
553
- font-weight: 400;
554
- text-decoration: line-through;
555
- letter-spacing: 0;
556
- margin: 0;
557
- }
558
-
559
- .asc-typo-text-14-button {
560
- font-family: var(--asc-font-family);
561
- font-size: 14px;
562
- line-height: 24px;
563
- font-weight: 600;
564
- text-decoration: none;
565
- letter-spacing: 0;
566
- margin: 0;
567
- }
568
-
569
- .asc-typo-text-12-regular {
570
- font-family: var(--asc-font-family);
571
- font-size: 12px;
572
- line-height: 18px;
573
- font-weight: 400;
574
- text-decoration: none;
575
- letter-spacing: 0;
576
- margin: 0;
577
- }
578
-
579
- .asc-typo-text-12-medium {
580
- font-family: var(--asc-font-family);
581
- font-size: 12px;
582
- line-height: 18px;
583
- font-weight: 500;
584
- text-decoration: none;
585
- letter-spacing: 0;
586
- margin: 0;
587
- }
588
-
589
- .asc-typo-text-12-semibold {
590
- font-family: var(--asc-font-family);
591
- font-size: 12px;
592
- line-height: 18px;
593
- font-weight: 600;
594
- text-decoration: none;
595
- letter-spacing: 0;
596
- margin: 0;
597
- }
598
-
599
- .asc-typo-text-12-bold {
600
- font-family: var(--asc-font-family);
601
- font-size: 12px;
602
- line-height: 18px;
603
- font-weight: 700;
604
- text-decoration: none;
605
- letter-spacing: 0;
606
- margin: 0;
607
- }
608
-
609
- .asc-typo-text-10-regular {
610
- font-family: var(--asc-font-family);
611
- font-size: 10px;
612
- line-height: 14px;
613
- font-weight: 400;
614
- text-decoration: none;
615
- letter-spacing: 0;
616
- margin: 0;
617
- }
618
-
619
- .asc-typo-text-10-medium {
620
- font-family: var(--asc-font-family);
621
- font-size: 10px;
622
- line-height: 14px;
623
- font-weight: 500;
624
- text-decoration: none;
625
- letter-spacing: 0;
626
- margin: 0;
627
- }
628
-
629
- .asc-typo-text-10-semibold {
630
- font-family: var(--asc-font-family);
631
- font-size: 10px;
632
- line-height: 14px;
633
- font-weight: 600;
634
- text-decoration: none;
635
- letter-spacing: 0;
636
- margin: 0;
637
- }
638
-
639
- .asc-typo-text-10-bold {
640
- font-family: var(--asc-font-family);
641
- font-size: 10px;
642
- line-height: 14px;
643
- font-weight: 700;
644
- text-decoration: none;
645
- letter-spacing: 0;
646
- margin: 0;
647
- }
648
-
649
- :root {
650
- --primary-color: var(--p-primary-color);
651
- --primary-contrast-color: var(--p-primary-contrast-color);
652
- --text-color: #0F0F0F;
653
- --text-color-secondary: var(--p-text-muted-color);
654
- --surface-border: var(--p-content-border-color);
655
- --surface-card: var(--p-content-background);
656
- --surface-hover: var(--p-content-hover-background);
657
- --surface-overlay: var(--p-overlay-popover-background);
658
- --transition-duration: var(--p-transition-duration);
659
- --maskbg: var(--p-mask-background);
660
- --content-border-radius: var(--p-content-border-radius);
661
- --layout-section-transition-duration: 0.2s;
662
- --layout-sidebar-width: 212px;
663
- --layout-sidebar-gap: 1rem;
664
- --layout-sidebar-offset: calc(var(--layout-sidebar-gap) + var(--layout-sidebar-width));
665
- --element-transition-duration: var(--p-transition-duration);
666
- --focus-ring-width: var(--p-focus-ring-width);
667
- --focus-ring-style: var(--p-focus-ring-style);
668
- --focus-ring-color: var(--p-focus-ring-color);
669
- --focus-ring-offset: var(--p-focus-ring-offset);
670
- --focus-ring-shadow: var(--p-focus-ring-shadow);
671
- }
672
-
673
- :root {
674
- --surface-ground: #EAE6E1;
675
- --code-background: var(--p-surface-900);
676
- --code-color: var(--p-surface-200);
677
- }
678
-
679
- :root[class*=app-dark] {
680
- --surface-ground: var(--p-surface-950);
681
- --text-color: var(--p-text-color);
682
- --code-background: var(--p-surface-800);
683
- --code-color: var(--p-surface-100);
684
- }
685
-
686
- .preloader {
687
- position: fixed;
688
- z-index: 999999;
689
- background: #edf1f5;
690
- width: 100%;
691
- height: 100%;
692
- }
693
-
694
- .preloader-content {
695
- border: 0 solid transparent;
696
- border-radius: 50%;
697
- width: 150px;
698
- height: 150px;
699
- position: absolute;
700
- top: calc(50vh - 75px);
701
- left: calc(50vw - 75px);
702
- }
703
-
704
- .preloader-content:before,
705
- .preloader-content:after {
706
- content: "";
707
- border: 1em solid var(--primary-color);
708
- border-radius: 50%;
709
- width: inherit;
710
- height: inherit;
711
- position: absolute;
712
- top: 0;
713
- left: 0;
714
- animation: loader 2s linear infinite;
715
- opacity: 0;
716
- }
717
-
718
- .preloader-content:before {
719
- animation-delay: 0.5s;
720
- }
721
-
722
- @keyframes loader {
723
- 0% {
724
- transform: scale(0);
725
- opacity: 0;
726
- }
727
- 50% {
728
- opacity: 1;
729
- }
730
- 100% {
731
- transform: scale(1);
732
- opacity: 0;
733
- }
734
- }
735
- html {
736
- height: 100%;
737
- font-size: 14px;
738
- }
739
-
740
- body {
741
- font-family: var(--asc-font-family);
742
- color: var(--text-color);
743
- background-color: var(--surface-ground);
744
- margin: 0;
745
- padding: 0;
746
- min-height: 100%;
747
- -webkit-font-smoothing: antialiased;
748
- -moz-osx-font-smoothing: grayscale;
749
- line-height: 1.2;
750
- }
751
-
752
- a {
753
- text-decoration: none;
754
- }
755
-
756
- .layout-wrapper {
757
- min-height: 100vh;
758
- }
759
-
760
- .layout-main-container {
761
- display: flex;
762
- flex-direction: column;
763
- min-height: 100vh;
764
- justify-content: space-between;
765
- padding: 6rem 2rem 0 2rem;
766
- transition: margin-left var(--layout-section-transition-duration);
767
- }
768
-
769
- .layout-main {
770
- flex: 1 1 auto;
771
- padding: 1.5rem 1.5rem 2rem;
772
- background: var(--asc-surface-base);
773
- border-radius: 1.25rem;
774
- }
775
-
776
- img {
777
- max-width: none !important;
778
- }
779
-
780
- .layout-topbar {
781
- position: fixed;
782
- height: 4rem;
783
- z-index: 997;
784
- left: 0;
785
- top: 0;
786
- width: 100%;
787
- padding: 0 2rem;
788
- background-color: color-mix(in srgb, var(--surface-ground) 70%, transparent);
789
- -webkit-backdrop-filter: blur(12px);
790
- backdrop-filter: blur(12px);
791
- transition: left var(--layout-section-transition-duration), width var(--layout-section-transition-duration);
792
- display: flex;
793
- align-items: center;
794
- }
795
-
796
- .layout-topbar .layout-topbar-logo-container {
797
- display: flex;
798
- align-items: center;
799
- }
800
-
801
- .layout-topbar .layout-topbar-logo {
802
- display: inline-flex;
803
- align-items: center;
804
- font-size: 1.5rem;
805
- border-radius: var(--content-border-radius);
806
- color: var(--text-color);
807
- font-weight: 500;
808
- gap: 0.5rem;
809
- }
810
-
811
- .layout-topbar .layout-topbar-logo svg {
812
- width: 3rem;
813
- }
814
-
815
- .layout-topbar .layout-topbar-logo:focus-visible {
816
- outline-width: var(--focus-ring-width);
817
- outline-style: var(--focus-ring-style);
818
- outline-color: var(--focus-ring-color);
819
- outline-offset: var(--focus-ring-offset);
820
- box-shadow: var(--focus-ring-shadow);
821
- transition: box-shadow var(--transition-duration), outline-color var(--transition-duration);
822
- }
823
-
824
- .layout-topbar .layout-topbar-action {
825
- display: inline-flex;
826
- justify-content: center;
827
- align-items: center;
828
- color: var(--text-color-secondary);
829
- border-radius: 50%;
830
- width: 2.5rem;
831
- height: 2.5rem;
832
- color: var(--text-color);
833
- transition: background-color var(--element-transition-duration);
834
- cursor: pointer;
835
- }
836
-
837
- .layout-topbar .layout-topbar-action:hover {
838
- background-color: var(--surface-hover);
839
- }
840
-
841
- .layout-topbar .layout-topbar-action:focus-visible {
842
- outline-width: var(--focus-ring-width);
843
- outline-style: var(--focus-ring-style);
844
- outline-color: var(--focus-ring-color);
845
- outline-offset: var(--focus-ring-offset);
846
- box-shadow: var(--focus-ring-shadow);
847
- transition: box-shadow var(--transition-duration), outline-color var(--transition-duration);
848
- }
849
-
850
- .layout-topbar .layout-topbar-action i {
851
- font-size: 1.25rem;
852
- }
853
-
854
- .layout-topbar .layout-topbar-action span {
855
- font-size: 1rem;
856
- display: none;
857
- }
858
-
859
- .layout-topbar .layout-topbar-action.layout-topbar-action-highlight {
860
- background-color: var(--primary-color);
861
- color: var(--primary-contrast-color);
862
- }
863
-
864
- .layout-topbar .layout-menu-button {
865
- margin-right: 0.5rem;
866
- }
867
-
868
- .layout-topbar .layout-topbar-menu-button {
869
- display: none;
870
- }
871
-
872
- .layout-topbar .layout-topbar-actions {
873
- margin-left: auto;
874
- display: flex;
875
- gap: 1rem;
876
- }
877
-
878
- .layout-topbar .layout-topbar-menu-content {
879
- display: flex;
880
- gap: 1rem;
881
- }
882
-
883
- .layout-topbar .layout-config-menu {
884
- display: flex;
885
- gap: 1rem;
886
- }
887
-
888
- @media (max-width: 991px) {
889
- .layout-topbar {
890
- padding: 0 2rem;
891
- }
892
- .layout-topbar .layout-topbar-logo-container {
893
- width: auto;
894
- }
895
- .layout-topbar .layout-menu-button {
896
- margin-left: 0;
897
- margin-right: 0.5rem;
898
- }
899
- .layout-topbar .layout-topbar-menu-button {
900
- display: inline-flex;
901
- }
902
- .layout-topbar .layout-topbar-menu {
903
- position: absolute;
904
- background-color: var(--surface-overlay);
905
- transform-origin: top;
906
- box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);
907
- border-radius: var(--content-border-radius);
908
- padding: 1rem;
909
- right: 2rem;
910
- top: 4rem;
911
- min-width: 15rem;
912
- border: 1px solid var(--surface-border);
913
- }
914
- .layout-topbar .layout-topbar-menu .layout-topbar-menu-content {
915
- gap: 0.5rem;
916
- }
917
- .layout-topbar .layout-topbar-menu .layout-topbar-action {
918
- display: flex;
919
- width: 100%;
920
- height: auto;
921
- justify-content: flex-start;
922
- border-radius: var(--content-border-radius);
923
- padding: 0.5rem 1rem;
924
- }
925
- .layout-topbar .layout-topbar-menu .layout-topbar-action i {
926
- font-size: 1rem;
927
- margin-right: 0.5rem;
928
- }
929
- .layout-topbar .layout-topbar-menu .layout-topbar-action span {
930
- font-weight: medium;
931
- display: block;
932
- }
933
- .layout-topbar .layout-topbar-menu-content {
934
- flex-direction: column;
935
- }
936
- }
937
- .layout-sidebar {
938
- position: fixed;
939
- width: var(--layout-sidebar-width);
940
- height: calc(100vh - 2 * var(--layout-sidebar-gap));
941
- z-index: 999;
942
- display: flex;
943
- flex-direction: column;
944
- overflow: hidden;
945
- user-select: none;
946
- top: var(--layout-sidebar-gap);
947
- left: var(--layout-sidebar-gap);
948
- transition: transform var(--layout-section-transition-duration), left var(--layout-section-transition-duration);
949
- background-color: var(--asc-surface-base);
950
- border-radius: 20px;
951
- padding: var(--layout-sidebar-padding-y, 16px) var(--layout-sidebar-padding-x, 12px);
952
- }
953
-
954
- .layout-sidebar-logo {
955
- flex-shrink: 0;
956
- display: flex;
957
- align-items: center;
958
- padding: 0 0 var(--layout-sidebar-padding-y, 16px);
959
- }
960
-
961
- .layout-sidebar-content {
962
- flex: 1 1 auto;
963
- min-height: 0;
964
- overflow-y: auto;
965
- padding: 0;
966
- }
967
-
968
- .layout-menu {
969
- margin: 0;
970
- padding: 0;
971
- list-style-type: none;
972
- }
973
-
974
- .layout-menu .layout-root-menuitem > .layout-menuitem-root-text {
975
- font-size: 0.857rem;
976
- text-transform: uppercase;
977
- font-weight: 700;
978
- color: var(--text-color);
979
- margin: 0.75rem 0;
980
- }
981
-
982
- .layout-menu .layout-root-menuitem > a {
983
- display: none;
984
- }
985
-
986
- .layout-menu a {
987
- user-select: none;
988
- }
989
-
990
- .layout-menu a.active-menuitem > .layout-submenu-toggler {
991
- transform: rotate(-180deg);
992
- }
993
-
994
- .layout-menu li.active-menuitem > a .layout-submenu-toggler {
995
- transform: rotate(-180deg);
996
- }
997
-
998
- .layout-menu ul {
999
- margin: 0;
1000
- padding: 0;
1001
- list-style-type: none;
1002
- overflow: hidden;
1003
- border-radius: var(--content-border-radius);
1004
- max-height: 0;
1005
- transition: max-height 400ms cubic-bezier(0.86, 0, 0.07, 1);
1006
- }
1007
-
1008
- .layout-menu ul.layout-submenu-expanded {
1009
- max-height: 1000px;
1010
- }
1011
-
1012
- .layout-menu ul a {
1013
- display: flex;
1014
- align-items: center;
1015
- position: relative;
1016
- outline: 0 none;
1017
- color: var(--text-color);
1018
- cursor: pointer;
1019
- padding: 10px 8px;
1020
- border-radius: var(--content-border-radius);
1021
- transition: background-color var(--element-transition-duration), box-shadow var(--element-transition-duration);
1022
- }
1023
-
1024
- .layout-menu ul a .layout-menuitem-icon {
1025
- margin-right: 0.5rem;
1026
- flex-shrink: 0;
1027
- }
1028
-
1029
- .layout-menu ul a .layout-submenu-toggler {
1030
- font-size: 75%;
1031
- margin-left: auto;
1032
- transition: transform var(--element-transition-duration);
1033
- }
1034
-
1035
- .layout-menu ul a.active-route {
1036
- font-weight: 700;
1037
- color: var(--primary-color);
1038
- }
1039
-
1040
- .layout-menu ul a:hover {
1041
- background-color: var(--surface-hover);
1042
- }
1043
-
1044
- .layout-menu ul a:focus {
1045
- outline-offset: -1px;
1046
- box-shadow: inset var(--focus-ring-shadow);
1047
- }
1048
-
1049
- .layout-menu ul ul li a {
1050
- margin-left: 1rem;
1051
- }
1052
-
1053
- .layout-menu ul ul li li a {
1054
- margin-left: 2rem;
1055
- }
1056
-
1057
- .layout-menu ul ul li li li a {
1058
- margin-left: 2.5rem;
1059
- }
1060
-
1061
- .layout-menu ul ul li li li li a {
1062
- margin-left: 3rem;
1063
- }
1064
-
1065
- .layout-menu ul ul li li li li li a {
1066
- margin-left: 3.5rem;
1067
- }
1068
-
1069
- .layout-menu ul ul li li li li li li a {
1070
- margin-left: 4rem;
1071
- }
1072
-
1073
- .layout-footer {
1074
- display: flex;
1075
- align-items: center;
1076
- justify-content: center;
1077
- padding: 1rem 0 1rem 0;
1078
- gap: 0.5rem;
1079
- border-top: 1px solid var(--surface-border);
1080
- }
1081
-
1082
- @media screen and (min-width: 1960px) {
1083
- .layout-main,
1084
- .landing-wrapper {
1085
- width: 1504px;
1086
- margin-left: auto !important;
1087
- margin-right: auto !important;
1088
- }
1089
- }
1090
- @media (min-width: 992px) {
1091
- .layout-wrapper.layout-overlay .layout-main-container {
1092
- margin-left: 0;
1093
- padding-left: 2rem;
1094
- }
1095
- .layout-wrapper.layout-overlay .layout-sidebar {
1096
- transform: translateX(-100%);
1097
- left: 0;
1098
- top: 0;
1099
- height: 100vh;
1100
- border-top-left-radius: 0;
1101
- border-bottom-left-radius: 0;
1102
- border-right: 1px solid var(--surface-border);
1103
- transition: transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99), left 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
1104
- box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);
1105
- }
1106
- .layout-wrapper.layout-overlay.layout-overlay-active .layout-sidebar {
1107
- transform: translateX(0);
1108
- }
1109
- .layout-wrapper.layout-static .layout-topbar {
1110
- left: var(--layout-sidebar-offset);
1111
- width: calc(100% - var(--layout-sidebar-offset));
1112
- }
1113
- .layout-wrapper.layout-static .layout-main-container {
1114
- margin-left: var(--layout-sidebar-offset);
1115
- }
1116
- .layout-wrapper.layout-static.layout-static-inactive .layout-sidebar {
1117
- transform: translateX(-100%);
1118
- left: 0;
1119
- }
1120
- .layout-wrapper.layout-static.layout-static-inactive .layout-topbar {
1121
- left: 0;
1122
- width: 100%;
1123
- }
1124
- .layout-wrapper.layout-static.layout-static-inactive .layout-main-container {
1125
- margin-left: 0;
1126
- padding-left: 2rem;
1127
- }
1128
- .layout-wrapper .layout-mask {
1129
- display: none;
1130
- }
1131
- }
1132
- @media (max-width: 991px) {
1133
- .blocked-scroll {
1134
- overflow: hidden;
1135
- }
1136
- .layout-wrapper .layout-main-container {
1137
- margin-left: 0;
1138
- padding-left: 2rem;
1139
- }
1140
- .layout-wrapper .layout-sidebar {
1141
- transform: translateX(-100%);
1142
- left: 0;
1143
- top: 0;
1144
- height: 100vh;
1145
- border-top-left-radius: 0;
1146
- border-bottom-left-radius: 0;
1147
- transition: transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99), left 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
1148
- }
1149
- .layout-wrapper .layout-mask {
1150
- display: none;
1151
- position: fixed;
1152
- top: 0;
1153
- left: 0;
1154
- z-index: 998;
1155
- width: 100%;
1156
- height: 100%;
1157
- background-color: var(--maskbg);
1158
- }
1159
- .layout-wrapper.layout-mobile-active .layout-sidebar {
1160
- transform: translateX(0);
1161
- }
1162
- .layout-wrapper.layout-mobile-active .layout-mask {
1163
- display: block;
1164
- }
1165
- }
1166
- /* Utils */
1167
- .clearfix:after {
1168
- content: " ";
1169
- display: block;
1170
- clear: both;
1171
- }
1172
-
1173
- .card {
1174
- background: var(--surface-card);
1175
- padding: 2rem;
1176
- margin-bottom: 2rem;
1177
- border-radius: var(--content-border-radius);
1178
- }
1179
-
1180
- .card:last-child {
1181
- margin-bottom: 0;
1182
- }
1183
-
1184
- .p-toast.p-toast-top-right, .p-toast.p-toast-top-left, .p-toast.p-toast-top-center {
1185
- top: 100px;
1186
- }
1187
-
1188
- h1,
1189
- h2,
1190
- h3,
1191
- h4,
1192
- h5,
1193
- h6 {
1194
- margin: 1.5rem 0 1rem 0;
1195
- font-family: inherit;
1196
- font-weight: 700;
1197
- line-height: 1.5;
1198
- color: var(--text-color);
1199
- }
1200
-
1201
- h1:first-child,
1202
- h2:first-child,
1203
- h3:first-child,
1204
- h4:first-child,
1205
- h5:first-child,
1206
- h6:first-child {
1207
- margin-top: 0;
1208
- }
1209
-
1210
- h1 {
1211
- font-size: 2.5rem;
1212
- }
1213
-
1214
- h2 {
1215
- font-size: 2rem;
1216
- }
1217
-
1218
- h3 {
1219
- font-size: 1.75rem;
1220
- }
1221
-
1222
- h4 {
1223
- font-size: 1.5rem;
1224
- }
1225
-
1226
- h5 {
1227
- font-size: 1.25rem;
1228
- }
1229
-
1230
- h6 {
1231
- font-size: 1rem;
1232
- }
1233
-
1234
- mark {
1235
- background: #fff8e1;
1236
- padding: 0.25rem 0.4rem;
1237
- border-radius: var(--content-border-radius);
1238
- font-family: monospace;
1239
- }
1240
-
1241
- blockquote {
1242
- margin: 1rem 0;
1243
- padding: 0 2rem;
1244
- border-left: 4px solid #90a4ae;
1245
- }
1246
-
1247
- hr {
1248
- border-top: solid var(--surface-border);
1249
- border-width: 1px 0 0 0;
1250
- margin: 1rem 0;
1251
- }
1252
-
1253
- p {
1254
- margin: 0 0 1rem 0;
1255
- line-height: 1.5;
1256
- }
1257
-
1258
- p:last-child {
1259
- margin-bottom: 0;
1260
- }
1261
- /* 1. TailwindCSS v4 */
1262
- @import "tailwindcss";
1263
- @source "../fesm2022/**/*.mjs";
1264
- @custom-variant dark (&:where(.app-dark, .app-dark *));
1265
- @theme {
1266
- --spacing: 1px;
1267
- --radius-xs: 4px;
1268
- --radius-sm: 8px;
1269
- --radius-md: 12px;
1270
- --radius-lg: 16px;
1271
- --radius-xl: 24px;
1272
- --radius-2xl: 32px;
1273
- --radius-3xl: 48px;
1274
- --radius-4xl: 16px;
1275
- --text-xs: 9px;
1276
- --text-sm: 12px;
1277
- --text-md: 14px;
1278
- --text-lg: 16px;
1279
- --text-xl: 18px;
1280
- --text-2xl: 20px;
1281
- --text-3xl: 24px;
1282
- --text-4xl: 28px;
1283
- --text-5xl: 32px;
1284
- --text-6xl: 48px;
1285
- --leading-15: 15px;
1286
- --leading-20: 20px;
1287
- --leading-30: 30px;
1288
- --leading-32: 32px;
1289
- }
1290
-
1291
- /* 2. PrimeUI Tailwind plugin — map --p-* vars thành Tailwind utilities */
1292
- /* Sau khi import, dùng được: bg-primary, text-primary-600, border-surface-200, ... */
1293
- @plugin "tailwindcss-primeui";
1294
-
1295
- /* 3. PrimeIcons */
1296
-
1297
- /* 4. ASC design tokens */
1298
-
1299
- /* 5. Base resets & global styles */
1300
- *,
1301
- *::before,
1302
- *::after {
1303
- box-sizing: border-box;
1304
- }
1305
-
1306
- html {
1307
- font-family: var(--asc-font-family);
1308
- font-size: var(--asc-font-size-base);
1309
- line-height: var(--asc-line-height-base);
1310
- color: var(--asc-text-primary);
1311
- background: var(--asc-surface-ground);
1312
- -webkit-font-smoothing: antialiased;
1313
- -moz-osx-font-smoothing: grayscale;
1314
- text-rendering: optimizeLegibility;
1315
- }
1316
-
1317
- body {
1318
- margin: 0;
1319
- }
1320
-
1321
- /* Highlight text — dùng bởi CmpHighlightPipe */
1322
- mark.asc-highlight {
1323
- background: var(--asc-color-primary-light);
1324
- color: var(--asc-color-primary);
1325
- border-radius: 0.125rem;
1326
- padding: 0 0.125rem;
1327
- }