|
2 | 2 | @use "./settings";
|
3 | 3 | @use '../../tools/classname';
|
4 | 4 | @use '../../tools/design-token';
|
5 |
| -@use '../../tools/themes'; |
6 |
| -@use 'sass:map'; |
| 5 | + |
| 6 | +/* prettier-ignore */ |
| 7 | +$border-radius-property: design-token.get('notification-center', 'border-radius'); |
| 8 | +$shadow-property: design-token.get('notification-center', 'shadow'); |
| 9 | +$border-bottom-property: design-token.get('notification-center-item', 'border-bottom'); |
7 | 10 |
|
8 | 11 | #{classname.get($classname-items: 'notification-center', $layer: 'organism')} {
|
| 12 | + #{$border-radius-property}: settings.$border-radius; |
| 13 | + #{$shadow-property}: settings.$shadow; |
| 14 | + |
9 | 15 | position: fixed;
|
10 | 16 | top: 0;
|
11 | 17 | right: 0;
|
|
14 | 20 | list-style: none;
|
15 | 21 | padding: 0;
|
16 | 22 | z-index: var(design-token.get("z-index", 'top'));
|
17 |
| - border-radius: var(design-token.get("size", "m")); |
| 23 | + border-radius: var($border-radius-property); |
18 | 24 | overflow-x: hidden;
|
19 | 25 | overflow-y: auto;
|
20 | 26 | max-height: 80vh;
|
21 |
| - box-shadow: var(design-token.get("shadow", "brand-1", "center", "box")); |
| 27 | + box-shadow: var(#{$shadow-property}); |
22 | 28 |
|
23 | 29 | > * {
|
24 | 30 | pointer-events: auto;
|
25 | 31 | }
|
26 | 32 | }
|
27 | 33 |
|
28 | 34 | #{classname.get($classname-items: 'notification-center__item', $layer: 'organism')} {
|
29 |
| - border-bottom: 2px solid var(design-token.get("color", "brand-1", "light-2")); |
30 |
| -} |
31 |
| - |
32 |
| -/* prettier-ignore */ |
33 |
| -$highlight-color-property: design-token.get('notification', 'highlight-color'); |
34 |
| -$highlight-background-color-property: design-token.get('notification', 'highlight-background-color'); |
35 |
| - |
36 |
| -#{classname.get($classname-items: 'notification', $layer: 'molecule')} { |
37 |
| - display: flex; |
38 |
| - background-color: var(design-token.get("color", "grayscale", "white")); |
39 |
| - color: var(design-token.get("color", "grayscale", "dark-3")); |
40 |
| -} |
41 |
| - |
42 |
| -#{classname.get($classname-items: 'notification__content', $layer: 'molecule')} { |
43 |
| - flex: 1; |
44 |
| - min-width: 0; |
45 |
| - padding: var(design-token.get("size", "l2")) 0 var(design-token.get("size", "l2")) var(design-token.get("size", "l2")); |
46 |
| -} |
47 |
| - |
48 |
| -#{classname.get($classname-items: 'notification__highlight', $layer: 'molecule')} { |
49 |
| - flex-shrink: 0; |
50 |
| - display: flex; |
51 |
| - align-items: center; |
52 |
| - padding: var(design-token.get("size", "s2")); |
53 |
| - color: var($highlight-color-property, var(design-token.get("color", "brand-1", "dark-1"))); |
54 |
| - background-color: var($highlight-background-color-property, var(design-token.get("color", "brand-1", "light-4"))); |
55 |
| -} |
56 |
| - |
57 |
| -@each $theme-name, $theme in settings.$theme-variants { |
58 |
| - @include themes.get($theme-name) { |
59 |
| - #{$highlight-color-property}: map.get($theme, 'highlight-color'); |
60 |
| - #{$highlight-background-color-property}: map.get($theme, 'highlight-background-color'); |
61 |
| - } |
| 35 | + #{$border-bottom-property}: settings.$item-border-bottom; |
| 36 | + border-bottom: var(#{$border-bottom-property}); |
62 | 37 | }
|
0 commit comments