123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <template>
- <router-view />
- </template>
- <script setup>
- // import { onClickOutside } from '@vueuse/core'
- // import { shuffle } from "lodash"
- import { ref, computed, watch, onMounted } from "vue"
- import { useStore } from "vuex"
- const store = useStore()
- </script>
- <style lang="less">
- // html, body {
- // overscroll-behavior: none;
- // overflow: hidden;
- // }
- // * {
- // user-select: none;
- // -webkit-touch-callout: none;
- // }
- #app {
- height: 100%;
- }
- // // 360浏览器不支持not()
- // input, textarea {
- // user-select: initial;
- // }
- // 字体
- @font-face {
- font-family: 'Source Han Serif CN';
- src: url('@/assets/style/SourceHanSerifCN-Regular.otf');
- }
- @font-face {
- font-family: 'Source Han Serif CN-Bold';
- src: url('@/assets/style/SourceHanSerifCN-Bold.otf');
- }
- @font-face {
- font-family: 'JingHuaLaoSong';
- src: url('@/assets/style/jing-hua-lao-song-ti.ttf');
- }
- @font-face {
- font-family: 'SourceHanSansCN-Medium';
- src: url('@/assets/style/SourceHanSansCN-Medium.otf');
- }
- @font-face {
- font-family: 'SourceHanSerifCN-Heavy';
- src: url('@/assets/style/SourceHanSerifCN-Heavy.otf');
- }
- // i {
- // font-style: italic;
- // }
- // 滚动条,只设置某一项可能导致不生效。
- ::-webkit-scrollbar { background: rgba(0, 0, 0, 0.2); width: 6px; height: 6px; }
- ::-webkit-scrollbar-thumb { background: #C9AD83; border-radius: 3px;}
- ::-webkit-scrollbar-corner { background: rgba(0, 0, 0, 0.2); }
- // vue组件过渡效果
- .fade-out-leave-active {
- transition: opacity 1s;
- pointer-events: none;
- }
- .fade-out-leave-to {
- opacity: 0;
- }
- // vue组件过渡效果
- .fade-in-enter-active {
- transition: opacity 1s;
- }
- .fade-in-enter-from {
- opacity: 0;
- }
- .fade-out-leave-active {
- transition: opacity 1s;
- pointer-events: none;
- }
- .fade-out-leave-to {
- opacity: 0;
- }
- .fade-in-out-enter-active {
- transition: opacity 0.5s;
- }
- .fade-in-out-leave-active {
- transition: opacity 0.5s;
- pointer-events: none;
- }
- .fade-in-out-enter-from {
- opacity: 0;
- }
- .fade-in-out-leave-to {
- opacity: 0;
- }
- // 不断渐变显隐 animation
- .animation-show-hide {
- animation: show-hide 1.8s infinite;
- }
- @keyframes show-hide {
- 0% {
- opacity: 0;
- }
- 50% {
- opacity: 1;
- }
- 100% {
- opacity: 0;
- }
- }
- // // vue-viewer
- // .viewer-container {
- // background-color: rgba(0, 0, 0, 80%) !important;
- // }
- // 或者
- // .viewer-backdrop {
- // background-color: rgba(0, 0, 0, 90%) !important;
- // }
- </style>
|