mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
styles: 输入框附加组件样式 (#6271)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
0573ef690c
commit
3de6c1ece7
@ -155,6 +155,13 @@
|
||||
&--withAddOn {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
&:hover {
|
||||
.#{$ns}TextControl-input,
|
||||
.#{$ns}Button,
|
||||
.#{$ns}TextControl-addOn {
|
||||
border-color: var(--Form-input-onHover-borderColor);
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(sm) {
|
||||
&.#{$ns}Form-control--sizeXs,
|
||||
@ -170,7 +177,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
&--withAddOn > &-input {
|
||||
&--withAddOn > &-input,
|
||||
&--withAddOn.is-focused > &-input {
|
||||
flex-basis: 1;
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
@ -218,6 +226,8 @@
|
||||
|
||||
&:first-child {
|
||||
border-left-width: var(--input-addon-text-left-border-width);
|
||||
border-top-left-radius: var(--Form-input-borderRadius);
|
||||
border-bottom-left-radius: var(--Form-input-borderRadius);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
@ -232,8 +242,7 @@
|
||||
position: relative;
|
||||
border-radius: 0;
|
||||
margin-left: px2rem(-1px);
|
||||
border: var(--InputGroup-button-borderWidth) solid
|
||||
var(--InputGroup-button-borderColor);
|
||||
transition: none;
|
||||
}
|
||||
|
||||
&:not(:last-child) .#{$ns}Button {
|
||||
|
Loading…
Reference in New Issue
Block a user