X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fplayer%2Fcontrol-bar.scss;h=34470f3b15581af33731e78888109fc6995a7771;hb=f2a16d93b476aff16d5353e4d44350298ec7e01c;hp=56102d3fbf5fc5f07029a790544a3a11bfd74d57;hpb=60f013e1031871b7e0913c724f0bd2e569721c8e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/player/control-bar.scss b/client/src/sass/player/control-bar.scss index 56102d3fb..34470f3b1 100644 --- a/client/src/sass/player/control-bar.scss +++ b/client/src/sass/player/control-bar.scss @@ -4,10 +4,6 @@ @use './_player-variables' as *; .video-js.vjs-peertube-skin .vjs-control-bar { - &.control-bar-hidden { - display: none !important; - } - z-index: 100; height: $control-bar-height; @@ -16,6 +12,10 @@ text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); transition: visibility 0.3s, opacity 0.3s !important; + &.control-bar-hidden { + display: none !important; + } + > button:first-child { @include margin-left($first-control-bar-element-margin-left); } @@ -160,8 +160,8 @@ .vjs-peertube { @include margin-right(6px); + @include margin-left(auto); - width: 100%; line-height: $control-bar-height; text-align: end; overflow: hidden; @@ -358,11 +358,13 @@ .vjs-peertube-link { @include disable-outline; @include disable-default-a-behaviour; + @include ellipsis; text-decoration: none; line-height: $control-bar-height; font-weight: $font-semibold; padding: 0 5px; + max-width: 150px; } .vjs-theater-control { @@ -420,6 +422,10 @@ } @media screen and (max-width: $screen-width-570) { + .vjs-volume-control { + display: none; + } + .vjs-peertube { padding: 0 !important; @@ -428,6 +434,10 @@ } } + .vjs-peertube-link { + max-width: 100px; + } + &.vjs-live { .vjs-duration { display: none !important; @@ -440,7 +450,6 @@ } @media screen and (max-width: $screen-width-350) { - .vjs-volume-control, .vjs-next-video, .vjs-previous-video { display: none !important; @@ -458,6 +467,12 @@ @include margin-right($first-control-bar-element-margin-left-small-width); } + .vjs-play-control { + @include margin-left(0); + + width: 30px; + } + &.vjs-live { .vjs-current-time { display: none !important;