Skip to content

Commit

Permalink
Use negative margins if p.has-background is descendant of `.amp-wp-…
Browse files Browse the repository at this point in the history
…article-content`

- Update style.php in legacy theme
  • Loading branch information
thelovekesh committed Mar 21, 2023
1 parent 3eccb01 commit 40a5233
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions templates/style.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,13 @@
margin: 0 auto;
}

p.has-background {
.amp-wp-article-content > p.has-background {
margin-left: -2.375em;
margin-right: -2.375em;
margin-block-start: 0;
margin-block-end: 16px;
}

div.wp-block-group > p.has-background {
margin-left: auto;
margin-right: auto;
}

div.wp-block-group > p.has-background:last-child {
margin-block-end: 0;
}

/* Template Styles */

.amp-wp-content,
Expand Down

0 comments on commit 40a5233

Please sign in to comment.