mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
improve steps line css style
This commit is contained in:
parent
bb953b333f
commit
06dc2b9041
@ -26,5 +26,5 @@ const steps = [{
|
||||
);
|
||||
});
|
||||
|
||||
ReactDOM.render(<Steps size='small' direction='vertical' current={1}>{steps}</Steps>, container);
|
||||
ReactDOM.render(<Steps size="small" direction="vertical" current={1}>{steps}</Steps>, container);
|
||||
````
|
||||
|
@ -29,5 +29,5 @@ const steps = [{
|
||||
);
|
||||
});
|
||||
|
||||
ReactDOM.render(<Steps direction='vertical' current={1}>{steps}</Steps>, container);
|
||||
ReactDOM.render(<Steps direction="vertical" current={1}>{steps}</Steps>, container);
|
||||
````
|
||||
|
@ -69,8 +69,11 @@
|
||||
color: @finish-icon-color;
|
||||
}
|
||||
}
|
||||
.@{steps-prefix-cls}-tail > i {
|
||||
background-color: @finish-tail-color;
|
||||
.@{steps-prefix-cls}-tail > i:after {
|
||||
width: 100%;
|
||||
background: @finish-tail-color;
|
||||
transition: all 0.4s ease;
|
||||
opacity: 1;
|
||||
}
|
||||
.@{steps-prefix-cls}-title {
|
||||
color: @finish-title-color;
|
||||
@ -169,7 +172,16 @@
|
||||
height: 1px;
|
||||
border-radius: 1px;
|
||||
width: 100%;
|
||||
transition: background 0.3s ease;
|
||||
position: relative;
|
||||
&:after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
top: 0;
|
||||
width: 0;
|
||||
background: #e9e9e9;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -237,6 +249,16 @@
|
||||
> i {
|
||||
height: 100%;
|
||||
width: 1px;
|
||||
&:after {
|
||||
height: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{steps-prefix-cls}-status-finish {
|
||||
.@{steps-prefix-cls}-tail > i:after {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user