frontend/components/SidebarTemplate.vue
2025-10-26 18:56:20 +01:00

44 lines
817 B
Vue

<template>
<nav class="sidebar">
<slot></slot>
</nav>
<AccountPopup ref="accountPopup"></AccountPopup>
</template>
<script setup lang="ts">
</script>
<style>
.sidebar {
padding: 1rem;
background-color: var(--tile-color);
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 0.5rem;
height: 100%;
}
.namespace, .resources {
padding: 0.35rem 0.5rem;
border-radius: 0.25rem;
cursor: pointer;
}
.namespace.active, .resources.router-link-active {
background-color: var(--primary-color)
}
.namespace.active *, .resources.router-link-active {
color: white;
}
.divider {
height: 1px;
background-color: rgb(36, 36, 36);
}
.nav > * {
display: block;
text-decoration: none;
}
.hide {
visibility: hidden;
}
</style>