mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +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 =
|
// = Item =
|
||||||
// ================================================================
|
// ================================================================
|
||||||
@ -123,7 +130,7 @@
|
|||||||
&-extra {
|
&-extra {
|
||||||
clear: both;
|
clear: both;
|
||||||
min-height: @form-item-margin-bottom;
|
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;
|
color: @text-color-secondary;
|
||||||
font-size: @font-size-base;
|
font-size: @font-size-base;
|
||||||
line-height: @line-height-base;
|
line-height: @line-height-base;
|
||||||
|
Loading…
Reference in New Issue
Block a user