mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
2d2d9f60c4
* feat: support type nav style * fix: some style for review issue * fix: active hover style * chore: use navigation and upgrade rc-steps * feat: support disabled prop for Steps.Step * feat: support subTitle and improve code style * fix: navigation steps item style * test: update snap test case * fix: test steps snapshots and review style issue * fix: lint issue * fix: lint style issue of steps * fix: update steps demo for review issue * fix: steps nav style detail * fix: steps nav fix style detail * fix: Steps subtitle overflow style in firefox * docs: fix Steps new api doc
75 lines
1.5 KiB
Plaintext
75 lines
1.5 KiB
Plaintext
.steps-vertical() {
|
|
display: block;
|
|
.@{steps-prefix-cls}-item {
|
|
display: block;
|
|
overflow: visible;
|
|
&-icon {
|
|
float: left;
|
|
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 {
|
|
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: 12px;
|
|
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;
|
|
}
|
|
}
|