]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/menu/avatar-notification.component.scss
Add missing button roles for the language chooser and keyboard shortcut menu items
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / avatar-notification.component.scss
index f6242eeae406c285c93c4462e14c478b77697c21..d0f01fc3277d0c752238332302e7bc79035bb640 100644 (file)
@@ -1,19 +1,34 @@
 @import '_variables';
 @import '_mixins';
 
-/deep/ {
+::ng-deep {
   .popover-notifications.popover {
-    max-width: 400px;
+    max-width: none;
 
     .popover-body {
       padding: 0;
       font-size: 14px;
       font-family: $main-fonts;
-      overflow-y: auto;
-      max-height: 500px;
-      min-width: 200px;
+      overflow-y: scroll;
+      width: 400px;
       box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30);
-      overflow-y: auto;
+
+      .loader {
+        display: flex;
+        align-items: center;
+        justify-content: center;
+
+        padding: 5px 0;
+      }
+
+      .content {
+        max-height: 150px;
+        transition: max-height 0.15s ease-out;
+
+        &.loaded {
+          max-height: 500px;
+        }
+      }
 
       .notifications-header {
         display: flex;
@@ -41,7 +56,7 @@
         align-items: center;
         justify-content: center;
         font-weight: $font-semibold;
-        color: var(--mainForegroundColor);
+        color: $fg-color;
         padding: 7px 0;
       }
     }
@@ -73,7 +88,7 @@
     justify-content: center;
 
     background-color: var(--mainColor);
-    color: var(--mainBackgroundColor);
+    color: var(#fff);
     font-size: 10px;
     font-weight: $font-semibold;
 
     height: 15px;
   }
 }
+
+@media screen and (max-width: $mobile-view) {
+  ::ng-deep {
+    .popover-notifications.popover .popover-body {
+      width: 400px;
+    }
+  }
+}