mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
input-box 单独移出来
This commit is contained in:
parent
61a43410f5
commit
8b6741b88e
41
scss/components/form/_input-box.scss
Normal file
41
scss/components/form/_input-box.scss
Normal file
@ -0,0 +1,41 @@
|
||||
.#{$ns}InputBox {
|
||||
@include input-input();
|
||||
|
||||
&.is-error {
|
||||
border-color: $Form-input-onError-borderColor;
|
||||
background-color: $Form-input-onError-bg;
|
||||
}
|
||||
|
||||
&.is-focused {
|
||||
border-color: $Form-input-onFocused-borderColor;
|
||||
box-shadow: $Form-input-boxShadow;
|
||||
|
||||
@if $Form-input-onFocused-bg !=$Form-input-bg {
|
||||
background-color: $Form-input-onFocused-bg;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-error.is-focused {
|
||||
border-color: $Form-input-onError-borderColor;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
color: $text--muted-color;
|
||||
background: $Form-input-onDisabled-bg;
|
||||
border-color: $Form-input-onDisabled-borderColor;
|
||||
}
|
||||
|
||||
&-clear {
|
||||
@include input-clear();
|
||||
}
|
||||
|
||||
> svg {
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
color: $icon-color;
|
||||
}
|
||||
|
||||
> a {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
@ -328,45 +328,3 @@
|
||||
padding: 0 $gap-xs;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$ns}InputBox {
|
||||
@include input-input();
|
||||
|
||||
&.is-error {
|
||||
border-color: $Form-input-onError-borderColor;
|
||||
background-color: $Form-input-onError-bg;
|
||||
}
|
||||
|
||||
&.is-focused {
|
||||
border-color: $Form-input-onFocused-borderColor;
|
||||
box-shadow: $Form-input-boxShadow;
|
||||
|
||||
@if $Form-input-onFocused-bg !=$Form-input-bg {
|
||||
background-color: $Form-input-onFocused-bg;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-error.is-focused {
|
||||
border-color: $Form-input-onError-borderColor;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
color: $text--muted-color;
|
||||
background: $Form-input-onDisabled-bg;
|
||||
border-color: $Form-input-onDisabled-borderColor;
|
||||
}
|
||||
|
||||
&-clear {
|
||||
@include input-clear();
|
||||
}
|
||||
|
||||
> svg {
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
color: $icon-color;
|
||||
}
|
||||
|
||||
> a {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
@ -558,6 +558,7 @@ $Combo--horizontal-dragger-top: px2rem(5px);
|
||||
@import '../components/form/date';
|
||||
@import '../components/form/date-range';
|
||||
@import '../components/form/image';
|
||||
@import '../components/form/input-box';
|
||||
@import '../components/form/file';
|
||||
@import '../components/form/editor';
|
||||
@import '../components/form/rich-text';
|
||||
|
@ -221,6 +221,7 @@ pre {
|
||||
@import '../components/form/date';
|
||||
@import '../components/form/date-range';
|
||||
@import '../components/form/image';
|
||||
@import '../components/form/input-box';
|
||||
@import '../components/form/file';
|
||||
@import '../components/form/editor';
|
||||
@import '../components/form/rich-text';
|
||||
|
@ -86,6 +86,7 @@ $Form-input-borderColor: #cfdadd;
|
||||
@import '../components/form/date';
|
||||
@import '../components/form/date-range';
|
||||
@import '../components/form/image';
|
||||
@import '../components/form/input-box';
|
||||
@import '../components/form/file';
|
||||
@import '../components/form/editor';
|
||||
@import '../components/form/rich-text';
|
||||
|
Loading…
Reference in New Issue
Block a user