gohttpdUi/src/App.vue

43 lines
767 B
Vue
Raw Normal View History

2021-10-10 09:59:52 +08:00
<template>
2021-10-16 09:40:39 +08:00
<router-view class="app" :class="{ grey__mode: greyMode }" />
2021-10-10 09:59:52 +08:00
</template>
2021-10-16 09:40:39 +08:00
<script setup lang="ts" name="App">
import { computed } from 'vue'
import { useAppStore } from '@/store/modules/app'
const appStore = useAppStore()
const greyMode = computed(() => appStore.getGreyMode)
</script>
<style lang="less">
.size {
width: 100;
height: 100%;
min-width: var(--content-min-width);
}
html,
body {
.size;
padding: 0;
margin: 0;
}
2021-10-10 09:59:52 +08:00
#app {
2021-10-16 09:40:39 +08:00
.size;
background: var(--app-background-color);
}
.grey__mode {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
2021-10-10 09:59:52 +08:00
}
</style>