choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
269 lines (268 loc) • 14.7 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 */
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
.c7n-pro-table-customization-header-button {
float: right;
}
.c7n-pro-table-customization-tree {
min-height: 0.01rem;
margin-bottom: 0.06rem;
}
.c7n-pro-table-customization-tree-treenode {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
width: 100%;
padding: 0.03rem 0;
outline: none;
}
.c7n-pro-table-customization-tree-treenode-hover-button {
visibility: hidden;
-webkit-transition: none;
transition: none;
}
.c7n-pro-table-customization-tree-treenode-hover-button .icon {
-webkit-transition: none;
transition: none;
}
.c7n-pro-table-customization-tree-treenode-hover .c7n-pro-table-customization-tree-treenode-hover-button {
visibility: visible;
}
.c7n-pro-table-customization-tree-treenode-hover::before {
position: absolute;
top: 0;
right: -100%;
bottom: 0;
left: -100%;
display: block;
background-color: rgba(0, 0, 0, 0.04);
content: "";
}
.c7n-pro-table-customization-tree-treenode-content {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 0.32rem;
min-height: 0.24rem;
margin: 0;
padding: 0.04rem 0;
color: inherit;
line-height: 0.24rem;
background: transparent;
border-radius: 0.02rem 0 0 0.02rem;
}
.c7n-pro-table-customization-tree-treenode-title {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin: unset;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.c7n-pro-table-customization-tree-treenode-title-text {
height: 0.24rem;
overflow: hidden;
text-overflow: ellipsis;
}
.c7n-pro-table-customization-tree-treenode-switcher {
-webkit-box-flex: 0;
-ms-flex: none;
flex: none;
width: 0.22rem;
height: 0.32rem;
margin: 0;
padding: 0.05rem 0;
line-height: 1;
text-align: center;
vertical-align: top;
cursor: pointer;
}
.c7n-pro-table-customization-tree-treenode-switcher-icon.icon {
font-size: 0.18rem;
line-height: 0.22rem;
}
.c7n-pro-table-customization-tree-treenode-switcher-icon-close {
-webkit-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.c7n-pro-table-customization-tree-treenode-switcher-noop {
cursor: default;
}
.c7n-pro-table-customization-tree-treenode-drag-icon {
color: rgba(0, 0, 0, 0.45);
}
.c7n-pro-table-customization-tree-treenode-dragging {
background-color: #fff;
-webkit-box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12);
box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12);
}
.c7n-pro-table-customization-tree-group-header {
display: inline-block;
margin-bottom: 0.1rem;
color: rgba(0, 0, 0, 0.45);
font-size: 0.12rem;
}
.c7n-pro-table-customization-panel-title {
font-weight: 600;
font-size: 0.14rem;
line-height: 0.22rem;
vertical-align: middle;
}
.c7n-pro-table-customization-form {
padding-top: 0.05rem;
}
.c7n-pro-table-customization-option {
display: -webkit-box ;
display: -ms-flexbox ;
display: flex ;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: 0.32rem ;
margin: 0 ;
padding: 0.03rem 0;
}
.c7n-pro-table-customization-option:first-child {
margin-top: 0.05rem ;
}
.c7n-pro-table-customization-option-label {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.c7n-pro-table-customization-option-input {
width: 1rem;
margin-left: 0.1rem;
}
.c7n-pro-table-customization-option-input .c7n-pro-input-number:disabled {
border-color: #d9d9d9;
}
.c7n-pro-table-customization-option .c7n-pro-radio-label {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c7n-pro-table-customization .c7n-pro-table-customization-select-view-option {
margin-top: 0.1rem ;
margin-right: 0.25rem;
margin-bottom: 0.1rem ;
padding: 0;
}
.c7n-pro-table-customization .c7n-pro-table-customization-select-view-option .c7n-pro-radio-label {
z-index: 0;
}
.c7n-pro-table-customization .c7n-pro-table-customization-select-view-option-inner {
width: 0.7rem;
height: 0.41rem;
background-repeat: no-repeat;
}
.c7n-pro-table-customization .c7n-pro-table-customization-select-view-option.c7n-pro-radio-button .c7n-pro-radio + .c7n-pro-radio-inner {
border-width: 0.02rem;
pointer-events: none;
}
.c7n-pro-table-customization .c7n-pro-table-customization-select-view-option .c7n-pro-radio:checked + .c7n-pro-radio-inner::before {
inset: unset;
top: 0;
right: 0;
left: auto;
display: block;
width: 0.14rem;
height: 0.14rem;
border-radius: 0;
-webkit-transform: none;
-ms-transform: none;
transform: none;
content: '';
}
.c7n-pro-table-customization .c7n-pro-table-customization-select-view-option .c7n-pro-radio:checked + .c7n-pro-radio-inner::after {
position: absolute;
top: calc((0.14rem - calc((0.14rem / 14) * 10)) / 2 - 3 * (0.14rem / 14));
display: table;
width: calc((0.14rem / 14) * 5);
height: calc((0.14rem / 14) * 10);
border: 0.02rem solid #fff;
border-top: 0;
border-left: 0;
border-spacing: 0;
-webkit-transform: rotate(45deg) scale(0);
-ms-transform: rotate(45deg) scale(0);
transform: rotate(45deg) scale(0);
-webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6);
transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6);
content: ' ';
right: calc((0.14rem - calc((0.14rem / 14) * 5)) / 2 - 1.5 * (0.14rem / 14));
}
.c7n-pro-table-customization .c7n-pro-table-customization-select-view-option .c7n-pro-radio:checked + .c7n-pro-radio-inner::after {
-webkit-transform: rotate(45deg) scale(1);
-ms-transform: rotate(45deg) scale(1);
transform: rotate(45deg) scale(1);
opacity: 1;
}
.c7n-pro-table-customization .c7n-pro-table-customization-select-view-option .c7n-pro-radio:checked + .c7n-pro-radio-inner::after {
top: 0.01rem;
right: 0.04rem;
}
.c7n-pro-table-customization-size-default,
.c7n-pro-table-customization-not-aggregation {
background-image: -webkit-gradient(linear, left top, right top, color-stop(0.04rem, rgba(0, 0, 0, 0.08)), color-stop(0.04rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08)), to(rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0, rgba(0, 0, 0, 0.08)), to(rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0.04rem, rgba(0, 0, 0, 0.08)), color-stop(0.04rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08)), to(rgba(0, 0, 0, 0.08)));
background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.04rem, transparent 0.04rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem, rgba(0, 0, 0, 0.08) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.04rem, transparent 0.04rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem, rgba(0, 0, 0, 0.08) 100%);
background-position: 0.06rem 0.08rem, 0.02rem 0.2rem, 0.06rem 0.28rem;
background-size: 0.56rem 0.04rem, 0.67rem 0.01rem, 0.56rem 0.04rem;
}
.c7n-pro-table-customization-aggregation {
background-image: -webkit-gradient(linear, left top, right top, color-stop(0.03rem, rgba(0, 0, 0, 0.08)), color-stop(0.03rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08)), color-stop(0.32rem, rgba(0, 0, 0, 0.08)), color-stop(0.32rem, transparent), color-stop(0.36rem, transparent), color-stop(0.36rem, rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0.2rem, rgba(0, 0, 0, 0.08)), color-stop(0.2rem, transparent), color-stop(0.28rem, transparent), color-stop(0.28rem, rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0, rgba(0, 0, 0, 0.08)), to(rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0.03rem, rgba(0, 0, 0, 0.08)), color-stop(0.03rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08)), color-stop(0.32rem, rgba(0, 0, 0, 0.08)), color-stop(0.32rem, transparent), color-stop(0.36rem, transparent), color-stop(0.36rem, rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0.2rem, rgba(0, 0, 0, 0.08)), color-stop(0.2rem, transparent), color-stop(0.28rem, transparent), color-stop(0.28rem, rgba(0, 0, 0, 0.08)));
background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.03rem, transparent 0.03rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem, rgba(0, 0, 0, 0.08) 0.32rem, transparent 0.32rem, transparent 0.36rem, rgba(0, 0, 0, 0.08) 0.36rem), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.2rem, transparent 0.2rem, transparent 0.28rem, rgba(0, 0, 0, 0.08) 0.28rem), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.03rem, transparent 0.03rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem, rgba(0, 0, 0, 0.08) 0.32rem, transparent 0.32rem, transparent 0.36rem, rgba(0, 0, 0, 0.08) 0.36rem), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.2rem, transparent 0.2rem, transparent 0.28rem, rgba(0, 0, 0, 0.08) 0.28rem);
background-position: 0.06rem 0.06rem, 0.14rem 0.12rem, 0.02rem 0.2rem, 0.06rem 0.26rem, 0.14rem 0.32rem;
background-size: 0.56rem 0.03rem, 0.44rem 0.03rem, 0.67rem 0.01rem, 0.56rem 0.03rem, 0.44rem 0.03rem;
}
.c7n-pro-table-customization-size-small,
.c7n-pro-table-customization-no-parity-row {
background-image: -webkit-gradient(linear, left top, right top, color-stop(0.03rem, rgba(0, 0, 0, 0.08)), color-stop(0.03rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0, rgba(0, 0, 0, 0.08)), to(rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0.03rem, rgba(0, 0, 0, 0.08)), color-stop(0.03rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0, rgba(0, 0, 0, 0.08)), to(rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0.03rem, rgba(0, 0, 0, 0.08)), color-stop(0.03rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08)));
background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.03rem, transparent 0.03rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.03rem, transparent 0.03rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.03rem, transparent 0.03rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem);
background-position: 0.06rem 0.05rem, 0.02rem 0.13rem, 0.06rem 0.19rem, 0.02rem 0.27rem, 0.06rem 0.32rem;
background-size: 0.56rem 0.03rem, 0.67rem 0.01rem, 0.56rem 0.03rem, 0.67rem 0.01rem, 0.56rem 0.03rem;
}
.c7n-pro-table-customization-parity-row {
background-image: -webkit-gradient(linear, left top, right top, color-stop(0.03rem, rgba(0, 0, 0, 0.08)), color-stop(0.03rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0, rgba(0, 0, 0, 0.08)), to(rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0, #F0F0F0), to(#F0F0F0)), -webkit-gradient(linear, left top, right top, color-stop(0, #F0F0F0), color-stop(0.03rem, #F0F0F0), color-stop(0.07rem, rgba(0, 0, 0, 0.08)), color-stop(0.07rem, #F0F0F0), color-stop(0.12rem, #F0F0F0), color-stop(0.12rem, rgba(0, 0, 0, 0.08)), color-stop(0.6rem, rgba(0, 0, 0, 0.08)), color-stop(0.6rem, #F0F0F0)), -webkit-gradient(linear, left top, right top, color-stop(0, #F0F0F0), to(#F0F0F0)), -webkit-gradient(linear, left top, right top, color-stop(0, rgba(0, 0, 0, 0.08)), to(rgba(0, 0, 0, 0.08))), -webkit-gradient(linear, left top, right top, color-stop(0.03rem, rgba(0, 0, 0, 0.08)), color-stop(0.03rem, transparent), color-stop(0.08rem, transparent), color-stop(0.08rem, rgba(0, 0, 0, 0.08)));
background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.03rem, transparent 0.03rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 100%), linear-gradient(90deg, #F0F0F0 0, #F0F0F0 100%), linear-gradient(90deg, #F0F0F0 0, #F0F0F0 0.03rem, rgba(0, 0, 0, 0.08) 0.07rem, #F0F0F0 0.07rem, #F0F0F0 0.12rem, rgba(0, 0, 0, 0.08) 0.12rem, rgba(0, 0, 0, 0.08) 0.6rem, #F0F0F0 0.6rem), linear-gradient(90deg, #F0F0F0 0, #F0F0F0 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0.03rem, transparent 0.03rem, transparent 0.08rem, rgba(0, 0, 0, 0.08) 0.08rem);
background-position: 0.06rem 0.05rem, 0.02rem 0.13rem, 0.02rem 0.14rem, 0.02rem 0.19rem, 0.02rem 0.22rem, 0.02rem 0.27rem, 0.06rem 0.32rem;
background-size: 0.56rem 0.03rem, 0.67rem 0.01rem, 0.67rem 0.05rem, 0.67rem 0.03rem, 0.67rem 0.06rem, 0.67rem 0.01rem, 0.56rem 0.03rem;
}
.c7n-pro-table-customization .c7n-collapse-header {
padding: 0.12rem 0.2rem ;
}
.c7n-pro-table-customization .c7n-collapse-content {
padding: 0 0.2rem ;
}