2020-06-12 11:07:34 +08:00
|
|
|
.#{$ns}ArrayInput {
|
|
|
|
&-placeholder {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
|
|
|
padding-top: var(--Form-label-paddingTop);
|
2020-06-12 11:07:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-addBtn {
|
|
|
|
> svg {
|
2020-12-21 10:08:40 +08:00
|
|
|
width: var(--Combo-addBtn-fontSize);
|
|
|
|
height: var(--Combo-addBtn-fontSize);
|
2020-06-12 11:07:34 +08:00
|
|
|
}
|
|
|
|
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--Combo-addBtn-fontSize);
|
2020-06-12 11:07:34 +08:00
|
|
|
|
|
|
|
@include button-size(
|
2020-12-21 10:08:40 +08:00
|
|
|
var(--Combo-addBtn-fontSize),
|
2023-01-06 20:36:45 +08:00
|
|
|
var(--Combo-addBtn-fontWeight),
|
2020-12-21 10:08:40 +08:00
|
|
|
var(--Combo-addBtn-lineHeight),
|
|
|
|
var(--Combo-addBtn-borderRadius),
|
2022-10-19 10:38:52 +08:00
|
|
|
var(--Combo-addBtn-borderRadius),
|
|
|
|
var(--Combo-addBtn-borderRadius),
|
|
|
|
var(--Combo-addBtn-borderRadius),
|
|
|
|
var(--Combo-addBtn-height),
|
|
|
|
var(--Combo-addBtn-paddingY),
|
|
|
|
var(--Combo-addBtn-paddingY),
|
|
|
|
var(--Combo-addBtn-paddingX),
|
|
|
|
var(--Combo-addBtn-paddingX)
|
2020-06-12 11:07:34 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
@include button-variant(
|
2020-12-21 10:08:40 +08:00
|
|
|
var(--Combo-addBtn-bg),
|
|
|
|
var(--Combo-addBtn-border),
|
|
|
|
var(--Combo-addBtn-color),
|
|
|
|
var(--Combo-addBtn-onHover-bg),
|
|
|
|
var(--Combo-addBtn-onHover-border),
|
|
|
|
var(--Combo-addBtn-onHover-color),
|
|
|
|
var(--Combo-addBtn-onActive-bg),
|
|
|
|
var(--Combo-addBtn-onActive-border),
|
|
|
|
var(--Combo-addBtn-onActive-color)
|
2020-06-12 11:07:34 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
pointer-events: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
opacity: var(--Button-onDisabled-opacity);
|
2020-06-12 11:07:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-toolbar {
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-top: var(--gap-sm);
|
2020-06-12 11:44:04 +08:00
|
|
|
|
|
|
|
&--dnd {
|
|
|
|
padding-left: 29px;
|
|
|
|
}
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-sortTip {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
2020-06-12 11:07:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-item {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: flex-start;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-bottom: var(--gap-xs);
|
2020-06-12 11:07:34 +08:00
|
|
|
|
|
|
|
> div {
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 0;
|
|
|
|
min-width: 120px;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-xs);
|
2020-06-12 11:07:34 +08:00
|
|
|
|
|
|
|
&:not(:first-child) {
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-left: var(--gap-xs);
|
2020-06-12 11:07:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--dragging {
|
|
|
|
position: relative;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-itemRemove,
|
|
|
|
&-itemDrager {
|
|
|
|
margin: 0;
|
|
|
|
flex-grow: unset;
|
|
|
|
display: inline-block;
|
2020-12-21 10:08:40 +08:00
|
|
|
padding: var(--Form-label-paddingTop) var(--gap-xs);
|
2020-06-12 11:07:34 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
> svg {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--icon-color);
|
2020-06-12 11:07:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover > svg {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--icon-onHover-color);
|
2020-06-12 11:07:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-itemDrager {
|
|
|
|
cursor: move;
|
|
|
|
}
|
|
|
|
}
|