瀏覽代碼

Mayland: Fix nested button text-color, code tidying.

Allan Cole 5 年之前
父節點
當前提交
efe7c28d43
共有 1 個文件被更改,包括 28 次插入22 次删除
  1. 28 22
      mayland/style.css

+ 28 - 22
mayland/style.css

@@ -1518,12 +1518,18 @@ button[data-load-more-btn], .button {
 	margin-bottom: 32px;
 }
 
-.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 {
+.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 {
 	color: currentColor;
 }
 
@@ -2405,35 +2411,35 @@ table th,
 	background-attachment: fixed;
 }
 
-.has-primary-color[class] {
+.has-primary-color {
 	color: #000000;
 }
 
-.has-secondary-color[class] {
+.has-secondary-color {
 	color: #1a1a1a;
 }
 
-.has-foreground-color[class] {
+.has-foreground-color {
 	color: #010101;
 }
 
-.has-foreground-light-color[class] {
+.has-foreground-light-color {
 	color: #666666;
 }
 
-.has-foreground-dark-color[class] {
+.has-foreground-dark-color {
 	color: #333333;
 }
 
-.has-background-light-color[class] {
+.has-background-light-color {
 	color: #f2f2f2;
 }
 
-.has-background-dark-color[class] {
+.has-background-dark-color {
 	color: #d9d9d9;
 }
 
-.has-background-color[class] {
+.has-background-color {
 	color: #ffffff;
 }
 
@@ -2442,42 +2448,42 @@ table th,
 	color: currentColor;
 }
 
-.has-primary-background-color[class] {
+.has-primary-background-color {
 	background-color: #000000;
 	color: #ffffff;
 }
 
-.has-secondary-background-color[class] {
+.has-secondary-background-color {
 	background-color: #1a1a1a;
 	color: #ffffff;
 }
 
-.has-foreground-background-color[class] {
+.has-foreground-background-color {
 	background-color: #010101;
 	color: #ffffff;
 }
 
-.has-foreground-light-background-color[class] {
+.has-foreground-light-background-color {
 	background-color: #666666;
 	color: #ffffff;
 }
 
-.has-foreground-dark-background-color[class] {
+.has-foreground-dark-background-color {
 	background-color: #333333;
 	color: #ffffff;
 }
 
-.has-background-light-background-color[class] {
+.has-background-light-background-color {
 	background-color: #f2f2f2;
 	color: #010101;
 }
 
-.has-background-dark-background-color[class] {
+.has-background-dark-background-color {
 	background-color: #d9d9d9;
 	color: #010101;
 }
 
-.has-background-background-color[class] {
+.has-background-background-color {
 	background-color: #ffffff;
 	color: #010101;
 }