Center text in navigation.
This commit is contained in:
parent
ebbfc35496
commit
3df678b839
3 changed files with 11 additions and 6 deletions
|
|
@ -1,6 +1,14 @@
|
||||||
.nav-item {
|
.nav-item {
|
||||||
@apply flex flex-col items-center p-4 lg:justify-center hover:bg-surface-800 rounded-border text-surface-300 hover:text-white duration-150 transition-colors;
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 16px;
|
||||||
|
@apply hover:bg-surface-800 rounded-border text-surface-300 hover:text-white;
|
||||||
span {
|
span {
|
||||||
@apply font-medium inline text-base lg:text-xs lg:block;
|
@apply text-base;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.nav-icon {
|
||||||
|
@apply text-base;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,6 @@
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import "@/assets/nav-items.css";
|
@import "@/assets/nav-items.css";
|
||||||
.nav-icon {
|
|
||||||
@apply mr-2 lg:mr-0 mb-0 lg:mb-2 text-base lg:text-lg;
|
|
||||||
}
|
|
||||||
nav {
|
nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ const toggle = (event: Event) => { menu.value.toggle(event); };
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<Avatar v-bind:label="sessionStore.initials" size="large" shape="circle" />
|
<Avatar v-bind:label="sessionStore.initials" size="large" shape="circle" />
|
||||||
</div>
|
</div>
|
||||||
<span class="inline lg:hidden">{{ sessionStore.user.name }}</span>
|
<span>{{ sessionStore.user.name }}</span>
|
||||||
</a>
|
</a>
|
||||||
<Menu ref="menu" id="overlay_menu" :model="items" :popup="true">
|
<Menu ref="menu" id="overlay_menu" :model="items" :popup="true">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue