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

70 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-03-09 10:52:31 +00:00
.steps-vertical() {
display: block;
.@{steps-prefix-cls}-item {
display: block;
overflow: visible;
&-icon {
float: left;
margin-right: 16px;
}
&-content {
2019-03-30 08:06:06 +00:00
display: block;
2018-03-09 10:52:31 +00:00
min-height: 48px;
overflow: hidden;
}
&-title {
line-height: @steps-icon-size;
}
&-description {
padding-bottom: 12px;
}
}
> .@{steps-prefix-cls}-item > .@{steps-prefix-cls}-item-tail {
position: absolute;
top: 0;
2019-03-30 08:06:06 +00:00
left: 16px;
2018-03-09 10:52:31 +00:00
width: 1px;
2019-03-30 08:06:06 +00:00
height: 100%;
2018-03-09 10:52:31 +00:00
padding: @steps-icon-size + 6px 0 6px;
2019-03-30 08:06:06 +00:00
&::after {
2018-03-09 10:52:31 +00:00
width: 1px;
2019-03-30 08:06:06 +00:00
height: 100%;
2018-03-09 10:52:31 +00:00
}
}
> .@{steps-prefix-cls}-item:not(:last-child) > .@{steps-prefix-cls}-item-tail {
display: block;
}
2019-01-02 13:01:56 +00:00
> .@{steps-prefix-cls}-item
> .@{steps-prefix-cls}-item-content
> .@{steps-prefix-cls}-item-title {
2019-03-30 08:06:06 +00:00
&::after {
2018-03-09 10:52:31 +00:00
display: none;
}
}
&.@{steps-prefix-cls}-small {
.@{steps-prefix-cls}-item-tail {
position: absolute;
top: 0;
2019-03-30 08:06:06 +00:00
left: 12px;
2018-03-09 10:52:31 +00:00
padding: @steps-small-icon-size + 6px 0 6px;
}
.@{steps-prefix-cls}-item-title {
line-height: @steps-small-icon-size;
}
}
}
.@{steps-prefix-cls}-vertical {
.steps-vertical;
}
@media (max-width: @screen-xs) {
.@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-label-horizontal {
.steps-vertical;
}
}