Skip to content

Commit bace6c5

Browse files
Fix: Make iframes responsive below 650px using global CSS media query (#462)
* Style: add custom.css and update docusaurus.config.js for responsive iframes * removed !important from iframe css * format css file --------- Co-authored-by: Nihal <65150640+Nihal4777@users.noreply.github.com>
1 parent 3abb82f commit bace6c5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const config = {
3535
customCss: [
3636
require.resolve('./src/css/theme.css'),
3737
require.resolve('./src/css/darkTheme.css'),
38+
require.resolve('./src/css/custom.css'),
3839
],
3940
},
4041
},

src/css/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* === Custom global styles for CircuitVerse Docs === */
2+
@media (max-width: 650px) {
3+
iframe {
4+
width: 100%;
5+
height: auto;
6+
aspect-ratio: 4 / 3;
7+
}
8+
}

0 commit comments

Comments
 (0)