MDL-57991 media: Prevent mediaplayer taking up too much space
[moodle.git] / filter / mediaplugin / styles.css
CommitLineData
fcd2cbaf
PS
1/**
2 * Filters
3 */
fab11235 4.mediaplugin {
bc33e9bd
DP
5 display: block;
6 margin-top: 5px;
7 margin-bottom: 5px;
8 text-align: center;
57bfb7c3 9}
fce0f1c2 10
57bfb7c3
DW
11.mediaplugin,
12.mediaplugin video {
fce0f1c2
DW
13 /* Make videos as wide as possible without being wider than their containers */
14 width: 100vw;
15 max-width: 100%;
57bfb7c3 16 height: auto;
8a802c90 17}
fcd2cbaf 18
fab11235
MG
19.mediaplugin > div {
20 margin: auto;
8a802c90 21}
8b6dcb04
MA
22
23/* Make media plugin behave properly in mod summaries and labels */
24.mod-indent-outer .mediaplugin {
25 display: table-cell;
26}