فهرست منبع

Alves: Cleanup annotations and recompile styles, code tidying.

Allan Cole 5 سال پیش
والد
کامیت
00dc9fd620
7فایلهای تغییر یافته به همراه223 افزوده شده و 199 حذف شده
  1. 11 1
      alves/functions.php
  2. 40 38
      alves/inc/wpcom-colors.php
  3. 55 19
      alves/inc/wpcom-editor-colors.php
  4. 1 1
      alves/inc/wpcom.php
  5. 40 42
      alves/style-editor.css
  6. 38 49
      alves/style-rtl.css
  7. 38 49
      alves/style.css

+ 11 - 1
alves/functions.php

@@ -58,7 +58,7 @@ if ( ! function_exists( 'alves_setup' ) ) :
 		 *
 		 * - if the customizer color is empty, use the default
 		 */
-		$colors_array = get_theme_mod('colors_manager'); // color annotations array()
+		$colors_array = get_theme_mod('colors_manager', array( 'colors' => true )); // color annotations array()
 		$primary          = ! empty( $colors_array ) ? $colors_array['colors']['link'] : '#3E7D98'; // $config-global--color-primary-default;
 		$secondary        = ! empty( $colors_array ) ? $colors_array['colors']['fg1'] : '#9B6A36';  // $config-global--color-secondary-default;
 		$background       = ! empty( $colors_array ) ? $colors_array['colors']['bg'] : '#FFFFFF';   // $config-global--color-background-default;
@@ -219,5 +219,15 @@ function alves_editor_styles() {
 
 	// Enqueue Google fonts in the editor, if necessary
 	wp_enqueue_style( 'alves-editor-fonts', alves_fonts_url(), array(), null );
+
+	// Hide duplicate palette colors
+	$colors_array = get_theme_mod('colors_manager', array( 'colors' => true )); // color annotations array()
+	if ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#394d55' ) { // $config-global--color-foreground-light-default;
+		$inline_palette_css = '.block-editor-color-gradient-control .components-circular-option-picker__option-wrapper:nth-child(5),
+			.block-editor-color-gradient-control .components-circular-option-picker__option-wrapper:nth-child(6) {
+				display: none;
+			}';
+		wp_add_inline_style( 'wp-edit-blocks', $inline_palette_css );
+	}
 }
 add_action( 'enqueue_block_editor_assets', 'alves_editor_styles' );

+ 40 - 38
alves/inc/wpcom-colors.php

