feat: improve main nav spacing and open speed

This commit is contained in:
Dominik Pschenitschni 2024-07-03 19:22:34 +02:00 committed by konrad
parent e2eb711ac9
commit faa797f461
2 changed files with 15 additions and 8 deletions

View File

@ -70,7 +70,7 @@
>
<span class="username">{{ authStore.userDisplayName }}</span>
<span
class="icon is-small"
class="ml-1 dropdown-icon icon is-small"
:style="{
transform: open ? 'rotate(180deg)' : 'rotate(0)',
}"
@ -161,13 +161,8 @@ $user-dropdown-width-mobile: 5rem;
background: var(--site-background);
@media screen and (max-width: $tablet) {
padding-right: .5rem;
}
@media screen and (min-width: $tablet) {
padding-left: 2rem;
padding-right: 1rem;
align-items: stretch;
}
@ -263,11 +258,19 @@ $user-dropdown-width-mobile: 5rem;
}
.username-dropdown-trigger {
padding-left: 1rem;
padding-left: .75rem;
display: inline-flex;
align-items: center;
font-size: .85rem;
font-weight: 700;
@media screen and (max-width: $tablet) {
padding-right: .5rem;
}
@media screen and (min-width: $tablet) {
padding-right: .75rem;
}
}
.username {
@ -278,6 +281,10 @@ $user-dropdown-width-mobile: 5rem;
}
}
.dropdown-icon {
transition: transform $transition;
}
.avatar {
border-radius: 100%;
vertical-align: middle;

View File

@ -22,7 +22,7 @@
<CustomTransition name="fade">
<div
v-if="open"
v-show="open"
class="dropdown-menu"
>
<div class="dropdown-content">