You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

192 lines
4.1 KiB

@import '../../style/themes/index';
6 years ago
@import '../../style/mixins/index';
@import '../../checkbox/style/mixin';
@import './customize.less';
6 years ago
@transfer-prefix-cls: ~'@{ant-prefix}-transfer';
9 years ago
@transfer-header-vertical-padding: (
@transfer-header-height - 1px - @font-size-base * @line-height-base
) / 2;
.@{transfer-prefix-cls} {
.reset-component;
position: relative;
&-disabled {
.@{transfer-prefix-cls}-list {
background: @transfer-disabled-bg;
}
}
9 years ago
&-list {
9 years ago
position: relative;
display: inline-block;
width: 180px;
height: @transfer-list-height;
padding-top: @transfer-header-height;
vertical-align: middle;
border: @border-width-base @border-style-base @border-color-base;
border-radius: @border-radius-base;
9 years ago
&-with-footer {
7 years ago
padding-bottom: 34px;
9 years ago
}
9 years ago
9 years ago
&-search {
padding: 0 24px 0 @control-padding-horizontal-sm;
9 years ago
&-action {
position: absolute;
top: 12px;
right: 12px;
bottom: 12px;
width: 28px;
color: @disabled-color;
line-height: @input-height-base;
9 years ago
text-align: center;
.@{iconfont-css-prefix} {
color: @disabled-color;
transition: all 0.3s;
&:hover {
color: @text-color-secondary;
}
}
span& {
pointer-events: none;
}
9 years ago
}
}
9 years ago
&-header {
9 years ago
position: absolute;
top: 0;
left: 0;
width: 100%;
// border-top is on the transfer dom. We should minus 1px for this
padding: (@transfer-header-vertical-padding - 1px) @control-padding-horizontal
@transfer-header-vertical-padding;
overflow: hidden;
color: @text-color;
background: @component-background;
border-bottom: @border-width-base @border-style-base @border-color-split;
border-radius: @border-radius-base @border-radius-base 0 0;
9 years ago
&-title {
position: absolute;
right: 12px;
9 years ago
}
.@{ant-prefix}-checkbox-wrapper + span {
padding-left: 8px;
}
9 years ago
}
&-body {
9 years ago
position: relative;
9 years ago
height: 100%;
font-size: @font-size-base;
9 years ago
&-search-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
padding: 12px;
9 years ago
}
}
9 years ago
&-body-with-search {
padding-top: @input-height-base + 24px;
9 years ago
}
&-content {
height: 100%;
margin: 0;
padding: 0;
overflow: auto;
list-style: none;
> .LazyLoad {
animation: transferHighlightIn 1s;
}
&-item {
min-height: 32px;
padding: 6px @control-padding-horizontal;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
6 years ago
transition: all 0.3s;
> span {
padding-right: 0;
}
&-text {
padding-left: 8px;
}
}
&-item:not(&-item-disabled):hover {
background-color: @item-hover-bg;
cursor: pointer;
}
&-item-disabled {
color: @btn-disable-color;
cursor: not-allowed;
}
}
&-body-not-found {
position: absolute;
top: 50%;
width: 100%;
padding-top: 0;
color: @disabled-color;
text-align: center;
transform: translateY(-50%);
// with filter should offset the search box height
.@{transfer-prefix-cls}-list-body-with-search & {
margin-top: @input-height-base / 2;
}
}
9 years ago
&-footer {
9 years ago
position: absolute;
bottom: 0;
left: 0;
width: 100%;
border-top: @border-width-base @border-style-base @border-color-split;
border-radius: 0 0 @border-radius-base @border-radius-base;
9 years ago
}
}
9 years ago
&-operation {
display: inline-block;
margin: 0 8px;
overflow: hidden;
vertical-align: middle;
9 years ago
.@{ant-prefix}-btn {
display: block;
&:first-child {
margin-bottom: 4px;
}
.@{iconfont-css-prefix} {
font-size: 12px;
}
9 years ago
}
}
9 years ago
}
@keyframes transferHighlightIn {
0% {
background: @primary-2;
}
100% {
background: transparent;
}
}