X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fstandalone%2Fvideos%2Fembed.scss;h=c2ee16ae2ee67b8ac48079e2d5aa35107df010e6;hb=8cbc40b2fe9d36ef0505b9441276ca561342e9e9;hp=a4c44a59bf0c6d773fb7ad7d59ca00f2de4972e2;hpb=202e72231750705b1a071d57206424eef1fc5be1;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/standalone/videos/embed.scss b/client/src/standalone/videos/embed.scss index a4c44a59b..c2ee16ae2 100644 --- a/client/src/standalone/videos/embed.scss +++ b/client/src/standalone/videos/embed.scss @@ -1,41 +1,107 @@ -@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'; +@use 'videojs-dock/dist/videojs-dock'; + +$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-js { +#video-wrapper { width: 100%; height: 100%; } -.vjs-poster { - background-size: 100% auto; +.video-js.vjs-peertube-skin { + width: 100%; + height: 100%; + overflow: hidden; + + .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; + } + } } -.vjs-peertube-link { - color: white; - text-decoration: none; - font-size: 1.3em; - line-height: 2.20; - transition: all .4s; - position: relative; - right: 6px; +#error-block { + display: none; + + 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; +} + +#error-title { + font-size: 45px; + margin-bottom: 5px; +} + +#error-content { + font-size: 24px; } -.vjs-peertube-link:hover { - text-shadow: 0 0 1em #fff; +#placeholder-preview { + position: absolute; + top: 0; + left: 0; + background-size: 100% auto; + width: 100%; + height: 100%; + background-position: 50% 50%; } -// Fix volume panel because we added a new component (PeerTube link) -.vjs-volume-panel { - margin-right: 90px !important; +@media screen and (max-width: 300px) { + #error-block { + font-size: 36px; + } + + #error-content { + font-size: 14px; + } } +