Fix MenuList submenu reachability on hover and other styling

This commit is contained in:
Keavon Chambers
2023-04-27 13:08:33 -07:00
parent 0bac707241
commit 44c26f1570
3 changed files with 24 additions and 19 deletions
@@ -285,10 +285,6 @@
flex: 0 0 auto;
}
.entry-icon svg {
fill: var(--color-e-nearwhite);
}
.no-icon {
width: 16px;
height: 16px;
@@ -317,25 +313,34 @@
height: 12px;
}
> .menu-list {
margin-right: -4px;
// Extend the submenu to the right by the width of the margin outside the row, since we want the submenu to line up with the edge of the menu
&.open {
// Offset by the margin distance
> .menu-list {
margin-right: -4px;
}
// Extend the click target by the margin distance so the user can hover to the right of the row, within the margin area, and still have the submenu open
&::after {
content: "";
position: absolute;
top: 0;
right: -4px;
width: 4px;
height: 100%;
}
}
&:hover,
&.open {
background: var(--color-6-lowergray);
color: var(--color-f-white);
.entry-icon svg {
fill: var(--color-f-white);
}
background: var(--color-5-dullgray);
}
&.active {
background: var(--color-e-nearwhite);
color: var(--color-2-mildblack);
.entry-icon svg {
svg {
fill: var(--color-2-mildblack);
}
}