Add iframe class 'aspect-178', for 16:9 iframes
This commit is contained in:
parent
84dde9a8d8
commit
092217d343
|
@ -97,10 +97,14 @@ iframe {
|
||||||
border: none;
|
border: none;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 56.25vw;
|
height: 100vh;
|
||||||
max-height: $large * 0.5625;
|
|
||||||
display: block;
|
display: block;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
|
|
||||||
|
&.aspect-178 {
|
||||||
|
height: 56.25vw;
|
||||||
|
max-height: $large * 0.5625;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue