mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
96 lines
1.7 KiB
SCSS
96 lines
1.7 KiB
SCSS
|
.#{$ns}ResultBox {
|
||
|
@include input-input();
|
||
|
flex-wrap: wrap;
|
||
|
padding: 0 3px;
|
||
|
min-height: $Form-input-height;
|
||
|
align-items: center;
|
||
|
|
||
|
&.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;
|
||
|
}
|
||
|
|
||
|
&-mid {
|
||
|
flex-grow: 1;
|
||
|
}
|
||
|
|
||
|
&-value {
|
||
|
background: $ResultBox-value-bg;
|
||
|
color: $ResultBox-value-color;
|
||
|
font-size: $Form-input-fontSize;
|
||
|
padding: 0 5px;
|
||
|
min-height: 24px;
|
||
|
flex-wrap: nowrap;
|
||
|
display: inline-flex;
|
||
|
align-items: center;
|
||
|
margin: 2px 3px;
|
||
|
user-select: none;
|
||
|
|
||
|
> a {
|
||
|
cursor: pointer;
|
||
|
margin-left: 5px;
|
||
|
color: $ResultBox-icon-color;
|
||
|
&:hover {
|
||
|
color: $ResultBox-icon--onHover-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&:hover {
|
||
|
background: $ResultBox-value--onHover-bg;
|
||
|
}
|
||
|
|
||
|
&.is-disabled {
|
||
|
pointer-events: none;
|
||
|
color: $ResultBox-value--onDisabled-color;
|
||
|
|
||
|
> a {
|
||
|
color: $ResultBox-icon--onDisabled-color;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&-placeholder {
|
||
|
color: $Form-input-placeholderColor;
|
||
|
user-select: none;
|
||
|
margin-left: 8px;
|
||
|
}
|
||
|
|
||
|
> input {
|
||
|
padding-left: 8px;
|
||
|
min-height: 24px;
|
||
|
}
|
||
|
}
|