-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathbadge-dot.component.scss
More file actions
119 lines (96 loc) · 2.06 KB
/
Copy pathbadge-dot.component.scss
File metadata and controls
119 lines (96 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@use "sass:list";
@use "igniteui-theming/sass/typography" as *;
:host {
--sample-accent: var(--ig-primary-800);
display: grid;
grid-auto-flow: column;
place-content: center;
place-items: center;
column-gap: rem(40px);
min-height: 8.5rem;
}
igx-badge {
--ig-size: var(--ig-size-small);
position: absolute;
inset-block-start: anchor(14.5%);
inset-inline-start: anchor(85.5%);
translate: -50% -50%;
}
igx-avatar.icon-anchor {
--ig-avatar-background: var(--ig-gray-300);
}
$anchors: icon, avatar;
@each $anchor in $anchors {
$i: list.index($anchors, $anchor);
.#{$anchor}-anchor {
anchor-name: --#{$anchor};
}
:host > igx-badge:nth-of-type(#{$i}) {
position-anchor: --#{$anchor};
}
}
.notifications-card,
.nav-card {
background: var(--ig-surface-500);
border-radius: rem(4px);
box-shadow: 0 rem(1px) rem(3px) hsl(from var(--ig-gray-900) h s l / 0.12);
}
.notifications-card {
min-width: rem(270px);
padding-block: rem(8px);
}
.notification-row {
@include type-style("body-2") {
margin: 0;
}
display: flex;
align-items: center;
gap: rem(8px);
padding: rem(8px) rem(12px);
color: var(--ig-gray-900);
}
.row-indicator {
display: inline-flex;
justify-content: center;
width: rem(12px);
}
.row-title {
flex: 1;
}
.unread {
color: var(--ig-gray-900);
font-weight: 600;
}
.row-chevron {
color: var(--ig-gray-600);
font-size: rem(18px);
}
.nav-card {
display: flex;
align-items: center;
gap: rem(8px);
padding: rem(8px) rem(12px);
}
.nav-item {
@include type-style("caption") {
margin: 0;
}
display: flex;
flex-direction: column;
align-items: center;
gap: rem(4px);
min-width: rem(56px);
color: var(--ig-gray-700);
&.active {
color: var(--sample-accent);
}
}
.nav-icon {
position: relative;
display: inline-flex;
igx-badge {
position: absolute;
inset-block: rem(-2px) auto;
inset-inline: auto rem(-6px);
}
}