winbox-ui-next
Version:
We Design Vue 2.0: A Vue.js 3 UI Library
242 lines (241 loc) • 5.41 kB
CSS
/******** borderSize *******/
/******** borderStyle *******/
/******** radius *******/
/******** shadow distance *******/
/******** size *******/
/******** spacing *******/
/******** shadow *******/
/******** opacity *******/
/******** fontSize *******/
/******** fontWeight ********/
/******** radius *******/
/******** Primary *******/
/******** success *******/
/******** warning *******/
/******** danger *******/
/******** link *******/
/******** radius *******/
/********* icon hover *********/
.w-transfer {
display: flex;
align-items: center;
}
.w-transfer-view {
display: flex;
flex-direction: column;
box-sizing: border-box;
width: 200px;
height: 298px;
border: 1px solid var(--color-neutral-3);
border-radius: var(--border-radius-small);
}
.w-transfer-view-search {
margin: 8px 8px 0px 8px;
}
.w-transfer-view-list {
flex: 1;
}
.w-transfer-view-custom-list {
flex: 1;
overflow: auto;
}
.w-transfer-view-header {
display: flex;
align-items: center;
padding: 0 20px;
}
.w-transfer-view-header > *:first-child {
flex: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.w-transfer-view-header > *:first-child:not(:last-child) {
margin-right: 8px;
}
.w-transfer-view-header {
height: 48px;
color: var(--color-text-1);
font-weight: 500;
font-size: 14px;
line-height: 48px;
border-bottom: 1px solid var(--color-neutral-3);
}
.w-transfer-view-header-count {
display: flex;
align-items: center;
}
.w-transfer-view-header-count .w-checkbox {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: inherit;
}
.w-transfer-view-header-count .w-checkbox-text {
color: inherit;
}
.w-transfer-view-header-clear-btn {
color: var(--color-text-2);
font-size: 12px;
cursor: pointer;
}
.w-transfer-view-header-clear-btn:hover {
color: var(--color-text-1);
}
.w-transfer-view-header-title {
margin-right: 2px;
color: var(--color-text-3);
font-weight: normal;
font-size: 12px;
}
.w-transfer-view .w-list {
display: flex;
flex-direction: column;
height: 100%;
border-radius: 0;
}
.w-transfer-view .w-list-content {
flex: 1;
padding: 6px 0;
overflow-y: auto;
}
.w-transfer-view .w-list-footer {
position: relative;
display: flex;
align-items: center;
box-sizing: border-box;
height: 48px;
padding: 0 8px;
}
.w-transfer-view .w-list .w-pagination {
position: absolute;
top: 50%;
right: 8px;
margin: 0;
transform: translateY(-50%);
}
.w-transfer-view .w-list .w-pagination-jumper-input {
width: 24px;
}
.w-transfer-view .w-list .w-pagination-jumper-separator {
padding: 0 8px;
}
.w-transfer-view .w-checkbox-wrapper {
display: inline;
}
.w-transfer-view .w-checkbox .w-icon-hover:hover::before {
background-color: var(--color-fill-3);
}
.w-transfer-list-item {
position: relative;
display: flex;
align-items: center;
height: 32px;
padding: 0 20px;
color: var(--color-text-1);
line-height: 32px;
list-style: none;
background-color: transparent;
cursor: default;
}
.w-transfer-list-item-content {
font-size: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.w-transfer-list-item-checkbox .w-checkbox-label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.w-transfer-list-item-disabled {
color: var(--color-text-4);
background-color: transparent;
cursor: not-allowed;
}
.w-transfer-list-item:not(.w-transfer-list-item-disabled):hover {
background-color: var(--color-fill-2);
}
.w-transfer-list-item:not(.w-transfer-list-item-disabled):hover .w-checkbox-label {
color: var(--color-text-1);
}
.w-transfer-list-item .w-checkbox {
width: 100%;
}
.w-transfer-list-item .w-checkbox-text {
color: inherit;
}
.w-transfer-list-item .w-checkbox-label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.w-transfer-list-item-remove-btn {
margin-left: auto;
color: var(--color-text-2);
font-size: 12px;
cursor: pointer;
}
.w-transfer-list-item-remove-btn:hover {
color: var(--color-text-1);
}
.w-transfer-list-item-draggable::before {
position: absolute;
right: 0;
left: 0;
display: block;
height: 2px;
border-radius: 1px;
content: '';
}
.w-transfer-list-item-gap-bottom::before {
bottom: -2px;
background-color: rgb(var(--primary-6));
}
.w-transfer-list-item-gap-top::before {
top: -2px;
background-color: rgb(var(--primary-6));
}
.w-transfer-list-item-dragging {
color: var(--color-text-4) ;
background-color: var(--color-fill-1) ;
}
.w-transfer-list-item-dragged {
animation: w-transfer-drag-item-blink 0.4s;
animation-timing-function: cubic-bezier(0, 0, 1, 1);
}
.w-transfer-operations {
padding: 0 12px;
}
.w-transfer-operations .w-btn {
display: block;
}
.w-transfer-operations .w-btn:last-child {
margin-top: 16px;
}
.w-transfer-operations-words .w-btn {
width: 100%;
padding: 0 12px;
text-align: left;
}
.w-transfer-simple .w-transfer-view-source {
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.w-transfer-simple .w-transfer-view-target {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.w-transfer-disabled .w-transfer-view-header {
color: var(--color-text-4);
}
@keyframes w-transfer-drag-item-blink {
0% {
background-color: var(--color-primary-light-1);
}
100% {
background-color: transparent;
}
}