Skip to content

Commit

Permalink
feat: add negative margin to last block in entry-content when fullwid…
Browse files Browse the repository at this point in the history
…th and background (#204)
  • Loading branch information
thomasguillot authored Jun 25, 2024
1 parent 7395065 commit 1119cad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions src/scss/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,13 @@ ul, ol {
// Content
.post-image {
&:empty {
&::before {
background: var( --wp--preset--color--base-3 );
content: "";
display: block;
height: 1px;
width: 100%;
margin: 0 auto;
max-width: var( --wp--style--global--wide-size );
}
display: none;
}
}

.entry-content {
> :last-child:is( .alignfull ):is( .has-background ) {
margin-bottom: calc( -1 * var( --wp--preset--spacing--80 ) ) !important;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/scss/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ input[type='radio'] {
@include mixins.radio;
}

button,
button:not( .components-button ),
input[type='submit'] {
background: var( --wp--preset--color--accent );
border: 0;
Expand Down

0 comments on commit 1119cad

Please sign in to comment.