Skip to content

Commit

Permalink
Make header icon opaque
Browse files Browse the repository at this point in the history
This is to align with the other header icons

Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Jun 2, 2022
1 parent 7cda89b commit 0e34736
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
4 changes: 2 additions & 2 deletions js/notifications-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/notifications-main.js.map

Large diffs are not rendered by default.

38 changes: 23 additions & 15 deletions src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
border-radius: 50%;
text-align: center;
padding: 10px;
opacity: .6;
opacity: 1 !important;

svg {
opacity: .6;
}

&:hover,
&:focus {
opacity: 1 !important;
svg {
opacity: 1 !important;
}
}

.notification__dot {
Expand All @@ -22,14 +28,12 @@
}

&.hasNotifications {
opacity: 1 !important;
animation-name: pulse;
animation-duration: 1600ms;
animation-iteration-count: 4;

&:hover,
&:focus {
opacity: .6 !important;
svg {
opacity: 1 !important;
}
}

Expand All @@ -38,15 +42,19 @@
}
}

@keyframes pulse {
0% {
opacity: 1;
}
60% {
opacity: .6;
}
100% {
opacity: 1;
svg {
@keyframes pulse {
0% {
opacity: 1;
}

60% {
opacity: .6;
}

100% {
opacity: 1;
}
}
}

Expand Down

0 comments on commit 0e34736

Please sign in to comment.