]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-video-miniature/abstract-video-list.scss
Add max rows to videos list
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-miniature / abstract-video-list.scss
index 7f23098aa4ef536147c25bb2855d2e548e5311bc..c8dda2900583678f86b1fc46acc979a868733a00 100644 (file)
@@ -3,40 +3,34 @@
 @import '_mixins';
 @import '_miniature';
 
+$icon-size: 16px;
+
+::ng-deep my-video-list-header {
+  display: flex;
+  flex-grow: 1;
+}
+
 .videos-header {
   display: flex;
   justify-content: space-between;
-  align-items: baseline;
-
-  .title-page.title-page-single {
-    display: flex;
+  align-items: center;
 
-    my-feed {
-      display: inline-block;
-      top: 1px;
-      margin-left: 5px;
-      width: max-content;
-      opacity: 0;
-      transition: ease-in .2s opacity;
-    }
-    &:hover my-feed {
-      opacity: 1;
-    }
-  }
-
-  .action-block {
-    a button {
-      @include peertube-button;
-      @include grey-button;
-      @include button-with-icon(18px, 3px, -1px);
-    }
+  my-feed {
+    display: inline-block;
+    width: calc(#{$icon-size} - 2px);
   }
 
   .moderation-block {
+    @include margin-left(.4rem);
+
     display: flex;
-    flex-grow: 1;
     justify-content: flex-end;
     align-items: center;
+
+    my-global-icon {
+      position: relative;
+      width: $icon-size;
+    }
   }
 }
 
 }
 
 .margin-content {
-  @include fluid-videos-miniature-layout;
+  @include grid-videos-miniature-layout-with-margins;
+}
+
+.display-as-row.videos {
+  @include margin-left(pvar(--horizontalMarginContent));
+  @include margin-right(pvar(--horizontalMarginContent));
+
+  .video-wrapper {
+    margin-bottom: 15px;
+  }
 }
 
 @media screen and (max-width: $mobile-view) {
@@ -68,8 +71,9 @@
     margin-bottom: 10px;
 
     .title-page {
+      @include margin-right(0);
+
       margin-bottom: 10px;
-      margin-right: 0px;
     }
   }
 }