]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/abstract-video-list.scss
Limit thumbnail sizes
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / abstract-video-list.scss
index a1d9168de8760116c868f5154abc2fb69f21a384..7f23098aa4ef536147c25bb2855d2e548e5311bc 100644 (file)
@@ -1,19 +1,35 @@
+@import '_bootstrap-variables';
+@import '_variables';
 @import '_mixins';
 @import '_miniature';
 
 .videos-header {
   display: flex;
-  height: 80px;
-  align-items: center;
+  justify-content: space-between;
+  align-items: baseline;
 
   .title-page.title-page-single {
-    margin: 0 5px 0 0;
+    display: flex;
+
+    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;
+    }
   }
 
-  my-feed {
-    display: inline-block;
-    top: 1px;
-    min-width: 60px;
+  .action-block {
+    a button {
+      @include peertube-button;
+      @include grey-button;
+      @include button-with-icon(18px, 3px, -1px);
+    }
   }
 
   .moderation-block {
   }
 }
 
-.margin-content {
-  width: $video-miniature-width * 6;
-  margin: auto;
+.date-title {
+  font-size: 16px;
+  font-weight: $font-semibold;
+  margin-bottom: 20px;
+  margin-top: -10px;
 
-  @media screen and (max-width: 1800px) {
-    width: $video-miniature-width * 5;
-  }
+  // make the element span a full grid row within .videos grid
+  grid-column: 1 / -1;
 
-  @media screen and (max-width: 1800px - $video-miniature-width) {
-    width: $video-miniature-width * 4;
-  }
-
-  @media screen and (max-width: 1800px - (2* $video-miniature-width)) {
-    width: $video-miniature-width * 3;
+  &:not(:first-child) {
+    margin-top: .5rem;
+    padding-top: 20px;
+    border-top: 1px solid $separator-border-color;
   }
+}
 
-  @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
-    width: $video-miniature-width * 2;
-  }
+.margin-content {
+  @include fluid-videos-miniature-layout;
+}
 
-  @media screen and (max-width: 500px) {
-    width: auto;
-    margin: 0 !important;
+@media screen and (max-width: $mobile-view) {
+  .videos-header {
+    flex-direction: column;
+    align-items: center;
+    height: auto;
+    margin-bottom: 10px;
 
-    .videos {
-      @include video-miniature-small-screen;
+    .title-page {
+      margin-bottom: 10px;
+      margin-right: 0px;
     }
   }
 }
-