improve submenu and improve icon buttons hover effects

This commit is contained in:
Henry Jameson 2022-08-23 13:26:05 +03:00
parent fa41f6cf96
commit 63f35509a7
4 changed files with 29 additions and 2 deletions

View File

@ -130,6 +130,16 @@ i[class*=icon-],
color: var(--icon, $fallback--icon); color: var(--icon, $fallback--icon);
} }
.button-unstyled:hover,
a:hover {
i[class*=icon-],
.svg-inline--fa,
.iconLetter {
color: $fallback--text;
color: var(--text, $fallback--text);
}
}
nav { nav {
z-index: var(--ZI_navbar); z-index: var(--ZI_navbar);
color: var(--topBarText); color: var(--topBarText);

View File

@ -126,6 +126,13 @@
} }
} }
&.-has-submenu {
.chevron-icon {
margin-right: 0.25rem;
margin-left: 2rem;
}
}
&:active, &:hover { &:active, &:hover {
background-color: $fallback--lightBg; background-color: $fallback--lightBg;
background-color: var(--selectedMenuPopover, $fallback--lightBg); background-color: var(--selectedMenuPopover, $fallback--lightBg);

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="UserListMenu"> <div class="UserListMenu">
<Popover <Popover
trigger="click" trigger="hover"
placement="left" placement="left"
remove-padding remove-padding
> >
@ -22,9 +22,10 @@
</div> </div>
</template> </template>
<template #trigger> <template #trigger>
<button class="btn button-default dropdown-item"> <button class="btn button-default dropdown-item -has-submenu">
{{ $t('lists.manage_lists') }} {{ $t('lists.manage_lists') }}
<FAIcon <FAIcon
class="chevron-icon"
size="lg" size="lg"
icon="chevron-right" icon="chevron-right"
/> />

View File

@ -147,6 +147,15 @@
color: var(--panelLink, $fallback--link); color: var(--panelLink, $fallback--link);
} }
.button-unstyled:hover,
a:hover {
i[class*=icon-],
.svg-inline--fa,
.iconLetter {
color: var(--panelText);
}
}
.faint { .faint {
background-color: transparent; background-color: transparent;
color: $fallback--faint; color: $fallback--faint;