mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +08:00
114dde6373
* style: fix style of Steps inside Steps * fix snapshot and rtl * fix rtl style
85 lines
1.8 KiB
Plaintext
85 lines
1.8 KiB
Plaintext
.steps-vertical() {
|
|
display: flex;
|
|
flex-direction: column;
|
|
.@{steps-prefix-cls}-item {
|
|
display: block;
|
|
flex: 1 0 auto;
|
|
padding-left: 0;
|
|
overflow: visible;
|
|
|
|
&-icon {
|
|
float: left;
|
|
margin-right: @steps-vertical-icon-width;
|
|
}
|
|
&-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: @steps-vertical-tail-width;
|
|
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 {
|
|
display: block;
|
|
}
|
|
|
|
> .@{steps-prefix-cls}-item
|
|
> .@{steps-prefix-cls}-item-container
|
|
> .@{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: @steps-vertical-tail-width-sm;
|
|
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;
|
|
|
|
// https://github.com/ant-design/ant-design/issues/27498
|
|
.@{steps-prefix-cls}-item {
|
|
padding-left: 0 !important;
|
|
}
|
|
}
|
|
}
|