mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-08-10 10:52:45 +02:00
fix: use aspect ratio to correctly size iframes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user