X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fstandalone%2Fvideos%2Fembed.scss;h=f92a1f54a37c66289010eb764227248384f80a39;hb=78f912ed5733028ec2bf10c06c19f75b07943be2;hp=938a6e48ceafe87dd2b1fffa728e6745499289fc;hpb=3d09cdbf90902894c841d0a5ddb35eb772c53b8b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/standalone/videos/embed.scss b/client/src/standalone/videos/embed.scss index 938a6e48c..f92a1f54a 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/player'; + +[hidden] { + display: none !important; +} + +body { + font-family: $main-fonts; + font-weight: $font-regular; + color: #000; +} video { width: 99%; @@ -10,33 +24,69 @@ video { html, body { height: 100%; margin: 0; + background-color: #000; } -.video-js { +.video-js.vjs-peertube-skin { width: 100%; height: 100%; overflow: hidden; -} -.vjs-poster { - background-size: 100% auto; + .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 { +#error-block { + display: none; + + flex-direction: column; + align-content: center; + justify-content: center; + text-align: center; + background-color: #141313; + width: 100%; + height: 100%; color: white; - text-decoration: none; - font-size: 1.3em; - line-height: 2.20; - transition: all .4s; - position: relative; - right: 6px; -} + box-sizing: border-box; + font-family: sans-serif; + + #error-title { + font-size: 45px; + margin-bottom: 5px; + } -.vjs-peertube-link:hover { - text-shadow: 0 0 1em #fff; + #error-content { + font-size: 24px; + } } -// 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; + } + } } +