Skip to content

Commit

Permalink
Fix seletor for iframe and remove margins for sake of AMP legacy Read…
Browse files Browse the repository at this point in the history
…er mode
  • Loading branch information
westonruter committed Sep 24, 2020
1 parent f0b54e1 commit 1652d91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extensions/blocks/opentable/view.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.wp-block-jetpack-opentable {
position: relative; /* For sake of amp-iframe with layout=fill */

.wp-block-jetpack-opentable iframe {
background: transparent; /* Override AMP Reader mode gray background for iframes in legacy post templates */
> iframe {
background: transparent; /* Override AMP Reader mode gray background for iframes in legacy post templates. */
margin: 0; /* Override margins in AMP legacy Reader mode. */
}

&.aligncenter iframe {
Expand Down

0 comments on commit 1652d91

Please sign in to comment.