فهرست منبع

alves color annotations

Maggie Cabrera 4 سال پیش
والد
کامیت
e6f177905e
2فایلهای تغییر یافته به همراه21 افزوده شده و 0 حذف شده
  1. 8 0
      alves/inc/wpcom-colors.php
  2. 13 0
      alves/inc/wpcom-editor-colors.php

+ 8 - 0
alves/inc/wpcom-colors.php

@@ -47,6 +47,7 @@ add_color_rule( 'bg', '#ffffff', array(
 			.wp-block-file__button,
 			.wp-block-file__button:focus,
 			.wp-block-file__button:hover,
+			.wp-block-search .wp-block-search__button,
 			.wp-block-gallery .blocks-gallery-image figcaption,
 			.wp-block-gallery .blocks-gallery-item figcaption,
 			.wp-block-pullquote.is-style-solid-color,
@@ -116,6 +117,9 @@ add_color_rule( 'link', '#3E7D98', array(
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
 			button,
 			button[data-load-more-btn],
+			.wp-block-search .wp-block-search__button,
+			.wp-block-search .wp-block-search__button:focus,
+			.wp-block-search .wp-block-search__button:hover,
 			input[type="submit"]', 'background-color' ),
 
 	// Text-color
@@ -147,6 +151,7 @@ add_color_rule( 'link', '#3E7D98', array(
 			input[type="time"],
 			input[type="url"],
 			input[type="week"],
+			.wp-block-search .wp-block-search__input:focus,
 			select,
 			textarea', 'border-color' ),
 
@@ -233,6 +238,9 @@ add_color_rule( 'txt', '#394d55', array(
 			.wp-block-video figcaption,
 			figcaption', 'color' ),
 
+	// Border-color with less opacity (dim)
+	array( '.wp-block-search .wp-block-search__input', 'border-color', 0.8 ),
+
 	// Background-color
 	array( '.wp-block-cover.has-background-dim,
 			.wp-block-cover-image.has-background-dim,

+ 13 - 0
alves/inc/wpcom-editor-colors.php

@@ -37,6 +37,7 @@ add_editor_color_rule( 'bg', '#ffffff', array(
 			#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-search .wp-block-search__button,
 			#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
 			#editor .editor-styles-wrapper .wp-block-cover.has-background-dim a,
 			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
@@ -94,6 +95,9 @@ add_editor_color_rule( 'link', '#3E7D98', array(
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation .button,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button,
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background),
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button:focus,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button:hover,
 			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
 
 	// Text-color
@@ -104,6 +108,11 @@ add_editor_color_rule( 'link', '#3E7D98', array(
 			#editor .editor-styles-wrapper a,
 			#editor .editor-styles-wrapper hr.is-style-dots:before', 'color' ),
 
+	
+	// Border-color (forms)
+	array( '#editor .editor-styles-wrapper .wp-block-search .wp-block-search__input:focus,
+			textarea:focus', 'border-color' ),
+
 	// Border color top
 	array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color' ),
 
@@ -155,6 +164,10 @@ add_editor_color_rule( 'txt', '#394d55', array(
 			#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:focus,
 			#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link.has-focus', 'color' ),
 
+	// Border-color with less opacity (dim)
+	array( '#editor .editor-styles-wrapper .wp-block-code,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__input', 'border-color', 0.8 ),
+
 	// Background-color
 	array( '#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
 			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,