浏览代码

Adjust header and extra blue color.

Kjell Reigstad 5 年之前
父节点
当前提交
915b62fbb7
共有 1 个文件被更改,包括 35 次插入4 次删除
  1. 35 4
      alves/inc/wpcom-colors.php

+ 35 - 4
alves/inc/wpcom-colors.php

@@ -12,11 +12,11 @@ add_color_rule( 'bg', '#ffffff', array(
 			body,
 			body .widget_eu_cookie_law_widget #eu-cookie-law,
 			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
-			.main-navigation > div > ul > li > .sub-menu', 'background-color' ),
+			.main-navigation > div > ul > li > .sub-menu,
+			.site-header .main-navigation > div > ul > li .sub-menu a', 'background-color' ),
 
 	// Text-color
-	array( '.site-header .main-navigation > div > ul > li .sub-menu a,
-			.a8c-posts-list-item__featured span,
+	array( '.a8c-posts-list-item__featured span,
 			.a8c-posts-list__view-all,
 			.a8c-posts-list__view-all:focus,
 			.a8c-posts-list__view-all:hover,
@@ -62,6 +62,10 @@ add_color_rule( 'bg', '#ffffff', array(
 			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, 
+			.site-header .main-navigation > div > ul > li.current-menu-item > ul::before', 'border-bottom-color' ),
 
 	/**
 	 * Utility Classes
@@ -224,7 +228,34 @@ add_color_rule( 'txt', '#394d55', array(
 			input[type="week"],
 			input[type="week"]:focus,
 			textarea,
-			textarea:focus', 'color' ),
+			textarea:focus,
+			.site-header .main-navigation > div > ul > li .sub-menu a,
+			.a8c-posts-list__item .a8c-posts-list-item__meta,
+			.entry-footer,
+			.entry-meta,
+			.footer-navigation .footer-menu,
+			.has-foreground-light-color[class],
+			.site-branding,
+			.site-info,
+			.wp-block-image figcaption,
+			.wp-block-latest-comments .wp-block-latest-comments__comment-date,
+			.wp-block-latest-posts .wp-block-latest-posts__post-date,
+			.wp-block-newspack-blocks-homepage-articles article .cat-links,
+			.wp-block-newspack-blocks-homepage-articles article .entry-meta,
+			.wp-block-pullquote .wp-block-pullquote__citation,
+			.wp-block-pullquote cite,
+			.wp-block-pullquote footer,
+			.wp-block-quote .wp-block-quote__citation,
+			.wp-block-quote cite,
+			.wp-block-quote footer,
+			.wp-block-quote.is-large .wp-block-quote__citation,
+			.wp-block-quote.is-large cite,
+			.wp-block-quote.is-large footer,
+			.wp-block-quote.is-style-large .wp-block-quote__citation,
+			.wp-block-quote.is-style-large cite,
+			.wp-block-quote.is-style-large footer,
+			.wp-block-video figcaption,
+			figcaption', 'color' ),
 
 	// Background-color
 	array( '.wp-block-cover,