amis/scss/components/form/_transfer.scss
2020-05-26 20:28:09 +08:00

137 lines
2.3 KiB
SCSS

.#{$ns}Transfer {
display: flex;
flex-direction: row;
flex-wrap: wrap;
min-height: px2rem(300px);
&--inline {
display: inline-flex;
flex-wrap: nowrap;
}
&-title {
display: flex;
align-items: center;
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 {
width: 0;
min-width: px2rem(200px);
flex-grow: 1;
border: $Form-input-borderWidth solid $Form-input-borderColor;
display: flex;
flex-direction: column;
}
&-select > &-checkboxes,
&-result > &-selections {
flex-grow: 1;
height: 0;
overflow: auto;
}
&-checkboxes .#{$ns}ListCheckboxes-placeholder {
height: 100%;
display: flex;
align-items: center;
text-align: center;
justify-content: center;
}
&-search {
padding: $gap-sm;
}
&-arrow {
width: px2rem(10px);
}
&-checkAll,
&-clearAll {
user-select: none;
cursor: pointer;
&.is-disabled {
pointer-events: none;
color: $text--muted-color;
}
}
&-tabs {
display: flex;
flex-direction: column;
height: 100%;
> .#{$ns}Tabs-links {
padding: 5px 0 0 5px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
> .#{$ns}Tabs-link > a:first-child {
font-size: 12px;
padding: 7px 8px;
}
.#{$ns}TabsTransfer-tabsMid {
flex-grow: 1;
}
> .#{$ns}SearchBox {
margin: 0 5px 0 10px;
padding: 0 5px;
width: 25px;
&.is-active {
width: 150px;
margin-right: 10px;
padding-left: 10px;
}
}
}
> .#{$ns}Tabs-content {
flex-grow: 1;
height: 0;
overflow: auto;
position: relative;
padding: 5px 0;
}
}
}
.#{$ns}TabsTransfer {
.#{$ns}Transfer-title {
height: 40px;
}
// .#{$ns}Transfer-result {
// flex-grow: unset;
// }
}
.#{$ns}TransferControl {
position: relative;
&.is-inline {
display: inline-block;
}
}