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.

139 lines
2.6 KiB

9 years ago
@transfer-prefix-cls: ~"@{css-prefix}transfer";
.antCheckboxFn(@checkbox-prefix-cls: ant-transfer-checkbox);
9 years ago
.@{transfer-prefix-cls} {
position: relative;
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;
}
}
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;
line-height: 1.5;
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 {
margin-top: 24px;
color: #ccc;
text-align: center;
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(10px);
}
9 years ago
}
}
9 years ago
}
@keyframes transferHighlightIn {
0% {
background: tint(@primary-color, 80%);
}
100% {
background: transparent;
}
}