Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Feb 8, 2025
1 parent ef02c70 commit b212cb0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions style/mobile/components/slider/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,15 @@

.@{slider}--vertical {
--td-slider-bar-height: 200px;

height: @slider-bar-height;
justify-content: center;
position: relative;
.@{slider}__bar {
flex: none;
height: 100%;
width: @slider-bar-width;

&--capsule {
width: @slider-capsule-bar-width;
border-radius: calc(var(--td-slider-capsule-bar-width, 24px) / 2);
Expand All @@ -222,6 +224,7 @@
height: unset;
left: 0;
border-radius: calc(@slider-bar-width / 2);

&--capsule {
border-radius: calc(@slider-capsule-line-height / 2);
}
Expand All @@ -230,16 +233,19 @@
left: 50%;
top: 100%;
transform: translate(-50%, -50%);

&--left {
top: 0;
transform: translate(-50%, -50%);
left: 50%;
}

&--right {
left: 50%;
transform: translate(-50%, -50%);
top: 100%;
}

&-value {
left: 27px;
top: 50%;
Expand All @@ -252,9 +258,11 @@
left: 50%;
transform: translateX(-50%);
margin: 0;

&--min {
top: 0;
}

&--max {
bottom: 0;
transform: translate(-50%, 100%);
Expand All @@ -264,16 +272,19 @@
&-item {
left: 50%;
margin-top: 0;

&--capsule {
height: 2px;
width: @slider-capsule-line-height;
}
}

&-desc {
top: 50%;
transform: translateY(-50%);
bottom: unset;
left: 19px;

&--capsule {
left: 26px;
}
Expand Down

0 comments on commit b212cb0

Please sign in to comment.