]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/video-thumbnail.component.scss
`fitWidth` for `video-miniature`, fluid grid (#2830)
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-thumbnail.component.scss
index ab4f9bcb14ac525439b87d4a990787f37356f222..feff78a87899b71b966bd48e2f8144e5714df482 100644 (file)
@@ -1,28 +1,74 @@
+@import '_variables';
+@import '_mixins';
+@import '_miniature';
+
 .video-thumbnail {
-  display: inline-block;
-  position: relative;
-  border-radius: 4px;
-  overflow: hidden;
+  @include miniature-thumbnail;
+
+  .progress-bar {
+    height: 3px;
+    width: 100%;
+    position: absolute;
+    bottom: 0;
+    background-color: rgba(0, 0, 0, 0.20);
+
+    div {
+      height: 100%;
+      background-color: pvar(--mainColor);
+    }
+  }
+
+  .video-thumbnail-watch-later-overlay,
+  .video-thumbnail-label-overlay,
+  .video-thumbnail-duration-overlay {
+    @include static-thumbnail-overlay;
 
-  &:hover {
-    text-decoration: none !important;
+    border-radius: 3px;
+    font-size: 12px;
+    font-weight: $font-semibold;
+    line-height: 1.2;
+    z-index: z(miniature);
   }
 
-  img.blur-filter {
-    filter: blur(5px);
-    transform : scale(1.03);
+  .video-thumbnail-label-overlay {
+    position: absolute;
+    padding: 0 5px;
+    left: 5px;
+    top: 5px;
+    font-weight: $font-bold;
+
+    &.warning { background-color: orange; }
+    &.danger { background-color: red; }
   }
 
-  .video-thumbnail-overlay {
+  .video-thumbnail-duration-overlay {
     position: absolute;
+    padding: 0 3px;
     right: 5px;
     bottom: 5px;
-    display: inline-block;
-    background-color: rgba(0, 0, 0, 0.7);
-    color: #fff;
-    font-size: 12px;
-    font-weight: $font-bold;
-    border-radius: 3px;
-    padding: 0 5px;
+  }
+
+  .video-thumbnail-actions-overlay {
+    position: absolute;
+    display: flex;
+    flex-direction: column;
+    right: 5px;
+    top: 5px;
+    opacity: 0;
+
+    div:not(:first-child) {
+      margin-top: 2px;
+    }
+
+    .video-thumbnail-watch-later-overlay {
+      padding: 3px;
+
+      my-global-icon {
+        width: 22px;
+        height: 22px;
+
+        @include apply-svg-color(#fff);
+      }
+    }
   }
 }