red-ui/apps/red-ui/src/app/components/notifications/notifications.component.scss
2020-12-08 05:18:50 +02:00

74 lines
1.7 KiB
SCSS

@import '../../../assets/styles/red-variables';
.mt-2 {
margin-top: 2px;
}
::ng-deep .notifications-backdrop + .cdk-overlay-connected-position-bounding-box {
right: 0 !important;
.notifications-menu {
min-width: 400px !important;
padding: 0 8px 16px;
max-height: calc(100vh - 200px);
.all-caps-label {
margin: 16px 0 6px 8px;
}
.mat-menu-item.notification {
padding: 8px 26px 10px 8px;
margin: 2px 0 0 0;
height: fit-content;
position: relative;
line-height: 18px;
align-items: flex-start;
.notification-content {
margin-top: 4px;
margin-left: 8px;
max-width: 320px;
> div {
white-space: normal;
a {
color: $accent;
font-weight: bold;
}
}
}
.dot {
height: 8px;
width: 8px;
border-radius: 50%;
background-color: $grey-4;
position: absolute;
top: 8px;
right: 8px;
}
&:hover {
background-color: $grey-6;
.dot {
background-color: $grey-5;
}
a {
text-decoration: underline;
}
}
&.unread {
background-color: rgba($primary, 0.1);
.dot {
background-color: $primary;
}
}
}
}
}