-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathnotifications.css
More file actions
114 lines (89 loc) · 2.09 KB
/
notifications.css
File metadata and controls
114 lines (89 loc) · 2.09 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
@layer components {
/* Notifications list
/* ------------------------------------------------------------------------ */
.notifications-list {
--panel-size: 45ch;
.tray__item {
position: relative;
&[aria-selected] {
outline: 0;
.card {
border-radius: 0.25ch;
outline: var(--focus-ring-size) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
}
}
}
.card {
html[data-theme="dark"] & {
box-shadow: 0 0 0 1px var(--color-ink-lighter);
}
}
.card__header {
column-gap: var(--inline-space-half);
}
&:has(.card--notification) {
.notifications-list__blank-slate {
display: none;
}
}
}
/* Read items
/* ------------------------------------------------------------------------ */
.notifications-list--read {
&:not(:has(.card--notification)) {
display: none;
}
.card {
box-shadow: 0 0 0 1px var(--color-ink-lighter);
}
.card__notification-unread-indicator {
--btn-background: transparent;
--btn-size: 1.8em;
margin: 2px;
.icon {
block-size: 1.7em;
color: var(--color-ink);
inline-size: 1.7em;
opacity: 1;
}
}
}
/* Help
/* ------------------------------------------------------------------------ */
.notifications-help {
h3 {
font-size: var(--text-medium);
margin: 0;
}
.icon {
--icon-size: 1.2em;
vertical-align: text-top;
}
ol {
margin-block: var(--block-space-half) var(--block-space);
&:last-of-type {
margin-block-end: var(--block-space-half);
}
}
}
.notifications-help__explainer {
padding: var(--block-space);
}
.notifications__on-message {
display: none;
.notifications--on & {
display: revert;
}
}
.notifications__off-message {
display: revert;
.notifications--on & {
display: none;
}
}
.notifications__status {
--panel-border-radius: 0.5em;
--panel-padding: var(--block-space);
}
}