]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/video-thumbnail.component.scss
Improve SQL query for my special playlists
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-thumbnail.component.scss
index 97a0e72ed7a1d926f2d75575ba0a8860bd228eda..ad221d6ed64a5c4ecf7641b7747578c0348b4af9 100644 (file)
@@ -1,39 +1,15 @@
 @import '_variables';
 @import '_mixins';
+@import '_miniature';
 
 .video-thumbnail {
-  display: inline-block;
-  position: relative;
-  border-radius: 3px;
-  overflow: hidden;
-  width: $video-thumbnail-width;
-  height: $video-thumbnail-height;
-  background-color: #ececec;
-
-  &:hover {
-    text-decoration: none !important;
-  }
-
-  @include disable-outline;
-  &.focus-visible {
-    box-shadow: 0 0 0 2px var(--mainColor);
-  }
-
-  img {
-    width: $video-thumbnail-width;
-    height: $video-thumbnail-height;
-
-    &.blur-filter {
-      filter: blur(5px);
-      transform : scale(1.03);
-    }
-  }
+  @include miniature-thumbnail;
 
   .progress-bar {
     height: 3px;
     width: 100%;
-    position: relative;
-    top: -3px;
+    position: absolute;
+    bottom: 0;
     background-color: rgba(0, 0, 0, 0.20);
 
     div {
     }
   }
 
-  .video-thumbnail-overlay {
-    position: absolute;
-    right: 5px;
-    bottom: 5px;
-    display: inline-block;
-    background-color: rgba(0, 0, 0, 0.7);
-    color: #fff;
+  .video-thumbnail-watch-later-overlay,
+  .video-thumbnail-duration-overlay {
+    @include static-thumbnail-overlay;
+
+    border-radius: 3px;
     font-size: 12px;
     font-weight: $font-bold;
-    border-radius: 3px;
+    z-index: 1;
+  }
+
+  .video-thumbnail-duration-overlay {
+    position: absolute;
     padding: 0 5px;
+    right: 5px;
+    bottom: 5px;
+  }
+
+  &:focus,
+  &:hover {
+    .video-thumbnail-actions-overlay {
+      opacity: 1;
+    }
+  }
+
+  .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);
+      }
+    }
   }
 }