2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}SubForm {
|
2019-12-06 09:58:08 +08:00
|
|
|
&-values {
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: -$gap-xs;
|
|
|
|
padding: (
|
|
|
|
$Form-input-height - $Form-input-lineHeight * $Form-input-fontSize -
|
|
|
|
px2rem(2px)
|
|
|
|
)/2 0;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-value {
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
line-height: $Form-input-lineHeight * $Form-input-fontSize - px2rem(2px);
|
|
|
|
display: inline-block;
|
|
|
|
font-size: $Form-selectValue-fontSize;
|
|
|
|
color: $Form-selectValue-color;
|
|
|
|
background: $Form-selectValue-bg;
|
|
|
|
border: px2rem(1px) solid $Form-selectValue-borderColor;
|
|
|
|
border-radius: 2px;
|
|
|
|
margin-right: $gap-xs;
|
|
|
|
margin-top: $gap-xs;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:hover {
|
|
|
|
background-color: darken($Form-selectValue-bg, 5%);
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-disabled {
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: $Button-onDisabled-opacity;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-valueIcon {
|
|
|
|
cursor: pointer;
|
|
|
|
border-right: px2rem(1px) solid $Form-selectValue-borderColor;
|
|
|
|
padding: 1px 5px;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:hover {
|
|
|
|
background-color: darken($Form-selectValue-bg, 5%);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-valueLabel {
|
|
|
|
padding: 0 $gap-xs;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-addBtn {
|
|
|
|
font-size: $SubForm--addBtn-fontSize;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
@include button-size(
|
|
|
|
$SubForm--addBtn-paddingY,
|
|
|
|
$SubForm--addBtn-paddingX,
|
|
|
|
$SubForm--addBtn-fontSize,
|
|
|
|
$SubForm--addBtn-lineHeight,
|
|
|
|
$SubForm--addBtn-borderRadius,
|
|
|
|
$SubForm--addBtn-height
|
|
|
|
);
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
@include button-variant(
|
|
|
|
$SubForm--addBtn-bg,
|
|
|
|
$SubForm--addBtn-border,
|
|
|
|
$SubForm--addBtn-color,
|
|
|
|
$SubForm--addBtn-onHover-bg,
|
|
|
|
$SubForm--addBtn-onHover-border,
|
|
|
|
$SubForm--addBtn-onHover-color,
|
|
|
|
$SubForm--addBtn-onActive-bg,
|
|
|
|
$SubForm--addBtn-onActive-border,
|
|
|
|
$SubForm--addBtn-onActive-color
|
|
|
|
);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-disabled {
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: $Button-onDisabled-opacity;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}SubFormControl {
|
2019-12-06 09:58:08 +08:00
|
|
|
padding-top: $Form-input-height - $SubForm--addBtn-height;
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|