mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
167 lines
3.3 KiB
Plaintext
167 lines
3.3 KiB
Plaintext
@import "../../style/themes/default";
|
|
@import "../../style/mixins/index";
|
|
@import "../../checkbox/style/mixin";
|
|
|
|
@transfer-prefix-cls: ~"@{ant-prefix}-transfer";
|
|
.antCheckboxFn(@checkbox-prefix-cls: ~"@{ant-prefix}-transfer-checkbox");
|
|
|
|
.@{transfer-prefix-cls} {
|
|
position: relative;
|
|
line-height: @line-height-base;
|
|
|
|
&-list {
|
|
font-size: @font-size-base;
|
|
border: 1px solid @border-color-base;
|
|
display: inline-block;
|
|
border-radius: @border-radius-base;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
width: 180px;
|
|
height: 200px;
|
|
padding-top: 33px;
|
|
|
|
&-with-footer {
|
|
padding-bottom: 33px;
|
|
}
|
|
|
|
&-search {
|
|
&-action {
|
|
color: #ccc;
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
width: 32px;
|
|
height: 32px;
|
|
line-height: 32px;
|
|
text-align: center;
|
|
font-size: @font-size-lg;
|
|
.@{iconfont-css-prefix} {
|
|
transition: all .3s;
|
|
font-size: @font-size-base;
|
|
color: #ccc;
|
|
&:hover {
|
|
color: @text-color-secondary;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-header {
|
|
padding: 7px 15px;
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
background: #fff;
|
|
color: @text-color;
|
|
border-bottom: 1px solid @border-color-split;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
|
|
&-title {
|
|
position: absolute;
|
|
right: 15px;
|
|
}
|
|
}
|
|
|
|
&-body {
|
|
font-size: @font-size-base;
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
&-search-wrapper {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 28px;
|
|
padding: 4px;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&-body-with-search {
|
|
padding-top: 34px;
|
|
}
|
|
|
|
&-content {
|
|
height: 100%;
|
|
overflow: auto;
|
|
&-item {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
padding: 7px 15px;
|
|
min-height: 32px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
&-item:not(&-item-disabled):hover {
|
|
cursor: pointer;
|
|
background-color: tint(@primary-color, 90%);
|
|
}
|
|
|
|
&-item-disabled {
|
|
cursor: not-allowed;
|
|
color: @btn-disable-color;
|
|
}
|
|
|
|
&-item-highlight-enter {
|
|
animation: transferHighlightIn 1s ease;
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
&-body-not-found {
|
|
padding-top: 0;
|
|
color: #ccc;
|
|
text-align: center;
|
|
display: none;
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 100%;
|
|
margin-top: -10px;
|
|
}
|
|
|
|
&-content:empty + &-body-not-found {
|
|
display: block;
|
|
}
|
|
|
|
&-footer {
|
|
border-top: 1px solid @border-color-split;
|
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&-operation {
|
|
display: inline-block;
|
|
overflow: hidden;
|
|
margin: 0 8px;
|
|
vertical-align: middle;
|
|
|
|
.@{ant-prefix}-btn {
|
|
display: block;
|
|
|
|
&:first-child {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.@{iconfont-css-prefix} {
|
|
.iconfont-size-under-12px(10px);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes transferHighlightIn {
|
|
0% {
|
|
background: tint(@primary-color, 80%);
|
|
}
|
|
100% {
|
|
background: transparent;
|
|
}
|
|
}
|