From 4e68c8cd21256f4ab4e0120fbbc64125c55ce939 Mon Sep 17 00:00:00 2001 From: Laurel Fulford Date: Fri, 15 Feb 2019 15:17:14 -0800 Subject: [PATCH] Gazette: Align quote icon to right when text is right aligned. See #594. --- gazette/css/blocks.css | 8 ++++++++ gazette/css/editor-blocks.css | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/gazette/css/blocks.css b/gazette/css/blocks.css index 96edc90714..bbb0c71511 100644 --- a/gazette/css/blocks.css +++ b/gazette/css/blocks.css @@ -49,6 +49,14 @@ p.has-drop-cap:not(:focus)::first-letter { /* Quote */ +.wp-block-quote[style*="text-align:right"]::before { + float: right; +} + +.rtl .wp-block-quote[style*="text-align:left"]::before { + float: left; +} + /* Audio */ .wp-block-audio { diff --git a/gazette/css/editor-blocks.css b/gazette/css/editor-blocks.css index 657dbcc1c5..28d594d219 100644 --- a/gazette/css/editor-blocks.css +++ b/gazette/css/editor-blocks.css @@ -300,6 +300,11 @@ p.has-drop-cap:not(:focus)::first-letter { width: 30px; } +.wp-block-quote[style*="text-align:right"]:before, +.wp-block-quote[style*="text-align: right"]:before { + float: right; +} + .wp-block-quote .wp-block-quote__citation { color: #555; font-family: Lato, sans-serif; @@ -318,6 +323,11 @@ p.has-drop-cap:not(:focus)::first-letter { float: right; } +.rtl .wp-block-quote[style*="text-align:left"]:before, +.rtl .wp-block-quote[style*="text-align: left"]:before { + float: left; +} + /* Cover */