Audio style fix

This commit is contained in:
Sam Potts
2020-01-26 22:05:21 +00:00
parent b6da2702a2
commit f8a28b632c
5 changed files with 12 additions and 7 deletions

View File

@ -18,12 +18,12 @@
position: relative;
text-shadow: none;
transition: box-shadow 0.3s ease;
z-index: 0; // Force any border radius
// Media elements
video,
audio,
iframe {
border-radius: inherit;
display: block;
height: 100%;
width: 100%;

View File

@ -0,0 +1,7 @@
// --------------------------------------------------------------
// Audio styles
// --------------------------------------------------------------
.plyr--audio {
display: block;
}

View File

@ -14,14 +14,10 @@
.plyr__video-wrapper {
background: #000;
border-radius: inherit;
height: 100%;
margin: auto;
overflow: hidden;
position: relative;
width: 100%;
// Require z-index to force border-radius
z-index: 0;
}
// Default to 16:9 ratio but this is set by JavaScript based on config

View File

@ -25,6 +25,7 @@
@import 'base';
@import 'components/audio';
@import 'components/badges';
@import 'components/captions';
@import 'components/control';