refactor: views consolidation + css fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template lang="pug">
|
||||
v-footer.justify-center(:color='darkMode ? "" : "grey lighten-3"', inset)
|
||||
v-footer.justify-center(:color='color', inset)
|
||||
.caption.grey--text.text--darken-1
|
||||
span(v-if='company && company.length > 0') {{ $t('common:footer.copyright', { company: company, year: currentYear }) }} |
|
||||
span {{ $t('common:footer.poweredBy') }} Wiki.js
|
||||
@@ -20,6 +20,12 @@
|
||||
import { get, sync } from 'vuex-pathify'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
altbg: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentYear: (new Date()).getFullYear()
|
||||
@@ -29,7 +35,26 @@ export default {
|
||||
company: get('site/company'),
|
||||
notification: get('notification'),
|
||||
darkMode: get('site/dark'),
|
||||
notificationState: sync('notification@isActive')
|
||||
notificationState: sync('notification@isActive'),
|
||||
color() {
|
||||
if (this.altbg) {
|
||||
return 'altbg'
|
||||
} else if (!this.darkMode) {
|
||||
return 'grey lighten-3'
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.v-footer.altbg {
|
||||
background: mc('theme', 'primary');
|
||||
|
||||
span {
|
||||
color: mc('blue', '300');
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user