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.

152 lines
2.9 KiB

@import "../../style/themes/default";
@import "../../style/mixins/index";
@import "../../checkbox/style/mixin";
@transfer-prefix-cls: ant-transfer;
.antCheckboxFn(@checkbox-prefix-cls: ant-transfer-checkbox);
9 years ago
.@{transfer-prefix-cls} {
position: relative;
line-height: @line-height-base;
9 years ago
&-list {
font-size: 12px;
border: 1px solid @border-color-base;
9 years ago
display: inline-block;
border-radius: @border-radius-base;
vertical-align: middle;
9 years ago
position: relative;
width: 160px;
height: 200px;
padding-top: 33px;
&-with-footer {
padding-bottom: 33px;
}
9 years ago
9 years ago
&-search {
&-action {
color: #ccc;
position: absolute;
top: 2px;
right: 2px;
width: 32px;
height: 32px;
line-height: 32px;
text-align: center;
font-size: 14px;
.anticon {
transition: all .3s;
font-size: 12px;
color: #ccc;
&:hover {
color: #999;
}
}
9 years ago
}
}
9 years ago
&-header {
padding: 7px 16px;
border-radius: @border-radius-base @border-radius-base 0 0;
9 years ago
background: #fff;
color: #666;
border-bottom: 1px solid @border-color-split;
overflow: hidden;
9 years ago
position: absolute;
top: 0;
left: 0;
width: 100%;
9 years ago
&-title {
float: right;
}
9 years ago
}
&-body {
font-size: 12px;
9 years ago
position: relative;
9 years ago
height: 100%;
9 years ago
&-search-wrapper {
position: absolute;
top: 0;
left: 0;
height: 28px;
padding: 4px;
width: 100%;
9 years ago
}
9 years ago
9 years ago
&-not-found {
padding-top: 24px;
9 years ago
color: #ccc;
text-align: center;
height: 100%;
9 years ago
}
9 years ago
ul {
9 years ago
height: 100%;
overflow: auto;
9 years ago
li {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
9 years ago
padding: 7px 16px;
transition: all 0.3s ease;
9 years ago
&:hover {
cursor: pointer;
background-color: tint(@primary-color, 90%);
9 years ago
}
}
}
}
ul li&-highlight-enter {
animation: transferHighlightIn 1s ease;
transition: none;
}
9 years ago
&-body-with-search {
padding-top: 34px;
}
9 years ago
&-footer {
border-top: 1px solid @border-color-split;
9 years ago
border-radius: 0 0 @border-radius-base @border-radius-base;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
9 years ago
}
}
9 years ago
&-operation {
display: inline-block;
overflow: hidden;
margin: 0 8px;
vertical-align: middle;
9 years ago
.ant-btn {
9 years ago
float: left;
clear: both;
&:first-child {
margin-bottom: 4px;
}
.anticon {
.iconfont-size-under-12px(8px);
}
9 years ago
}
}
9 years ago
}
@keyframes transferHighlightIn {
0% {
background: tint(@primary-color, 80%);
}
100% {
background: transparent;
}
}