Skip to content

Commit

Permalink
fix(Slider): remove theme mixin (#4520)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Sep 25, 2021
1 parent 5be718e commit 0e60dc1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/slider/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@

&--vertical {
display: inline-block;
.theme(width, '@slider-bar-height');

width: var(--slider-bar-height, @slider-bar-height);
height: 100%;

.van-slider__button-wrapper,
Expand All @@ -88,10 +87,9 @@
// use pseudo element to expand click area
&::before {
top: 0;
.theme(right, '-@padding-xs');

right: -@padding-xs;
bottom: 0;
.theme(left, '-@padding-xs');
left: -@padding-xs;
}
}
}

0 comments on commit 0e60dc1

Please sign in to comment.