fix: do not target other iframes besides video embeds

This commit is contained in:
Ze Bateira
2021-04-16 14:56:50 +01:00
parent 542c44642f
commit 9bc7b75c82
+6 -1
View File
@@ -79,13 +79,18 @@ export default {
.blog > iframe {
@apply mx-auto;
}
.blog > iframe[src*='youtube'],
.blog > iframe[src*='vimeo'] {
@apply max-w-full;
height: auto;
aspect-ratio: 16 / 9;
}
@supports not (aspect-ratio: 1 / 1) {
.blog > iframe {
.blog > iframe[src*='youtube'],
.blog > iframe[src*='vimeo'] {
@apply h-52;
@apply sm:h-80;
}