|
@@ -19,7 +19,7 @@ body {
|
|
|
// Links styles
|
|
|
a {
|
|
|
border-bottom: 1px solid var(--global--color-secondary);
|
|
|
- color: var(--global--color-primary);
|
|
|
+ color: var( --wp--style--color--link, var(--global--color-primary) );
|
|
|
text-decoration: none;
|
|
|
|
|
|
&:hover,
|
|
@@ -28,7 +28,19 @@ a {
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
- color: var(--global--color-primary);
|
|
|
+ color: var( --wp--style--color--link, var(--global--color-primary) );
|
|
|
+ }
|
|
|
+
|
|
|
+ // Enforce the custom link color even if a custom background color has been set.
|
|
|
+ // The extra specificity here is required to override the background color styles.
|
|
|
+ p.has-background.has-link-color:not(.has-background-background-color) & {
|
|
|
+ color: var( --wp--style--color--link, var(--global--color-primary) );
|
|
|
+ }
|
|
|
+
|
|
|
+ // If a custom link color has been assigned,
|
|
|
+ // switch the color of the bottom border too.
|
|
|
+ .has-link-color & {
|
|
|
+ border-bottom: 1px solid var(--wp--style--color--link);
|
|
|
}
|
|
|
}
|
|
|
|