Skip to content

Commit 333cc60

Browse files
committed
Add css variable support and use MD icon
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 651854a commit 333cc60

11 files changed

+166
-267
lines changed

css/styles.scss

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,47 @@
99
padding: 10px;
1010
opacity: .6;
1111

12-
.svg {
13-
width: 20px;
14-
height: 20px;
15-
}
16-
1712
&:hover,
1813
&:focus {
1914
opacity: 1 !important;
2015
}
2116

17+
.notification__dot {
18+
fill: #ff4402;
19+
&--white {
20+
fill: var(--color-primary-text);
21+
}
22+
}
23+
2224
&.hasNotifications {
2325
opacity: 1 !important;
26+
animation-name: pulse;
27+
animation-duration: 1600ms;
28+
animation-iteration-count: 4;
2429

2530
&:hover,
2631
&:focus {
2732
opacity: .6 !important;
2833
}
2934
}
3035

31-
&,
32-
img {
36+
* {
3337
cursor: pointer;
3438
}
3539
}
3640

41+
@keyframes pulse {
42+
0% {
43+
opacity: 1;
44+
}
45+
60% {
46+
opacity: .6;
47+
}
48+
100% {
49+
opacity: 1;
50+
}
51+
}
52+
3753
.notification-container {
3854
display: none;
3955
right: 13px;
@@ -51,7 +67,7 @@
5167
padding: 50px 0;
5268
margin: 0;
5369

54-
@include icon-black-white('notifications-dark', 'notifications', 1);
70+
@include icon-black-white('notifications', 'notifications', 1);
5571
}
5672

5773
.dismiss-all {
@@ -157,16 +173,6 @@
157173
}
158174
}
159175

160-
img.notification-icon {
161-
width: 32px;
162-
height: 32px;
163-
display: flex;
164-
165-
body.theme--dark & {
166-
filter: invert(1);
167-
}
168-
}
169-
170176
strong {
171177
font-weight: bold;
172178
opacity: 1;

img/notifications-dark.svg

Lines changed: 1 addition & 4 deletions
Loading

img/notifications-new-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

img/notifications-new.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

img/notifications-red-new-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

img/notifications-red-new.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

img/notifications.png

50 Bytes
Loading

img/notifications.svg

Lines changed: 1 addition & 4 deletions
Loading

0 commit comments

Comments
 (0)