Skip to content

Commit f2ab275

Browse files
authored
Merge pull request #9 from kitconcept/center-iframe
Center iframe
2 parents c2123df + dff07ea commit f2ab275

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Center iframe in page layout. @danalvrz

packages/volto-iframe-block/src/theme/main.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
}
3333
}
3434

35-
.block.iframe iframe {
36-
width: 100%;
35+
.block.iframe {
36+
figure {
37+
margin-right: auto;
38+
margin-left: auto;
39+
}
40+
iframe {
41+
width: 100%;
42+
}
3743
}

0 commit comments

Comments
 (0)