🧹 moved files around

This commit is contained in:
2022-07-26 20:18:12 +02:00
parent fe162eb081
commit d585af2193
22 changed files with 83 additions and 157 deletions

View File

@@ -0,0 +1,82 @@
<template>
<li
class="sidebar-list-element"
@click="event => $emit('click', event)"
:class="{ active, disabled }"
>
<slot></slot>
</li>
</template>
<script>
export default {
props: {
active: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
}
}
};
</script>
<style lang="scss">
@import "src/scss/media-queries";
li.sidebar-list-element {
display: flex;
align-items: center;
text-decoration: none;
text-transform: uppercase;
color: var(--text-color-50);
font-size: 12px;
padding: 10px 0;
border-bottom: 1px solid var(--text-color-5);
cursor: pointer;
&:first-of-type {
padding-top: 0;
}
div > svg,
svg {
width: 26px;
height: 26px;
margin-right: 1rem;
transition: all 0.3s ease;
fill: var(--text-color-70);
}
&:hover,
&.active {
color: var(--text-color);
div > svg,
svg {
fill: var(--text-color);
transform: scale(1.1, 1.1);
}
}
&.active > div > svg,
&.active > svg {
fill: var(--color-green);
}
&.disabled {
cursor: default;
}
.pending {
color: #f8bd2d;
}
.meta {
margin-left: auto;
text-align: right;
}
}
</style>