Better videos => automatic resize
This commit is contained in:
parent
4014e7841b
commit
5e68068c7f
@ -1,13 +1,17 @@
|
|||||||
/* Center Youtube Videos */
|
// Youtube Videos
|
||||||
|
div.yt {
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 56.25%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */
|
||||||
iframe {
|
iframe {
|
||||||
display: block;
|
position: absolute;
|
||||||
margin: auto;
|
top: 0;
|
||||||
max-width: 100%;
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Video */
|
// Other Videos
|
||||||
|
|
||||||
video {
|
video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user