]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-watch/video-watch.component.scss
Design modals
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.scss
index 6973619b2b1b4727c977f12521fc9b3be6f879d5..205a4333c5fc79fc51d5a272538e99aad7863fa2 100644 (file)
@@ -1,3 +1,6 @@
+@import '_variables';
+@import '_mixins';
+
 #video-container {
   background-color: #000;
   display: flex;
@@ -7,9 +10,14 @@
     width: 888px;
     height: 500px;
 
+    @media screen and (max-width: 800px) {
+      height: auto;
+    }
+
     // VideoJS create an inner video player
     video {
       outline: 0;
+      position: relative !important;
     }
   }
 }
       align-items: center;
 
       .video-info-name {
+        margin-right: 30px;
         font-size: 27px;
         font-weight: $font-semibold;
         flex-grow: 1;
       }
 
       .video-info-actions {
+        min-width: 215px;
+
         .action-button {
           @include peertube-button;
           @include grey-button;
@@ -70,6 +81,7 @@
 
             &.icon-more {
               background-image: url('../../../assets/images/video/more.svg');
+              top: -1px;
             }
           }
 
         .action-more {
           display: inline-block;
 
-          .dropdown-menu .icon {
-            display: inline-block;
-            background-repeat: no-repeat;
-            background-size: contain;
-            width: 21px;
-            height: 21px;
-            vertical-align: middle;
-            margin-right: 5px;
-            position: relative;
-            top: -1px;
+          .dropdown-menu .dropdown-item {
+            padding: 6px 24px;
 
-            &.icon-download {
-              background-image: url('../../../assets/images/video/download-grey.svg');
-            }
+            .icon {
+              @include icon(24px);
 
-            &.icon-alert {
-              background-image: url('../../../assets/images/video/alert.svg');
-            }
+              margin-right: 10px;
+              position: relative;
+              top: -1px;
 
-            &.icon-blacklist {
-              background-image: url('../../../assets/images/video/eye-closed.svg');
+              &.icon-download {
+                background-image: url('../../../assets/images/video/download-black.svg');
+              }
+
+              &.icon-alert {
+                background-image: url('../../../assets/images/video/alert.svg');
+              }
+
+              &.icon-blacklist {
+                background-image: url('../../../assets/images/video/blacklist.svg');
+              }
             }
           }
         }
   }
 }
 
+
+@media screen and (max-width: 1200px) {
+  .other-videos {
+    display: none;
+  }
+
+  .video-bottom {
+    .video-info {
+      margin-right: 0;
+
+      .video-info-name-actions {
+        align-items: left;
+        flex-direction: column;
+        margin-bottom: 30px;
+      }
+
+      .video-info-date-views-bar {
+        align-items: left;
+        flex-direction: column;
+        margin-bottom: 30px;
+
+        .video-info-likes-dislikes-bar {
+          margin-top: 0;
+        }
+      }
+    }
+  }
+}
+
+@media screen and (max-width: 800px) {
+  .video-bottom {
+    margin: 20px 0 0 0;
+  }
+}