]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-moderation/moderation.scss
Improve admin tables responsive
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-moderation / moderation.scss
index b13d06f03d50790ec55b5eb451617fcc436d910d..815e2791f7f7cf2cb0729642cf0cdd79814c65be 100644 (file)
@@ -1,15 +1,22 @@
-@import 'variables';
-@import 'mixins';
-@import 'miniature';
+@use 'sass:math';
+@use '_mixins' as *;
+@use '_variables' as *;
+@use '_miniature' as *;
 
 .moderation-expanded {
   font-size: 90%;
+  display: flex;
+  flex-wrap: wrap;
+  justify-content: space-between;
 
   .moderation-expanded-label {
+    @include margin-right(5px);
+
     font-weight: $font-semibold;
     display: inline-block;
     vertical-align: top;
-    text-align: right;
+    text-align: end;
+    min-width: 100px;
   }
 
   .moderation-expanded-text {
       margin-bottom: 0 !important;
     }
   }
+
+  .right {
+    width: 50%;
+    max-width: 500px;
+  }
+
+  @media screen and (max-width: $primeng-breakpoint) {
+    .right {
+      width: 100%;
+    }
+  }
 }
 
 .screenratio {
     height: 100% !important;
     left: 0;
   };
-
-  div {
-    @include miniature-thumbnail;
-
-    display: inline-flex;
-    justify-content: center;
-    align-items: center;
-    color: pvar(--inputPlaceholderColor);
-  }
 }
 
 .chip {
@@ -79,10 +88,10 @@ my-action-dropdown.show {
     $image-height: 45px;
 
     @include miniature-thumbnail;
+    @include margin-right(0.5rem);
 
     height: $image-height;
-    width: #{(16/9) * $image-height};
-    margin-right: 0.5rem;
+    width: #{math.div(16, 9) * $image-height};
     border-radius: 2px;
     border: 0;
     background: transparent;
@@ -121,9 +130,10 @@ my-action-dropdown.show {
     line-height: 1rem;
 
     div .glyphicon {
+      @include margin-left(0.1rem);
+
       font-size: 80%;
       color: #808080;
-      margin-left: 0.1rem;
     }
 
     div + div {
@@ -132,3 +142,13 @@ my-action-dropdown.show {
     }
   }
 }
+
+my-abuse-details {
+  width: 100%;
+}
+
+@media screen and (max-width: $primeng-breakpoint) {
+  .abuse-messages {
+    justify-content: flex-start !important;
+  }
+}