amis/scss/components/form/_transfer.scss

83 lines
1.4 KiB
SCSS
Raw Normal View History

2020-05-13 19:28:46 +08:00
.#{$ns}Transfer {
display: flex;
flex-direction: row;
flex-wrap: wrap;
min-height: px2rem(300px);
&--inline {
display: inline-flex;
flex-wrap: nowrap;
}
&-title {
display: flex;
background: $Table-thead-bg;
height: px2rem(30px);
line-height: $Form-input-lineHeight;
font-size: $Form-input-fontSize;
padding: (px2rem(30px) - $Form-input-lineHeight * $Form-input-fontSize)/2
$gap-sm;
flex-direction: row;
&--light {
background: transparent;
}
> span {
flex-grow: 1;
}
}
&-select,
&-result {
min-width: px2rem(200px);
flex-basis: px2rem(200px);
flex-grow: 1;
border: $Form-input-borderWidth solid $Form-input-borderColor;
display: flex;
flex-direction: column;
}
&-checkboxes,
&-selections {
flex-grow: 1;
height: 0;
overflow: auto;
}
2020-05-13 20:36:08 +08:00
&-checkboxes .#{$ns}ListCheckboxes-placeholder {
height: 100%;
display: flex;
align-items: center;
text-align: center;
justify-content: center;
}
2020-05-13 19:28:46 +08:00
&-search {
padding: $gap-sm;
}
&-arrow {
width: px2rem(10px);
}
&-checkAll,
&-clearAll {
user-select: none;
cursor: pointer;
2020-05-13 20:36:08 +08:00
&.is-disabled {
pointer-events: none;
color: $text--muted-color;
}
2020-05-13 19:28:46 +08:00
}
}
2020-05-14 10:40:44 +08:00
.#{$ns}TransferControl {
position: relative;
2020-05-14 11:33:18 +08:00
&.is-inline {
display: inline-block;
}
2020-05-14 10:40:44 +08:00
}