Files
danbooru/app/components/popup_menu_component/popup_menu_component.scss
2022-01-17 11:58:19 -06:00

41 lines
720 B
SCSS

@import "../../javascript/src/styles/base/000_vars";
div.popup-menu {
display: inline-block;
a.popup-menu-button {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
border-radius: 4px;
padding: 4px 8px;
color: var(--muted-text-color);
// the popup menu is open
&[aria-expanded="true"] {
@include active-link;
}
// the popup menu is not open
&:not([aria-expanded="true"]) {
@include inactive-link;
}
}
ul.popup-menu-content {
display: none;
li a {
display: block;
padding: 0.125em 0 0.125em 0;
.icon {
width: 1rem;
margin-right: 0.25rem;
}
}
}
}