mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 08:59:40 +08:00
dda45e4796
* feat: support narrow theme mode * chore: rename narrow to compact * chore: height part * chore: preview compact mode * chore: to make site corrected * chore: preview site * docs: 📖 document compact theme usage * docs: tweak theme doc * docs: 📖 Add description about double css bundle size * chore: preview * chore: for preview * chore: adjust pagination * chore: compact mode done! * chore: remove useless todo * chore: fix review bug * chore: fix review bug * chore: fix card margin * chore: fix review bug * chore: fix review bug * chore: improve i18n and transition * Update site/theme/static/common.less Co-Authored-By: 偏右 <afc163@gmail.com> * chore: fix button size and description padding * chore: update snapshots * chore: add compact css bundlesize limit * chore: compact dist support Co-authored-by: afc163 <afc163@gmail.com>
77 lines
1.5 KiB
Plaintext
77 lines
1.5 KiB
Plaintext
.steps-vertical() {
|
|
display: flex;
|
|
flex-direction: column;
|
|
.@{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: @steps-icon-size / 2;
|
|
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;
|
|
}
|
|
}
|