소스 검색

Brompton: Cleanup editor border-colors and dim text color on Cover block.

Allan Cole 5 년 전
부모
커밋
5cedaa4f13
2개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 0
      brompton/inc/wpcom-colors.php
  2. 5 4
      brompton/inc/wpcom-editor-colors.php

+ 4 - 0
brompton/inc/wpcom-colors.php

@@ -135,6 +135,7 @@ add_color_rule( 'bg', '#E8E4DD', array(
 			.wp-block-pullquote', 'border-top-color', '-1' ),
 	// Color
 	array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
+
 	// Background-color
 	array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,
 			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:focus,
@@ -337,6 +338,9 @@ add_color_rule( 'txt', '#252E36', array(
 			input[type="week"]:focus,
 			textarea:focus', 'border-color' ),
 
+	// Border-top-color
+	array( '.wp-block-pullquote', 'border-top-color' ),
+
 	// Border-bottom-color
 	array( '.comment-list,
 			.wp-block-pullquote,

+ 5 - 4
brompton/inc/wpcom-editor-colors.php

@@ -21,19 +21,22 @@ add_editor_color_rule( 'bg', '#E8E4DD', array(
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-button) .wp-block-button__link:focus,
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-button) .wp-block-button__link:hover,
 			#editor .editor-styles-wrapper .wp-block-cover,
-			#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
+			#editor .editor-styles-wrapper .wp-block-cover.has-background-dim:not([class*="background-background-color"]),
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .block-editor-block-list__block,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
 			#editor .editor-styles-wrapper .wp-block-cover-image,
-			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
+			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim:not([class*="background-background-color"]),
 			#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .block-editor-block-list__block,
 			#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
 			#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
 			#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
 			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
 
+	// Color
+	array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
+
 	// Text-color
 	array( '#editor .editor-styles-wrapper', 'background-color' ),
 
@@ -145,8 +148,6 @@ add_editor_color_rule( 'txt', '#252E36', array(
 			#editor .editor-styles-wrapper .wp-block-pullquote,
 			#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
 			#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
-			#editor .editor-styles-wrapper .wp-block-separator.is-style-dots:before, 
-			#editor .editor-styles-wrapper hr.is-style-dots:before,
 			#editor .editor-styles-wrapper a:hover,
 			#editor .editor-styles-wrapper', 'color' ),