Audio style fix
This commit is contained in:
@ -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%;
|
||||
|
7
src/sass/components/audio.scss
Normal file
7
src/sass/components/audio.scss
Normal file
@ -0,0 +1,7 @@
|
||||
// --------------------------------------------------------------
|
||||
// Audio styles
|
||||
// --------------------------------------------------------------
|
||||
|
||||
.plyr--audio {
|
||||
display: block;
|
||||
}
|
@ -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
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
@import 'base';
|
||||
|
||||
@import 'components/audio';
|
||||
@import 'components/badges';
|
||||
@import 'components/captions';
|
||||
@import 'components/control';
|
||||
|
Reference in New Issue
Block a user