Skip to content

Commit

Permalink
fix sub menu link scss
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesros161 committed Feb 22, 2022
1 parent fae284a commit ae347fc
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
Empty file added =
Empty file.
2 changes: 1 addition & 1 deletion src/assets/js/front-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var BoldGrid = BoldGrid || {};
return;
}
$( this ).addClass( 'btn' );
buttonClasses.forEach( ( buttonClass ) => {
buttonClasses.split( ' ' ).forEach( ( buttonClass ) => {
if ( ! $( this ).hasClass( buttonClass ) ) {
$( this ).addClass( buttonClass );
}
Expand Down
62 changes: 62 additions & 0 deletions src/assets/scss/custom-color/color-classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ $names: background background-color;
color: hover( nth($colors, $color), $palette-primary-neutral-color );
}
}
&.color-neutral-sub-link-color.sm {
ul {
li:not(.btn) {
a {
color: $palette-primary-neutral-color;
}
a:hover, a:focus, a:active, a.highlighted {
color: hover( nth($colors, $color), $palette-primary-neutral-color );
}
}
}
}
}
&-hover {
&:focus, &:hover {
Expand Down Expand Up @@ -192,6 +204,32 @@ $names: background background-color;
color: hover( nth($colors, $color), $palette-primary-neutral-color );
}
}
&.color-neutral-sub-link-color.sm {
ul {
li:not(.btn) {
a {
color: $palette-primary-neutral-color;
}
a:hover, a:focus, a:active, a.highlighted {
color: hover( nth($colors, $color), $palette-primary-neutral-color );
}
}
}
}
@for $subEach from 1 through length( $colors ) {
&.color-#{$subEach}-sub-link-color {
ul {
li:not(.btn) {
a {
color: #{nth($colors, $subEach)};
}
a:hover, a:focus, a:active, a.highlighted {
color: hover( nth($colors, $color), nth($colors, $subEach) );
}
}
}
}
}
}
&-hover {
&:focus, &:hover {
Expand All @@ -211,6 +249,18 @@ $names: background background-color;
color: hover( $palette-primary-neutral-color, nth($colors, $each) );
}
}
&.color-#{$each}-sub-link-color.sm {
ul {
li:not(.btn) {
a {
color: #{nth($colors, $each)};
}
a:hover, a:focus, a:active, a.highlighted {
color: hover( $palette-primary-neutral-color, nth($colors, $each) );
}
}
}
}
}
&.color-neutral-link-color {
a {
Expand All @@ -220,6 +270,18 @@ $names: background background-color;
color: hover( $palette-primary-neutral-color, $palette-primary-neutral-color );
}
}
&.color-neutral-sub-link-color.sm {
ul {
li:not(.btn) {
a {
color: $palette-primary-neutral-color;
}
a:hover, a:focus, a:active, a.highlighted {
color: hover( $palette-primary-neutral-color, $palette-primary-neutral-color );
}
}
}
}
}
}
}
Expand Down

0 comments on commit ae347fc

Please sign in to comment.