Mercurial > hg > nginx-site
diff xsls/style.xsls @ 2261:b459b643bf5a
Added "video" element to include YouTube videos.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 29 Oct 2018 19:52:32 +0300 |
parents | 15b49619f7fc |
children | 80cc4e6d3d6d |
line wrap: on
line diff
--- a/xsls/style.xsls Thu Oct 25 20:47:15 2018 +0300 +++ b/xsls/style.xsls Mon Oct 29 19:52:32 2018 +0300 @@ -94,6 +94,16 @@ padding: 0; margin: 0; } sup { font-size: 50%; } + .video { position: relative; + padding-bottom: 56.25%; + overflow: hidden; } + .video iframe, + .video object, + .video embed { position: absolute; + top:0; + left:0; + width:100%; + height:100%; } ') } X:if "$lang = 'he'" {