Update style.styl, fix video size (#441)
parent
d674e6b61c
commit
1a31f4997d
|
@ -416,6 +416,23 @@ figure.highlight
|
||||||
&:hover .copy
|
&:hover .copy
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
|
/* ---------------------------------
|
||||||
|
* Fix Video
|
||||||
|
* --------------------------------- */
|
||||||
|
.video-container {
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 56.25%;
|
||||||
|
padding-top: 25px;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
.video-container iframe {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
/* ---------------------------------
|
/* ---------------------------------
|
||||||
* Fix Gist Snippet
|
* Fix Gist Snippet
|
||||||
* --------------------------------- */
|
* --------------------------------- */
|
||||||
|
|
Loading…
Reference in New Issue