]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/videos/embed.scss
Merge branch 'feature/improve-live' into develop
[github/Chocobozzz/PeerTube.git] / client / src / standalone / videos / embed.scss
index f92a1f54a37c66289010eb764227248384f80a39..3631ea7e6988877c897592987e9dfafda7bad2d1 100644 (file)
@@ -1,10 +1,9 @@
-@import '_variables';
-@import '_mixins';
-@import '~video.js/dist/video-js.css';
-@import '~videojs-dock/dist/videojs-dock.css';
+@use '_variables' as *;
+@use '_mixins' as *;
+@use 'video.js/dist/video-js';
 
 $assets-path: '../../assets/';
-@import '../../sass/player/player';
+@use '../../sass/player/index';
 
 [hidden] {
   display: none !important;
@@ -21,12 +20,18 @@ video {
 }
 
 /* fill the entire space */
-html, body {
+html,
+body {
   height: 100%;
   margin: 0;
   background-color: #000;
 }
 
+#video-wrapper {
+  width: 100%;
+  height: 100%;
+}
+
 .video-js.vjs-peertube-skin {
   width: 100%;
   height: 100%;
@@ -35,25 +40,6 @@ html, body {
   .vjs-poster {
     background-size: 100% auto;
   }
-
-  @media screen and (max-width: 350px) {
-    .vjs-play-control {
-      padding: 0 5px !important;
-      width: 25px !important;
-    }
-
-    .vjs-volume-control {
-      display: none !important;
-    }
-
-    .vjs-volume-panel {
-      width: 26px !important;
-    }
-
-    .vjs-peertube-link {
-      padding: 0;
-    }
-  }
 }
 
 #error-block {
@@ -63,30 +49,50 @@ html, body {
   align-content: center;
   justify-content: center;
   text-align: center;
-  background-color: #141313;
   width: 100%;
   height: 100%;
-  color: white;
+  color: #fff;
   box-sizing: border-box;
   font-family: sans-serif;
+}
 
-  #error-title {
-    font-size: 45px;
-    margin-bottom: 5px;
-  }
+#error-title {
+  font-size: 45px;
+  margin-bottom: 5px;
+}
 
-  #error-content {
-    font-size: 24px;
-  }
+#error-content {
+  font-size: 24px;
+}
+
+#placeholder-preview {
+  position: absolute;
+  top: 0;
+  left: 0;
+  background-size: 100% auto;
+  width: 100%;
+  height: 100%;
+  background-position: 50% 50%;
+  background-repeat: no-repeat;
+}
+
+.player-information {
+  width: 100%;
+  color: #fff;
+  background: rgba(0, 0, 0, 0.6);
+  padding: 20px 0;
+  position: absolute;
+  bottom: 0;
+  text-align: center;
 }
 
 @media screen and (max-width: 300px) {
   #error-block {
     font-size: 36px;
+  }
 
-    #error-content {
-      font-size: 14px;
-    }
+  #error-content {
+    font-size: 14px;
   }
 }