[frontend/components] Update dropdown styling

This commit is contained in:
Jeder 2024-10-28 14:39:37 +01:00 committed by Lilian
parent 611fd88b67
commit ed69e74a2d
No known key found for this signature in database
3 changed files with 30 additions and 4 deletions

View file

@ -86,6 +86,11 @@
background-color: var(--hover-color);
}
::deep {
.dropdown-root, .dropdown-menu {
color: var(--notice-color);
}
}
.separator {
color: var(--highlight-color);

View file

@ -1,6 +1,7 @@
.dropdown-menu {
position: absolute;
top: 5rem;
top: 3rem;
left: 1.75rem;
background-color: var(--background-color);
padding: 0.5rem;
border-color: var(--highlight-color);
@ -10,5 +11,14 @@
}
.dropdown-root {
display: inline-block
display: inline-block;
padding: 0.5rem 0.75rem;
height: max-content;
line-height: 1;
cursor: pointer;
border-radius: 8px;
}
.dropdown-root:hover {
background-color: var(--hover-color);
}

View file

@ -1,4 +1,15 @@
.dropdown-element {
margin: 0.25em;
display: flex;
align-items: center;
cursor: pointer;
gap: 0.25rem;
margin: 0.3em 0.25em;
padding: 0.2rem 0;
line-height: 1;
}
@media (max-width: 1000px) {
.dropdown-element {
margin: 0.5em 0.25em;
}
}