Add iframe class 'aspect-178', for 16:9 iframes

This commit is contained in:
Luca 2020-12-03 19:26:58 +01:00
parent 84dde9a8d8
commit 092217d343
2 changed files with 7 additions and 3 deletions

View File

@ -97,10 +97,14 @@ iframe {
border: none;
width: 100%;
height: 56.25vw;
max-height: $large * 0.5625;
height: 100vh;
display: block;
margin: 1rem 0;
&.aspect-178 {
height: 56.25vw;
max-height: $large * 0.5625;
}
}
.nav {

View File

@ -1 +1 @@
<iframe src="{{ .Get "src" }}" title="{{ .Get "title" }}" allowfullscreen="true"></iframe>
<iframe{{ with .Get "class" }} class="{{ . }}"{{ end }} src="{{ .Get "src" }}" title="{{ .Get "title" }}" allowfullscreen="true"></iframe>