| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- @import '../common/abstracts/variable';
- @import '../common/abstracts/mixin';
- .wot-theme-dark {
- @include b(slider) {
- @include e(label-min, label-max) {
- color: $-dark-color;
- }
- @include e(label) {
- color: $-dark-color;
- background-color: rgba($color: $-dark-background2, $alpha: 0.5);
- }
- @include m(disabled) {
- @include me(label-min, label-max) {
- color: $-dark-color-gray;
- }
- }
- }
- }
- @include b(slider) {
- display: flex;
- flex-flow: row nowrap;
- align-items: center;
- height: calc($-slider-handle-radius * 3);
- @include e(label-min, label-max) {
- font-size: $-slider-fs;
- color: $-slider-color;
- }
- @include e(label) {
- text-align: center;
- width: calc($-slider-handle-radius * 2);
- line-height: calc($-slider-handle-radius * 2);
- font-size: $-slider-fs;
- line-height: 1.2;
- color: $-slider-color;
- background-color: rgba($color: #fff, $alpha: 0.5);
- border-radius: 100%;
- position: absolute;
- bottom: calc($-slider-handle-radius * 2 + 8px);
- }
- @include e(bar-wrapper) {
- flex: 1;
- position: relative;
- border-radius: calc($-slider-axie-height / 2);
- background-color: #e5e5e5;
- margin: calc($-slider-handle-radius - $-slider-axie-height / 2) 0;
- }
- @include e(bar) {
- position: relative;
- border-radius: inherit;
- height: $-slider-axie-height;
- background: $-slider-line-color;
- }
- @include e(button-wrapper) {
- width: calc($-slider-handle-radius * 2);
- /* 右侧滑块按钮定位,向右偏移自身宽度的50% */
- transform: translate3d(50%, -50%, 0);
- position: absolute;
- right: 0;
- @include m(left){
- left: 0;
- /* 左侧滑块按钮定位,向左偏移自身宽度的50% */
- transform: translate3d(-50%, -50%, 0);
- }
- }
- @include e(has-label) {
- padding-top: calc($-slider-fs * 1.2 + 8px);
- }
- @include e(button) {
- height: calc($-slider-handle-radius * 2);
- width: calc($-slider-handle-radius * 2);
- background: $-slider-handle-bg;
- border-radius: 100%;
- border: 1px solid $-slider-axie-bg;
- box-sizing: border-box;
- box-shadow: 0 2px 4px 0 rgba($color: #9b9b9b, $alpha: 0.5);
- }
- @include e(label-min) {
- margin-right: calc($-slider-handle-radius * 2);
- }
- @include e(label-max) {
- margin-left: calc($-slider-handle-radius * 2);
- }
- @include m(disabled) {
- @include me(bar) {
- opacity: 0.25;
- }
- @include me(label-min, label-max) {
- color: $-slider-disabled-color;
- }
- }
- }
|