UNPKG

ygd

Version:

An enterprise-class UI design language and React-based implementation

163 lines (162 loc) 3.39 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 */ .yg-slider { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; height: 12px; margin: 0px 6px; padding: 9px 0; cursor: pointer; touch-action: none; } .yg-slider-vertical { width: 12px; height: 100%; margin: 6px 10px; padding: 0 4px; } .yg-slider-vertical .yg-slider-rail { width: 4px; height: 100%; } .yg-slider-vertical .yg-slider-track { width: 4px; } .yg-slider-vertical .yg-slider-handle { margin-bottom: -7px; margin-left: -7px; } .yg-slider-vertical .yg-slider-mark { top: 0; left: 12px; width: 18px; height: 100%; } .yg-slider-vertical .yg-slider-mark-text { left: 4px; white-space: nowrap; } .yg-slider-vertical .yg-slider-step { width: 4px; height: 100%; } .yg-slider-vertical .yg-slider-dot { top: auto; left: 0px; margin-bottom: -4px; } .yg-slider-with-marks { margin-bottom: 28px; } .yg-slider-rail { position: absolute; width: 100%; height: 4px; background-color: #f5f5f5; border-radius: 2px; transition: background-color 0.3s; } .yg-slider-track { position: absolute; height: 4px; background-color: #b8e986; border-radius: 2px; transition: background-color 0.3s ease; } .yg-slider-handle { position: absolute; width: 14px; height: 14px; margin-top: -7px; margin-left: -7px; background-color: #fff; border: solid 2px #7adcff; 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); } .yg-slider-handle:focus { border-color: #33b4ff; outline: none; box-shadow: 0 0 0 5px rgba(0, 161, 255, 0.2); } .yg-slider-handle.yg-tooltip-open { border-color: #00a1ff; } .yg-slider:hover .yg-slider-rail { background-color: #e1e1e1; } .yg-slider:hover .yg-slider-track { background-color: #b8e986; } .yg-slider:hover .yg-slider-handle:not(.yg-tooltip-open) { border-color: #52cbff; } .yg-slider-mark { position: absolute; top: 14px; left: 0; width: 100%; font-size: 12px; } .yg-slider-mark-text { position: absolute; display: inline-block; color: rgba(0, 0, 0, 0.45); text-align: center; cursor: pointer; } .yg-slider-mark-text-active { color: #333; } .yg-slider-step { position: absolute; width: 100%; height: 4px; background: transparent; } .yg-slider-dot { position: absolute; top: -4px; width: 8px; height: 8px; margin-left: -4px; background-color: #fff; border: 2px solid #ccc; border-radius: 50%; cursor: pointer; } .yg-slider-dot:first-child { margin-left: -4px; } .yg-slider-dot:last-child { margin-left: -4px; } .yg-slider-dot-active { border-color: #80d0ff; } .yg-slider-disabled { cursor: not-allowed; } .yg-slider-disabled .yg-slider-track { background-color: rgba(51, 51, 51, 0.25); } .yg-slider-disabled .yg-slider-handle, .yg-slider-disabled .yg-slider-dot { background-color: #fff; border-color: rgba(51, 51, 51, 0.25); box-shadow: none; cursor: not-allowed; } .yg-slider-disabled .yg-slider-mark-text, .yg-slider-disabled .yg-slider-dot { cursor: not-allowed; }