mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 03:18:16 +08:00
77 lines
1.4 KiB
SCSS
77 lines
1.4 KiB
SCSS
.#{$ns}Selections {
|
|
height: 100%;
|
|
min-width: px2rem(200px);
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
&-title {
|
|
height: $Form-input-height;
|
|
background: $Table-thead-bg;
|
|
font-size: $Form-input-fontSize;
|
|
padding: (
|
|
$Form-input-height - $Form-input-lineHeight * $Form-input-fontSize
|
|
)/2 $gap-sm;
|
|
}
|
|
|
|
&-placeholder {
|
|
color: $Form-input-placeholderColor;
|
|
text-align: center;
|
|
width: 100%;
|
|
flex-basis: $Form-input-height;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
font-size: $Form-input-fontSize;
|
|
}
|
|
|
|
&-items {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
&-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: $Form-input-height;
|
|
line-height: $Form-input-lineHeight;
|
|
font-size: $Form-input-fontSize;
|
|
padding: (
|
|
$Form-input-height - $Form-input-lineHeight * $Form-input-fontSize
|
|
)/2 $gap-sm;
|
|
|
|
> label {
|
|
flex-basis: px2rem(50px);
|
|
flex-grow: 1;
|
|
}
|
|
|
|
> .#{$ns}Selections-dragbar {
|
|
width: px2rem(20px);
|
|
position: relative;
|
|
left: px2rem(-5px);
|
|
color: $icon-color;
|
|
cursor: move;
|
|
}
|
|
|
|
&--dragging {
|
|
> * {
|
|
opacity: 0.2;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-delBtn {
|
|
color: $icon-color;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
color: $icon-onHover-color;
|
|
}
|
|
|
|
> svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
}
|
|
}
|