@tailwind base; @tailwind components; @tailwind utilities; :root { font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; } body { /* ! 全局禁用鼠标选择,需要在其他位置放开 */ user-select: none; } @keyframes loading { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading { animation: loading 1s ease-in-out infinite; } /* 修改 antd 样式 */ .ant-btn .anticon { position: relative; top: -3px; } /* 滚动条样式 */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background-color: transparent; } ::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); border-radius: 4px; } /* 背景之上阴影文字 */ .shadow-text { text-shadow: 0 0 0.3em rgba(0, 0, 0, 0.3); } .shadow-content { backdrop-filter: blur(20px); box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2); } /* 默认动画 */ .v-enter-active, .v-leave-active { transition: opacity 0.3s ease-in-out; } .v-enter-from, .v-leave-to { opacity: 0; } /* 搜索框动画 */ .searchContent-enter-active, .searchContent-leave-active { transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; } .searchContent-enter-from { transform: translateY(90%); opacity: 0; } .searchContent-leave-to { transform: translateY(110%); opacity: 0; } /* 弹框内容动画 */ .modal-enter-active, .modal-leave-active { transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; } .modal-enter-from { transform: translate(-50%, -60%); opacity: 0; } .modal-leave-to { transform: translate(-50%, -40%); opacity: 0; } /* 设置框动画 */ .settings-enter-active, .settings-leave-active { transform-origin: left bottom; transition: transform 0.3s ease-in-out, bottom 0.3s ease-in-out, opacity 0.3s ease-in-out; } .settings-enter-from, .settings-leave-to { bottom: 0; opacity: 0; transform: scale(0.4); }