Skip to content

Commit 31d464c

Browse files
authored
feat: embed iframe more seamlessly
and make it easier for theme developers to modify questionpy questions
1 parent 836fda3 commit 31d464c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

styles.css

+12-10
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,28 @@
2525
display: none;
2626
}
2727

28-
/* Make question iframe seamless. */
29-
.que.questionpy .formulation {
30-
padding: 0;
31-
border: 0;
32-
border-radius: unset;
33-
margin: 0 0 1rem 0;
34-
background: unset;
35-
}
36-
3728
.que.questionpy iframe {
3829
border: 0;
3930
padding: 0;
4031
width: 100%;
41-
height: 500px;
32+
height: 0;
4233
display: block; /* Remove space that is reserved below inline elements for descender characters (y, q, g). */
4334
}
4435

4536
body.questionpy-iframe-body {
4637
height: auto; /* Make iframe body grow and shrink with page content. */
4738
overflow-y: hidden; /* Prevent margin-collapse across bottom boundary. */
39+
background-color: transparent;
40+
}
41+
42+
/* Make question iframe seamless. */
43+
body.questionpy-iframe-body .formulation {
44+
padding: 0;
45+
margin: 0;
46+
border: none;
47+
border-radius: unset;
48+
box-shadow: none;
49+
background-color: unset;
4850
}
4951

5052
body.questionpy-iframe-body .que .content {

0 commit comments

Comments
 (0)