Implement menu bar floating list menus (#163)

Progress towards #135
This commit is contained in:
Keavon Chambers
2021-05-31 11:51:32 -07:00
parent 3d646d2bc3
commit d1bf68320e
16 changed files with 482 additions and 58 deletions
@@ -1,6 +1,6 @@
<template>
<div class="separator" :class="[direction.toLowerCase(), type.toLowerCase()]">
<div v-if="type === SeparatorType.Section"></div>
<div v-if="[SeparatorType.Section, SeparatorType.List].includes(type)"></div>
</div>
</template>
@@ -15,9 +15,9 @@
margin-top: 8px;
}
&.section {
&.section,
&.list {
width: 100%;
margin: 8px 0;
div {
height: 1px;
@@ -26,6 +26,14 @@
background: var(--color-7-middlegray);
}
}
&.section {
margin: 8px 0;
}
&.list {
margin: 4px 0;
}
}
&.horizontal {
@@ -37,9 +45,9 @@
margin-left: 8px;
}
&.section {
&.section,
&.list {
height: 100%;
margin: 0 8px;
div {
height: calc(100% - 8px);
@@ -48,6 +56,14 @@
background: var(--color-7-middlegray);
}
}
&.section {
margin: 0 8px;
}
&.list {
margin: 0 4px;
}
}
}
</style>
@@ -64,6 +80,7 @@ export enum SeparatorType {
"Related" = "Related",
"Unrelated" = "Unrelated",
"Section" = "Section",
"List" = "List",
}
export default defineComponent({