Better style for popup window categories
This commit is contained in:
parent
efea2bef15
commit
3242153d07
1 changed files with 9 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
</div>
|
||||
|
||||
<div class="categories" v-else>
|
||||
<div class="category" v-for="(actions, category) in actionsByCategory" :key="category">
|
||||
<div class="category" :class="{ selected: selectedCategory === category }" v-for="(actions, category) in actionsByCategory" :key="category">
|
||||
<div class="head" v-if="category.length" @click="selectedCategory = selectedCategory === category ? null : category">
|
||||
<i class="fas" :class="selectedCategory === category ? 'fa-chevron-up' : 'fa-chevron-down'" />
|
||||
<span class="name" v-text="category" />
|
||||
|
@ -166,6 +166,14 @@ export default {
|
|||
display: flex;
|
||||
}
|
||||
|
||||
.category {
|
||||
&.selected {
|
||||
box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
|
||||
margin: 0 -0.65em;
|
||||
border-radius: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
.main {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
Loading…
Reference in a new issue