New icons need different styling, updated.

This commit is contained in:
2022-03-04 18:24:37 +01:00
parent 3ceb2d7a6f
commit fc2b139653

View File

@@ -1,5 +1,9 @@
<template> <template>
<li @click="event => $emit('click', event)" :class="{ active, disabled }"> <li
class="sidebar-list-element"
@click="event => $emit('click', event)"
:class="{ active, disabled }"
>
<slot></slot> <slot></slot>
</li> </li>
</template> </template>
@@ -19,10 +23,10 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss">
@import "./src/scss/media-queries"; @import "./src/scss/media-queries";
li { li.sidebar-list-element {
display: flex; display: flex;
align-items: center; align-items: center;
text-decoration: none; text-decoration: none;
@@ -33,39 +37,33 @@ li {
border-bottom: 1px solid var(--text-color-5); border-bottom: 1px solid var(--text-color-5);
cursor: pointer; cursor: pointer;
svg { &:first-of-type {
margin-right: 1rem; padding-top: 0;
transition: all 0.5s ease; }
stroke: var(--text-color-70);
&[data-fill] { div > svg,
stroke: none; svg {
fill: vaR(--text-color-70); width: 26px;
} height: 26px;
margin-right: 1rem;
transition: all 0.3s ease;
fill: var(--text-color-70);
} }
&:hover, &:hover,
&.active { &.active {
color: var(--text-color); color: var(--text-color);
div > svg,
svg { svg {
stroke: var(--text-color); fill: var(--text-color);
transform: scale(1.1, 1.1); transform: scale(1.1, 1.1);
&[data-fill] {
stroke: none;
fill: var(--text-color);
}
} }
} }
&.active svg { &.active > div > svg,
stroke: var(--color-green); &.active > svg {
fill: var(--color-green);
&[data-fill] {
stroke: none;
fill: var(--color-green);
}
} }
&.disabled { &.disabled {