Skip to content

Commit

Permalink
Remove excess padding from Card blocks with basic content emphasis
Browse files Browse the repository at this point in the history
  • Loading branch information
razwan committed Apr 14, 2020
1 parent 6a2c5b8 commit bf4e828
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/css/frontend-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/frontend.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/blocks/card/scss/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
}
}

.novablocks-cards-collection:not(.content-is-moderate):not(.content-is-highlighted) {
.novablocks-block__content {
padding: calc( 0.5 * var(--novablocks-block-content-padding) );
}
}

.novablocks-card__media-wrap[class] {
margin: calc( -0.5 * var(--novablocks-block-content-padding) );
margin-bottom: calc( 0.5 * var(--novablocks-spacing) );
Expand Down

0 comments on commit bf4e828

Please sign in to comment.