Fix loading spinner in player
[oweals/peertube.git] / client / src / sass / video-js-custom.scss
index 1200c07a56a7e6a4fd1bccaa0faaf3da2161a112..fe9495e777c7907a9ccc59d38811146d8a822cd0 100644 (file)
@@ -28,10 +28,6 @@ $control-bar-height: 34px;
     $big-play-width: 3em;
     $big-play-height: 1.5em;
 
-    line-height: $big-play-height;
-    height: $big-play-height;
-    width: $big-play-width;
-
     border: 0;
     border-radius: 0.3em;
 
@@ -39,10 +35,7 @@ $control-bar-height: 34px;
     top: 50%;
     margin-left: -($big-play-width / 2);
     margin-top: -($big-play-height / 2);
-  }
-
-  &:hover .vjs-big-play-button {
-    background-color: transparent;
+    background-color: transparent !important;
   }
 
   .vjs-control-bar,
@@ -138,6 +131,14 @@ $control-bar-height: 34px;
       text-align: right;
       padding-right: 60px;
 
+      .vjs-webtorrent-displayed {
+        display: block;
+      }
+
+      .vjs-webtorrent-hidden {
+        display: none;
+      }
+
       .download-speed-number, .upload-speed-number, .peers-number {
         font-weight: $font-semibold;
       }
@@ -303,17 +304,18 @@ $control-bar-height: 34px;
       }
     }
   }
+
+  @media screen and (max-width: 450px) {
+    .vjs-webtorrent-displayed {
+      display: none !important;
+    }
+  }
 }
 
 // Thanks: https://projects.lukehaas.me/css-loaders/
 .vjs-loading-spinner {
-  margin: 0 !important;
-  //position: absolute;
-  // 15px is the nav bar height
-  top: calc(50% - 15px);
   left: 50%;
   font-size: 10px;
-  position: relative;
   text-indent: -9999em;
   border: 0.7em solid rgba(255, 255, 255, 0.2);
   border-left-color: #ffffff;
@@ -340,3 +342,4 @@ $control-bar-height: 34px;
     }
   }
 }
+