UNPKG

antd-mobile

Version:

基于 React 的移动设计规范实现

110 lines (109 loc) 2 kB
.hairline-remove-right-bottom { border-bottom: 0; } .hairline-remove-right-bottom:after { display: none; } .hairline-remove-right-bottom-bak:after { display: none; } .hairline-remove-left-top:before { display: none; } .am-slider { position: relative; margin: 32px 0; } .am-slider-rail { position: absolute; width: 100%; background-color: #ddd; height: 4px; box-sizing: border-box; } .am-slider-wrapper { padding: 0 32px; } .am-slider-track { position: absolute; left: 0; height: 4px; border-radius: 4px; background-color: #108ee9; } .am-slider-handle { position: absolute; margin-left: -24px; margin-top: -24px; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; border: 4px solid #108ee9; background-color: #fff; box-sizing: border-box; } .am-slider-handle:focus { background-color: #40a5ed; } .am-slider-handle:active { background-color: #40a5ed; box-shadow: 0 0 5px #40a5ed; } .am-slider-mark { position: absolute; top: 40px; left: 0; width: 100%; font-size: 24px; } .am-slider-mark-text { position: absolute; display: inline-block; vertical-align: middle; text-align: center; cursor: pointer; color: #000; } .am-slider-mark-text-active { opacity: 0.3; } .am-slider-step { position: absolute; width: 100%; height: 8px; background: transparent; } .am-slider-dot { position: absolute; bottom: -10px; margin-left: -8px; width: 24px; height: 24px; border: 4px solid #ddd; background-color: #fff; cursor: pointer; border-radius: 50%; vertical-align: middle; } .am-slider-dot:first-child { margin-left: -8px; } .am-slider-dot:last-child { margin-left: -8px; } .am-slider-dot-active { border-color: #108ee9; } .am-slider-disabled { opacity: 0.3; } .am-slider-disabled .am-slider-track { height: 4px; } .am-slider-disabled .am-slider-handle, .am-slider-disabled .am-slider-mark-text, .am-slider-disabled .am-slider-dot { cursor: not-allowed; box-shadow: none; }