iframe blocktype toegevoegd [#00033]
This commit is contained in:
1 parent
8616cb3d56
commit
58ea5c0c85
2 files changed
+22
No files matched your search
Vendored
+5
@@ -1669,4 +1669,9 @@ a, a:hover, a:active {
|
|||||||
padding: 0.4rem;
|
padding: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.article-iframe {
|
||||||
|
width: 100%;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
}
|
||||||
|
|
||||||
/*# sourceMappingURL=style.css.map */
|
/*# sourceMappingURL=style.css.map */
|
||||||
@@ -140,5 +140,22 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@elseif($block->type == 'iframe')
|
||||||
|
<iframe src="{{ $block->url }}" class="article-iframe" id="{{ $id = uniqid('iframe_') }}"></iframe>
|
||||||
|
<style>
|
||||||
|
@if(isset($block->ratio))
|
||||||
|
#{{ $id }}.article-iframe {
|
||||||
|
aspect-ratio: {{ str_replace(":", "/", $block->ratio) }};
|
||||||
|
}
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if(isset($block->ratioMobile))
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#{{ $id }}.article-iframe {
|
||||||
|
aspect-ratio: {{ str_replace(":", "/", $block->ratioMobile) }};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@endif
|
||||||
|
</style>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
Reference in new issue
Block a user