Skip to content

Commit

Permalink
Test new video.js poster styling
Browse files Browse the repository at this point in the history
should figure out a fix for the !important styling overrides later
  • Loading branch information
DispatchCommit committed Apr 1, 2021
1 parent 10c084b commit a4f745f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions assets/style/stream-player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,26 @@ $accent-color: #13a9fe;
transition: .2s;
}
}

// Poster Improvements
.vjs-poster {
background-position: 50% 50% !important;
background-repeat: no-repeat !important;
background-size: contain !important;
cursor: pointer;
display: inline-block;
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 0;
opacity: 1;
transition: opacity .5s ease;
}

&.vjs-has-started .vjs-poster {
opacity: 0;
}
}


Expand Down

0 comments on commit a4f745f

Please sign in to comment.