Modrinth/lib/components/nav/NavRow.vue
Geometrically 1b81a1f4a6
Omorphia Cleanup + Adding missing styles (#18)
* Add missing knossos styles + some knossos cleanup

* remove yarn.lock

* Update output syntax
2023-03-13 11:40:41 -07:00

52 lines
807 B
Vue

<script setup>
defineProps({})
</script>
<template>
<div class="omorphia__navrow">
<slot />
<div class="right-slot">
<slot name="right" />
</div>
</div>
</template>
<style lang="scss" scoped>
.omorphia__navrow {
display: flex;
flex-direction: row;
.right-slot {
margin-left: auto;
}
:deep(.btn) {
position: relative;
&::after {
content: '';
position: absolute;
width: calc(100% - var(--gap-lg) * 2);
height: 4px;
bottom: 4px;
border-radius: var(--radius-max);
background-color: var(--color-brand);
opacity: 0;
}
&:hover::after {
opacity: 50%;
}
&.selected {
color: var(--color-contrast);
font-weight: bold;
&::after {
opacity: 1;
}
}
}
}
</style>