/** * 基础样式 * @author couy(couy69@gmail.com) */ * { padding: 0; margin: 0; outline: 0; box-sizing: border-box !important; } li { list-style: none; } a { text-decoration: none; } i { font-style: normal; } html, body { width: 100%; height: 100%; overflow: hidden !important; font-size: 14px; } @font-face { font-family: 'sarasa'; src: url('../fonts/sarasa-ui-cl-regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'JetBrainsMono'; src: url('../fonts/JetBrainsMono-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } #app { font-family: 'NotoSansSC', 'Noto Sans', 'Source Sans Pro', 'Avenir', Helvetica, Arial, sans-serif !important; } div, button, span, p, h1, h2, h3, h4, h5, b, input, textarea { font-family: 'sarasa', 'JetBrainsMono', 'NotoSansSC', 'Noto Sans', 'Source Sans Pro', 'Avenir', Helvetica, Arial, sans-serif !important; } input, textarea { border: 1px solid #ccc; border-radius: 4px; padding: 0.4rem; font-size: 1rem; background-color: #e0e8ea; } button { height: 2.4rem; line-height: 2.2rem; padding: 0 1rem; margin-left: 0.5rem; margin-right: 0.5rem; cursor: pointer; color: #fff; background: #000; border: 1px solid #fff; border-radius: 4px; width: fit-content; &:hover { // background: #222; border: 1px solid #ccc; text-shadow: 1px 1px 3px #ccc; } } select { background-color: rgba(0, 0, 0, 0.6); color: white; } /*使用选择器指定字体*/ .panel-title { font-family: 'MaShanZheng' !important; display: flex; align-items: center !important; justify-content: center; font-size: 0.22rem; padding: 0.2rem 0.1rem; color: #efb96e; } /* 滚动条 */ ::-webkit-scrollbar-thumb:horizontal { /*水平滚动条的样式*/ width: 5px; background-color: #999; border-radius: 6px; } ::-webkit-scrollbar-track-piece { background-color: transparent; /*滚动条的背景颜色*/ border-radius: 0; /*滚动条的圆角宽度*/ } ::-webkit-scrollbar { width: 8px; /*滚动条的宽度*/ height: 8px; /*滚动条的高度*/ } ::-webkit-scrollbar-thumb:vertical { /*垂直滚动条的样式*/ height: 20px; background-color: #999; border-radius: 4px; outline: 2px solid transparent; outline-offset: -2px; border: 2px solid transparent; } ::-webkit-scrollbar-thumb:hover { /*滚动条的hover样式*/ height: 20px; background-color: #9f9f9f; border-radius: 4px; } // .unique { // background: linear-gradient(125deg, #c90e0d36, #5656d647, 40%, #867d1033, #2c846f4d) !important; // } .shabby { color: #a1a1a1 !important; } .ordinary { color: #fff !important; } .artifact { color: #ff00ff !important; } .epic { color: #f78918 !important; } .unique { color: #ff0000 !important; } .colorful { background-image: -webkit-linear-gradient( left, #eb24e1, #fc2121 10%, #ff7f00 20%, #ffff00 30%, #00ff00 40%, #4cfdfd 50%, #fc2121 60%, #ff7f00 70%, #ffff00 80%, #00ff00 90%, #4cfdfd 100% ) !important; -webkit-background-clip: text !important; color: transparent !important; } .fade-enter-active, .fade-leave-active { transition: 0.3s; } .fade-enter, .fade-leave-to { transform: translateX(100%); } .icon { display: inline-block; width: 0.25rem; height: 0.25rem; background-repeat: no-repeat; background-size: contain; padding: 2px; background-position: center; } @media only screen and (max-width: 768px) { button { height: 1.8rem; line-height: 1.6rem; padding: 0 0.5rem; margin-left: 0.2rem; margin-right: 0.2rem; font-size: 0.8rem; } }