X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fstandalone%2Fvideos%2Fembed.scss;h=cbe6bdd012896d4e3b7204a740d35f488d4b5b93;hb=6fad8e51c47b9d07bea99b777c1f55c10f6d576d;hp=9140cd37c2b2f937af0799b149cd04d9f6b77331;hpb=fada8d75550dc7365f7e18ee1569b9406251d660;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/standalone/videos/embed.scss b/client/src/standalone/videos/embed.scss index 9140cd37c..cbe6bdd01 100644 --- a/client/src/standalone/videos/embed.scss +++ b/client/src/standalone/videos/embed.scss @@ -1,6 +1,20 @@ +@import '_variables'; +@import '_mixins'; @import '~video.js/dist/video-js.css'; @import '~videojs-dock/dist/videojs-dock.css'; -@import '../../sass/video-js-custom.scss'; + +$assets-path: '../../assets/'; +@import '../../sass/player/index'; + +[hidden] { + display: none !important; +} + +body { + font-family: $main-fonts; + font-weight: $font-regular; + color: #000; +} video { width: 99%; @@ -10,49 +24,83 @@ video { html, body { height: 100%; margin: 0; + background-color: #000; } -.video-js { +#video-wrapper { width: 100%; height: 100%; - overflow: hidden; } -.vjs-poster { - background-size: 100% auto; -} +.video-js.vjs-peertube-skin { + width: 100%; + height: 100%; + overflow: hidden; -.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; -} + .vjs-poster { + background-size: 100% auto; + } -.vjs-peertube-link:hover { - text-shadow: 0 0 1em #fff; -} + @media screen and (max-width: 350px) { + .vjs-play-control { + padding: 0 5px !important; + width: 25px !important; + } + + .vjs-volume-control { + display: none !important; + } -// Fix volume panel because we added a new component (PeerTube link) -.vjs-volume-panel { - margin-right: 121px !important; + .vjs-volume-panel { + width: 26px !important; + } + + .vjs-peertube-link { + padding: 0; + } + } } -@media screen and (max-width: 350px) { - .vjs-play-control { - padding: 0 5px !important; - width: 25px !important; +#error-block { + display: none; + + flex-direction: column; + align-content: center; + justify-content: center; + text-align: center; + width: 100%; + height: 100%; + color: white; + box-sizing: border-box; + font-family: sans-serif; + + #error-title { + font-size: 45px; + margin-bottom: 5px; } - .vjs-volume-control { - display: none !important; + #error-content { + font-size: 24px; } +} - .vjs-volume-panel { - width: 26px !important; - margin-right: 140px !important; +#placeholder-preview { + position: absolute; + top: 0; + left: 0; + background-size: 100% auto; + width: 100%; + height: 100%; + background-position: 50% 50%; +} + +@media screen and (max-width: 300px) { + #error-block { + font-size: 36px; + + #error-content { + font-size: 14px; + } } } +