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;
|
||||
|
||||
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 {
|
||||
|
|
|
@ -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