Skip to content

Commit

Permalink
Fix margin styles for gallery and social. (#17694)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines authored Oct 3, 2019
1 parent 81d09c4 commit 64439e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
}
}

figure.wp-block-gallery {
display: block;
margin: 0;
}

// need to override default editor ul styles
.blocks-gallery-grid.blocks-gallery-grid {
margin-bottom: 0;
Expand Down
7 changes: 2 additions & 5 deletions packages/block-library/src/gallery/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
flex-wrap: wrap;
list-style-type: none;
padding: 0;
margin-bottom: 0;
// Some themes give all <ul> default margin instead of padding.
margin: 0;

.blocks-gallery-image,
.blocks-gallery-item {
Expand Down Expand Up @@ -143,7 +144,3 @@
}
}

figure.wp-block-gallery {
display: block;
margin: 0;
}
2 changes: 2 additions & 0 deletions packages/block-library/src/social-links/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
justify-content: flex-start;
padding-left: 0;
padding-right: 0;
// Some themes give all <ul> default margin instead of padding.
margin-left: 0;
}

.wp-social-link {
Expand Down

0 comments on commit 64439e6

Please sign in to comment.