]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/video-js-custom.scss
Don't leak unlisted videos
[github/Chocobozzz/PeerTube.git] / client / src / sass / video-js-custom.scss
index b093bbdecfb898d75dcc55bbfcff2198a6c05cf9..8ff96357354536bd00cc9bbf19f5c8ce31778051 100644 (file)
@@ -37,6 +37,26 @@ $control-bar-height: 34px;
     margin-left: -($big-play-width / 2);
     margin-top: -($big-play-height / 2);
     background-color: transparent !important;
+
+    &::-moz-focus-inner {
+      border: 0;
+      padding: 0
+    }
+
+    .vjs-icon-placeholder::before {
+      transition: text-shadow 0.3s;
+    }
+
+    &:hover .vjs-icon-placeholder::before {
+      text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
+    }
+  }
+
+  &.vjs-has-started .vjs-big-play-button {
+    display: block;
+    visibility: hidden;
+    opacity: 0;
+    transition: visibility 0.3s, opacity 0.3s;
   }
 
   .vjs-control-bar,
@@ -90,6 +110,7 @@ $control-bar-height: 34px;
     }
 
     .vjs-play-control {
+      outline: 0;
       font-size: $font-size;
       padding: 0 17px;
       margin-right: 5px;
@@ -170,6 +191,8 @@ $control-bar-height: 34px;
     }
 
     .vjs-mute-control {
+      outline: 0;
+
       .vjs-icon-placeholder {
         display: inline-block;
         width: 22px;
@@ -253,6 +276,7 @@ $control-bar-height: 34px;
 
     .vjs-fullscreen-control {
       width: 37px;
+      outline: 0;
 
       .vjs-icon-placeholder {
         display: inline-block;
@@ -308,6 +332,10 @@ $control-bar-height: 34px;
   }
 
   @media screen and (max-width: 550px) {
+    .vjs-big-play-button {
+      font-size: 6.5em;
+    }
+
     .vjs-webtorrent {
       padding: 0 !important;
 
@@ -318,6 +346,14 @@ $control-bar-height: 34px;
   }
 
   @media screen and (max-width: 300px) {
+    .vjs-dock-text {
+      font-size: 1.5em;
+    }
+
+    .vjs-big-play-button {
+      font-size: 5em;
+    }
+
     .vjs-volume-control {
       display: none !important;
     }
@@ -337,8 +373,9 @@ $control-bar-height: 34px;
   border: 0.7em solid rgba(255, 255, 255, 0.2);
   border-left-color: #ffffff;
   transform: translateZ(0);
-  animation: spinner 1.4s infinite linear;
+  animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
   overflow: hidden;
+  visibility: hidden;
 
   &:before {
     animation: none !important;
@@ -359,5 +396,24 @@ $control-bar-height: 34px;
       transform: rotate(360deg);
     }
   }
+
+  @keyframes vjs-spinner-show {
+    0% {
+      display: none;
+      opacity: 0;
+    }
+
+    1% {
+      display: block;
+      visibility: visible;
+      opacity: 0;
+    }
+
+    100% {
+      display: block;
+      visibility: visible;
+      opacity: 1;
+    }
+  }
 }