瀏覽代碼

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

Independent Publisher 2: Update quote block border styles
Laurel 6 年之前
父節點
當前提交
6d14598c63
共有 2 個文件被更改,包括 44 次插入7 次删除
  1. 26 6
      independent-publisher-2/css/blocks.css
  2. 18 1
      independent-publisher-2/css/editor-blocks.css

+ 26 - 6
independent-publisher-2/css/blocks.css

@@ -97,17 +97,37 @@ p.has-drop-cap:not(:focus)::first-letter {
 
 
 /* Quote */
 /* Quote */
 
 
-.wp-block-quote.is-large,
-.wp-block-quote.is-style-large {
-	border: 0;
-	padding: 0;
-}
-
 .wp-block-quote.is-large cite,
 .wp-block-quote.is-large cite,
 .wp-block-quote.is-style-large cite {
 .wp-block-quote.is-style-large cite {
 	text-align: inherit;
 	text-align: inherit;
 }
 }
 
 
+.rtl .wp-block-quote,
+.wp-block-quote[style*="text-align:right"] {
+	margin-left: .875em;
+	margin-right: -1.9em;
+	padding-left: 0;
+	padding-right: 1.75em;
+	border-width: 0 3px 0 0;
+}
+
+.rtl .wp-block-quote[style*="text-align:left"] {
+	margin-left: -1.9em;
+	margin-right: .875em;
+	padding-left: 1.75em;
+	padding-right: 0;
+	border-width: 0 0 0 3px;
+}
+
+.wp-block-quote.is-large,
+.wp-block-quote.is-style-large,
+.wp-block-quote[style*="text-align:center"] {
+	border: 0;
+	margin-left: 0;
+	margin-right: 0;
+	padding: 0;
+}
+
 /* Audio */
 /* Audio */
 
 
 .wp-block-audio {
 .wp-block-audio {

+ 18 - 1
independent-publisher-2/css/editor-blocks.css

@@ -290,12 +290,29 @@ p.has-drop-cap:not(:focus)::first-letter {
 	margin: 1.75em 0;
 	margin: 1.75em 0;
 }
 }
 
 
-.wp-block-quote:not(.is-large):not(.is-style-large) {
+.wp-block-quote:not(.is-large):not(.is-style-large),
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: left"],
+.rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:left"] {
 	border: solid #0087be;
 	border: solid #0087be;
 	border-width: 0 0 0 3px;
 	border-width: 0 0 0 3px;
 	padding: 0 0 0 1.75em;
 	padding: 0 0 0 1.75em;
 }
 }
 
 
+.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: center"],
+.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:center"] {
+	border: 0;
+	margin-left: 0;
+	margin-right: 0;
+	padding-left: 0;
+	padding-right: 0;
+}
+
+.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: right"],
+.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:right"] {
+	border-width: 0 3px 0 0;
+	padding: 0 1.75em 0 0;
+}
+
 .wp-block-quote__citation {
 .wp-block-quote__citation {
 	color: inherit;
 	color: inherit;
 	font-size: .875em;
 	font-size: .875em;