fix(Icon): info position (#2194)

This commit is contained in:
neverland 2019-10-23 17:48:13 +08:00 committed by GitHub
parent 1e506513de
commit ad657c7c03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,14 +3,14 @@
.van-info { .van-info {
position: absolute; position: absolute;
top: 0;
right: 0; right: 0;
box-sizing: border-box; box-sizing: border-box;
white-space: nowrap; white-space: nowrap;
text-align: center; text-align: center;
transform: translateX(50%); transform: translate(50%, -50%);
transform-origin: 100%; transform-origin: 100%;
.theme(top, 'calc(@info-size / -2)');
.theme(min-width, '@info-size'); .theme(min-width, '@info-size');
.theme(padding, '@info-padding'); .theme(padding, '@info-padding');
.theme(color, '@info-color'); .theme(color, '@info-color');