Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
Blockbase: remove margin-top from first descendants of columns and gr…
Browse files Browse the repository at this point in the history
…oups (#4436)

* Refactor text styles and add padding to groups w border.

* move group and column margin resets to blockbase

* rebuild

Co-authored-by: Ben Dwyer <[email protected]>
  • Loading branch information
jffng and scruffian authored Aug 26, 2021
1 parent 49d382f commit 45bb8e3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 4 additions & 0 deletions blockbase/assets/ponyfill.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion blockbase/sass/base/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@
p {
margin-top: var(--wp--custom--margin--vertical);
margin-bottom: var(--wp--custom--margin--vertical);
}
}

.wp-block-column, .wp-block-group {
:first-child {
margin-top: 0;
}
}
8 changes: 8 additions & 0 deletions skatepark/assets/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions skatepark/sass/base/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@
::selection {
color: var(--wp--preset--color--background);
}

p {
margin-top: calc( 0.5 * var(--wp--custom--margin--vertical) );
margin-bottom: calc( 0.5 * var(--wp--custom--margin--vertical) );
}

0 comments on commit 45bb8e3

Please sign in to comment.