@import '../common/style/var.less'; .van-slider { position: relative; background-color: @gray-light; border-radius: 999px; &__bar { position: relative; background-color: @blue; border-radius: inherit; } &__button { width: 20px; height: 20px; background-color: @white; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); &-wrapper { position: absolute; top: 50%; right: 0; transform: translate3d(50%, -50%, 0); /* use pseudo element to expand touch area */ &::after { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; content: ''; } } } &--disabled { opacity: .3; } }