X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmenu%2Favatar-notification.component.scss;h=ebb2a54248486b3d0b0fcc0aa074e8bcbcad5167;hb=4c1def5fd8e9f483238eb38e221f555e2e6bbf07;hp=47d04ace33a0c9b6c8568fc3085eddb63ab36d5f;hpb=f242c2e01e3423ad63a9a6d904062256d60b6971;p=oweals%2Fpeertube.git diff --git a/client/src/app/menu/avatar-notification.component.scss b/client/src/app/menu/avatar-notification.component.scss index 47d04ace3..ebb2a5424 100644 --- a/client/src/app/menu/avatar-notification.component.scss +++ b/client/src/app/menu/avatar-notification.component.scss @@ -1,19 +1,43 @@ @import '_variables'; @import '_mixins'; -/deep/ { +::ng-deep { .popover-notifications.popover { - max-width: 400px; + max-width: none; + left: 7px !important; .popover-body { padding: 0; font-size: 14px; font-family: $main-fonts; - overflow-y: auto; - max-height: 500px; - min-width: 200px; + 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; + flex-grow: 1; + } + } + .notifications-header { display: flex; justify-content: space-between; @@ -22,14 +46,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 +73,10 @@ align-items: center; justify-content: center; font-weight: $font-semibold; - color: var(--mainForegroundColor); - height: 30px; + color: $fg-color; + padding: 7px 0; + margin-top: auto; + text-decoration: none; } } } @@ -72,7 +107,7 @@ justify-content: center; background-color: var(--mainColor); - color: var(--mainBackgroundColor); + color: var(#fff); font-size: 10px; font-weight: $font-semibold; @@ -81,3 +116,19 @@ height: 15px; } } + +@media screen and (max-width: $mobile-view) { + ::ng-deep { + .popover-notifications.popover { + left: unset !important; + + .arrow { + left: calc(2em + 7px); + } + + .popover-body { + width: 100vw; + } + } + } +}