Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing Quote block styling for different text alignments #13248

Merged
merged 10 commits into from
Feb 12, 2019
23 changes: 19 additions & 4 deletions packages/block-library/src/quote/theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.wp-block-quote {
border-left: 4px solid $black;
margin: 20px 0;
padding-left: 1em;

cite,
footer,
Expand All @@ -10,9 +12,22 @@
position: relative;
font-style: normal;
}
}

.wp-block-quote:not(.is-large):not(.is-style-large) {
border-left: 4px solid $black;
padding-left: 1em;
&[style*="text-align:right"],
&[style*="text-align: right"] {
border-left: none;
border-right: 4px solid $black;
padding-left: 0;
padding-right: 1em;
}

&[style*="text-align:center"],
&[style*="text-align: center"] {
border: none;
}

&.is-style-large,
&.is-large {
border: none;
}
}