ant-design/components/steps/style/small.less
07akioni c2f208e2d2
feat: steps percent (#25839)
* feat: Steps with progress

* test: update snapshot

* fix: lint

* Update package.json

Co-authored-by: 偏右 <afc163@gmail.com>

* refactor: remove progressIcon && rename percentage to percent

* test: snapshot

* fix: icon position offset

* fix: position offset

* fix: icon position offset

* docs

* fix: small line offset

Co-authored-by: 偏右 <afc163@gmail.com>
2020-07-27 21:40:36 +08:00

48 lines
1.2 KiB
Plaintext

.@{steps-prefix-cls}-small {
&.@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical)
.@{steps-prefix-cls}-item {
padding-left: 12px;
&:first-child {
padding-left: 0;
}
}
.@{steps-prefix-cls}-item-icon {
width: @steps-small-icon-size;
height: @steps-small-icon-size;
margin: @steps-small-icon-margin;
font-size: @font-size-sm;
line-height: @steps-small-icon-size;
text-align: center;
border-radius: @steps-small-icon-size;
}
.@{steps-prefix-cls}-item-title {
padding-right: 12px;
font-size: @font-size-base;
line-height: @steps-small-icon-size;
&::after {
top: @steps-small-icon-size / 2;
}
}
.@{steps-prefix-cls}-item-description {
color: @text-color-secondary;
font-size: @font-size-base;
}
.@{steps-prefix-cls}-item-tail {
top: 8px;
}
.@{steps-prefix-cls}-item-custom .@{steps-prefix-cls}-item-icon {
width: inherit;
height: inherit;
line-height: inherit;
background: none;
border: 0;
border-radius: 0;
> .@{steps-prefix-cls}-icon {
font-size: @steps-small-icon-size;
line-height: @steps-small-icon-size;
transform: none;
}
}
}