Fix logo on footer by allowing custom fill color

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-04-24 20:50:05 +02:00
parent 445619db8b
commit f75d853b19
6 changed files with 71 additions and 8 deletions

View File

@@ -38,6 +38,7 @@ export default class Footer extends Vue {
align-items: center;
.logo {
fill: $secondary;
flex: 1;
}

View File

@@ -1,5 +1,5 @@
<template>
<img src="../assets/mobilizon_logo.svg" alt="Mobilizon">
<img svg-inline src="../assets/mobilizon_logo.svg" alt="Mobilizon" :class="{invert: invert}">
</template>
<script lang="ts">
@@ -13,8 +13,12 @@ export default class Logo extends Vue {
<style lang="scss" scoped>
@import "../variables.scss";
img {
color: #403e56;
height: 80px;
svg {
fill: $primary;
height: 60px;
&.invert {
fill: $secondary;
}
}
</style>