From: Chocobozzz Date: Wed, 13 Jun 2018 14:29:23 +0000 (+0200) Subject: Adapt theather icon depending on the player state X-Git-Tag: v1.0.0-beta.9~47 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4555697f216e894e5651d8f6d3d971e7d0c17d17;p=oweals%2Fpeertube.git Adapt theather icon depending on the player state --- diff --git a/client/src/sass/player/peertube-skin.scss b/client/src/sass/player/peertube-skin.scss index e60a854d4..75c6a0e5c 100644 --- a/client/src/sass/player/peertube-skin.scss +++ b/client/src/sass/player/peertube-skin.scss @@ -10,6 +10,7 @@ } .video-js.vjs-peertube-skin { + font-size: $font-size; color: $primary-foreground-color; @@ -402,6 +403,7 @@ margin-right: 1px; .vjs-icon-placeholder { + transition: transform 0.2s ease; display: inline-block; width: 22px; height: 22px; @@ -536,6 +538,24 @@ width: 33px; } } + + // Theater mode is enabled + &.vjs-theater-enabled { + .vjs-theater-control { + width: 30px; + + .vjs-icon-placeholder { + transform: scale(0.8); + } + } + } + + // On fullscreen, hide theater control + &.vjs-fullscreen { + .vjs-theater-control { + display: none; + } + } } // Play/pause animations diff --git a/client/src/sass/player/settings-menu.scss b/client/src/sass/player/settings-menu.scss index 6c213c5d1..f95123f52 100644 --- a/client/src/sass/player/settings-menu.scss +++ b/client/src/sass/player/settings-menu.scss @@ -13,7 +13,7 @@ $setting-transition-easing: ease-out; @include disable-outline; cursor: pointer; - width: 37px; + width: 33px; .vjs-icon-placeholder { display: inline-block;