Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 24 additions & 34 deletions css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,47 @@
padding: 10px;
opacity: .6;

.svg {
width: 20px;
height: 20px;
}

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

.notification__dot {
fill: #ff4402;
&--white {
fill: var(--color-primary-text);
}
}

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

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

&,
img {
* {
cursor: pointer;
}
}

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

.notification-container {
display: none;
right: 13px;
Expand All @@ -43,15 +59,13 @@
.notification-wrapper {
display: flex;
flex-direction: column;
margin-bottom: 66px;
max-height: calc(100vh - 50px * 4 - 44px) !important;
}

.emptycontent {
padding: 50px 0;
margin: 0;

@include icon-black-white('notifications-dark', 'notifications', 1);
@include icon-black-white('notifications', 'notifications', 1);
}

.dismiss-all {
Expand All @@ -60,21 +74,7 @@
color: var(--color-text-maxcontrast);
border-top: 1px solid var(--color-border);
padding: 10px;
width: calc(100% - 10px * 2);
position: absolute;
bottom: 0;
background-color: var(--color-main-background);

&:hover,
.icon-close {
opacity: 1;
cursor: pointer;
}

.icon-close {
opacity: .5;
margin-right: 5px;
}
}

/* Menu arrow */
Expand Down Expand Up @@ -140,16 +140,6 @@
}
}

img.notification-icon {
width: 32px;
height: 32px;
display: flex;

body.theme--dark & {
filter: invert(1);
}
}

strong {
font-weight: bold;
opacity: 1;
Expand Down
5 changes: 1 addition & 4 deletions img/notifications-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion img/notifications-new-dark.svg

This file was deleted.

1 change: 0 additions & 1 deletion img/notifications-new.svg

This file was deleted.

1 change: 0 additions & 1 deletion img/notifications-red-new-dark.svg

This file was deleted.

1 change: 0 additions & 1 deletion img/notifications-red-new.svg

This file was deleted.

Binary file modified img/notifications.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions img/notifications.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions js/notifications-main.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions js/notifications-main.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
* Licensed under the MIT License.
*/

/*! For license information please see EmptyContent.js.LICENSE.txt */

/*! For license information please see Tooltip.js.LICENSE.txt */

/*! For license information please see UserBubble.js.LICENSE.txt */
Expand Down
2 changes: 1 addition & 1 deletion js/notifications-main.js.map

Large diffs are not rendered by default.

Loading