mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Added three videos to documentation.
Created shortcode for YouTube videos and made the videos responsive in the stylesheet.
This commit is contained in:
20
docs/static/css/style.css
vendored
20
docs/static/css/style.css
vendored
@@ -531,3 +531,23 @@ i.freebsd-19px:before {
|
||||
content: url(/img/freebsd-19px.svg);
|
||||
vertical-align: -7%;
|
||||
}
|
||||
|
||||
/* Responsive videos */
|
||||
.video-container {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%; /* 16:9 */
|
||||
padding-top: 30px;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.video-container iframe,
|
||||
.video-container object,
|
||||
.video-container embed {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
Reference in New Issue
Block a user