@import '../common/style/var.less'; .van-field { &__body { display: flex; align-items: center; &--textarea { min-height: 24px; } } &__input { position: relative; display: block; width: 100%; height: 24px; min-height: 24px; padding: 0; margin: 0; line-height: inherit; color: @text-color; text-align: left; background-color: transparent; border: 0; box-sizing: border-box; resize: none; &--error { color: @red; } &--disabled { color: @gray-dark; background-color: transparent; opacity: 1; } &--center { text-align: center; } &--right { text-align: right; } } &__placeholder { position: absolute; top: 0; right: 0; left: 0; color: @gray-dark; pointer-events: none; &--error { color: @red; } } &__icon-root { display: flex; min-height: 24px; align-items: center; } &__clear-root, &__icon-container { padding: 0 10px; margin-right: -10px; line-height: inherit; vertical-align: middle; } &__clear-root, &__icon-container, &__button { flex-shrink: 0; } &__clear-root { color: @gray; } &__icon-container { color: @gray-dark; &:empty { display: none; } } &__button { padding-left: 10px; &:empty { display: none; } } &__error-message { font-size: 12px; color: @red; text-align: left; &--center { text-align: center; } &--right { text-align: right; } } }