Improve hover properties of icon menu

This commit is contained in:
Tetrakern 2024-08-07 14:28:58 +02:00
parent 0b55be6a0e
commit b47544e73e
5 changed files with 19 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -56,7 +56,7 @@ if ( $header_style === 'wide' ) {
fictioneer_icon( 'fa-bars', 'off' );
fictioneer_icon( 'fa-xmark', 'on' );
?>
<span class="mobile-menu-button__label"><?php _ex( 'Menu' , 'Mobile menu label', 'fictioneer'); ?></span>
<span class="mobile-menu-button__label"><?php _ex( 'Menu' , 'Mobile menu label', 'fictioneer' ); ?></span>
</label>
<nav class="main-navigation__left" aria-label="<?php echo esc_attr__( 'Main Navigation', 'fictioneer' ); ?>">

View File

@ -13,6 +13,20 @@
letter-spacing: 0;
padding: 0 10px;
height: var(--navigation-height);
&:hover {
color: var(--navigation-color-hover);
}
}
.sub-menu {
:where(a, label, button):where(:not(._no-menu-item-style)) {
color: var(--navigation-subitem-color, var(--navigation-color));
&:hover {
color: var(--navigation-subitem-color-hover, var(--navigation-color-hover));
}
}
}
&:hover,

View File

@ -233,6 +233,7 @@
}
&:hover {
color: var(--navigation-color-hover);
background: var(--navigation-item-background-hover);
}
@ -471,6 +472,7 @@
&__note {
text-transform: uppercase;
color: var(--navigation-subitem-color, var(--navigation-color));
font-family: var(--ff-note);
font-size: 12px;
font-weight: 600;