Better responsive Steps

This commit is contained in:
afc163 2017-09-25 11:25:57 +08:00
parent 7a7b18032c
commit 306a5699a7
2 changed files with 16 additions and 1 deletions

View File

@ -140,6 +140,7 @@
.@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical) { .@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical) {
.@{steps-prefix-cls}-item { .@{steps-prefix-cls}-item {
margin-right: 10px; margin-right: 10px;
white-space: nowrap;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }

View File

@ -1,4 +1,4 @@
.@{steps-prefix-cls}-vertical { .steps-vertical() {
display: block; display: block;
.@{steps-prefix-cls}-item { .@{steps-prefix-cls}-item {
display: block; display: block;
@ -35,6 +35,10 @@
} }
} }
> .@{steps-prefix-cls}-item:not(:last-child) > .@{steps-prefix-cls}-item-tail {
display: block;
}
> .@{steps-prefix-cls}-item > .@{steps-prefix-cls}-item-content > .@{steps-prefix-cls}-item-title { > .@{steps-prefix-cls}-item > .@{steps-prefix-cls}-item-content > .@{steps-prefix-cls}-item-title {
&:after { &:after {
display: none; display: none;
@ -53,3 +57,13 @@
} }
} }
} }
.@{steps-prefix-cls}-vertical {
.steps-vertical;
}
@media (max-width: @screen-xs) {
.@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-label-horizontal {
.steps-vertical;
}
}