]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/video-list/video-miniature.component.scss
Client: fix loading server configurations
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-list / video-miniature.component.scss
index f88ced8190d391b3943728026fce1ab54f214e05..c2743c3beb0c123df1578277e7de8787e233f600 100644 (file)
@@ -1,15 +1,10 @@
-@import "../../../sass/pre-customizations.scss";
-
 .video-miniature {
-  @media screen and (max-width: 400px) {
-    padding: 0;
-  }
-
   margin-top: 30px;
   display: inline-block;
   position: relative;
-  min-width: 220px;
   height: 190px;
+  width: 220px;
+  vertical-align: top;
 
   .video-miniature-thumbnail {
     display: inline-block;
       height: 110px;
     }
 
-    .video-miniature-duration {
+    img, .thumbnail-nsfw {
+      border-radius: 3px;
+    }
+
+    .video-miniature-thumbnail-overlay {
       position: absolute;
-      right: 5px;
-      bottom: 2px;
+      right: 0px;
+      bottom: 0px;
       display: inline-block;
-      background-color: rgba(0, 0, 0, 0.8);
-      color: rgba(255, 255, 255, 0.8);
-      padding: 2px;
+      background-color: rgba(0, 0, 0, 0.7);
+      color: #fff;
+      padding: 3px 5px;
       font-size: 11px;
+      font-weight: bold;
+      width: 100%;
+
+      .video-miniature-thumbnail-overlay-views {
+
+      }
+
+      .video-miniature-thumbnail-overlay-duration {
+        float: right;
+      }
     }
   }
 
   .video-miniature-informations {
     width: 200px;
 
-    .video-miniature-name-tags {
+    .video-miniature-name {
+      height: 23px;
       display: block;
+      overflow: hidden;
+      text-overflow: ellipsis;
+      white-space: nowrap;
+      font-weight: bold;
+      transition: color 0.2s;
+      font-size: 15px;
 
-      .video-miniature-name {
-        height: 23px;
-        display: block;
-        overflow: hidden;
-        text-overflow: ellipsis;
-        white-space: nowrap;
-        font-weight: bold;
-        transition: color 0.2s;
-        font-size: 15px;
-
-        &:hover {
-          text-decoration: none;
-        }
+      &:hover {
+        text-decoration: none;
       }
 
       .video-miniature-tags {
-        // Fix for chrome when tags a long
+        // Fix for chrome when tags are long
         width: 201px;
 
         .video-miniature-tag {
           top: -2px;
 
           .label {
-            line-height: $line-height-base;
             transition: background-color 0.2s;
           }
         }
       }
     }
 
-    .video-miniature-author, .video-miniature-views-created-at {
+    .video-miniature-author, .video-miniature-created-at {
       display: block;
       margin-left: 1px;
-      font-size: 12px;
-      color: #337ab7;
+      font-size: 11px;
+      color: $video-miniature-other-infos;
       opacity: 0.9;
-
-      .video-miniature-created-at::before {
-        content: '\002022';
-        margin: 0 2px 0 1px;
-      }
     }
 
     .video-miniature-author {