UNPKG

wetrade-design

Version:

一款多语言支持Vue3的UI框架

237 lines (236 loc) 4.93 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ /** gray-sp */ /** blue-sp */ /** green-sp */ /** red-sp */ /** orange-sp */ /** 品牌橙 */ /** 日落黄 */ /** 柠檬黄 */ /** 新生绿 */ /** 绿色 */ /** 碧涛青 */ /** 海蔚蓝 */ /** 品牌蓝色 */ /** 宝石蓝 */ /** 星空紫 */ /** 罗兰紫 */ /** 青春紫 */ /** 品红 */ /** 红色 */ /** 灰色 */ /** 保留ant色板 */ /** 绿色 */ /** 品牌蓝 */ .wd-slider { box-sizing: border-box; margin: 0; padding: 0; color: #1E1E29; font-size: 14px; font-variant: tabular-nums; line-height: 18px; list-style: none; font-feature-settings: 'tnum'; position: relative; height: 12px; margin: 10px 6px 10px; padding: 4px 0; cursor: pointer; touch-action: none; } .wd-slider-vertical { width: 12px; height: 100%; margin: 6px 10px; padding: 0 4px; } .wd-slider-vertical .wd-slider-rail { width: 4px; height: 100%; } .wd-slider-vertical .wd-slider-track { width: 4px; } .wd-slider-vertical .wd-slider-handle { margin-top: -6px; margin-left: -5px; } .wd-slider-vertical .wd-slider-mark { top: 0; left: 12px; width: 18px; height: 100%; } .wd-slider-vertical .wd-slider-mark-text { left: 4px; white-space: nowrap; } .wd-slider-vertical .wd-slider-step { width: 4px; height: 100%; } .wd-slider-vertical .wd-slider-dot { top: auto; left: 2px; margin-bottom: -4px; } .wd-slider-tooltip .wd-tooltip-inner { min-width: unset; } .wd-slider-rtl.wd-slider-vertical .wd-slider-handle { margin-right: -5px; margin-left: 0; } .wd-slider-rtl.wd-slider-vertical .wd-slider-mark { right: 12px; left: auto; } .wd-slider-rtl.wd-slider-vertical .wd-slider-mark-text { right: 4px; left: auto; } .wd-slider-rtl.wd-slider-vertical .wd-slider-dot { right: 2px; left: auto; } .wd-slider-with-marks { margin-bottom: 28px; } .wd-slider-rail { position: absolute; width: 100%; height: 4px; background-color: #f5f5f5; border-radius: 6px; transition: background-color 0.3s; } .wd-slider-track { position: absolute; height: 4px; background-color: #a1caff; border-radius: 6px; transition: background-color 0.3s; } .wd-slider-handle { position: absolute; width: 14px; height: 14px; margin-top: -5px; background-color: #fff; border: solid 2px #a1caff; border-radius: 50%; box-shadow: 0; cursor: pointer; transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); } .wd-slider-handle-dragging.wd-slider-handle-dragging.wd-slider-handle-dragging { border-color: #5087f5; box-shadow: 0 0 0 5px rgba(36, 105, 242, 0.12); } .wd-slider-handle:focus { border-color: #5087f5; outline: none; box-shadow: 0 0 0 5px rgba(36, 105, 242, 0.12); } .wd-slider-handle.wd-tooltip-open { border-color: #2469F2; } .wd-slider:hover .wd-slider-rail { background-color: #e1e1e1; } .wd-slider:hover .wd-slider-track { background-color: #78aeff; } .wd-slider:hover .wd-slider-handle:not(.wd-tooltip-open) { border-color: #78aeff; } .wd-slider-mark { position: absolute; top: 14px; left: 0; width: 100%; font-size: 14px; } .wd-slider-mark-text { position: absolute; display: inline-block; color: #575E73; text-align: center; word-break: keep-all; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .wd-slider-mark-text-active { color: #1E1E29; } .wd-slider-step { position: absolute; width: 100%; height: 4px; background: transparent; } .wd-slider-dot { position: absolute; top: -2px; width: 8px; height: 8px; margin-left: -4px; background-color: #fff; border: 2px solid #EBEDF2; border-radius: 50%; cursor: pointer; } .wd-slider-dot:first-child { margin-left: -4px; } .wd-slider-dot:last-child { margin-left: -4px; } .wd-slider-dot-active { border-color: #92b4f9; } .wd-slider-disabled { cursor: not-allowed; } .wd-slider-disabled .wd-slider-rail { background-color: #f5f5f5 !important; } .wd-slider-disabled .wd-slider-track { background-color: #C7CBD6 !important; } .wd-slider-disabled .wd-slider-handle, .wd-slider-disabled .wd-slider-dot { background-color: #fff; border-color: #C7CBD6 !important; box-shadow: none; cursor: not-allowed; } .wd-slider-disabled .wd-slider-mark-text, .wd-slider-disabled .wd-slider-dot { cursor: not-allowed !important; } .wd-slider-rtl { direction: rtl; } .wd-slider-rtl .wd-slider-mark { right: 0; left: auto; } .wd-slider-rtl .wd-slider-dot { margin-right: -4px; margin-left: 0; } .wd-slider-rtl .wd-slider-dot:first-child { margin-right: -4px; margin-left: 0; } .wd-slider-rtl .wd-slider-dot:last-child { margin-right: -4px; margin-left: 0; }