.app-input-box{ position: relative; width: 100%; height: 100%; .unit-text{ position: absolute; top: 0; right: 24px; } .ivu-input-number{ width: 100%; .ivu-input-number-input{ text-align: left; } } .ivu-input-wrapper{ height: inherit; textarea{ height: inherit; } } .is-disabled{ textarea:disabled, textarea[disabled]{ background-color: #f1f1f1; color: rgb(44, 44, 44); opacity: 0.7; } } } .ivu-form-item-error .app-input-box { .ivu-input-number { &:hover { border-color: red; } &.ivu-input-number-focused{ border-color: red; box-shadow: 0 0 0 2px mix(white, red, 85%) } } .ivu-input-wrapper { .ivu-input:hover { border-color: red; } } }