explainAndExtraDistance

This commit is contained in:
yoyo837 2020-02-09 19:14:34 +08:00
parent 7771c1b3df
commit ead1ca5ce2

View File

@ -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;