mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-08-07 17:32:55 +02:00
fix: do not target other iframes besides video embeds
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user