@import url(./variable); .tui-scroll-bar { *::-webkit-scrollbar { width: 10px !important; height: 10px !important; cursor: default; background: #CFD2E0; } *::-webkit-scrollbar-corner { background: #CFD2E0; } *::-webkit-scrollbar-thumb { cursor: default; background: #525870; border-radius: 0 !important; &:hover { cursor: default; background: #636981; } } } *::selection { color: #FFF; background: #525870 !important; } html { font-family: pingfang sc, microsoft yahei, arial regular, serif; text-underline-offset: .16rem; } body { margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; -webkit-text-size-adjust: 100%; &::-webkit-scrollbar { background: transparent; } } a { color: @tuiColors[blue]; text-decoration: none; &:hover { text-decoration: underline; } } a.underline { text-decoration: underline; } img { display: block; } input, select, textarea { resize: none; outline: none; display: block; background: transparent; } textarea, input[type="text"], input[type="date"], input[type="email"], input[type="password"] { -webkit-appearance: none; &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active { -webkit-background-clip: text; } } textarea { tab-size: 4; } .gray-filter { filter: grayscale(1); -webkit-filter: grayscale(1); } .text-bold { font-weight: bold !important; } .text-italic { font-style: italic !important; } .text-delete { text-decoration: line-through !important; } .text-underline { text-decoration: underline !important; } .text-not-underline { text-decoration: none !important; } .not-underline:hover { text-decoration: none !important; } // 模糊玻璃效果:白色 .glass-white { color: var(--eui-black, #000); background: rgba(255, 255, 255, .6); backdrop-filter: blur(var(--tui-backdrop-blur, 10px)); -webkit-backdrop-filter: blur(var(--tui-backdrop-blur, 10px)); } // 模糊玻璃效果:黑色 .glass-black { color: var(--eui-white, #FFF); background: rgba(0, 0, 0, .6); backdrop-filter: blur(var(--tui-backdrop-blur, 10px)); -webkit-backdrop-filter: blur(var(--tui-backdrop-blur, 10px)); } .word-space { display: inline-block; margin: 0 .5rem; } // 强制换行 .break-all, .break-all textarea { word-wrap: break-word; word-break: break-all; white-space: normal; } // 文本溢出省略 .clip-text { flex: 1 1 auto; overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; } // 文本保持不换行不省略 .keep-text { flex: none; min-width: unset; white-space: nowrap; text-overflow: unset; } // 文本适当对齐 .justify-text { text-align: justify; } // 禁止选择 .diselect { -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } // 可选文本 .selectable { -webkit-touch-callout: default; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; cursor: text; } .ir-default, .ir-pixelated { image-rendering: pixelated; } .ir-auto { image-rendering: auto; } .ir-smooth { image-rendering: smooth; } .cur-default { cursor: var(--tui-cur-default); } .cur-pointer { cursor: var(--tui-cur-pointer); } .cur-text { cursor: var(--tui-cur-text); }