X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmenu%2Favatar-notification.component.scss;h=2ca7f24dca41ecb33ac04e63903ddb6b22be30c7;hb=223b24e618146f85b20b5bf365bc18d14a5964cd;hp=e785db7886ea537fd52c62d9858f19ac84d88cfe;hpb=b718fd22374d64534bcfe69932cf562894abed6a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/menu/avatar-notification.component.scss b/client/src/app/menu/avatar-notification.component.scss index e785db788..2ca7f24dc 100644 --- a/client/src/app/menu/avatar-notification.component.scss +++ b/client/src/app/menu/avatar-notification.component.scss @@ -1,19 +1,42 @@ @import '_variables'; @import '_mixins'; -/deep/ { +::ng-deep { .popover-notifications.popover { max-width: none; + left: 7px !important; .popover-body { padding: 0; font-size: 14px; font-family: $main-fonts; - overflow-y: auto; - max-height: 500px; width: 400px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30); + .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; + } + } + .notifications-header { display: flex; justify-content: space-between; @@ -22,14 +45,23 @@ align-items: center; padding: 0 10px; font-size: 16px; - height: 50px; + min-height: 50px; a { @include disable-default-a-behaviour; + } + + button { + @include peertube-button; + + padding: 0; + background: transparent; + } + a, button { color: rgba(20, 20, 20, 0.5); - &:hover { + &:hover:not(:disabled) { color: rgba(20, 20, 20, 0.8); } } @@ -40,8 +72,10 @@ align-items: center; justify-content: center; font-weight: $font-semibold; - color: var(--mainForegroundColor); + color: $fg-color; padding: 7px 0; + margin-top: auto; + text-decoration: none; } } } @@ -83,9 +117,17 @@ } @media screen and (max-width: $mobile-view) { - /deep/ { - .popover-notifications.popover .popover-body { - width: 400px; + ::ng-deep { + .popover-notifications.popover { + left: unset !important; + + .arrow { + left: calc(2em + 7px); + } + + .popover-body { + width: 100vw; + } } } }