Adapt theather icon depending on the player state

This commit is contained in:
Chocobozzz 2018-06-13 16:29:23 +02:00
parent db5529f548
commit 4555697f21
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 21 additions and 1 deletions

View File

@ -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

View File

@ -13,7 +13,7 @@ $setting-transition-easing: ease-out;
@include disable-outline;
cursor: pointer;
width: 37px;
width: 33px;
.vjs-icon-placeholder {
display: inline-block;