mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-10-04 07:49:58 +08:00
[bugfix] Steps: incorrect active style in vertical direction (#2981)
This commit is contained in:
parent
d5a2373963
commit
1cfdb63c35
@ -6,6 +6,14 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
color: @gray-dark;
|
color: @gray-dark;
|
||||||
|
|
||||||
|
&__circle {
|
||||||
|
display: block;
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: @gray-dark;
|
||||||
|
}
|
||||||
|
|
||||||
&--horizontal {
|
&--horizontal {
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
@ -30,10 +38,6 @@
|
|||||||
left: auto;
|
left: auto;
|
||||||
right: -9px;
|
right: -9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-step__line {
|
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-step__circle-container {
|
.van-step__circle-container {
|
||||||
@ -61,15 +65,6 @@
|
|||||||
background-color: @border-color;
|
background-color: @border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.van-step--finish {
|
|
||||||
color: @text-color;
|
|
||||||
|
|
||||||
.van-step__circle,
|
|
||||||
.van-step__line {
|
|
||||||
background-color: @green;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.van-step--process {
|
&.van-step--process {
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
|
|
||||||
@ -85,14 +80,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-step__circle {
|
|
||||||
display: block;
|
|
||||||
width: 5px;
|
|
||||||
height: 5px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background-color: @gray-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--vertical {
|
&--vertical {
|
||||||
float: none;
|
float: none;
|
||||||
display: block;
|
display: block;
|
||||||
@ -129,7 +116,7 @@
|
|||||||
|
|
||||||
.van-step__line {
|
.van-step__line {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 16px;
|
||||||
left: -15px;
|
left: -15px;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -144,6 +131,20 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
.van-step__line {
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&--finish {
|
||||||
|
color: @text-color;
|
||||||
|
|
||||||
|
.van-step__circle,
|
||||||
|
.van-step__line {
|
||||||
|
background-color: @green;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user