From 7743a7018e74652490310ef9fa3998967968b6b0 Mon Sep 17 00:00:00 2001 From: Damon Cook Date: Tue, 8 Jan 2019 10:55:32 -0500 Subject: [PATCH 1/5] adjust borders for Quote block text-align --- packages/block-library/src/quote/theme.scss | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/quote/theme.scss b/packages/block-library/src/quote/theme.scss index 8fbe1ef7b3b210..40c0bf5046c916 100644 --- a/packages/block-library/src/quote/theme.scss +++ b/packages/block-library/src/quote/theme.scss @@ -1,5 +1,7 @@ .wp-block-quote { + border-left: 4px solid $black; margin: 20px 0; + padding-left: 1em; cite, footer, @@ -10,9 +12,20 @@ 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"] { + border-left: none; + border-right: 4px solid $black; + padding-left: 0; + padding-right: 1em; + } + + &[style="text-align:center"] { + border: none; + } + + &.is-style-large, + &.is-large { + border: none; + } } From a41eaf92230104ddc4398a72e28bd7a7048811f6 Mon Sep 17 00:00:00 2001 From: Damon Cook Date: Mon, 11 Feb 2019 16:00:44 -0500 Subject: [PATCH 2/5] =?UTF-8?q?update=20attribute=20selector=20[style*=3D?= =?UTF-8?q?=E2=80=9Ctext-align:=20right=E2=80=9D]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/block-library/src/quote/theme.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/quote/theme.scss b/packages/block-library/src/quote/theme.scss index 40c0bf5046c916..ec3ff2619491f0 100644 --- a/packages/block-library/src/quote/theme.scss +++ b/packages/block-library/src/quote/theme.scss @@ -13,7 +13,7 @@ font-style: normal; } - &[style="text-align:right"] { + &[style*="text-align: right"] { border-left: none; border-right: 4px solid $black; padding-left: 0; From 0611783d4749a9aaae9fa356dc9be1d074c047b0 Mon Sep 17 00:00:00 2001 From: Damon Cook Date: Mon, 11 Feb 2019 17:20:30 -0500 Subject: [PATCH 3/5] add [style*="text-align:right"] styling for Quote --- packages/block-library/src/quote/theme.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/quote/theme.scss b/packages/block-library/src/quote/theme.scss index ec3ff2619491f0..47ef2a64825f94 100644 --- a/packages/block-library/src/quote/theme.scss +++ b/packages/block-library/src/quote/theme.scss @@ -13,6 +13,7 @@ font-style: normal; } + &[style*="text-align:right"], &[style*="text-align: right"] { border-left: none; border-right: 4px solid $black; From f8cf45b0b46ec022b027249490b9650cab3592bf Mon Sep 17 00:00:00 2001 From: Damon Cook Date: Tue, 12 Feb 2019 09:43:43 -0500 Subject: [PATCH 4/5] =?UTF-8?q?add=20asterisk=20to=20[style*=3D=E2=80=9Cte?= =?UTF-8?q?xt-align:center=E2=80=9D]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/block-library/src/quote/theme.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/quote/theme.scss b/packages/block-library/src/quote/theme.scss index 47ef2a64825f94..1f545844f7b5b0 100644 --- a/packages/block-library/src/quote/theme.scss +++ b/packages/block-library/src/quote/theme.scss @@ -21,7 +21,7 @@ padding-right: 1em; } - &[style="text-align:center"] { + &[style*="text-align:center"] { border: none; } From 9682f1102ab014089951f36938184b450a23fc8e Mon Sep 17 00:00:00 2001 From: Damon Cook Date: Tue, 12 Feb 2019 09:44:36 -0500 Subject: [PATCH 5/5] add [style*="text-align: center"] override as well --- packages/block-library/src/quote/theme.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/quote/theme.scss b/packages/block-library/src/quote/theme.scss index 1f545844f7b5b0..3657883ec833f6 100644 --- a/packages/block-library/src/quote/theme.scss +++ b/packages/block-library/src/quote/theme.scss @@ -21,7 +21,8 @@ padding-right: 1em; } - &[style*="text-align:center"] { + &[style*="text-align:center"], + &[style*="text-align: center"] { border: none; }