@@ -20,23 +20,30 @@ add_color_rule( 'bg', '#ffffff', array(
 			.a8c-posts-list__view-all,
 			.a8c-posts-list__view-all:focus,
 			.a8c-posts-list__view-all:hover,
-			.button,
-			.button:focus,
-			.button:hover,
 			.has-focus.a8c-posts-list__view-all,
 			.has-focus.button,
 			.has-focus.wp-block-button__link,
 			.has-focus.wp-block-file__button,
 			.sticky-post,
+			.button,
+			.button:focus,
+			.button:hover,
+			button,
+			button.has-focus,
+			button:focus,
+			button:hover,
+			button[data-load-more-btn],
 			.wp-block-button__link,
 			.wp-block-button__link:focus,
 			.wp-block-button__link:hover,
-			.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
-			.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
-			.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
-			.wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
-			.wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
-			.wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
+			.wp-block-cover-image.has-background-background-color .wp-block-cover-image-text,
+			.wp-block-cover-image.has-background-background-color .wp-block-cover-text,
+			.wp-block-cover-image.has-background-background-color .wp-block-cover__inner-container,
+			.wp-block-cover.has-background-background-color .wp-block-cover-image-text,
+			.wp-block-cover.has-background-background-color .wp-block-cover-text,
+			.wp-block-cover.has-background-background-color .wp-block-cover__inner-container,
+			.wp-block-cover.has-background-dim,
+			.wp-block-cover-image.has-background-dim,
 			.wp-block-file .wp-block-file__button,
 			.wp-block-file a.wp-block-file__button:active,
 			.wp-block-file a.wp-block-file__button:focus,
@@ -48,23 +55,21 @@ add_color_rule( 'bg', '#ffffff', array(
 			.wp-block-gallery .blocks-gallery-image figcaption,
 			.wp-block-gallery .blocks-gallery-item figcaption,
 			.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),
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept,
 			body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
-			button,
-			button.has-focus,
-			button:focus,
-			button:hover,
-			button[data-load-more-btn],
 			input.has-focus[type="submit"],
 			input:focus[type="submit"],
 			input:hover[type="submit"],
 			input[type="submit"]', 'color' ),
+
 	// Border-bottom-color
-	array( '.site-header .main-navigation > div > ul > li:hover > ul::before, 
-			.site-header .main-navigation > div > ul > li.focus > ul::before, 
+	array( '.site-header .main-navigation > div > ul > li:hover > ul::before,
+			.site-header .main-navigation > div > ul > li.focus > ul::before,
 			.site-header .main-navigation > div > ul > li.current-menu-item > ul::before', 'border-bottom-color' ),
 
 	/**
@@ -72,13 +77,13 @@ add_color_rule( 'bg', '#ffffff', array(
 	 */
 	// Text-color
 	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' ),
+			.has-secondary-background-color[class],
+			.has-foreground-background-color[class],
+			.has-foreground-light-background-color[class],
+			.has-foreground-dark-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
@@ -99,13 +104,12 @@ add_color_rule( 'bg', '#ffffff', array(
 
 // Link Color
 // $config-global--color-primary-default
-add_color_rule( 'link', '#3e7d98', array(
+add_color_rule( 'link', '#3E7D98', array(
 
 	// Background-color
 	array( '.a8c-posts-list-item__featured span,
 			.a8c-posts-list__view-all,
 			.button,
-			.has-primary-background-color[class],
 			.sticky-post,
 			.wp-block-button__link,
 			.wp-block-file .wp-block-file__button,
@@ -117,13 +121,12 @@ add_color_rule( 'link', '#3e7d98', array(
 			input[type="submit"]', 'background-color' ),
 
 	// Text-color
-	array( '.has-primary-color[class],
-			.site-footer #footer-info-wrapper a:focus,
+	array( '.site-footer #footer-info-wrapper a:focus,
 			.site-footer #footer-info-wrapper a:hover,
-			.wp-block-button.is-style-outline .wp-block-button__link,
-			.wp-block-button.is-style-outline .wp-block-button__link:active,
-			.wp-block-button.is-style-outline.wp-block-button__link,
-			.wp-block-button.is-style-outline.wp-block-button__link:active,
+			.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
+			.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):active,
+			.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
+			.wp-block-button.is-style-outline.wp-block-button__link:active:not(.has-text-color),
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a,
 			a,
 			hr.wp-block-separator.is-style-dots:before', 'color' ),
@@ -264,18 +267,17 @@ add_color_rule( 'txt', '#394d55', array(
 			figcaption', 'color' ),
 
 	// Background-color
-	array( '.wp-block-cover,
-			.wp-block-cover-image,
+	array( '.wp-block-cover.has-background-dim,
+			.wp-block-cover-image.has-background-dim,
+			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' ),
 
 	/**
 	 * Utility Classes
 	 */
 	// Foreground
-	array( '.has-foreground-color[class],
-		.has-background-background-color[class],
-		.has-background-dark-background-color[class],
-		.has-background-light-background-color[class]', 'color' ),
+	array( '.has-foreground-color[class]', 'color' ),
 	array( '.has-foreground-background-color[class]', 'background-color' ),
 
 	// Text-color darkened
@@ -292,7 +294,7 @@ add_color_rule( 'txt', '#394d55', array(
 
 // Accent Color
 // $config-global--color-secondary-default
-add_color_rule( 'fg1', '#FF7A5C', array(
+add_color_rule( 'fg1', '#9B6A36', array(
 
 	// Text-color
 	array( '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,

+ 55 - 19
alves/inc/wpcom-editor-colors.php

@@ -24,23 +24,33 @@ add_editor_color_rule( 'bg', '#ffffff', array(
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:focus,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:hover,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .has-focus.button,
-			#editor .editor-styles-wrapper .wp-block-button__link,
-			#editor .editor-styles-wrapper .wp-block-button__link.has-focus,
-			#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', 'color' ),
+			#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),
+			#editor .editor-styles-wrapper .wp-block-button .wp-block-button__link,
+			#editor .editor-styles-wrapper .wp-block-button .wp-block-button__link.has-focus,
+			#editor .editor-styles-wrapper .wp-block-button .wp-block-button__link:focus,
+			#editor .editor-styles-wrapper .wp-block-button .wp-block-button__link:hover,
+			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color,
+			#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-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.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 .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' ),
+	array( '#editor .editor-styles-wrapper .has-primary-background-color,
+			#editor .editor-styles-wrapper .has-secondary-background-color,
+			#editor .editor-styles-wrapper .has-foreground-background-color,
+			#editor .editor-styles-wrapper .has-foreground-dark-background-color,
+			#editor .editor-styles-wrapper .has-foreground-light-background-color,
+			#editor .editor-styles-wrapper .has-background-color', 'color' ),
 
 	// Background-color
 	array( '#editor .editor-styles-wrapper .has-background-background-color[class]', 'background-color' ),
@@ -57,23 +67,37 @@ add_editor_color_rule( 'bg', '#ffffff', array(
 	// Background-color lightened
 	array( '#editor .editor-styles-wrapper .has-background-light-background-color[class]', 'background-color', '+1' ),
 
+	/**
+	 * Clean up for nested items
+	 */
+	// Text-color
+	array( '#editor .editor-styles-wrapper .has-background:not(.has-background-background-color) .wp-block-quote .wp-block-quote__citation,
+			#editor .editor-styles-wrapper [class*="background-color"]:not(.has-background-background-color) .wp-block-quote .wp-block-quote__citation,
+			#editor .editor-styles-wrapper [style*="background-color"]:not(.has-background-background-color) .wp-block-quote .wp-block-quote__citation,
+			#editor .editor-styles-wrapper .wp-block-cover[style*="background-image"] .wp-block-quote .wp-block-quote__citation', 'color' ),
+	// Border-color
+	array( '#editor .editor-styles-wrapper .has-background:not(.has-background-background-color) .wp-block-quote,
+			#editor .editor-styles-wrapper [class*="background-color"]:not(.has-background-background-color) .wp-block-quote,
+			#editor .editor-styles-wrapper [style*="background-color"]:not(.has-background-background-color) .wp-block-quote,
+			#editor .editor-styles-wrapper .wp-block-cover[style*="background-image"] .wp-block-quote', 'border-color'),
+
 ), __( 'Background Color' ) );
 
 // Link Color (Blue)
 // $config-global--color-primary-default
-add_editor_color_rule( 'link', '#3e7d98', array(
+add_editor_color_rule( 'link', '#3E7D98', array(
 
 	// Background-color
 	array( '#editor .editor-styles-wrapper .button,
 			#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__link,
+			#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,
+	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-button__link.is-style-outline,
 			#editor .editor-styles-wrapper .wp-block-separator.is-style-dots:before,
 			#editor .editor-styles-wrapper a,
 			#editor .editor-styles-wrapper hr.is-style-dots:before', 'color' ),
@@ -112,16 +136,28 @@ add_editor_color_rule( 'link', '#3e7d98', array(
 add_editor_color_rule( 'txt', '#394d55', array(
 
 	// Text-color
-	array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
+	array( '#editor .editor-styles-wrapper,
+			#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation a,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation a:link,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation a:visited,
 			#editor .editor-styles-wrapper .has-foreground-color[class],
 			#editor .editor-styles-wrapper .wp-block-pullquote,
-			#editor .editor-styles-wrapper,
 			#editor .editor-styles-wrapper .wp-block-quote .wp-block-quote__citation,
-			#editor .editor-styles-wrapper .wp-block-pullquote:not(.is-style-solid-color) .wp-block-pullquote__citation', 'color' ),
+			#editor .editor-styles-wrapper .wp-block-pullquote:not(.is-style-solid-color) .wp-block-pullquote__citation,
+			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:hover,
+			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:focus,
+			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline.has-focus,
+			#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:hover,
+			#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' ),
+
+	// 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
@@ -152,7 +188,7 @@ add_editor_color_rule( 'txt', '#394d55', array(
 
 // Accent Color (Red)
 // $config-global--color-secondary-default
-add_editor_color_rule( 'fg1', '#FF7A5C', array(
+add_editor_color_rule( 'fg1', '#9B6A36', array(
 
 	/**
 	 * Utility Classes

+ 1 - 1
alves/inc/wpcom.php

@@ -26,4 +26,4 @@ function alves_wpcom_setup() {
 		);
 	}
 }
-add_action( 'after_setup_theme', 'alves_wpcom_setup' );
+add_action( 'after_setup_theme', 'alves_wpcom_setup' );

+ 40 - 42
alves/style-editor.css

@@ -542,19 +542,17 @@ object {
 	background-color: #2f5f74;
 }
 
-.wp-block-button__link.is-style-outline:not(.has-text-color),
-.is-style-outline .wp-block-button__link:not(.has-text-color) {
+.wp-block-button__link.is-style-outline,
+.is-style-outline .wp-block-button__link {
 	color: #3E7D98;
 	background: transparent;
 	border: 2px solid currentcolor;
 }
 
-.wp-block-button__link.is-style-outline:not(.has-text-color):hover,
-.wp-block-button__link.is-style-outline:not(.has-text-color):focus,
-.wp-block-button__link.is-style-outline.has-focus:not(.has-text-color),
-.is-style-outline .wp-block-button__link:not(.has-text-color):hover,
-.is-style-outline .wp-block-button__link:not(.has-text-color):focus,
-.is-style-outline .wp-block-button__link.has-focus:not(.has-text-color) {
+.wp-block-button__link.is-style-outline:hover, .wp-block-button__link.is-style-outline:focus, .wp-block-button__link.is-style-outline.has-focus,
+.is-style-outline .wp-block-button__link:hover,
+.is-style-outline .wp-block-button__link:focus,
+.is-style-outline .wp-block-button__link.has-focus {
 	color: #2f5f74;
 }
 
@@ -1031,36 +1029,36 @@ table th,
 	line-height: 1.125;
 }
 
-.has-primary-color {
-	color: #3E7D98;
+.has-primary-color[class] {
+	color: #3E7D98 !important;
 }
 
-.has-secondary-color {
-	color: #9B6A36;
+.has-secondary-color[class] {
+	color: #9B6A36 !important;
 }
 
-.has-foreground-color {
-	color: #394d55;
+.has-foreground-color[class] {
+	color: #394d55 !important;
 }
 
-.has-foreground-light-color {
-	color: #4d6974;
+.has-foreground-light-color[class] {
+	color: #4d6974 !important;
 }
 
-.has-foreground-dark-color {
-	color: #253136;
+.has-foreground-dark-color[class] {
+	color: #253136 !important;
 }
 
-.has-background-light-color {
-	color: #fafafa;
+.has-background-light-color[class] {
+	color: #fafafa !important;
 }
 
-.has-background-dark-color {
-	color: #d9d9d9;
+.has-background-dark-color[class] {
+	color: #d9d9d9 !important;
 }
 
-.has-background-color {
-	color: #ffffff;
+.has-background-color[class] {
+	color: #ffffff !important;
 }
 
 .has-background:not(.has-background-background-color) a,
@@ -1068,48 +1066,48 @@ table th,
 	color: currentColor;
 }
 
-.has-primary-background-color {
-	background-color: #3E7D98;
+.has-primary-background-color[class] {
+	background-color: #3E7D98 !important;
 	color: #ffffff;
 }
 
-.has-primary-background-color {
-	background-color: #3E7D98;
+.has-primary-background-color[class] {
+	background-color: #3E7D98 !important;
 	color: #ffffff;
 }
 
-.has-secondary-background-color {
-	background-color: #9B6A36;
+.has-secondary-background-color[class] {
+	background-color: #9B6A36 !important;
 	color: #ffffff;
 }
 
-.has-foreground-background-color {
-	background-color: #394d55;
+.has-foreground-background-color[class] {
+	background-color: #394d55 !important;
 	color: #ffffff;
 }
 
-.has-foreground-light-background-color {
-	background-color: #4d6974;
+.has-foreground-light-background-color[class] {
+	background-color: #4d6974 !important;
 	color: #ffffff;
 }
 
-.has-foreground-dark-background-color {
-	background-color: #253136;
+.has-foreground-dark-background-color[class] {
+	background-color: #253136 !important;
 	color: #ffffff;
 }
 
-.has-background-light-background-color {
-	background-color: #fafafa;
+.has-background-light-background-color[class] {
+	background-color: #fafafa !important;
 	color: #394d55;
 }
 
-.has-background-dark-background-color {
-	background-color: #d9d9d9;
+.has-background-dark-background-color[class] {
+	background-color: #d9d9d9 !important;
 	color: #394d55;
 }
 
-.has-background-background-color {
-	background-color: #ffffff;
+.has-background-background-color[class] {
+	background-color: #ffffff !important;
 	color: #394d55;
 }
 

+ 38 - 49
alves/style-rtl.css

@@ -1519,18 +1519,12 @@ button[data-load-more-btn], .button {
 	margin-bottom: 32px;
 }
 
-.wp-block-cover .wp-block-cover__inner-container a:not(.wp-block-button__link),
-.wp-block-cover .wp-block-cover__inner-container a.wp-block-button__link:hover,
-.wp-block-cover .wp-block-cover-image-text a:not(.wp-block-button__link),
-.wp-block-cover .wp-block-cover-image-text a.wp-block-button__link:hover,
-.wp-block-cover .wp-block-cover-text a:not(.wp-block-button__link),
-.wp-block-cover .wp-block-cover-text a.wp-block-button__link:hover,
-.wp-block-cover-image .wp-block-cover__inner-container a:not(.wp-block-button__link),
-.wp-block-cover-image .wp-block-cover__inner-container a.wp-block-button__link:hover,
-.wp-block-cover-image .wp-block-cover-image-text a:not(.wp-block-button__link),
-.wp-block-cover-image .wp-block-cover-image-text a.wp-block-button__link:hover,
-.wp-block-cover-image .wp-block-cover-text a:not(.wp-block-button__link),
-.wp-block-cover-image .wp-block-cover-text a.wp-block-button__link:hover {
+.wp-block-cover .wp-block-cover__inner-container a,
+.wp-block-cover .wp-block-cover-image-text a,
+.wp-block-cover .wp-block-cover-text a,
+.wp-block-cover-image .wp-block-cover__inner-container a,
+.wp-block-cover-image .wp-block-cover-image-text a,
+.wp-block-cover-image .wp-block-cover-text a {
 	color: currentColor;
 }
 
@@ -2255,10 +2249,6 @@ hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
 	max-width: 96px;
 }
 
-hr.wp-block-separator.is-style-wide {
-	border-bottom-width: 2px;
-}
-
 hr.wp-block-separator.is-style-dots.has-background, hr.wp-block-separator.is-style-dots.has-text-color {
 	background-color: transparent !important;
 }
@@ -2407,36 +2397,36 @@ table th,
 	background-attachment: fixed;
 }
 
-.has-primary-color {
-	color: #3E7D98;
+.has-primary-color[class] {
+	color: #3E7D98 !important;
 }
 
-.has-secondary-color {
-	color: #9B6A36;
+.has-secondary-color[class] {
+	color: #9B6A36 !important;
 }
 
-.has-foreground-color {
-	color: #394d55;
+.has-foreground-color[class] {
+	color: #394d55 !important;
 }
 
-.has-foreground-light-color {
-	color: #4d6974;
+.has-foreground-light-color[class] {
+	color: #4d6974 !important;
 }
 
-.has-foreground-dark-color {
-	color: #253136;
+.has-foreground-dark-color[class] {
+	color: #253136 !important;
 }
 
-.has-background-light-color {
-	color: #fafafa;
+.has-background-light-color[class] {
+	color: #fafafa !important;
 }
 
-.has-background-dark-color {
-	color: #d9d9d9;
+.has-background-dark-color[class] {
+	color: #d9d9d9 !important;
 }
 
-.has-background-color {
-	color: #ffffff;
+.has-background-color[class] {
+	color: #ffffff !important;
 }
 
 .has-background:not(.has-background-background-color) a,
@@ -2444,43 +2434,43 @@ table th,
 	color: currentColor;
 }
 
-.has-primary-background-color {
-	background-color: #3E7D98;
+.has-primary-background-color[class] {
+	background-color: #3E7D98 !important;
 	color: #ffffff;
 }
 
-.has-secondary-background-color {
-	background-color: #9B6A36;
+.has-secondary-background-color[class] {
+	background-color: #9B6A36 !important;
 	color: #ffffff;
 }
 
-.has-foreground-background-color {
-	background-color: #394d55;
+.has-foreground-background-color[class] {
+	background-color: #394d55 !important;
 	color: #ffffff;
 }
 
-.has-foreground-light-background-color {
-	background-color: #4d6974;
+.has-foreground-light-background-color[class] {
+	background-color: #4d6974 !important;
 	color: #ffffff;
 }
 
-.has-foreground-dark-background-color {
-	background-color: #253136;
+.has-foreground-dark-background-color[class] {
+	background-color: #253136 !important;
 	color: #ffffff;
 }
 
-.has-background-light-background-color {
-	background-color: #fafafa;
+.has-background-light-background-color[class] {
+	background-color: #fafafa !important;
 	color: #394d55;
 }
 
-.has-background-dark-background-color {
-	background-color: #d9d9d9;
+.has-background-dark-background-color[class] {
+	background-color: #d9d9d9 !important;
 	color: #394d55;
 }
 
-.has-background-background-color {
-	background-color: #ffffff;
+.has-background-background-color[class] {
+	background-color: #ffffff !important;
 	color: #394d55;
 }
 
@@ -3215,7 +3205,6 @@ body:not(.fse-enabled) .footer-menu a {
 .pagination .nav-links .svg-icon {
 	display: inline-block;
 	vertical-align: middle;
-	fill: currentColor;
 }
 
 @media only screen and (min-width: 560px) {

+ 38 - 49
alves/style.css

@@ -1519,18 +1519,12 @@ button[data-load-more-btn], .button {
 	margin-bottom: 32px;
 }
 
-.wp-block-cover .wp-block-cover__inner-container a:not(.wp-block-button__link),
-.wp-block-cover .wp-block-cover__inner-container a.wp-block-button__link:hover,
-.wp-block-cover .wp-block-cover-image-text a:not(.wp-block-button__link),
-.wp-block-cover .wp-block-cover-image-text a.wp-block-button__link:hover,
-.wp-block-cover .wp-block-cover-text a:not(.wp-block-button__link),
-.wp-block-cover .wp-block-cover-text a.wp-block-button__link:hover,
-.wp-block-cover-image .wp-block-cover__inner-container a:not(.wp-block-button__link),
-.wp-block-cover-image .wp-block-cover__inner-container a.wp-block-button__link:hover,
-.wp-block-cover-image .wp-block-cover-image-text a:not(.wp-block-button__link),
-.wp-block-cover-image .wp-block-cover-image-text a.wp-block-button__link:hover,
-.wp-block-cover-image .wp-block-cover-text a:not(.wp-block-button__link),
-.wp-block-cover-image .wp-block-cover-text a.wp-block-button__link:hover {
+.wp-block-cover .wp-block-cover__inner-container a,
+.wp-block-cover .wp-block-cover-image-text a,
+.wp-block-cover .wp-block-cover-text a,
+.wp-block-cover-image .wp-block-cover__inner-container a,
+.wp-block-cover-image .wp-block-cover-image-text a,
+.wp-block-cover-image .wp-block-cover-text a {
 	color: currentColor;
 }
 
@@ -2255,10 +2249,6 @@ hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
 	max-width: 96px;
 }
 
-hr.wp-block-separator.is-style-wide {
-	border-bottom-width: 2px;
-}
-
 hr.wp-block-separator.is-style-dots.has-background, hr.wp-block-separator.is-style-dots.has-text-color {
 	background-color: transparent !important;
 }
@@ -2412,36 +2402,36 @@ table th,
 	background-attachment: fixed;
 }
 
-.has-primary-color {
-	color: #3E7D98;
+.has-primary-color[class] {
+	color: #3E7D98 !important;
 }
 
-.has-secondary-color {
-	color: #9B6A36;
+.has-secondary-color[class] {
+	color: #9B6A36 !important;
 }
 
-.has-foreground-color {
-	color: #394d55;
+.has-foreground-color[class] {
+	color: #394d55 !important;
 }
 
-.has-foreground-light-color {
-	color: #4d6974;
+.has-foreground-light-color[class] {
+	color: #4d6974 !important;
 }
 
-.has-foreground-dark-color {
-	color: #253136;
+.has-foreground-dark-color[class] {
+	color: #253136 !important;
 }
 
-.has-background-light-color {
-	color: #fafafa;
+.has-background-light-color[class] {
+	color: #fafafa !important;
 }
 
-.has-background-dark-color {
-	color: #d9d9d9;
+.has-background-dark-color[class] {
+	color: #d9d9d9 !important;
 }
 
-.has-background-color {
-	color: #ffffff;
+.has-background-color[class] {
+	color: #ffffff !important;
 }
 
 .has-background:not(.has-background-background-color) a,
@@ -2449,43 +2439,43 @@ table th,
 	color: currentColor;
 }
 
-.has-primary-background-color {
-	background-color: #3E7D98;
+.has-primary-background-color[class] {
+	background-color: #3E7D98 !important;
 	color: #ffffff;
 }
 
-.has-secondary-background-color {
-	background-color: #9B6A36;
+.has-secondary-background-color[class] {
+	background-color: #9B6A36 !important;
 	color: #ffffff;
 }
 
-.has-foreground-background-color {
-	background-color: #394d55;
+.has-foreground-background-color[class] {
+	background-color: #394d55 !important;
 	color: #ffffff;
 }
 
-.has-foreground-light-background-color {
-	background-color: #4d6974;
+.has-foreground-light-background-color[class] {
+	background-color: #4d6974 !important;
 	color: #ffffff;
 }
 
-.has-foreground-dark-background-color {
-	background-color: #253136;
+.has-foreground-dark-background-color[class] {
+	background-color: #253136 !important;
 	color: #ffffff;
 }
 
-.has-background-light-background-color {
-	background-color: #fafafa;
+.has-background-light-background-color[class] {
+	background-color: #fafafa !important;
 	color: #394d55;
 }
 
-.has-background-dark-background-color {
-	background-color: #d9d9d9;
+.has-background-dark-background-color[class] {
+	background-color: #d9d9d9 !important;
 	color: #394d55;
 }
 
-.has-background-background-color {
-	background-color: #ffffff;
+.has-background-background-color[class] {
+	background-color: #ffffff !important;
 	color: #394d55;
 }
 
@@ -3232,7 +3222,6 @@ body:not(.fse-enabled) .footer-menu a {
 .pagination .nav-links .svg-icon {
 	display: inline-block;
 	vertical-align: middle;
-	fill: currentColor;
 }
 
 @media only screen and (min-width: 560px) {