choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
262 lines (261 loc) • 6.38 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
.c7n-pro-transfer {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: relative;
display: inline-block;
width: 1.8rem;
height: 2rem;
vertical-align: middle;
border: 0.01rem solid #e0e0e0;
border-radius: 0.02rem;
}
.c7n-pro-transfer-focused {
color: #000000;
border-color: #6374c2;
outline: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.c7n-pro-transfer:last-child {
margin-left: 0.08rem;
}
.c7n-pro-transfer-wrapper {
display: inline-block;
white-space: nowrap;
}
.c7n-pro-transfer-sortable .c7n-pro-transfer-operation {
margin-right: 0.08rem;
}
.c7n-pro-transfer-disabled .c7n-pro-transfer {
background: #f5f5f5;
}
.c7n-pro-transfer-with-header {
padding-top: 0.32rem;
}
.c7n-pro-transfer-with-footer {
padding-bottom: 0.32rem;
}
.c7n-pro-transfer-search {
padding: 0 0.08rem;
}
.c7n-pro-transfer-search-action {
position: absolute;
top: 0.04rem;
right: 0.04rem;
bottom: 0.04rem;
width: 0.28rem;
color: rgba(0, 0, 0, 0.25);
line-height: 0.3rem;
text-align: center;
}
.c7n-pro-transfer-search-action .icon {
color: rgba(0, 0, 0, 0.25);
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.c7n-pro-transfer-search-action .icon:hover {
color: rgba(0, 0, 0, 0.45);
}
span.c7n-pro-transfer-search-action {
pointer-events: none;
}
.c7n-pro-transfer-header {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 0.32rem;
padding: 0.06rem 0.12rem;
overflow: hidden;
color: #000000;
background: #fff;
border-bottom: 0.01rem solid #e8e8e8;
border-radius: 0.02rem 0.02rem 0 0;
}
.c7n-pro-transfer-header-title {
position: absolute;
right: 0.12rem;
}
.c7n-pro-transfer-body {
position: relative;
height: 100%;
font-size: 0.13rem;
}
.c7n-pro-transfer-body-search-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
padding: 0.04rem;
}
.c7n-pro-transfer-body-with-search {
padding-top: 0.38rem;
}
.c7n-pro-transfer-content {
height: 100%;
margin: 0;
padding: 0;
overflow: auto;
list-style: none;
outline: none;
}
.c7n-pro-transfer-content-wrapper {
height: 100%;
}
.c7n-pro-transfer-content-item-group {
padding-top: 0.04rem;
padding-bottom: 0.04rem;
}
.c7n-pro-transfer-content-item-group:not(:last-child) {
border-bottom: 0.01rem solid #e0e0e0;
}
.c7n-pro-transfer-content-item-group-list {
margin: 0;
padding: 0;
}
.c7n-pro-transfer-content-item-group-list > .c7n-pro-transfer-content-item {
padding-left: 0.2rem;
}
.c7n-pro-transfer-content-item-group-no-title > .c7n-pro-transfer-content-item {
padding-left: 0.12rem;
}
.c7n-pro-transfer-content-item-group-title {
height: 0.32rem;
padding: 0 0.12rem;
color: rgba(0, 0, 0, 0.45);
font-size: 0.12rem;
line-height: 0.32rem;
}
.c7n-pro-transfer-content-item {
position: relative;
display: block;
height: auto;
padding: 0.04rem 0.12rem;
overflow: hidden;
color: #000000;
font-weight: normal;
line-height: 0.2rem;
letter-spacing: 0.01em;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
-webkit-transition: background 0.3s ease;
transition: background 0.3s ease;
}
.c7n-pro-transfer-content-item-disabled {
color: rgba(0, 0, 0, 0.54);
cursor: not-allowed;
}
.c7n-pro-transfer-content-item-disabled:hover {
color: rgba(0, 0, 0, 0.54);
background-color: #fff;
cursor: not-allowed;
}
.c7n-pro-transfer-content-item-selected {
background-color: rgba(0, 0, 0, 0.04);
}
.c7n-pro-transfer-content-item-active {
background-color: rgba(140, 158, 255, 0.12);
}
.c7n-pro-transfer-content-item:hover {
background-color: rgba(140, 158, 255, 0.12);
}
.c7n-pro-transfer-content-item:first-child {
border-radius: 0.02rem 0.02rem 0 0;
}
.c7n-pro-transfer-content-item:last-child {
border-radius: 0 0 0.02rem 0.02rem;
}
.c7n-pro-transfer-content-item-divider {
height: 0.01rem;
margin: 0.01rem 0;
overflow: hidden;
line-height: 0;
background-color: #e8e8e8;
}
.c7n-pro-transfer-content-item .c7n-checkbox-wrapper {
margin-right: 0.08rem;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.c7n-pro-transfer-content-item-more {
text-align: center;
}
.c7n-pro-transfer-footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 0.32rem;
border-top: 0.01rem solid #e8e8e8;
border-radius: 0 0 0.02rem 0.02rem;
}
.c7n-pro-transfer-current {
background-color: rgba(140, 158, 255, 0.12);
}
.c7n-pro-transfer-operation,
.c7n-pro-transfer-sort {
display: inline-block;
margin-left: 0.08rem;
vertical-align: middle;
}
.c7n-pro-transfer-operation .c7n-pro-btn,
.c7n-pro-transfer-sort .c7n-pro-btn {
display: block;
min-width: 0.24rem;
height: 0.24rem;
margin-bottom: 0.08rem;
padding: 0;
}
.c7n-pro-transfer-operation .c7n-pro-btn + .c7n-pro-btn,
.c7n-pro-transfer-sort .c7n-pro-btn + .c7n-pro-btn {
margin-left: 0;
}
.c7n-pro-transfer-operation .c7n-pro-btn:last-child,
.c7n-pro-transfer-sort .c7n-pro-btn:last-child {
margin-bottom: 0;
}
.c7n-pro-transfer-operation .c7n-pro-btn .icon,
.c7n-pro-transfer-sort .c7n-pro-btn .icon {
margin: 0;
font-size: 0.16rem;
}
.c7n-pro-transfer-operation-custom-left-active,
.c7n-pro-transfer-operation-custom-right-active,
.c7n-pro-transfer-sort-custom-up-active,
.c7n-pro-transfer-sort-custom-down-active {
cursor: pointer;
}
.c7n-pro-transfer-operation-custom-left-disable,
.c7n-pro-transfer-operation-custom-right-disable,
.c7n-pro-transfer-sort-custom-up-disable,
.c7n-pro-transfer-sort-custom-down-disable {
cursor: no-drop;
}
.c7n-pro-transfer-item-delete {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
width: 100%;
}
.c7n-pro-transfer-item-icon {
color: rgba(0, 0, 0, 0.25);
}
.c7n-pro-transfer-item-icon:hover {
color: rgba(0, 0, 0, 0.45);
}