[frontend/components] Update styling for menus

This commit is contained in:
Jeder 2024-10-24 21:46:43 +02:00 committed by Lilian
parent f827818a9e
commit 438206dd45
No known key found for this signature in database
2 changed files with 18 additions and 4 deletions

View file

@ -1,10 +1,11 @@
.menu { .menu {
background-color: var(--foreground-color); background-color: var(--foreground-color);
position: absolute; position: absolute;
padding: 0.5rem 1rem; padding: 0.5rem;
border-radius: 1rem; border-radius: 0.5rem;
border: var(--highlight-color) solid 0.1rem; border: var(--highlight-color) solid 0.1rem;
width: 13rem; width: 15rem;
max-width: 20rem;
top: 2.5rem; top: 2.5rem;
left: -5rem; left: -5rem;
z-index: +1; z-index: +1;

View file

@ -1,3 +1,16 @@
.menu-element { .menu-element {
display: flex; display: flex;
margin: 0.2rem 0;
padding: 0.2rem 0;
padding-inline: 0.5rem;
border-radius: 0.5rem;
align-items: center;
> i {
padding-right: 0.5rem;
}
}
.menu-element:hover {
background-color: var(--hover-color);
} }