@import './mixins/mixins.scss'; @import './theme/default.scss'; @include b(input) { position: relative; width: 100%; &.is-disabled { cursor: not-allowed; .n-input__input, .n-input__textarea { cursor: not-allowed; background-color: #6F778D; color: #9FA5B3FF; } } .n-input__icon { position: absolute; height: 18px; width: 18px; left: 0; top: calc(50% - 8px); margin-left: 16px; i::before { font-size: 20px; line-height: 17px; } } .n-input__input, .n-input__textarea { box-sizing: border-box; border: none; border-radius: 8px; outline: none; color: #fff; font-family: $default-font-family; background-color: #6F778DFF; width: 100%; caret-color: #63E2B7; &:focus { box-shadow: inset 0 0 0px 1px rgba(99,226,183,1); } } .n-input__input { &.n-input__input--small-size { height: $small-height; line-height: $small-height; padding: 0 18px; font-size: $small-input-font-size; } &.n-input__input--default-size, &.n-input__input--medium-size { height: $default-height; line-height: $default-height; padding: 0 18px; font-size: $default-input-font-size; } &.n-input__input--large-size { height: $large-height; line-height: $large-height; padding: 0 18px; font-size: $large-input-font-size; } &::placeholder { color: rgba(255, 255, 255, .4); opacity: 1; } } .n-input__input.n-input__input--round { &.n-input__input--small-size { border-radius: $small-height / 2; } &.n-input__input--default-size, &.n-input__input--medium-size { border-radius: $default-height / 2; } &.n-input__input--large-size { border-radius: $large-height / 2; } } .n-input__input.n-input__input--icon { padding-left: 44px; } .n-input__textarea { padding: 10px 14px; resize: vertical; &.n-input__textarea--small-size { font-size: $small-input-font-size; } &.n-input__textarea--default-size, &.n-input__input--medium-size { font-size: $default-input-font-size; } &.n-input__textarea--large-size { font-size: $large-input-font-size; } &::placeholder { color: rgba(255, 255, 255, .4); opacity: 1; } } }