ant-design/components/steps/style/vertical.less

75 lines
1.5 KiB
Plaintext
Raw Normal View History

2017-09-25 11:25:57 +08:00
.steps-vertical() {
display: block;
.@{steps-prefix-cls}-item {
display: block;
overflow: visible;
&-icon {
float: left;
2017-10-16 21:12:49 +08:00
margin-right: 16px;
}
&-content {
display: block;
min-height: 48px;
overflow: hidden;
}
&-title {
line-height: @steps-icon-size;
}
&-description {
padding-bottom: 12px;
}
}
> .@{steps-prefix-cls}-item
> .@{steps-prefix-cls}-item-container
> .@{steps-prefix-cls}-item-tail {
position: absolute;
top: 0;
left: 16px;
width: 1px;
height: 100%;
padding: @steps-icon-size + 6px 0 6px;
&::after {
width: 1px;
height: 100%;
}
}
> .@{steps-prefix-cls}-item:not(:last-child)
> .@{steps-prefix-cls}-item-container
> .@{steps-prefix-cls}-item-tail {
2017-09-25 11:25:57 +08:00
display: block;
}
2018-12-07 16:17:45 +08:00
> .@{steps-prefix-cls}-item
> .@{steps-prefix-cls}-item-container
2018-12-07 16:17:45 +08:00
> .@{steps-prefix-cls}-item-content
> .@{steps-prefix-cls}-item-title {
&::after {
display: none;
}
}
&.@{steps-prefix-cls}-small .@{steps-prefix-cls}-item-container {
.@{steps-prefix-cls}-item-tail {
position: absolute;
top: 0;
left: 12px;
padding: @steps-small-icon-size + 6px 0 6px;
}
.@{steps-prefix-cls}-item-title {
line-height: @steps-small-icon-size;
}
}
}
2017-09-25 11:25:57 +08:00
.@{steps-prefix-cls}-vertical {
.steps-vertical;
}
@media (max-width: @screen-xs) {
.@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-label-horizontal {
.steps-vertical;
}
}