Преглед изворни кода

Merge pull request #621 from Automattic/fixes/594-quote-block-border

Libretto:  Align quote icon to right when text is right aligned
Laurel пре 6 година
родитељ
комит
9ae25e8988
2 измењених фајлова са 18 додато и 2 уклоњено
  1. 12 0
      libretto/css/blocks.css
  2. 6 2
      libretto/css/editor-blocks.css

+ 12 - 0
libretto/css/blocks.css

@@ -118,6 +118,18 @@ p.has-drop-cap:not(:focus)::first-letter {
 	text-align: right;
 }
 
+.wp-block-quote[style="text-align:right"]:before {
+	content: "\201D";
+	left: auto;
+	right: -35px;
+}
+
+.rtl .wp-block-quote[style="text-align:left"]:before {
+	content: "\201C";
+	left: -35px;
+	right: auto;
+}
+
 /* Audio */
 
 .wp-block-audio {

+ 6 - 2
libretto/css/editor-blocks.css

@@ -529,7 +529,9 @@ See: https://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari
 	padding: 0;
 }
 
-.editor-block-list__block .wp-block-quote:before {
+.wp-block-quote:before,
+.rtl .wp-block-quote[style*="text-align:left"]:before,
+.rtl .wp-block-quote[style*="text-align: left"]:before {
 	color: #ebe7e1;
 	content: "\201C";
 	display: block;
@@ -542,7 +544,9 @@ See: https://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari
 	z-index: -1;
 }
 
-.rtl .editor-block-list__block .wp-block-quote:before {
+.rtl .wp-block-quote:before,
+.wp-block-quote[style*="text-align:right"]:before,
+.wp-block-quote[style*="text-align: right"]:before {
 	content: "\201D";
 	left: auto;
 	right: -35px;