fix: 修复 Spin 垂直居中问题 close #3097 (#3214)

This commit is contained in:
ddcat1115 2016-09-30 17:44:55 +08:00 committed by Benjy Cui
parent 06e4eaa7d5
commit 96e71a4147

View File

@ -46,17 +46,29 @@
margin: -@spin-dot-size-lg / 2;
}
&-show-text .@{spin-prefix-cls}-dot {
margin: -@spin-dot-size / 2 - @font-size-base / 2;
}
&-show-text.@{spin-prefix-cls}-sm .@{spin-prefix-cls}-dot {
margin: -@spin-dot-size-sm / 2 - @font-size-base / 2;
}
&-show-text.@{spin-prefix-cls}-lg .@{spin-prefix-cls}-dot {
margin: -@spin-dot-size-lg / 2 - @font-size-base / 2;
}
&-text {
position: absolute;
top: 50%;
width: 100%;
padding-top: @spin-dot-size / 2;
padding-top: (@spin-dot-size - @font-size-base) / 2;
}
&-sm &-text {
padding-top: @spin-dot-size-sm / 2;
&-sm .@{spin-prefix-cls}-text {
padding-top: (@spin-dot-size-sm - @font-size-base) / 2;
}
&-lg &-text {
padding-top: @spin-dot-size-lg / 2;
&-lg .@{spin-prefix-cls}-text {
padding-top: (@spin-dot-size-lg - @font-size-base) / 2;
}
}