@import '_variables';
@import '_mixins';
.content {
scrollbar-color: auto;
}
.notification-inbox-popover {
padding: 10px;
}
.notification-inbox-link a {
padding: 13px 10px;
}
.notification-inbox-popover,
.notification-inbox-link a {
@include apply-svg-color(#808080);
transition: all .1s ease-in-out;
border-radius: 25px;
cursor: pointer;
::ng-deep svg {
transition: color .1s ease-in-out;
}
&:hover,
&:active {
@include apply-svg-color(#fff);
background-color: rgba(255, 255, 255, 0.15);
}
}
.notification-inbox-popover.shown,
.notification-inbox-link a.active {
@include apply-svg-color(#fff);
background-color: rgba(255, 255, 255, 0.28);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .325);
}
.notification-inbox-popover.hidden {
display: none;
}
::ng-deep {
.popover-notifications.popover {
max-width: none;
top: -6px !important;
left: 7px !important;
.arrow {
display: none;
}
.popover-body {
padding: 0;
font-size: 14px;
font-family: $main-fonts;
width: 400px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
.loader {
display: flex;
align-items: center;
justify-content: center;
padding: 5px 0;
}
.content {
max-height: 150px;
transition: max-height 0.15s ease-out;
display: flex;
height: 500px;
flex-direction: column;
&.loaded {
max-height: 500px;
}
> my-user-notifications:nth-child(2) {
overflow-y: auto;
flex-grow: 1;
}
}
.notifications-header {
display: flex;
justify-content: space-between;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
align-items: center;
padding: 0 12px;
font-size: 14px;
font-weight: bold;
color: rgba(0, 0, 0, 0.5);
text-transform: uppercase;
min-height: 40px;
a {
@include disable-default-a-behaviour;
}
button {
@include peertube-button;
padding: 0;
background: transparent;
}
a,
button {
color: rgba(20, 20, 20, 0.5);
&:hover:not(:disabled) {
color: rgba(20, 20, 20, 0.8);
}
}
}
.all-notifications {
display: flex;
align-items: center;
justify-content: center;
font-weight: $font-semibold;
color: $fg-color;
padding: 7px 0;
margin-top: auto;
text-decoration: none;
}
}
}
}
.notification-inbox-popover,
.notification-inbox-link {
cursor: pointer;
position: relative;
.unread-notifications {
@include margin-left(20px);
}
.unread-notifications {
position: absolute;
top: 6px;
left: 0;
@media screen and (max-width: $mobile-view) {
top: -4px;
left: -2px;
}
display: flex;
align-items: center;
justify-content: center;
background-color: pvar(--mainColor);
color: #fff;
font-size: 10px;
font-weight: $font-semibold;
border-radius: 15px;
width: 15px;
height: 15px;
}
}