]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/videos/embed.scss
Fix embed api with playlists
[github/Chocobozzz/PeerTube.git] / client / src / standalone / videos / embed.scss
index fbc0e33a050e0fd7a2f4376271bcc4cefb1bb64e..3631ea7e6988877c897592987e9dfafda7bad2d1 100644 (file)
@@ -1,20 +1,36 @@
-@import '_variables';
-@import '_mixins';
-@import '~video.js/dist/video-js.css';
-@import '~videojs-dock/dist/videojs-dock.css';
-@import '../../sass/video-js-custom.scss';
+@use '_variables' as *;
+@use '_mixins' as *;
+@use 'video.js/dist/video-js';
+
+$assets-path: '../../assets/';
+@use '../../sass/player/index';
+
+[hidden] {
+  display: none !important;
+}
+
+body {
+  font-family: $main-fonts;
+  font-weight: $font-regular;
+  color: #000;
+}
 
 video {
   width: 99%;
 }
 
 /* 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%;
@@ -24,44 +40,59 @@ html, body {
   .vjs-poster {
     background-size: 100% auto;
   }
+}
 
-  .vjs-peertube-link {
-    color: #fff;
-    text-decoration: none;
-    font-size: $font-size;
-    line-height: $control-bar-height;
-    transition: all .4s;
-    font-weight: $font-semibold;
-    margin-right: 3px;
-    padding: 0 5px;
-  }
+#error-block {
+  display: none;
 
-  .vjs-peertube-link:hover {
-    text-shadow: 0 0 1em #fff;
-  }
+  flex-direction: column;
+  align-content: center;
+  justify-content: center;
+  text-align: center;
+  width: 100%;
+  height: 100%;
+  color: #fff;
+  box-sizing: border-box;
+  font-family: sans-serif;
+}
 
-  // Fix volume panel because we added a new component (PeerTube link)
-  .vjs-volume-panel {
-    margin-right: 137px !important;
-  }
+#error-title {
+  font-size: 45px;
+  margin-bottom: 5px;
+}
 
-  @media screen and (max-width: 350px) {
-    .vjs-play-control {
-      padding: 0 5px !important;
-      width: 25px !important;
-    }
+#error-content {
+  font-size: 24px;
+}
 
-    .vjs-volume-control {
-      display: none !important;
-    }
+#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;
+}
 
-    .vjs-volume-panel {
-      width: 26px !important;
-      margin-right: 140px !important;
-    }
+@media screen and (max-width: 300px) {
+  #error-block {
+    font-size: 36px;
+  }
 
-    .vjs-peertube-link {
-      padding: 0;
-    }
+  #error-content {
+    font-size: 14px;
   }
 }
+