mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
refactor(input): refactor scss
This commit is contained in:
parent
e5feda9baf
commit
3552da7c9f
@ -120,7 +120,7 @@
|
||||
padding-bottom: ($large-height - $height) / 2;
|
||||
}
|
||||
}
|
||||
&.n-input--round {
|
||||
@include m(round) {
|
||||
&.n-input--small-size {
|
||||
.n-input__input {
|
||||
border-radius: $small-height / 2;
|
||||
@ -140,12 +140,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
&.n-input--icon {
|
||||
@include m(icon) {
|
||||
.n-input__input {
|
||||
padding-left: 38px!important;
|
||||
}
|
||||
}
|
||||
&.n-input--disabled {
|
||||
@include m(disabled) {
|
||||
cursor: not-allowed;
|
||||
.n-input__input, .n-input__textarea {
|
||||
cursor: not-allowed;
|
||||
@ -157,8 +157,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
&.n-input--clearable {
|
||||
.n-input__input, .n-input__textarea, .n-input__textarea-mirror {
|
||||
@include m(clearable) {
|
||||
@include e(input, textarea, textarea-mirror) {
|
||||
padding-right: 32px;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user