Browse Source

Add color annotations for the search block to Rivington

Ben Dwyer 4 years ago
parent
commit
87dbce487c

+ 239 - 137
rivington/inc/wpcom-colors.php

@@ -3,10 +3,14 @@
 
 // Background Color
 // $config-global--color-background-default
-add_color_rule( 'bg', '#060f29', array(
+add_color_rule(
+	'bg',
+	'#060f29',
+	array(
 
-	// Background-color
-	array( '.screen-reader-text:focus,
+		// Background-color
+		array(
+			'.screen-reader-text:focus,
 			body,
 			body .widget_eu_cookie_law_widget #eu-cookie-law,
 			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
@@ -25,11 +29,14 @@ add_color_rule( 'bg', '#060f29', array(
 			.site-header .main-navigation > div > ul > li:hover li:hover > a,
 			.site-header .main-navigation > div > ul > li .sub-menu a,
 			.main-navigation > div > ul > li.current-menu-item li.current-menu-item > a,
-			.mobile-nav-side .site-header #site-navigation.main-navigation .woocommerce-menu-container, 
-			.mobile-nav-side .site-header #site-navigation.main-navigation > div', 'background-color' ),
+			.mobile-nav-side .site-header #site-navigation.main-navigation .woocommerce-menu-container,
+			.mobile-nav-side .site-header #site-navigation.main-navigation > div',
+			'background-color',
+		),
 
-	// Text-color
-	array( '.a8c-posts-list-item__featured span,
+		// Text-color
+		array(
+			'.a8c-posts-list-item__featured span,
 			.a8c-posts-list__view-all,
 			.a8c-posts-list__view-all:focus,
 			.a8c-posts-list__view-all:hover,
@@ -54,6 +61,7 @@ add_color_rule( 'bg', '#060f29', array(
 			.wp-block-file__button,
 			.wp-block-file__button:focus,
 			.wp-block-file__button:hover,
+			.wp-block-search .wp-block-search__button,
 			.wp-block-pullquote.is-style-solid-color,
 			table.is-style-stripes tbody tr:nth-child(odd),
 			.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
@@ -77,34 +85,40 @@ add_color_rule( 'bg', '#060f29', array(
 			button[data-load-more-btn],
 			input.has-focus[type="submit"],
 			input:focus[type="submit"],
-			input:hover[type="submit"]', 'color' ),
-
-	/**
-	 * Utility Classes
-	 */
-	// Text-color
-	// Needs contrast against `link` (primary)
-	array( '.has-primary-background-color[class],
+			input:hover[type="submit"]',
+			'color',
+		),
+
+		/**
+		 * Utility Classes
+		 */
+		// Text-color
+		// Needs contrast against `link` (primary)
+		array(
+			'.has-primary-background-color[class],
 			.has-secondary-background-color[class],
 			.has-foreground-background-color[class],
 			.has-foreground-dark-background-color[class],
 			.has-foreground-light-background-color[class],
 			.has-background-color[class],
 			.has-background-dark-color[class],
-			.has-background-light-color[class]', 'color' ),
-	// Background-color
-	array( '.has-background-background-color[class]', 'background-color' ),
-	// Background-color darkened
-	array( '.has-background-dark-background-color[class]', 'background-color', '-1' ),
-	// Background-color lightened
-	array( '.has-background-light-background-color[class]', 'background-color', '+1' ),
-
-	/**
-	 * Grays
-	 * Uses a slightly darker color
-	 */
-	// Border-color
-	array( '.wp-block-code,
+			.has-background-light-color[class]',
+			'color',
+		),
+		// Background-color
+		array( '.has-background-background-color[class]', 'background-color' ),
+		// Background-color darkened
+		array( '.has-background-dark-background-color[class]', 'background-color', '-1' ),
+		// Background-color lightened
+		array( '.has-background-light-background-color[class]', 'background-color', '+1' ),
+
+		/**
+		 * Grays
+		 * Uses a slightly darker color
+		 */
+		// Border-color
+		array(
+			'.wp-block-code,
 			body .widget_eu_cookie_law_widget #eu-cookie-law,
 			input[type="color"],
 			input[type="date"],
@@ -125,27 +139,44 @@ add_color_rule( 'bg', '#060f29', array(
 			textarea,
 			.main-navigation > div > ul > li > .sub-menu > li > a,
 			.main-navigation > div > ul > li > .sub-menu > li:first-child > a,
-			.main-navigation > div > ul > li > .sub-menu > li:last-child > a', 'border-color', '-1' ),
-	// Border-top-color
-	array( '.comment-list .children > li,
+			.main-navigation > div > ul > li > .sub-menu > li:last-child > a',
+			'border-color',
+			'-1',
+		),
+		// Border-top-color
+		array(
+			'.comment-list .children > li,
 			.comment-list > li,
-			.wp-block-pullquote', 'border-top-color', '-1' ),
-	// Border-bottom-color
-	array( '.comment-list,
+			.wp-block-pullquote',
+			'border-top-color',
+			'-1',
+		),
+		// Border-bottom-color
+		array(
+			'.comment-list,
 			.wp-block-pullquote,
 			hr,
-			hr.wp-block-separator', 'border-bottom-color', '-1' ),
-	// Color
-	array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
+			hr.wp-block-separator',
+			'border-bottom-color',
+			'-1',
+		),
+		// Color
+		array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
 
-), __( 'Background Color' ) );
+	),
+	__( 'Background Color' )
+);
 
 // Link Color
 // $config-global--color-primary-default
-add_color_rule( 'link', '#CAAB57', array(
+add_color_rule(
+	'link',
+	'#CAAB57',
+	array(
 
-	// Background-color
-	array( '.a8c-posts-list-item__featured span,
+		// Background-color
+		array(
+			'.a8c-posts-list-item__featured span,
 			.a8c-posts-list__view-all,
 			.button,
 			.main-navigation #toggle:focus + #toggle-menu,
@@ -157,10 +188,17 @@ add_color_rule( 'link', '#CAAB57', array(
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
 			button,
 			button[data-load-more-btn],
-			input[type="submit"]', 'background-color' ),
+			.wp-block-search .wp-block-search__button,
+			.wp-block-search .wp-block-search__button:focus,
+			.wp-block-search .wp-block-search__button:hover,
+			.wp-block-search .wp-block-search__button:not(.has-background):hover,
+			input[type="submit"]',
+			'background-color',
+		),
 
-	// Text-color
-	array( '.a8c-posts-list .a8c-posts-list-item__title a:active,
+		// Text-color
+		array(
+			'.a8c-posts-list .a8c-posts-list-item__title a:active,
 			.a8c-posts-list .a8c-posts-list-item__title a:focus,
 			.a8c-posts-list .a8c-posts-list-item__title a:hover,
 			.entry-title a:active,
@@ -186,36 +224,54 @@ add_color_rule( 'link', '#CAAB57', array(
 			.site-header .main-navigation > div > ul > li:hover > a,
 			.site-header .main-navigation > div > ul > li.focus > a,
 			.site-header .main-navigation > div > ul > li.current-menu-item > a,
-			.site-header .main-navigation > div > ul > li > .sub-menu > li:hover > a', 'color' ),
+			.site-header .main-navigation > div > ul > li > .sub-menu > li:hover > a',
+			'color',
+		),
+
+
+		// Border color
+		array( '.wp-block-search .wp-block-search__input:focus,', 'border-color' ),
 
-	// Border color left
-	array( '.wp-block-quote', 'border-left-color' ),
+		// Border color left
+		array( '.wp-block-quote', 'border-left-color' ),
 
-	// Border color right
-	array( '.wp-block-quote[style*="text-align: right"],
-			.wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
+		// Border color right
+		array(
+			'.wp-block-quote[style*="text-align: right"],
+			.wp-block-quote[style*="text-align:right"]',
+			'border-right-color',
+		),
 
-	// Border color bottom
-	array( '.site-header .main-navigation > div > ul > li.current-menu-item > ul:before,
+		// Border color bottom
+		array(
+			'.site-header .main-navigation > div > ul > li.current-menu-item > ul:before,
 			.site-header .main-navigation > div > ul > li.focus > ul:before,
-			.site-header .main-navigation > div > ul > li:hover > ul:before', 'border-bottom-color' ),
+			.site-header .main-navigation > div > ul > li:hover > ul:before',
+			'border-bottom-color',
+		),
 
-	/**
-	 * Utility Classes
-	 */
-	// Background-color
-	array( '.has-primary-background-color[class]', 'background-color' ),
-	// Text-color
-	array( '.has-primary-color[class]', 'color' ),
+		/**
+		 * Utility Classes
+		 */
+		// Background-color
+		array( '.has-primary-background-color[class]', 'background-color' ),
+		// Text-color
+		array( '.has-primary-color[class]', 'color' ),
 
-), __( 'Link Color' ) );
+	),
+	__( 'Link Color' )
+);
 
 // Text Color
 // $config-global--color-foreground-default
-add_color_rule( 'txt', '#f2f2f2', array(
+add_color_rule(
+	'txt',
+	'#f2f2f2',
+	array(
 
-	// Text-color
-	array( '.comment-meta .comment-metadata,
+		// Text-color
+		array(
+			'.comment-meta .comment-metadata,
 			.main-navigation,
 			.main-navigation a,
 			.main-navigation a:link,
@@ -232,43 +288,55 @@ add_color_rule( 'txt', '#f2f2f2', array(
 			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
 			.site-header .main-navigation > div > ul > li.current-menu-item li > a,
 			.site-header .main-navigation > div > ul > li.focus li > a,
-			.site-header .main-navigation > div > ul > li:hover li > a', 'color' ),
+			.site-header .main-navigation > div > ul > li:hover li > a',
+			'color',
+		),
 
-	// Background-color
-	array( '.wp-block-cover.has-background-dim:not([class*="background-color"]),
+		// Background-color
+		array(
+			'.wp-block-cover.has-background-dim:not([class*="background-color"]),
 			.wp-block-cover-image.has-background-dim:not([class*="background-color"]),
 			.has-foreground-background-color[class],
 			table.is-style-stripes tbody tr:nth-child(odd),
 			.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
-			body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
+			body .widget_eu_cookie_law_widget #eu-cookie-law.negative',
+			'background-color',
+		),
 
-	/**
-	 * Utility Classes
-	 */
-	// Foreground
-	array( '.has-foreground-color[class]', 'color' ),
-	array( '.has-foreground-background-color[class]', 'background-color' ),
+		// Border-color with less opacity (dim)
+		array( '.wp-block-search .wp-block-search__input', 'border-color', 0.8 ),
 
-	// Text color
-	array( '.has-background-background-color[class],
+		/**
+		 * Utility Classes
+		 */
+		// Foreground
+		array( '.has-foreground-color[class]', 'color' ),
+		array( '.has-foreground-background-color[class]', 'background-color' ),
+
+		// Text color
+		array(
+			'.has-background-background-color[class],
 			.has-background-light-background-color[class],
-			.has-background-dark-background-color[class]', 'color' ),
-
-	// Text-color darkened
-	array( '.has-foreground-dark-color[class]', 'color', '-1' ),
-	// Background-color darkened
-	array( '.has-foreground-dark-background-color[class]', 'background-color', '-1' ),
-
-	// Text-color brightened
-	array( '.has-foreground-light-color[class]', 'color', '+2' ),
-	// Background-color brightened
-	array( '.has-foreground-light-background-color[class]', 'background-color', '+2' ),
-
-	/**
-	 * Gray (Same as text color)
-	 */
-	// Text-color
-	array( '.a8c-posts-list__item .a8c-posts-list-item__meta,
+			.has-background-dark-background-color[class]',
+			'color',
+		),
+
+		// Text-color darkened
+		array( '.has-foreground-dark-color[class]', 'color', '-1' ),
+		// Background-color darkened
+		array( '.has-foreground-dark-background-color[class]', 'background-color', '-1' ),
+
+		// Text-color brightened
+		array( '.has-foreground-light-color[class]', 'color', '+2' ),
+		// Background-color brightened
+		array( '.has-foreground-light-background-color[class]', 'background-color', '+2' ),
+
+		/**
+		 * Gray (Same as text color)
+		 */
+		// Text-color
+		array(
+			'.a8c-posts-list__item .a8c-posts-list-item__meta,
 			.comment-notes,
 			.entry-footer,
 			.entry-meta,
@@ -302,13 +370,16 @@ add_color_rule( 'txt', '#f2f2f2', array(
 			.wp-block-quote.is-style-large cite,
 			.wp-block-quote.is-style-large footer,
 			.wp-block-video figcaption,
-			figcaption', 'color' ),
+			figcaption',
+			'color',
+		),
 
-	/**
-	 * Hover States
-	 */
-	// Background-color
-	array( '.a8c-posts-list__view-all:focus,
+		/**
+		 * Hover States
+		 */
+		// Background-color
+		array(
+			'.a8c-posts-list__view-all:focus,
 			.a8c-posts-list__view-all:hover,
 			.button:focus,
 			.button:hover,
@@ -328,9 +399,13 @@ add_color_rule( 'txt', '#f2f2f2', array(
 			button:hover,
 			input.has-focus[type="submit"],
 			input:focus[type="submit"],
-			input:hover[type="submit"]', 'background-color', 0.7 ),
-	// Text-color
-	array( '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
+			input:hover[type="submit"]',
+			'background-color',
+			0.7,
+		),
+		// Text-color
+		array(
+			'.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
 			.a8c-posts-list__item .a8c-posts-list-item__meta a:hover,
 			.comment-meta .comment-metadata a:active,
 			.comment-meta .comment-metadata a:hover,
@@ -357,9 +432,13 @@ add_color_rule( 'txt', '#f2f2f2', array(
 			.wp-block-newspack-blocks-homepage-articles article .more-link:active,
 			.wp-block-newspack-blocks-homepage-articles article .more-link:focus,
 			.wp-block-newspack-blocks-homepage-articles article .more-link:hover,
-			a:hover', 'color', 0.7 ),
-	// Border-color
-	array( 'input[type="color"]:focus,
+			a:hover',
+			'color',
+			0.7,
+		),
+		// Border-color
+		array(
+			'input[type="color"]:focus,
 			input[type="date"]:focus,
 			input[type="datetime"]:focus,
 			input[type="datetime-local"]:focus,
@@ -374,29 +453,42 @@ add_color_rule( 'txt', '#f2f2f2', array(
 			input[type="time"]:focus,
 			input[type="url"]:focus,
 			input[type="week"]:focus,
-			textarea:focus', 'border-color', 0.7 ),
+			textarea:focus',
+			'border-color',
+			0.7,
+		),
 
-), __( 'Text Color' ) );
+	),
+	__( 'Text Color' )
+);
 
 // Accent Color
 // $config-global--color-secondary-default
-add_color_rule( 'fg1', '#EE4266', array(
+add_color_rule(
+	'fg1',
+	'#EE4266',
+	array(
 
-	/**
-	 * Utility Classes
-	 */
-	// Text-color
-	array( '.has-secondary-color[class]', 'color' ),
+		/**
+		 * Utility Classes
+		 */
+		// Text-color
+		array( '.has-secondary-color[class]', 'color' ),
 
-	// Background-color
-	array( '.has-secondary-background-color[class],
+		// Background-color
+		array(
+			'.has-secondary-background-color[class],
 			input:hover[type="submit"],
 			.main-navigation .button:focus,
 			.main-navigation .button:hover,
 			.main-navigation #toggle:focus + #toggle-menu,
-			.has-secondary-background-color', 'background-color' ),
+			.has-secondary-background-color',
+			'background-color',
+		),
 
-), __( 'Secondary Color' ) );
+	),
+	__( 'Secondary Color' )
+);
 
 /**
  * Custom CSS
@@ -438,30 +530,40 @@ function rivington_custom_colors_extra_css() { ?>
 			opacity: 0;
 		}
 	}
-<?php }
+	<?php
+}
 add_theme_support( 'custom_colors_extra_css', 'rivington_custom_colors_extra_css' );
 
 /**
  * Featured Varia Palettes
  */
 // Light
-add_color_palette( array(
-	'#FFFFFF',
-	'#1D1E1E',
-	'#C8133E',
-	'#4E2F4B',
-), 'Light' );
+add_color_palette(
+	array(
+		'#FFFFFF',
+		'#1D1E1E',
+		'#C8133E',
+		'#4E2F4B',
+	),
+	'Light'
+);
 // Medium
-add_color_palette( array(
-	'#EEF4F7',
-	'#242527',
-	'#35845D',
-	'#233252',
-), 'Medium' );
+add_color_palette(
+	array(
+		'#EEF4F7',
+		'#242527',
+		'#35845D',
+		'#233252',
+	),
+	'Medium'
+);
 // Dark
-add_color_palette( array(
-	'#1F2527',
-	'#FFFFFF',
-	'#9FD3E8',
-	'#FBE6AA',
-), 'Dark' );
+add_color_palette(
+	array(
+		'#1F2527',
+		'#FFFFFF',
+		'#9FD3E8',
+		'#FBE6AA',
+	),
+	'Dark'
+);

+ 175 - 110
rivington/inc/wpcom-editor-colors.php

@@ -5,13 +5,17 @@
 
 // Background Color
 // $config-global--color-background-default
-add_editor_color_rule( 'bg', '#060f29', array(
+add_editor_color_rule(
+	'bg',
+	'#060f29',
+	array(
 
-	// Background-color
-	array( '#editor .editor-styles-wrapper', 'background-color' ),
+		// Background-color
+		array( '#editor .editor-styles-wrapper', 'background-color' ),
 
-	// Text-color
-	array( '#editor .editor-styles-wrapper .button,
+		// Text-color
+		array(
+			'#editor .editor-styles-wrapper .button,
 			#editor .editor-styles-wrapper .button.has-focus,
 			#editor .editor-styles-wrapper .button:focus,
 			#editor .editor-styles-wrapper .button:hover,
@@ -26,6 +30,7 @@ add_editor_color_rule( 'bg', '#060f29', array(
 			#editor .editor-styles-wrapper .wp-block-button__link:focus,
 			#editor .editor-styles-wrapper .wp-block-button__link:hover,
 			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
 			#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,
@@ -33,57 +38,78 @@ add_editor_color_rule( 'bg', '#060f29', array(
 			#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.has-background-dim,
-			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim', 'color' ),
-
-	/**
-	 * Utility Classes
-	 */
-	// Text-color
-	array( '#editor .editor-styles-wrapper .has-primary-background-color[class],
+			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim',
+			'color',
+		),
+
+		/**
+		 * Utility Classes
+		 */
+		// Text-color
+		array(
+			'#editor .editor-styles-wrapper .has-primary-background-color[class],
 			#editor .editor-styles-wrapper .has-secondary-background-color[class],
 			#editor .editor-styles-wrapper .has-foreground-background-color[class],
 			#editor .editor-styles-wrapper .has-foreground-dark-background-color[class],
 			#editor .editor-styles-wrapper .has-foreground-light-background-color[class],
-			#editor .editor-styles-wrapper .has-background-color[class]', 'color' ),
-	// Background-color
-	array( '#editor .editor-styles-wrapper .has-background-background-color[class]', 'background-color' ),
-	// Text-color darkened
-	array( '#editor .editor-styles-wrapper .has-background-dark-color[class]', 'color', '-1'  ),
-	// Background-color darkened
-	array( '#editor .editor-styles-wrapper .has-background-dark-background-color[class]', 'background-color', '-1' ),
-	// Text-color lightened
-	array( '#editor .editor-styles-wrapper .has-background-light-color[class]', 'color', '+1'  ),
-	// Background-color lightened
-	array( '#editor .editor-styles-wrapper .has-background-light-background-color[class]', 'background-color', '+1' ),
-
-	/**
-	 * Grays
-	 * Uses a slightly darker color
-	 */
-	// Color
-	array( '#editor .editor-styles-wrapper .wp-block-separator.is-style-dots', 'color', '-1' ),
-	// Border-color
-	array( '#editor .editor-styles-wrapper .wp-block-code', 'border-color', '-1' ),
-	// Border-top-color
-	array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color', '-1' ),
-	// Border-bottom-color
-	array( '#editor .editor-styles-wrapper .wp-block-pullquote,
-			#editor .editor-styles-wrapper .wp-block-separator', 'border-bottom-color', '-1' ),
-
-), __( 'Background Color' ) );
+			#editor .editor-styles-wrapper .has-background-color[class]',
+			'color',
+		),
+		// Background-color
+		array( '#editor .editor-styles-wrapper .has-background-background-color[class]', 'background-color' ),
+		// Text-color darkened
+		array( '#editor .editor-styles-wrapper .has-background-dark-color[class]', 'color', '-1' ),
+		// Background-color darkened
+		array( '#editor .editor-styles-wrapper .has-background-dark-background-color[class]', 'background-color', '-1' ),
+		// Text-color lightened
+		array( '#editor .editor-styles-wrapper .has-background-light-color[class]', 'color', '+1' ),
+		// Background-color lightened
+		array( '#editor .editor-styles-wrapper .has-background-light-background-color[class]', 'background-color', '+1' ),
+
+		/**
+		 * Grays
+		 * Uses a slightly darker color
+		 */
+		// Color
+		array( '#editor .editor-styles-wrapper .wp-block-separator.is-style-dots', 'color', '-1' ),
+		// Border-color
+		array( '#editor .editor-styles-wrapper .wp-block-code', 'border-color', '-1' ),
+		// Border-top-color
+		array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color', '-1' ),
+		// Border-bottom-color
+		array(
+			'#editor .editor-styles-wrapper .wp-block-pullquote,
+			#editor .editor-styles-wrapper .wp-block-separator',
+			'border-bottom-color',
+			'-1',
+		),
+
+	),
+	__( 'Background Color' )
+);
 
 // Link Color
 // $config-global--color-primary-default
-add_editor_color_rule( 'link', '#CAAB57', array(
-
-	// Background-color
-	array( '#editor .editor-styles-wrapper .button,
+add_editor_color_rule(
+	'link',
+	'#CAAB57',
+	array(
+
+		// Background-color
+		array(
+			'#editor .editor-styles-wrapper .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-pullquote.is-style-solid-color', 'background-color' ),
-
-	// Text-color
-	array( '#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:not(.has-text-color),
+			#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
+		array(
+			'#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:not(.has-text-color),
 			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:not(.has-text-color),
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
@@ -91,65 +117,95 @@ add_editor_color_rule( 'link', '#CAAB57', array(
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:focus,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:hover,
 			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
-			#editor .editor-styles-wrapper a', 'color' ),
-
-	// Border color left
-	array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
-
-	// Border color right
-	array( '#editor .editor-styles-wrapper .wp-block-quote[style*="text-align: right"],
-			#editor .editor-styles-wrapper .wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
-
-	/**
-	 * Utility Classes
-	 */
-	// Background-color
-	array( '#editor .editor-styles-wrapper .has-primary-background-color[class]', 'background-color' ),
-	// Text-color
-	array( '#editor .editor-styles-wrapper .has-primary-color[class]', 'color' ),
-
-), __( 'Link Color' ) );
+			#editor .editor-styles-wrapper a',
+			'color',
+		),
+
+		// Border-color (forms)
+		array( '#editor .editor-styles-wrapper .wp-block-search .wp-block-search__input:focus, textarea:focus', 'border-color' ),
+
+		// Border color left
+		array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
+
+		// Border color right
+		array(
+			'#editor .editor-styles-wrapper .wp-block-quote[style*="text-align: right"],
+			#editor .editor-styles-wrapper .wp-block-quote[style*="text-align:right"]',
+			'border-right-color',
+		),
+
+		/**
+		 * Utility Classes
+		 */
+		// Background-color
+		array( '#editor .editor-styles-wrapper .has-primary-background-color[class]', 'background-color' ),
+		// Text-color
+		array( '#editor .editor-styles-wrapper .has-primary-color[class]', 'color' ),
+
+	),
+	__( 'Link Color' )
+);
 
 // Text Color
 // $config-global--color-foreground-default
-add_editor_color_rule( 'txt', '#f2f2f2', array(
-
-	// Text-color
-	array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
+add_editor_color_rule(
+	'txt',
+	'#f2f2f2',
+	array(
+
+		// Text-color
+		array(
+			'#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
 			#editor .editor-styles-wrapper .wp-block-pullquote,
-			#editor .editor-styles-wrapper', 'color' ),
+			#editor .editor-styles-wrapper',
+			'color',
+		),
 
-	// Background-color
-	array( '#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
+		// Background-color
+		array(
+			'#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
 			#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
 			#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
-			#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd)', 'background-color' ),
-
-	/**
-	 * Utility Classes
-	 */
-	// Text-color
-	array( '#editor .editor-styles-wrapper .has-foreground-color[class],
+			#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd)',
+			'background-color',
+		),
+
+		/**
+		 * Utility Classes
+		 */
+		// Text-color
+		array(
+			'#editor .editor-styles-wrapper .has-foreground-color[class],
 			#editor .editor-styles-wrapper .has-background-background-color[class],
 			#editor .editor-styles-wrapper .has-background-dark-background-color[class],
-			#editor .editor-styles-wrapper .has-background-light-background-color[class]', 'color' ),
-	// Background-color
-	array( '#editor .editor-styles-wrapper .has-foreground-background-color[class]', 'background-color' ),
-	// Text-color darkened
-	array( '#editor .editor-styles-wrapper .has-foreground-dark-color[class]', 'color', '-1' ),
-	// Background-color darkened
-	array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color[class]', 'background-color', '-1' ),
-	// Text-color brightened
-	array( '#editor .editor-styles-wrapper .has-foreground-light-color[class]', 'color', '+2' ),
-	// Background-color brightened
-	array( '#editor .editor-styles-wrapper .has-foreground-light-background-color[class]', 'background-color', '+2' ),
-
-	/**
-	 * Grays
-	 * Same as text color
-	 */
-	// Text-color
-	array( '#editor .editor-styles-wrapper .a8c-posts-list__item .a8c-posts-list-item__meta,
+			#editor .editor-styles-wrapper .has-background-light-background-color[class]',
+			'color',
+		),
+		// Background-color
+		array( '#editor .editor-styles-wrapper .has-foreground-background-color[class]', 'background-color' ),
+		// Text-color darkened
+		array( '#editor .editor-styles-wrapper .has-foreground-dark-color[class]', 'color', '-1' ),
+		// Background-color darkened
+		array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color[class]', 'background-color', '-1' ),
+		// Text-color brightened
+		array( '#editor .editor-styles-wrapper .has-foreground-light-color[class]', 'color', '+2' ),
+		// Background-color brightened
+		array( '#editor .editor-styles-wrapper .has-foreground-light-background-color[class]', 'background-color', '+2' ),
+
+		// 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,
+		),
+		/**
+		 * Grays
+		 * Same as text color
+		 */
+		// Text-color
+		array(
+			'#editor .editor-styles-wrapper .a8c-posts-list__item .a8c-posts-list-item__meta,
 			#editor .editor-styles-wrapper .wp-block-image figcaption,
 			#editor .editor-styles-wrapper .wp-block-latest-comments .wp-block-latest-comments__comment-date,
 			#editor .editor-styles-wrapper .wp-block-latest-posts .wp-block-latest-posts__post-date,
@@ -168,20 +224,29 @@ add_editor_color_rule( 'txt', '#f2f2f2', array(
 			#editor .editor-styles-wrapper .wp-block-quote.is-style-large cite,
 			#editor .editor-styles-wrapper .wp-block-quote.is-style-large footer,
 			#editor .editor-styles-wrapper .wp-block-video figcaption,
-			#editor .editor-styles-wrapper figcaption', 'color' ),
+			#editor .editor-styles-wrapper figcaption',
+			'color',
+		),
 
-), __( 'Text Color' ) );
+	),
+	__( 'Text Color' )
+);
 
 // Accent Color (Red)
 // $config-global--color-secondary-default
-add_editor_color_rule( 'fg1', '#EE4266', array(
-
-	/**
-	 * Utility Classes
-	 */
-	// Text-color
-	array( '#editor .editor-styles-wrapper .has-secondary-color[class]', 'color' ),
-	// Background-color
-	array( '#editor .editor-styles-wrapper .has-secondary-background-color[class]', 'background-color' ),
-
-), __( 'Secondary Color' ) );
+add_editor_color_rule(
+	'fg1',
+	'#EE4266',
+	array(
+
+		/**
+		 * Utility Classes
+		 */
+		// Text-color
+		array( '#editor .editor-styles-wrapper .has-secondary-color[class]', 'color' ),
+		// Background-color
+		array( '#editor .editor-styles-wrapper .has-secondary-background-color[class]', 'background-color' ),
+
+	),
+	__( 'Secondary Color' )
+);

+ 1 - 1
rivington/sass/_extra-child-theme.scss

@@ -469,4 +469,4 @@ a {
 			}
 		}
 	}
-}
+}

+ 16 - 0
rivington/style-rtl.css

@@ -4648,3 +4648,19 @@ p:not(.site-title) a:hover {
 		display: contents;
 	}
 }
+
+/**
+ * Search block
+ */
+.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
+	border-radius: 3px;
+}
+
+.wp-block-search.wp-block-search__button-inside .wp-block-search__input {
+	background: transparent;
+}
+
+.wp-block-search .wp-block-search__input {
+	margin-left: calc( .1 * 16px);
+	border-radius: 3px;
+}

+ 16 - 0
rivington/style.css

@@ -4677,3 +4677,19 @@ p:not(.site-title) a:hover {
 		display: contents;
 	}
 }
+
+/**
+ * Search block
+ */
+.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
+	border-radius: 3px;
+}
+
+.wp-block-search.wp-block-search__button-inside .wp-block-search__input {
+	background: transparent;
+}
+
+.wp-block-search .wp-block-search__input {
+	margin-right: calc( .1 * 16px);
+	border-radius: 3px;
+}

+ 3 - 3
varia/sass/blocks/search/_style.scss

@@ -43,8 +43,8 @@
 		border: none;
 		box-shadow: none;
 		&.has-icon {
-			transform: scaleX(-1);	
-			padding: 0;		
+			transform: scaleX(-1);
+			padding: 0;
 			min-width: calc(2* #{map-deep-get($config-button, "padding", "vertical")} + #{map-deep-get($config-global, "font", "size", "base")} + 4px);
 			min-height: calc(2* #{map-deep-get($config-button, "padding", "vertical")} + #{map-deep-get($config-global, "font", "size", "base")} + 4px);
 			svg {
@@ -54,4 +54,4 @@
 			}
 		}
 	}
-}
+}