Skip to content

Commit

Permalink
Resolves #733
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesros161 committed Sep 30, 2022
1 parent bec144f commit dd1e5e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/assets/scss/custom-color/color-classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,20 @@ $names: background background-color;
@for $each from 1 through length( $colors ) {
$reference: nth($colors, $color);
&.color-#{$each}-link-color {
a {
a:not( .btn ) {
color: #{nth($colors, $each)};
}
a:hover, a:focus, a:active, a.highlighted {
a:not( .btn ):hover, a:not( .btn ):focus, a:not( .btn ):active, a:not( .btn ).highlighted {
color: hover( nth($colors, $color), nth($colors, $each) );
}
}
}
@if variable-exists( palette-primary-neutral-color ) {
&.color-neutral-link-color {
a {
a:not( .btn ) {
color: $palette-primary-neutral-color;
}
a:hover, a:focus, a:active, a.highlighted {
a:not( .btn ):hover, a:not( .btn ):focus, a:not( .btn ):active, a:not( .btn ).highlighted {
color: hover( nth($colors, $color), $palette-primary-neutral-color );
}
}
Expand Down Expand Up @@ -147,19 +147,19 @@ $names: background background-color;
.color#{$color}-#{nth( $names, $i )} {
@for $each from 1 through length( $colors ) {
&.color-#{$each}-link-color {
a {
a:not( .btn ) {
color: #{nth($colors, $each)};
}
a:hover, a:focus, a:active, a.highlighted {
a:not( .btn ):hover, a:not( .btn ):focus, a:not( .btn ):active, a:not( .btn ).highlighted {
color: hover( nth($colors, $color), nth($colors, $each) );
}
}
&.sidebar {
&.color-#{$each}-link-color {
a {
a:not( .btn ) {
color: #{nth($colors, $each)};
}
a:hover, a:focus, a:active, a.highlighted {
a:not( .btn ):hover, a:not( .btn ):focus, a:not( .btn ):active, a:not( .btn ).highlighted {
color: hover( nth($colors, $color), nth($colors, $each) );
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/includes/class-boldgrid-framework-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ public function get_styles( $prefix ) {
$footer_lightness = max( $footer_lightness, 0 );
$footer_color_hover = $footer_ari_color->getNew( 'lightness', $footer_lightness )->toCSS( 'hsla' );

$css .= "#colophon .bgtfw-footer.footer-content *:not( .menu-item ) > a { text-decoration: ${decoration};}";
$css .= "#colophon .bgtfw-footer.footer-content *:not( .menu-item ) > a:hover, .bgtfw-footer.footer-content *:not( .menu-item ) > a:focus {color: ${footer_color_hover};text-decoration: ${decoration_hover};}";
$css .= "#colophon .bgtfw-footer.footer-content *:not( .menu-item ) > a:not( .btn ) { text-decoration: ${decoration};}";
$css .= "#colophon .bgtfw-footer.footer-content *:not( .menu-item ) > a:not( .btn ):hover, .bgtfw-footer.footer-content *:not( .menu-item ) > a:not( .btn ):focus {color: ${footer_color_hover};text-decoration: ${decoration_hover};}";
}
}
}
Expand Down

0 comments on commit dd1e5e5

Please sign in to comment.