Skip to content

Commit

Permalink
Polish logos only style. (#35586)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Oct 14, 2021
1 parent d6fe07a commit 7a4531d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/block-library/src/social-link/editor.scss
Expand Up @@ -18,3 +18,7 @@
padding-left: calc((2/3) * 1em);
padding-right: calc((2/3) * 1em);
}

.wp-block-social-links.is-style-logos-only .wp-social-link button {
padding: 0;
}
4 changes: 4 additions & 0 deletions packages/block-library/src/social-links/editor.scss
Expand Up @@ -45,6 +45,10 @@
padding-left: calc((2/3) * 1em);
padding-right: calc((2/3) * 1em);
}

.is-style-logos-only & {
padding: 0;
}
}

.wp-social-link::before {
Expand Down
9 changes: 8 additions & 1 deletion packages/block-library/src/social-links/style.scss
Expand Up @@ -104,8 +104,15 @@
.wp-social-link {
background: none;

a {
padding: 0;
}

// Make these bigger.
padding: 4px;
svg {
width: 1.25em;
height: 1.25em;
}
}

@import "../social-link/socials-without-bg.scss";
Expand Down

0 comments on commit 7a4531d

Please sign in to comment.