App.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <router-view />
  3. </template>
  4. <script setup>
  5. // import { onClickOutside } from '@vueuse/core'
  6. // import { shuffle } from "lodash"
  7. import { ref, computed, watch, onMounted } from "vue"
  8. import { useStore } from "vuex"
  9. const store = useStore()
  10. </script>
  11. <style lang="less">
  12. // html, body {
  13. // overscroll-behavior: none;
  14. // overflow: hidden;
  15. // }
  16. // * {
  17. // user-select: none;
  18. // -webkit-touch-callout: none;
  19. // }
  20. #app {
  21. height: 100%;
  22. }
  23. // // 360浏览器不支持not()
  24. // input, textarea {
  25. // user-select: initial;
  26. // }
  27. // 字体
  28. @font-face {
  29. font-family: 'Source Han Serif CN';
  30. src: url('@/assets/style/SourceHanSerifCN-Regular.otf');
  31. }
  32. @font-face {
  33. font-family: 'Source Han Serif CN-Bold';
  34. src: url('@/assets/style/SourceHanSerifCN-Bold.otf');
  35. }
  36. @font-face {
  37. font-family: 'JingHuaLaoSong';
  38. src: url('@/assets/style/jing-hua-lao-song-ti.ttf');
  39. }
  40. @font-face {
  41. font-family: 'SourceHanSansCN-Medium';
  42. src: url('@/assets/style/SourceHanSansCN-Medium.otf');
  43. }
  44. @font-face {
  45. font-family: 'SourceHanSerifCN-Heavy';
  46. src: url('@/assets/style/SourceHanSerifCN-Heavy.otf');
  47. }
  48. // i {
  49. // font-style: italic;
  50. // }
  51. // 滚动条,只设置某一项可能导致不生效。
  52. ::-webkit-scrollbar { background: rgba(0, 0, 0, 0.2); width: 6px; height: 6px; }
  53. ::-webkit-scrollbar-thumb { background: #C9AD83; border-radius: 3px;}
  54. ::-webkit-scrollbar-corner { background: rgba(0, 0, 0, 0.2); }
  55. // vue组件过渡效果
  56. .fade-out-leave-active {
  57. transition: opacity 1s;
  58. pointer-events: none;
  59. }
  60. .fade-out-leave-to {
  61. opacity: 0;
  62. }
  63. // vue组件过渡效果
  64. .fade-in-enter-active {
  65. transition: opacity 1s;
  66. }
  67. .fade-in-enter-from {
  68. opacity: 0;
  69. }
  70. .fade-out-leave-active {
  71. transition: opacity 1s;
  72. pointer-events: none;
  73. }
  74. .fade-out-leave-to {
  75. opacity: 0;
  76. }
  77. .fade-in-out-enter-active {
  78. transition: opacity 0.5s;
  79. }
  80. .fade-in-out-leave-active {
  81. transition: opacity 0.5s;
  82. pointer-events: none;
  83. }
  84. .fade-in-out-enter-from {
  85. opacity: 0;
  86. }
  87. .fade-in-out-leave-to {
  88. opacity: 0;
  89. }
  90. // 不断渐变显隐 animation
  91. .animation-show-hide {
  92. animation: show-hide 1.8s infinite;
  93. }
  94. @keyframes show-hide {
  95. 0% {
  96. opacity: 0;
  97. }
  98. 50% {
  99. opacity: 1;
  100. }
  101. 100% {
  102. opacity: 0;
  103. }
  104. }
  105. // // vue-viewer
  106. // .viewer-container {
  107. // background-color: rgba(0, 0, 0, 80%) !important;
  108. // }
  109. // 或者
  110. // .viewer-backdrop {
  111. // background-color: rgba(0, 0, 0, 90%) !important;
  112. // }
  113. </style>