mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 12:38:58 +08:00
explainAndExtraDistance
This commit is contained in:
parent
7771c1b3df
commit
ead1ca5ce2
@ -27,6 +27,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.explainAndExtraDistance(@num) when (@a>=0) {
|
||||
padding-top: floor(@num);
|
||||
}
|
||||
.explainAndExtraDistance(@num) when (@a<0) {
|
||||
margin-top: floor(@num);
|
||||
}
|
||||
|
||||
// ================================================================
|
||||
// = Item =
|
||||
// ================================================================
|
||||
@ -123,7 +130,7 @@
|
||||
&-extra {
|
||||
clear: both;
|
||||
min-height: @form-item-margin-bottom;
|
||||
padding-top: floor((@form-item-margin-bottom - @form-font-height) / 2);
|
||||
.explainAndExtraDistance((@form-item-margin-bottom - @form-font-height) / 2);
|
||||
color: @text-color-secondary;
|
||||
font-size: @font-size-base;
|
||||
line-height: @line-height-base;
|
||||
|
Loading…
Reference in New Issue
Block a user