UNPKG

556 BSCSSView Raw
1.wp-block-audio {
2 // Supply caption styles to audio blocks, even if the theme hasn't opted in.
3 // Reason being: the new markup, <figcaptions>, are not likely to be styled in the majority of existing themes,
4 // so we supply the styles so as to not appear broken or unstyled in those themes.
5 figcaption {
6 @include caption-style();
7 }
8
9 // Show full-width when not aligned.
10 audio {
11 width: 100%;
12
13 // The browser natively applies a 300px width to the audio block.
14 // We restore this as a min-width instead, for alignments.
15 min-width: 300px;
16 }
17}