@vmscloud/moz-ui-components-core 0.1.59 → 0.1.61
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/dist/components/notification/index.d.ts +20 -0
- package/dist/components/notification/notification-card.core.d.ts +80 -0
- package/dist/components/notification/notification-item.core.d.ts +33 -0
- package/dist/components/notification/useNotification.d.ts +44 -0
- package/dist/index.cjs +747 -682
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3182 -2899
- package/dist/index.js.map +1 -1
- package/dist/locale/types.d.ts +6 -0
- package/dist/styles/default/calendar.css +1 -1
- package/dist/styles/default/controller.css +1 -1
- package/dist/styles/default/dateinput.css +6 -6
- package/dist/styles/default/emptystate.css +9 -9
- package/dist/styles/default/index.css +432 -191
- package/dist/styles/default/multiselect.css +37 -37
- package/dist/styles/default/notification.css +311 -0
- package/dist/styles/default/popup.css +1 -1
- package/dist/styles/default/select.css +31 -29
- package/dist/styles/default/splitpane.css +4 -4
- package/dist/styles/default/tableselect.css +34 -34
- package/dist/styles/default/taginput.css +6 -6
- package/dist/styles/default/timepicker.css +22 -22
- package/dist/styles/default/toast.css +1 -1
- package/dist/styles/default/treeselect.css +40 -40
- package/package.json +1 -1
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
font-size: 0.688rem;
|
|
207
207
|
font-weight: 500;
|
|
208
208
|
}
|
|
209
|
-
.list-box {
|
|
209
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) {
|
|
210
210
|
position: fixed;
|
|
211
211
|
background-color: var(--moz-color-surface);
|
|
212
212
|
box-shadow: 0px 3px 4px 0px var(--moz-color-shadow);
|
|
@@ -217,46 +217,46 @@
|
|
|
217
217
|
box-sizing: border-box;
|
|
218
218
|
margin: 0.25rem 0;
|
|
219
219
|
}
|
|
220
|
-
.list-box:not(.show-top) {
|
|
220
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list):not(.show-top) {
|
|
221
221
|
top: 48px;
|
|
222
222
|
}
|
|
223
|
-
.list-box.show-top {
|
|
223
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list).show-top {
|
|
224
224
|
transform: translateY(calc(-100% - 19px));
|
|
225
225
|
}
|
|
226
|
-
.list-box.no-label:not(.show-top) {
|
|
226
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list).no-label:not(.show-top) {
|
|
227
227
|
top: 34px;
|
|
228
228
|
}
|
|
229
|
-
.list-box.no-label.show-top {
|
|
229
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list).no-label.show-top {
|
|
230
230
|
transform: translateY(calc(-100% - 4px));
|
|
231
231
|
}
|
|
232
|
-
.list-box .moz-checkbox:focus {
|
|
232
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .moz-checkbox:focus {
|
|
233
233
|
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
234
234
|
border-color: var(--moz-color-accent);
|
|
235
235
|
border-radius: var(--moz-radius-xs);
|
|
236
236
|
}
|
|
237
|
-
.list-box .search-icon {
|
|
237
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .search-icon {
|
|
238
238
|
display: flex;
|
|
239
239
|
justify-content: center;
|
|
240
240
|
align-items: center;
|
|
241
241
|
margin-right: 10px;
|
|
242
242
|
}
|
|
243
|
-
.list-box .list-box-container {
|
|
243
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-container {
|
|
244
244
|
max-height: 250px;
|
|
245
245
|
overflow-y: auto;
|
|
246
246
|
padding: 0.375rem 0;
|
|
247
247
|
}
|
|
248
|
-
.list-box:has(.multi-select-all) .multi-select-all {
|
|
248
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list):has(.multi-select-all) .multi-select-all {
|
|
249
249
|
justify-content: space-between;
|
|
250
250
|
margin-top: 0.375rem;
|
|
251
251
|
}
|
|
252
|
-
.list-box:has(.multi-select-all) .multi-select-all.is-scrolled {
|
|
252
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list):has(.multi-select-all) .multi-select-all.is-scrolled {
|
|
253
253
|
box-shadow: 0px 3px 4px 0px var(--moz-color-shadow);
|
|
254
254
|
}
|
|
255
|
-
.list-box:has(.multi-select-all) .list-box-container {
|
|
255
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list):has(.multi-select-all) .list-box-container {
|
|
256
256
|
max-height: 188px;
|
|
257
257
|
padding-top: 0;
|
|
258
258
|
}
|
|
259
|
-
.list-box .filter-input {
|
|
259
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .filter-input {
|
|
260
260
|
border-bottom: 1px solid var(--moz-color-border);
|
|
261
261
|
position: relative;
|
|
262
262
|
height: 29px;
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
border-radius: var(--moz-radius-control) var(--moz-radius-control) 0 0;
|
|
266
266
|
overflow: hidden;
|
|
267
267
|
}
|
|
268
|
-
.list-box .filter-input input {
|
|
268
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .filter-input input {
|
|
269
269
|
width: 100%;
|
|
270
270
|
background-color: transparent;
|
|
271
271
|
color: var(--moz-color-text);
|
|
@@ -274,10 +274,10 @@
|
|
|
274
274
|
border: none;
|
|
275
275
|
outline: none;
|
|
276
276
|
}
|
|
277
|
-
.list-box .filter-input input::placeholder {
|
|
277
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .filter-input input::placeholder {
|
|
278
278
|
color: var(--moz-color-text-subtle);
|
|
279
279
|
}
|
|
280
|
-
.list-box .list-box-item {
|
|
280
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item {
|
|
281
281
|
font-size: 0.813rem;
|
|
282
282
|
min-height: 24px;
|
|
283
283
|
line-height: 24px;
|
|
@@ -290,16 +290,16 @@
|
|
|
290
290
|
color: var(--moz-color-text);
|
|
291
291
|
gap: 0.375rem;
|
|
292
292
|
}
|
|
293
|
-
.list-box .list-box-item.loading.not-hover {
|
|
293
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item.loading.not-hover {
|
|
294
294
|
cursor: default;
|
|
295
295
|
color: var(--moz-color-text-subtle);
|
|
296
296
|
}
|
|
297
|
-
.list-box .list-box-item span {
|
|
297
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item span {
|
|
298
298
|
text-overflow: ellipsis;
|
|
299
299
|
overflow: hidden;
|
|
300
300
|
white-space: nowrap;
|
|
301
301
|
}
|
|
302
|
-
.list-box .list-box-item .item-only {
|
|
302
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item .item-only {
|
|
303
303
|
font-size: 0.688rem;
|
|
304
304
|
color: var(--moz-color-text-secondary);
|
|
305
305
|
cursor: pointer;
|
|
@@ -311,48 +311,48 @@
|
|
|
311
311
|
background: transparent;
|
|
312
312
|
border: none;
|
|
313
313
|
}
|
|
314
|
-
.list-box .list-box-item .item-only:focus {
|
|
314
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item .item-only:focus {
|
|
315
315
|
outline: 1px solid var(--moz-color-accent);
|
|
316
316
|
outline-offset: 1px;
|
|
317
317
|
border-radius: var(--moz-radius-xs);
|
|
318
318
|
}
|
|
319
|
-
.list-box .list-box-item:hover:not(.not-hover), .list-box .list-box-item:focus-within:not(.not-hover) {
|
|
319
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item:hover:not(.not-hover), .list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item:focus-within:not(.not-hover) {
|
|
320
320
|
background-color: var(--moz-color-accent-ghost);
|
|
321
321
|
}
|
|
322
|
-
.list-box .list-box-item:hover:not(.not-hover) .item-only, .list-box .list-box-item:focus-within:not(.not-hover) .item-only {
|
|
322
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item:hover:not(.not-hover) .item-only, .list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item:focus-within:not(.not-hover) .item-only {
|
|
323
323
|
display: block;
|
|
324
324
|
}
|
|
325
|
-
.list-box .list-box-item.moz-multi-focus {
|
|
325
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item.moz-multi-focus {
|
|
326
326
|
background-color: var(--moz-color-accent-ghost);
|
|
327
327
|
}
|
|
328
|
-
.list-box .list-box-item.multi-select-item {
|
|
328
|
+
.list-box:where(.moz-multi-select-list, .moz-tree-select-list) .list-box-item.multi-select-item {
|
|
329
329
|
justify-content: flex-start;
|
|
330
330
|
user-select: none;
|
|
331
331
|
}
|
|
332
|
-
.highlight-container {
|
|
332
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) .highlight-container {
|
|
333
333
|
display: inline-block;
|
|
334
334
|
text-overflow: ellipsis;
|
|
335
335
|
overflow: hidden;
|
|
336
336
|
white-space: nowrap;
|
|
337
337
|
flex-grow: 1;
|
|
338
338
|
}
|
|
339
|
-
.highlight-container span {
|
|
339
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) .highlight-container span {
|
|
340
340
|
text-overflow: initial;
|
|
341
341
|
overflow: initial;
|
|
342
342
|
white-space: inherit;
|
|
343
343
|
}
|
|
344
|
-
.highlight-container .highlight {
|
|
344
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) .highlight-container .highlight {
|
|
345
345
|
color: var(--moz-color-accent);
|
|
346
346
|
font-weight: bold;
|
|
347
347
|
}
|
|
348
|
-
.inner-container {
|
|
348
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) .inner-container {
|
|
349
349
|
position: relative;
|
|
350
350
|
}
|
|
351
|
-
.virtual-row {
|
|
351
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) .virtual-row {
|
|
352
352
|
position: absolute;
|
|
353
353
|
width: 100%;
|
|
354
354
|
}
|
|
355
|
-
input[type=checkbox].moz-checkbox {
|
|
355
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox {
|
|
356
356
|
position: relative;
|
|
357
357
|
opacity: 1;
|
|
358
358
|
cursor: pointer;
|
|
@@ -369,21 +369,21 @@
|
|
|
369
369
|
min-height: 12px;
|
|
370
370
|
margin: 0;
|
|
371
371
|
}
|
|
372
|
-
input[type=checkbox].moz-checkbox:hover:not(:disabled) {
|
|
372
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox:hover:not(:disabled) {
|
|
373
373
|
border-color: var(--moz-color-accent-strong);
|
|
374
374
|
}
|
|
375
|
-
input[type=checkbox].moz-checkbox:focus-visible {
|
|
375
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox:focus-visible {
|
|
376
376
|
outline: none;
|
|
377
377
|
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
378
378
|
}
|
|
379
|
-
input[type=checkbox].moz-checkbox:checked, input[type=checkbox].moz-checkbox.is-indeterminate {
|
|
379
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox:checked, :where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox.is-indeterminate {
|
|
380
380
|
background-color: var(--moz-color-accent);
|
|
381
381
|
border-color: var(--moz-color-accent);
|
|
382
382
|
}
|
|
383
|
-
input[type=checkbox].moz-checkbox:checked:hover:not(:disabled), input[type=checkbox].moz-checkbox.is-indeterminate:hover:not(:disabled) {
|
|
383
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox:checked:hover:not(:disabled), :where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox.is-indeterminate:hover:not(:disabled) {
|
|
384
384
|
background-color: var(--moz-color-accent-strong);
|
|
385
385
|
}
|
|
386
|
-
input[type=checkbox].moz-checkbox:checked::after, input[type=checkbox].moz-checkbox.is-indeterminate::after {
|
|
386
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox:checked::after, :where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox.is-indeterminate::after {
|
|
387
387
|
content: "";
|
|
388
388
|
position: absolute;
|
|
389
389
|
inset: -1px;
|
|
@@ -391,16 +391,16 @@
|
|
|
391
391
|
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.276 6.142 4.667 8.294 9.723 3.469' fill='none' stroke='currentColor' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
392
392
|
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.276 6.142 4.667 8.294 9.723 3.469' fill='none' stroke='currentColor' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
393
393
|
}
|
|
394
|
-
input[type=checkbox].moz-checkbox.is-indeterminate::after {
|
|
394
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox.is-indeterminate::after {
|
|
395
395
|
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6H9' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
396
396
|
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6H9' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
397
397
|
}
|
|
398
|
-
input[type=checkbox].moz-checkbox:disabled {
|
|
398
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox:disabled {
|
|
399
399
|
cursor: not-allowed;
|
|
400
400
|
background-color: var(--moz-color-disabled);
|
|
401
401
|
border-color: var(--moz-color-text-muted);
|
|
402
402
|
}
|
|
403
|
-
input[type=checkbox].moz-checkbox:checked:disabled, input[type=checkbox].moz-checkbox.is-indeterminate:disabled {
|
|
403
|
+
:where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox:checked:disabled, :where(.moz-multi-select-list, .moz-tree-select-list) input[type=checkbox].moz-checkbox.is-indeterminate:disabled {
|
|
404
404
|
background-color: var(--moz-color-text-muted);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* moz color tokens — override in :root */
|
|
3
|
+
@layer moz {
|
|
4
|
+
:root {
|
|
5
|
+
/* ── 기본 팔레트 ── */
|
|
6
|
+
--moz-color-accent: #4568e0;
|
|
7
|
+
--moz-color-accent-strong: #3e5dc9;
|
|
8
|
+
--moz-color-accent-subtle: #e2e7fa;
|
|
9
|
+
--moz-color-danger: #dc5a5a;
|
|
10
|
+
--moz-color-warning: #fa9e23;
|
|
11
|
+
--moz-color-success: #357e63;
|
|
12
|
+
--moz-color-info: #2f86d6;
|
|
13
|
+
--moz-color-surface: #ffffff;
|
|
14
|
+
--moz-color-on-accent: #ffffff;
|
|
15
|
+
--moz-color-on-status: #ffffff;
|
|
16
|
+
--moz-color-on-warning: var(--moz-color-text);
|
|
17
|
+
--moz-color-surface-subtle: #f4f4f9;
|
|
18
|
+
--moz-color-surface-muted: #f8f8fd;
|
|
19
|
+
--moz-color-border: #bac6d4;
|
|
20
|
+
--moz-color-border-subtle: #e1e3f0;
|
|
21
|
+
--moz-color-text: #28364e;
|
|
22
|
+
--moz-color-text-secondary: #6a7184;
|
|
23
|
+
--moz-color-text-subtle: #96a5be;
|
|
24
|
+
--moz-color-text-muted: #a7b1bc;
|
|
25
|
+
--moz-color-disabled: #e0e1ec;
|
|
26
|
+
/* 반전 표면 — 툴팁처럼 본문과 배경/전경이 뒤집힌 떠 있는 조각 */
|
|
27
|
+
--moz-color-inverse-surface: var(--moz-color-text);
|
|
28
|
+
--moz-color-inverse-text: var(--moz-color-surface);
|
|
29
|
+
/* ── 파생(알파) — 위 solid 토큰을 따라간다 ── */
|
|
30
|
+
--moz-color-accent-ring: color-mix(in srgb, var(--moz-color-accent) 20%, transparent);
|
|
31
|
+
--moz-color-accent-ring-strong: color-mix(in srgb, var(--moz-color-accent) 30%, transparent);
|
|
32
|
+
--moz-color-accent-soft: color-mix(in srgb, var(--moz-color-accent) 16%, transparent);
|
|
33
|
+
--moz-color-accent-ghost: color-mix(in srgb, var(--moz-color-accent) 9%, transparent);
|
|
34
|
+
--moz-color-danger-ring: color-mix(in srgb, var(--moz-color-danger) 20%, transparent);
|
|
35
|
+
--moz-color-danger-ghost: color-mix(in srgb, var(--moz-color-danger) 13%, transparent);
|
|
36
|
+
--moz-color-muted-soft: color-mix(in srgb, var(--moz-color-text-subtle) 16%, transparent);
|
|
37
|
+
--moz-color-info-soft: color-mix(in srgb, var(--moz-color-info) 16%, transparent);
|
|
38
|
+
--moz-color-success-soft: color-mix(in srgb, var(--moz-color-success) 16%, transparent);
|
|
39
|
+
--moz-color-warning-soft: color-mix(in srgb, var(--moz-color-warning) 16%, transparent);
|
|
40
|
+
--moz-color-danger-soft: color-mix(in srgb, var(--moz-color-danger) 16%, transparent);
|
|
41
|
+
--moz-color-accent-edge: color-mix(in srgb, var(--moz-color-accent) 32%, transparent);
|
|
42
|
+
--moz-color-info-edge: color-mix(in srgb, var(--moz-color-info) 32%, transparent);
|
|
43
|
+
--moz-color-success-edge: color-mix(in srgb, var(--moz-color-success) 32%, transparent);
|
|
44
|
+
--moz-color-warning-edge: color-mix(in srgb, var(--moz-color-warning) 32%, transparent);
|
|
45
|
+
--moz-color-danger-edge: color-mix(in srgb, var(--moz-color-danger) 32%, transparent);
|
|
46
|
+
/* ── 그림자·스크림 ── */
|
|
47
|
+
--moz-color-shadow: rgb(57 55 122 / 0.1);
|
|
48
|
+
--moz-color-shadow-weak: rgb(0 0 0 / 0.05);
|
|
49
|
+
--moz-color-scrim: rgb(0 0 0 / 0.3);
|
|
50
|
+
--moz-color-scrim-strong: rgb(66 72 83 / 0.5);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/* moz radius tokens — override in :root */
|
|
54
|
+
@layer moz {
|
|
55
|
+
:root {
|
|
56
|
+
/* 소형 마커 — 체크박스, 칩 내부 요소 */
|
|
57
|
+
--moz-radius-xs: 2px;
|
|
58
|
+
/* 컨트롤 박스 — 버튼·입력·셀렉트·탭·브레드크럼 (가장 많이 쓰이는 값) */
|
|
59
|
+
--moz-radius-control: 4px;
|
|
60
|
+
/* 보조 표면 — 캘린더 컨테이너, 슬라이더 트랙, 세그먼트 그룹 */
|
|
61
|
+
--moz-radius-surface: 6px;
|
|
62
|
+
/* 떠 있는 패널 — 팝업·대화상자 */
|
|
63
|
+
--moz-radius-panel: 10px;
|
|
64
|
+
/* 칩 — 태그 아이템처럼 컨트롤보다 작은 조각 (panel 과 기본값은 같지만 역할이 다르다:
|
|
65
|
+
소비자가 panel 을 카드값으로 올려도 태그까지 알약이 되지 않도록 분리해 둔다) */
|
|
66
|
+
--moz-radius-chip: 10px;
|
|
67
|
+
/* 알약 — 토글, 토스트, 라디오 도트, 슬라이더 핸들 */
|
|
68
|
+
--moz-radius-pill: 999px;
|
|
69
|
+
/* 원 — 아바타 */
|
|
70
|
+
--moz-radius-circle: 50%;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Notification 스타일 — 떠 있는 알림 카드·스택 컨테이너·알림 목록 항목 (ITSM-2026-003295).
|
|
75
|
+
*
|
|
76
|
+
* 디자인 참고: APS `Notification.vue`(유형별 좌측 바, 아이콘 + 제목 줄, 들여 쓴 본문)와
|
|
77
|
+
* `NotificationPanel.vue`(제목 + 안 읽음 점, 본문, 시각). 값은 MOZ 토큰으로 옮겼다 — 카드 곡률은
|
|
78
|
+
* `--moz-radius-panel`(소비자가 16px 로 매핑), 색은 전부 `--moz-color-*` 라 다크모드는 소비자 테마를 따른다.
|
|
79
|
+
*
|
|
80
|
+
* 마크업
|
|
81
|
+
* - 스택: `div.moz-notification-stack.moz-notification-stack--<position>[data-position]`
|
|
82
|
+
* - 카드: `div.moz-notification-card[data-tone](.is-selectable)` + `.moz-notification-card-icon` +
|
|
83
|
+
* `.moz-notification-card-main`(`.moz-notification-card-content` → heading·description·time,
|
|
84
|
+
* `.moz-notification-card-actions`) + `.moz-notification-card-close`
|
|
85
|
+
* - 목록 항목: `(button|div).moz-notification-item[data-unread]` + header(heading·unread·meta) +
|
|
86
|
+
* description + time
|
|
87
|
+
*/
|
|
88
|
+
@layer moz {
|
|
89
|
+
.moz-notification-stack {
|
|
90
|
+
position: fixed;
|
|
91
|
+
inset: 0;
|
|
92
|
+
display: flex;
|
|
93
|
+
gap: 8px;
|
|
94
|
+
padding: 20px;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
z-index: var(--moz-notification-z, 2000);
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
}
|
|
99
|
+
.moz-notification-stack > .moz-overlay-portal {
|
|
100
|
+
display: contents;
|
|
101
|
+
}
|
|
102
|
+
.moz-notification-stack--top, .moz-notification-stack--top-right, .moz-notification-stack--top-left {
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
105
|
+
.moz-notification-stack--bottom, .moz-notification-stack--bottom-right, .moz-notification-stack--bottom-left {
|
|
106
|
+
flex-direction: column-reverse;
|
|
107
|
+
}
|
|
108
|
+
.moz-notification-stack--top, .moz-notification-stack--bottom {
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
.moz-notification-stack--top-right, .moz-notification-stack--bottom-right {
|
|
112
|
+
align-items: flex-end;
|
|
113
|
+
}
|
|
114
|
+
.moz-notification-stack--top-left, .moz-notification-stack--bottom-left {
|
|
115
|
+
align-items: flex-start;
|
|
116
|
+
}
|
|
117
|
+
.moz-notification-card {
|
|
118
|
+
position: relative;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: flex-start;
|
|
121
|
+
gap: 10px;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
width: 360px;
|
|
124
|
+
max-width: 100%;
|
|
125
|
+
padding: 12px 12px 12px 15px;
|
|
126
|
+
border: 1px solid var(--moz-color-border-subtle);
|
|
127
|
+
border-radius: var(--moz-radius-panel);
|
|
128
|
+
background-color: var(--moz-color-surface);
|
|
129
|
+
box-shadow: inset 3px 0 0 var(--_notification-solid), 0 8px 24px var(--moz-color-shadow);
|
|
130
|
+
color: var(--moz-color-text);
|
|
131
|
+
pointer-events: auto;
|
|
132
|
+
--_notification-solid: var(--moz-color-info);
|
|
133
|
+
}
|
|
134
|
+
.moz-notification-card[data-tone=success] {
|
|
135
|
+
--_notification-solid: var(--moz-color-success);
|
|
136
|
+
}
|
|
137
|
+
.moz-notification-card[data-tone=warning] {
|
|
138
|
+
--_notification-solid: var(--moz-color-warning);
|
|
139
|
+
}
|
|
140
|
+
.moz-notification-card[data-tone=danger] {
|
|
141
|
+
--_notification-solid: var(--moz-color-danger);
|
|
142
|
+
}
|
|
143
|
+
.moz-notification-card[data-tone=neutral] {
|
|
144
|
+
--_notification-solid: var(--moz-color-text-secondary);
|
|
145
|
+
}
|
|
146
|
+
.moz-notification-card-icon {
|
|
147
|
+
display: inline-flex;
|
|
148
|
+
flex-shrink: 0;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
min-width: 20px;
|
|
152
|
+
min-height: 20px;
|
|
153
|
+
color: var(--_notification-solid);
|
|
154
|
+
}
|
|
155
|
+
.moz-notification-card-icon > svg {
|
|
156
|
+
width: 20px;
|
|
157
|
+
height: 20px;
|
|
158
|
+
}
|
|
159
|
+
.moz-notification-card-main {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex: 1;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 8px;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
}
|
|
166
|
+
.moz-notification-card-content {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
gap: 2px;
|
|
170
|
+
min-width: 0;
|
|
171
|
+
border-radius: var(--moz-radius-control);
|
|
172
|
+
}
|
|
173
|
+
.moz-notification-card.is-selectable .moz-notification-card-content {
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
}
|
|
176
|
+
.moz-notification-card-content[role=button]:focus-visible {
|
|
177
|
+
outline: none;
|
|
178
|
+
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
179
|
+
}
|
|
180
|
+
.moz-notification-card-heading {
|
|
181
|
+
color: var(--moz-color-text);
|
|
182
|
+
font-size: 14px;
|
|
183
|
+
font-weight: 600;
|
|
184
|
+
line-height: 1.4;
|
|
185
|
+
overflow-wrap: anywhere;
|
|
186
|
+
}
|
|
187
|
+
.moz-notification-card-description {
|
|
188
|
+
color: var(--moz-color-text-secondary);
|
|
189
|
+
font-size: 13px;
|
|
190
|
+
line-height: 1.5;
|
|
191
|
+
overflow-wrap: anywhere;
|
|
192
|
+
}
|
|
193
|
+
.moz-notification-card-time {
|
|
194
|
+
margin-top: 2px;
|
|
195
|
+
color: var(--moz-color-text-subtle);
|
|
196
|
+
font-size: 12px;
|
|
197
|
+
line-height: 1.4;
|
|
198
|
+
}
|
|
199
|
+
.moz-notification-card-actions {
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-wrap: wrap;
|
|
202
|
+
gap: 8px;
|
|
203
|
+
}
|
|
204
|
+
.moz-notification-card-close {
|
|
205
|
+
display: inline-flex;
|
|
206
|
+
flex-shrink: 0;
|
|
207
|
+
align-items: center;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
width: 24px;
|
|
210
|
+
height: 24px;
|
|
211
|
+
padding: 0;
|
|
212
|
+
margin: -2px -2px 0 0;
|
|
213
|
+
border: 0;
|
|
214
|
+
border-radius: var(--moz-radius-control);
|
|
215
|
+
background: transparent;
|
|
216
|
+
color: var(--moz-color-text-subtle);
|
|
217
|
+
cursor: pointer;
|
|
218
|
+
}
|
|
219
|
+
.moz-notification-card-close:hover {
|
|
220
|
+
background-color: var(--moz-color-surface-muted);
|
|
221
|
+
color: var(--moz-color-text-secondary);
|
|
222
|
+
}
|
|
223
|
+
.moz-notification-card-close:focus-visible {
|
|
224
|
+
outline: none;
|
|
225
|
+
box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
|
|
226
|
+
}
|
|
227
|
+
.moz-notification-item {
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
gap: 4px;
|
|
231
|
+
box-sizing: border-box;
|
|
232
|
+
width: 100%;
|
|
233
|
+
margin: 0;
|
|
234
|
+
padding: 12px 16px;
|
|
235
|
+
border: 0;
|
|
236
|
+
border-radius: 0;
|
|
237
|
+
background: transparent;
|
|
238
|
+
color: var(--moz-color-text);
|
|
239
|
+
font: inherit;
|
|
240
|
+
text-align: left;
|
|
241
|
+
}
|
|
242
|
+
button.moz-notification-item {
|
|
243
|
+
cursor: pointer;
|
|
244
|
+
}
|
|
245
|
+
button.moz-notification-item:hover {
|
|
246
|
+
background-color: var(--moz-color-surface-muted);
|
|
247
|
+
}
|
|
248
|
+
button.moz-notification-item:focus-visible {
|
|
249
|
+
outline: none;
|
|
250
|
+
box-shadow: inset 0 0 0 2px var(--moz-color-accent-ring);
|
|
251
|
+
}
|
|
252
|
+
.moz-notification-item-header {
|
|
253
|
+
display: flex;
|
|
254
|
+
align-items: center;
|
|
255
|
+
gap: 6px;
|
|
256
|
+
min-width: 0;
|
|
257
|
+
}
|
|
258
|
+
.moz-notification-item-heading {
|
|
259
|
+
min-width: 0;
|
|
260
|
+
color: var(--moz-color-text-secondary);
|
|
261
|
+
font-size: 13px;
|
|
262
|
+
font-weight: 500;
|
|
263
|
+
line-height: 1.4;
|
|
264
|
+
overflow-wrap: anywhere;
|
|
265
|
+
}
|
|
266
|
+
.moz-notification-item.is-unread .moz-notification-item-heading {
|
|
267
|
+
color: var(--moz-color-text);
|
|
268
|
+
font-weight: 600;
|
|
269
|
+
}
|
|
270
|
+
.moz-notification-item-unread {
|
|
271
|
+
display: inline-flex;
|
|
272
|
+
flex-shrink: 0;
|
|
273
|
+
}
|
|
274
|
+
.moz-notification-item-dot {
|
|
275
|
+
width: 6px;
|
|
276
|
+
height: 6px;
|
|
277
|
+
border-radius: var(--moz-radius-circle);
|
|
278
|
+
background-color: var(--moz-color-danger);
|
|
279
|
+
}
|
|
280
|
+
.moz-notification-item-sr {
|
|
281
|
+
position: absolute;
|
|
282
|
+
width: 1px;
|
|
283
|
+
height: 1px;
|
|
284
|
+
padding: 0;
|
|
285
|
+
margin: -1px;
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
clip: rect(0, 0, 0, 0);
|
|
288
|
+
white-space: nowrap;
|
|
289
|
+
border: 0;
|
|
290
|
+
}
|
|
291
|
+
.moz-notification-item-meta {
|
|
292
|
+
display: inline-flex;
|
|
293
|
+
flex-shrink: 0;
|
|
294
|
+
align-items: center;
|
|
295
|
+
gap: 4px;
|
|
296
|
+
margin-left: auto;
|
|
297
|
+
color: var(--moz-color-text-subtle);
|
|
298
|
+
font-size: 12px;
|
|
299
|
+
}
|
|
300
|
+
.moz-notification-item-description {
|
|
301
|
+
color: var(--moz-color-text-secondary);
|
|
302
|
+
font-size: 13px;
|
|
303
|
+
line-height: 1.5;
|
|
304
|
+
overflow-wrap: anywhere;
|
|
305
|
+
}
|
|
306
|
+
.moz-notification-item-time {
|
|
307
|
+
color: var(--moz-color-text-subtle);
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
line-height: 1.4;
|
|
310
|
+
}
|
|
311
|
+
}
|