X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fvideo-js-custom.scss;h=25362c5af7cadac679df76fa563efd0901ad853c;hb=24a8e782d8b2adb208d9cfb8659450395e2e2a77;hp=1200c07a56a7e6a4fd1bccaa0faaf3da2161a112;hpb=be6a4802326b1748e85c0d6fdadf06e70e6ecbb0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/video-js-custom.scss b/client/src/sass/video-js-custom.scss index 1200c07a5..25362c5af 100644 --- a/client/src/sass/video-js-custom.scss +++ b/client/src/sass/video-js-custom.scss @@ -23,15 +23,12 @@ $control-bar-height: 34px; } .vjs-big-play-button { + outline: 0; font-size: 8em; $big-play-width: 3em; $big-play-height: 1.5em; - line-height: $big-play-height; - height: $big-play-height; - width: $big-play-width; - border: 0; border-radius: 0.3em; @@ -39,10 +36,7 @@ $control-bar-height: 34px; top: 50%; margin-left: -($big-play-width / 2); margin-top: -($big-play-height / 2); - } - - &:hover .vjs-big-play-button { - background-color: transparent; + background-color: transparent !important; } .vjs-control-bar, @@ -138,6 +132,14 @@ $control-bar-height: 34px; text-align: right; padding-right: 60px; + .vjs-webtorrent-displayed { + display: block; + } + + .vjs-webtorrent-hidden { + display: none; + } + .download-speed-number, .upload-speed-number, .peers-number { font-weight: $font-semibold; } @@ -303,22 +305,24 @@ $control-bar-height: 34px; } } } + + @media screen and (max-width: 450px) { + .vjs-webtorrent-displayed { + display: none !important; + } + } } // Thanks: https://projects.lukehaas.me/css-loaders/ .vjs-loading-spinner { - margin: 0 !important; - //position: absolute; - // 15px is the nav bar height - top: calc(50% - 15px); left: 50%; font-size: 10px; - position: relative; text-indent: -9999em; border: 0.7em solid rgba(255, 255, 255, 0.2); border-left-color: #ffffff; transform: translateZ(0); animation: spinner 1.4s infinite linear; + overflow: hidden; &:before { animation: none !important; @@ -340,3 +344,4 @@ $control-bar-height: 34px; } } } +