]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/video-js-custom.scss
Add max video height on mobile
[github/Chocobozzz/PeerTube.git] / client / src / sass / video-js-custom.scss
index ee6b9219bc36a02693a011d968e700e726b58fe1..8b6d54b221fce994d923b1ee5a9c7b64780f1b75 100644 (file)
@@ -154,17 +154,17 @@ $control-bar-height: 34px;
       }
     }
 
-    .vjs-webtorrent {
+    .vjs-peertube {
       width: 100%;
       line-height: $control-bar-height;
       text-align: right;
       padding-right: 60px;
 
-      .vjs-webtorrent-displayed {
+      .vjs-peertube-displayed {
         display: block;
       }
 
-      .vjs-webtorrent-hidden {
+      .vjs-peertube-hidden {
         display: none;
       }
 
@@ -343,10 +343,10 @@ $control-bar-height: 34px;
       font-size: 5em;
     }
 
-    .vjs-webtorrent {
+    .vjs-peertube {
       padding: 0 !important;
 
-      .vjs-webtorrent-displayed {
+      .vjs-peertube-displayed {
         display: none !important;
       }
     }
@@ -354,7 +354,7 @@ $control-bar-height: 34px;
 
   @media screen and (max-width: 300px) {
     .vjs-dock-text {
-      font-size: 1.5em;
+      font-size: 1em;
     }
 
     .vjs-big-play-button {
@@ -424,3 +424,20 @@ $control-bar-height: 34px;
   }
 }
 
+// Error display disabled
+.vjs-error:not(.vjs-error-display-enabled) {
+  .vjs-error-display {
+    display: none;
+  }
+
+  .vjs-loading-spinner {
+    display: block;
+  }
+}
+
+// Error display enabled
+.vjs-error.vjs-error-display-enabled {
+  .vjs-error-display {
+    display: block;
+  }
+}