Update style.styl, fix video size (#441)

pull/445/head
Liyang Zhang 2019-03-30 12:41:29 +08:00 committed by Ruipeng Zhang
parent d674e6b61c
commit 1a31f4997d
1 changed files with 17 additions and 0 deletions

View File

@ -416,6 +416,23 @@ figure.highlight
&:hover .copy
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
* --------------------------------- */