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);
}
.button-unstyled:hover,
a:hover {
i[class*=icon-],
.svg-inline--fa,
.iconLetter {
color: $fallback--text;
color: var(--text, $fallback--text);
}
}
nav {
z-index: var(--ZI_navbar);
color: var(--topBarText);

View File

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

View File

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

View File

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