浏览代码

Rainfall: fix navigation link colors (#6577)

* Rainfall: fix navigation link colors

* Rainfall: footer submenu background and text color
Matias Benedetto 2 年之前
父节点
当前提交
b6fea549f7
共有 3 个文件被更改,包括 6 次插入7 次删除
  1. 1 1
      rainfall/parts/footer.html
  2. 5 3
      rainfall/style.css
  3. 0 3
      rainfall/theme.json

+ 1 - 1
rainfall/parts/footer.html

@@ -3,7 +3,7 @@
 <div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--110)"><!-- wp:site-title {"textAlign":"left","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"small"} /-->
 
 <!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","orientation":"horizontal"}} -->
-<div class="wp-block-group"><!-- wp:navigation {"overlayMenu":"never","layout":{"type":"flex","justifyContent":"left"},"style":{"typography":{"textTransform":"uppercase"}}} /--></div>
+<div class="wp-block-group"><!-- wp:navigation {"overlayMenu":"never","overlayBackgroundColor":"black","overlayTextColor":"white","layout":{"type":"flex","justifyContent":"left"},"style":{"typography":{"textTransform":"uppercase"}}} /--></div>
 <!-- /wp:group --></div>
 <!-- /wp:group --></div>
 <!-- /wp:group -->

+ 5 - 3
rainfall/style.css

@@ -36,14 +36,16 @@ Tags: two-columns, custom-colors, custom-menu, custom-logo, editor-style, featur
 /**
  * Navigation on dark background
  */
-.wp-block-navigation .has-black-background-color a:where(:not(.wp-element-button)):hover {
-	color: var(--wp--preset--color--white);
+
+.has-orange-background-color .has-black-background-color .wp-block-navigation-item  a:where(:not(.wp-element-button)):active {
+	color: var(--wp--preset--color--brown);
 }
 
-.wp-block-navigation .has-black-background-color a:where(:not(.wp-element-button)):active {
+.has-black-background-color .wp-block-navigation-item  a:where(:not(.wp-element-button)):active {
 	color: var(--wp--preset--color--orange);
 }
 
+
 /**
  * Search input on dark background
  */

+ 0 - 3
rainfall/theme.json

@@ -180,9 +180,6 @@
 				"elements": {
 					"link": {
 						":hover": {
-							"color": {
-								"text": "var(--wp--preset--color--black)"
-							},
 							"typography": {
 								"textDecoration": "underline"
 							}