fix: use aspect ratio to correctly size iframes

This commit is contained in:
Ze Bateira
2021-04-15 11:56:50 +01:00
parent eb97775dbd
commit 542c44642f
+14
View File
@@ -76,4 +76,18 @@ export default {
padding-bottom: 0.5rem;
border-bottom: 2px solid #d1d1d663;
}
.blog > iframe {
@apply mx-auto;
@apply max-w-full;
height: auto;
aspect-ratio: 16 / 9;
}
@supports not (aspect-ratio: 1 / 1) {
.blog > iframe {
@apply h-52;
@apply sm:h-80;
}
}
</style>