Browse Source

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

Allan Cole 5 years ago
parent
commit
9767bc4e10
1 changed files with 28 additions and 22 deletions
  1. 28 22
      rivington/style.css

+ 28 - 22
rivington/style.css

@@ -1519,12 +1519,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;
 }
 
@@ -2406,35 +2412,35 @@ table th,
 	background-attachment: fixed;
 }
 
-.has-primary-color[class] {
+.has-primary-color {
 	color: #CAAB57;
 }
 
-.has-secondary-color[class] {
+.has-secondary-color {
 	color: #EE4266;
 }
 
-.has-foreground-color[class] {
+.has-foreground-color {
 	color: #f2f2f2;
 }
 
-.has-foreground-light-color[class] {
+.has-foreground-light-color {
 	color: white;
 }
 
-.has-foreground-dark-color[class] {
+.has-foreground-dark-color {
 	color: #8F8F8F;
 }
 
-.has-background-light-color[class] {
+.has-background-light-color {
 	color: #0d1f55;
 }
 
-.has-background-dark-color[class] {
+.has-background-dark-color {
 	color: #030713;
 }
 
-.has-background-color[class] {
+.has-background-color {
 	color: #060f29;
 }
 
@@ -2443,42 +2449,42 @@ table th,
 	color: currentColor;
 }
 
-.has-primary-background-color[class] {
+.has-primary-background-color {
 	background-color: #CAAB57;
 	color: #060f29;
 }
 
-.has-secondary-background-color[class] {
+.has-secondary-background-color {
 	background-color: #EE4266;
 	color: #060f29;
 }
 
-.has-foreground-background-color[class] {
+.has-foreground-background-color {
 	background-color: #f2f2f2;
 	color: #060f29;
 }
 
-.has-foreground-light-background-color[class] {
+.has-foreground-light-background-color {
 	background-color: white;
 	color: #060f29;
 }
 
-.has-foreground-dark-background-color[class] {
+.has-foreground-dark-background-color {
 	background-color: #8F8F8F;
 	color: #060f29;
 }
 
-.has-background-light-background-color[class] {
+.has-background-light-background-color {
 	background-color: #0d1f55;
 	color: #f2f2f2;
 }
 
-.has-background-dark-background-color[class] {
+.has-background-dark-background-color {
 	background-color: #030713;
 	color: #f2f2f2;
 }
 
-.has-background-background-color[class] {
+.has-background-background-color {
 	background-color: #060f29;
 	color: #f2f2f2;
 }