]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/player/peertube-skin.scss
Increase play button size
[github/Chocobozzz/PeerTube.git] / client / src / sass / player / peertube-skin.scss
index 1b7275529cf7cd76cfc76a979144f53df7ecc852..0144e89fb4f2d6cc644c8b8adfc4324326a3a0c3 100644 (file)
@@ -124,6 +124,14 @@ body {
     }
   }
 
+  // Do not display poster when video is starting
+  &.vjs-has-autoplay:not(.vjs-has-started) {
+    .vjs-poster {
+      opacity: 0;
+      visibility: hidden;
+    }
+  }
+
   // Hide the big play button on autoplay
   &.vjs-has-autoplay {
     .vjs-big-play-button {
@@ -234,8 +242,8 @@ body {
       @include disable-outline;
 
       cursor: pointer;
-      font-size: $font-size;
-      width: 3em;
+      font-size: $play-control-font-size;
+      width: 2em;
     }
 
     .vjs-time-control {
@@ -248,7 +256,7 @@ body {
         margin-left: .5em;
 
         .vjs-current-time-display {
-          line-height: calc(#{$control-bar-height} + 1px);
+          line-height: calc(#{$control-bar-height} - 1px);
 
           &::after {
             content: "/";
@@ -261,8 +269,9 @@ body {
         font-size: $font-size;
         display: inline-block;
         padding: 0;
+
         .vjs-duration-display {
-          line-height: calc(#{$control-bar-height} + 1px);
+          line-height: calc(#{$control-bar-height} - 1px);
         }
       }
 
@@ -271,6 +280,12 @@ body {
       }
     }
 
+    .vjs-live-control {
+      line-height: $control-bar-height;
+      min-width: 4em;
+      width: inherit;
+    }
+
     .vjs-peertube {
       width: 100%;
       line-height: $control-bar-height;
@@ -483,7 +498,7 @@ body {
       @include disable-outline;
 
       width: 37px;
-      margin-right: 11px;
+      margin-right: $first-control-bar-element-margin-left;
 
       .vjs-icon-placeholder {
         display: inline-block;
@@ -568,9 +583,19 @@ body {
         display: none !important;
       }
     }
+
+    &.vjs-live {
+      .vjs-duration {
+        display: none !important;
+      }
+
+      .vjs-peertube {
+        display: none !important;
+      }
+    }
   }
 
-  @media screen and (max-width: 300px) {
+  @media screen and (max-width: 350px) {
     .vjs-dock-text {
       font-size: 13px;
     }
@@ -598,8 +623,20 @@ body {
       width: 33px;
     }
 
-    .vjs-play-control {
-      margin-left: $first-control-bar-element-margin-left;
+    .vjs-control-bar {
+      > button:first-child {
+        margin-left: $first-control-bar-element-margin-left-small-width;
+      }
+    }
+
+    .vjs-fullscreen-control {
+      margin-right: $first-control-bar-element-margin-left-small-width;
+    }
+
+    &.vjs-live {
+      .vjs-current-time {
+        display: none !important;
+      }
     }
   }