Mercurial > hg > nginx-site
changeset 2262:086e307d8b28
Regenerated.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 29 Oct 2018 19:52:32 +0300 |
parents | b459b643bf5a |
children | 1bec6f727a84 |
files | xslt/content.xslt xslt/style.xslt |
diffstat | 2 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/xslt/content.xslt Mon Oct 29 19:52:32 2018 +0300 +++ b/xslt/content.xslt Mon Oct 29 19:52:32 2018 +0300 @@ -179,5 +179,10 @@ <xsl:template match="nobr"> <nobr> <xsl:apply-templates/> </nobr> </xsl:template> <xsl:template match="br"> <br/> </xsl:template> - + <xsl:template match="video[@id]"> + <div class="video"> + <iframe type="text/html" src="https://www.youtube.com/embed/{@id}?modestbranding=1&rel=0&showinfo=0&color=white" frameborder="0" allowfullscreen="1"> + </iframe> + </div> + </xsl:template> </xsl:stylesheet>
--- a/xslt/style.xslt Mon Oct 29 19:52:32 2018 +0300 +++ b/xslt/style.xslt Mon Oct 29 19:52:32 2018 +0300 @@ -95,6 +95,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%; } ') "/> <xsl:if test="$lang = 'he'">