ten-design-vue
Version:
ten-vue
218 lines (217 loc) • 4.39 kB
CSS
/* dependencies icon,checkbox,input, */
/**
* 文字部分
* size 大小,line 行高, color 颜色
*/
/* button */
/* input */
/* transfer */
/* alert */
/* menu */
/* message */
/* modal */
/* badge */
/* tag */
/* progress */
/* popup */
/* tooltip */
/* loading */
/* tabs */
/* check */
/* mention */
/* popup */
/* steps */
/* tabs */
/* modal */
/* form */
/* table */
/* pagination */
/* upload */
/* collapse */
/* anchor */
/* list */
.ten-transfer__select-box {
display: inline-block;
height: 238px;
width: 176px;
vertical-align: middle;
border: 1px solid #d9d9d9;
border-radius: 0px;
position: relative;
padding-top: 40px;
background: #fff;
}
.ten-transfer__select-box-header {
position: absolute;
top: 0;
width: 100%;
height: 40px;
border-bottom: solid 1px #d9d9d9;
line-height: 40px;
font-size: 14px;
color: #333;
}
.ten-transfer__select-box-header .ten-checkbox {
margin-left: 8px;
}
.ten-transfer__select-box-header-title {
position: absolute;
right: 8px;
opacity: 0.6;
}
.ten-transfer__select-box-header-selected {
padding-left: 8px;
opacity: 0.8;
}
.ten-transfer__select-box-main {
position: relative;
height: 100%;
font-size: 14px;
}
.ten-transfer__select-box-main--search {
padding-top: 40px;
}
.ten-transfer__select-box-main-notfound {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%);
transform: translate(-50%);
color: #c0c0c0;
}
.ten-transfer__select-box-main-content {
height: 100%;
margin: 0;
padding: 0;
overflow: auto;
list-style: none;
}
.ten-transfer__select-box-main-content-item {
position: relative;
transition: all 0.3s;
height: 40px;
font-size: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #333;
cursor: pointer;
}
.ten-transfer__select-box-main-content-item-title {
opacity: 0.8;
}
.ten-transfer__select-box-main-content-item .ten-checkbox {
margin: 0;
display: block;
padding: 12px 8px;
}
.ten-transfer__select-box-main-content-item__text {
padding-left: 8px;
}
.ten-transfer__select-box-main-content-item--disabled {
cursor: not-allowed;
color: #c0c0c0;
}
.ten-transfer__select-box-main-content-item:not(.ten-transfer__select-box-main-content-item--disabled):hover {
background: #e8f1ff;
}
.ten-transfer__select-box-main-content-item::after {
content: '';
display: none;
position: absolute;
left: 0;
width: 100%;
height: 4px;
background: #cfe1ff;
}
.ten-transfer__select-box-main-content-item--dragpos-center {
background-color: #cfe1ff;
}
.ten-transfer__select-box-main-content-item--dragpos-top::after {
display: block;
top: -2px;
}
.ten-transfer__select-box-main-content-item--dragpos-bottom::after {
display: block;
bottom: -2px;
}
.ten-transfer__search {
position: absolute;
top: 0;
left: 0;
right: 0;
}
.ten-transfer__search input {
height: 40px;
border: none;
border-bottom: solid 1px #d9d9d9;
height: inherit;
line-height: 40px;
width: 100%;
padding: 0 12px;
outline: none;
transition: all 0.3s;
}
.ten-transfer__search input:focus {
border-bottom-color: #0052d9;
}
.ten-transfer__search-icon-search {
position: absolute;
right: 14px;
font-size: 12px;
line-height: 41px;
color: #999999;
opacity: 1;
transition: all 0.3s;
}
.ten-transfer__search-icon-search .ten-icon {
position: relative;
top: 5px;
}
.ten-transfer__search-icon-search .ten-icon svg {
width: 16px;
height: 16px;
}
.ten-transfer__search-icon--hide {
opacity: 0;
}
.ten-transfer__action {
display: inline-block;
margin: 0 9px;
overflow: hidden;
vertical-align: middle;
}
.ten-transfer__action_button {
cursor: pointer;
display: block;
height: 24px;
min-width: 24px;
line-height: 24px;
padding: 0 4px;
box-sizing: border-box;
font-size: 14px;
text-align: center;
background: #0052d9;
border: #0052d9 solid 1px;
color: #fff;
transition: all 0.3s;
}
.ten-transfer__action_button polygon {
fill: #fff;
}
.ten-transfer__action_button--disabled {
border-color: rgba(0, 0, 0, 0.15);
background: rgba(0, 0, 0, 0.04);
color: #c0c0c0;
cursor: not-allowed;
}
.ten-transfer__action_button--disabled polygon {
fill: rgba(0, 0, 0, 0.15);
}
.ten-transfer__action_button i {
position: relative;
top: 0.09em;
}
.ten-transfer__action_button + .ten-transfer__action_button {
margin-top: 4px;
}