choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
645 lines (644 loc) • 17.5 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 */
@-webkit-keyframes loaderSpin {
from {
-webkit-transform: rotate(0);
transform: rotate(0);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loaderSpin {
from {
-webkit-transform: rotate(0);
transform: rotate(0);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.c7n-performance-table {
border-top: 1px solid #e0e0e0;
position: relative;
overflow: hidden;
}
.c7n-performance-table-customization-header .c7n-performance-table-cell {
left: unset ;
right: 0;
}
.c7n-performance-table-customization-header .c7n-performance-table-cell-content {
padding: 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.c7n-performance-table-bordered {
border: 1px solid #e0e0e0;
}
.c7n-performance-table-column-resizing {
cursor: col-resize;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.c7n-performance-table-row {
overflow: inherit;
position: absolute;
height: 36px;
width: 100%;
top: 0;
}
.c7n-performance-table-hover .c7n-performance-table-row-header:hover {
background: #f5f5f5;
}
.c7n-performance-table-row-highLight .c7n-performance-table-cell {
background: rgb(240 243 255);
}
.c7n-performance-table-row-header {
background: #f5f5f5;
}
.c7n-performance-table-row-header:hover .c7n-performance-table-cell {
border-right: 0.01rem solid #e0e0e0;
}
.c7n-performance-table-row-header .c7n-performance-table-cell {
background: #f5f5f5;
color: rgba(0, 0, 0, 0.85);
font-weight: 700;
}
.c7n-performance-table-row-header .c7n-performance-table-cell-last {
border-right: none;
}
.c7n-performance-table-row-header .c7n-performance-table-cell-group-shadow {
-webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.28);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.28);
z-index: 5;
}
.c7n-performance-table-hover .c7n-performance-table-row:not(.c7n-performance-table-row-header):hover .c7n-performance-table-cell:first-child,
.c7n-performance-table-hover .c7n-performance-table-row:not(.c7n-performance-table-row-header):hover .c7n-performance-table-cell:first-child ~ .c7n-performance-table-cell {
background: rgba(0, 0, 0, 0.04);
}
.c7n-performance-table-header-row-wrapper {
z-index: 2;
position: relative;
}
.c7n-performance-table-affix-header {
z-index: 3;
visibility: hidden;
}
.c7n-performance-table-affix-header.fixed {
visibility: visible;
}
.c7n-performance-table-body-row-wrapper {
position: relative;
overflow: hidden;
z-index: 0;
}
.c7n-performance-table-body-info {
width: 100%;
text-align: center;
top: 50%;
position: absolute;
margin-top: -20px;
line-height: 40px;
}
.c7n-performance-table-body-info .icon {
margin: 0 10px;
}
.c7n-performance-table-body-info-wheel-area {
width: 100%;
}
.c7n-performance-table-cell {
color: #000000;
height: 30px;
border-style: solid;
border-width: 0;
border-color: #e0e0e0;
display: block;
overflow: hidden;
position: absolute;
white-space: normal;
background: #fff;
border-bottom: 1px solid #e0e0e0;
}
.c7n-performance-table-cell-letter-highlight {
color: #d50000;
}
.c7n-performance-table-cell.first {
border-left-width: 0;
}
.c7n-performance-table-cell-wrap1 {
display: table;
}
.c7n-performance-table-cell-wrap2 {
display: table-row;
}
.c7n-performance-table-cell-wrap3 {
display: table-cell;
vertical-align: middle;
}
.c7n-performance-table-cell-content {
padding: 0 0.1rem;
line-height: inherit;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
-o-text-overflow: ellipsis;
width: 100%;
}
.c7n-performance-table-cell-content:hover .icon::after {
opacity: 1;
}
.c7n-performance-table-cell-header-sortable {
cursor: pointer;
}
.c7n-performance-table-cell-header-sort-wrapper {
display: inline-block;
}
.c7n-performance-table-cell-header-icon-sort {
font-size: 0.18rem;
display: inline-block;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
vertical-align: middle;
background-image: none;
font-family: 'icomoon' ;
speak: none;
font-style: normal;
font-weight: inherit;
font-variant: normal;
text-transform: none;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.c7n-performance-table-cell-header-icon-sort:before {
line-height: 1;
}
.c7n-performance-table-cell-header-icon-sort::after {
content: "\E5D8";
color: rgba(0, 0, 0, 0.45);
opacity: 0;
}
.c7n-performance-table-cell-header-icon-sort-asc::after {
content: "\E5D8";
color: inherit;
opacity: 1;
}
.c7n-performance-table-cell-header-icon-sort-desc {
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.c7n-performance-table-cell-header-icon-sort-desc::after {
content: "\E5D8";
color: inherit;
opacity: 1;
}
.c7n-performance-table-column-resize-spanner {
height: 36px;
width: 6px;
z-index: 3;
position: absolute;
cursor: col-resize ;
outline: none;
}
.c7n-performance-table-cell-group-fixed-left {
position: absolute;
z-index: 4;
background: #fff;
}
.c7n-performance-table-cell-group-fixed-right {
position: absolute;
z-index: 4;
background: #fff;
}
.c7n-performance-table-cell-group-left-shadow {
-webkit-box-shadow: 3px 0px 5px rgba(9, 9, 9, 0.08);
box-shadow: 3px 0px 5px rgba(9, 9, 9, 0.08);
}
.c7n-performance-table-cell-group-shadow,
.c7n-performance-table-cell-group-right-shadow {
-webkit-box-shadow: -3px 0px 5px rgba(9, 9, 9, 0.08);
box-shadow: -3px 0px 5px rgba(9, 9, 9, 0.08);
}
.c7n-performance-table-mouse-area {
display: none;
background: #3f51b5;
left: -1px;
top: 0;
position: absolute;
width: 1px;
z-index: 6;
pointer-events: none;
}
.c7n-performance-table-bordered .c7n-performance-table-cell {
border-width: 0 1px 1px 0;
}
.c7n-performance-table-word-wrap .c7n-performance-table-cell-content {
white-space: unset;
word-break: break-all;
word-wrap: break-word;
}
.c7n-performance-table-row-expanded {
position: absolute;
height: 46px;
bottom: 0;
width: 100%;
z-index: 4;
border-top: 1px solid #eee;
padding: 10px;
background: #f5f5f5;
}
.c7n-performance-table-loader-wrapper {
visibility: hidden;
position: absolute;
height: 100%;
width: 100%;
background-color: rgba(255, 255, 255, 0.5);
}
.c7n-performance-table-loader {
width: 100%;
text-align: center;
top: 50%;
position: absolute;
margin-top: -20px;
line-height: 40px;
}
.c7n-performance-table-loader-icon {
width: 18px;
height: 18px;
display: inline-block;
position: relative;
margin-right: 12px;
padding-top: 3px;
}
.c7n-performance-table-loader-icon::before,
.c7n-performance-table-loader-icon::after {
width: 18px;
height: 18px;
}
.c7n-performance-table-loader-icon::before,
.c7n-performance-table-loader-icon::after {
content: "";
position: absolute;
left: 0;
right: 0;
display: block;
border-radius: 50%;
}
.c7n-performance-table-loader-icon::before {
border: 3px solid rgba(63, 81, 181, 0.8);
}
.c7n-performance-table-loader-icon::after {
border-width: 3px;
border-style: solid;
border-color: #a6a6a6 transparent transparent;
-webkit-animation: loaderSpin 0.6s infinite linear;
animation: loaderSpin 0.6s infinite linear;
}
.c7n-performance-table-loading .c7n-performance-table-loader-wrapper {
visibility: visible;
}
.c7n-performance-table-professional-query-bar {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding: 0.06rem 0;
}
.c7n-performance-table-professional-query-bar .c7n-pro-field-label .c7n-pro-checkbox-wrapper,
.c7n-performance-table-professional-query-bar .c7n-pro-field-wrapper .c7n-pro-checkbox-wrapper {
height: 30px;
vertical-align: sub;
}
.c7n-performance-table-professional-query-bar-button {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
padding: 0.1rem 0 0.1rem 0.7rem;
}
.c7n-performance-table-professional-query-bar-button span {
vertical-align: baseline;
}
.c7n-performance-table-dynamic-filter-bar {
margin-bottom: 0.06rem;
}
.c7n-performance-table-dynamic-filter-bar input::-webkit-input-placeholder {
color: #6A6A6A;
}
.c7n-performance-table-dynamic-filter-bar input:-moz-placeholder {
color: #6A6A6A;
}
.c7n-performance-table-dynamic-filter-bar input::-moz-placeholder {
color: #6A6A6A;
}
.c7n-performance-table-dynamic-filter-bar input:-ms-input-placeholder {
color: #6A6A6A;
}
.c7n-performance-table-dynamic-filter-bar .c7n-pro-input-number-placeholder,
.c7n-performance-table-dynamic-filter-bar .c7n-pro-select-placeholder {
color: #6A6A6A;
}
.c7n-performance-table-cell-expanded .c7n-performance-table-cell-expand-icon {
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
.c7n-performance-table-cell-expanded .c7n-performance-table-cell-expand-icon::after {
content: "\E969";
}
.c7n-performance-table-cell-expand-icon {
cursor: pointer;
outline: none;
}
.c7n-performance-table-cell-expand-icon::after {
content: "\E969";
}
.c7n-performance-table-cell-expand-wrapper {
margin-right: 10px;
display: inline-block;
cursor: pointer;
}
.c7n-performance-table-scrollbar {
background: rgba(45, 45, 45, 0.05);
position: absolute;
border: none;
}
.c7n-performance-table-scrollbar-active {
background: rgba(45, 45, 45, 0.1);
}
.c7n-performance-table-scrollbar-hide {
display: none;
}
.c7n-performance-table-scrollbar-handle {
position: absolute;
background: rgba(45, 45, 45, 0.5);
border-radius: 0.04rem;
}
.c7n-performance-table-scrollbar-handle:active {
background: rgba(45, 45, 45, 0.5);
}
.c7n-performance-table-scrollbar-handle-horizontal-fir {
position: absolute;
color: #a3a3a3;
height: 0.2rem;
width: 0.2rem;
left: -0.2rem;
line-height: 0.2rem;
-webkit-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
background-color: #f1f1f1;
}
.c7n-performance-table-scrollbar-handle-horizontal-fir i {
font-size: 0.2rem;
}
.c7n-performance-table-scrollbar-handle-horizontal-fir:hover {
height: 0.2rem;
line-height: 0.2rem;
color: #505050;
}
.c7n-performance-table-scrollbar-handle-vertical-fir {
position: absolute;
color: #a3a3a3;
height: 0.2rem;
width: 0.2rem;
top: -0.2rem;
line-height: 0.2rem;
background-color: #f1f1f1;
}
.c7n-performance-table-scrollbar-handle-vertical-fir i {
font-size: 0.2rem;
}
.c7n-performance-table-scrollbar-handle-vertical-fir:hover {
height: 0.2rem;
line-height: 0.2rem;
color: #505050;
}
.c7n-performance-table-scrollbar-handle-vertical-sec {
position: absolute;
color: #a3a3a3;
height: 0.2rem;
width: 0.2rem;
bottom: -0.2rem;
line-height: 0.2rem;
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
background-color: #f1f1f1;
}
.c7n-performance-table-scrollbar-handle-vertical-sec i {
font-size: 0.2rem;
}
.c7n-performance-table-scrollbar-handle-vertical-sec:hover {
height: 0.2rem;
line-height: 0.2rem;
color: rgba(45, 45, 45, 0.5);
}
.c7n-performance-table-scrollbar-handle-horizontal-sec {
position: absolute;
color: #a3a3a3;
height: 0.2rem;
width: 0.2rem;
right: -0.2rem;
line-height: 0.2rem;
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
background-color: #f1f1f1 ;
}
.c7n-performance-table-scrollbar-handle-horizontal-sec:hover {
height: 0.2rem;
line-height: 0.2rem;
color: rgba(45, 45, 45, 0.5);
}
.c7n-performance-table-scrollbar-horizontal .has-arrow {
height: 0.2rem ;
}
.c7n-performance-table-scrollbar-vertical .has-arrow {
width: 0.2rem ;
}
.c7n-performance-table-scrollbar-horizontal .c7n-performance-table-scrollbar-handle .has-arrow {
height: 0.18rem ;
}
.c7n-performance-table-scrollbar-vertical .c7n-performance-table-scrollbar-handle .has-arrow {
width: 0.18rem ;
}
.c7n-performance-table-scrollbar-horizontal .c7n-performance-table-scrollbar-pressed,
.c7n-performance-table-scrollbar-horizontal:hover .has-arrow {
top: 0.01rem ;
height: 0.2rem ;
background-color: #c1c1c1 ;
}
.c7n-performance-table-scrollbar-vertical .c7n-performance-table-scrollbar-pressed,
.c7n-performance-table-scrollbar-vertical:hover .has-arrow {
left: 0.01rem ;
width: 0.2rem ;
background-color: #c1c1c1 ;
}
.c7n-performance-table-scrollbar-horizontal .c7n-performance-table-scrollbar-pressed .c7n-performance-table-scrollbar-handle,
.c7n-performance-table-scrollbar-horizontal:hover .c7n-performance-table-scrollbar-handle .has-arrow {
top: 0.01rem;
height: 0.18rem;
background-color: #c1c1c1 ;
}
.c7n-performance-table-scrollbar-vertical .c7n-performance-table-scrollbar-pressed .c7n-performance-table-scrollbar-handle,
.c7n-performance-table-scrollbar-vertical:hover .c7n-performance-table-scrollbar-handle .has-arrow {
left: 0.01rem;
width: 0.18rem;
background-color: #c1c1c1 ;
}
.c7n-performance-table-scrollbar-horizontal {
width: 100%;
height: 10px;
bottom: 2px;
}
.c7n-performance-table-scrollbar-horizontal.fixed {
position: fixed;
}
.c7n-performance-table-scrollbar-horizontal .c7n-performance-table-scrollbar-handle {
height: 0.08rem;
left: 0px;
top: 1px;
}
.c7n-performance-table-scrollbar-horizontal .c7n-performance-table-scrollbar-pressed,
.c7n-performance-table-scrollbar-horizontal:hover {
height: 14px;
-webkit-box-shadow: 1px 1px 2px #ddd inset;
box-shadow: 1px 1px 2px #ddd inset;
-webkit-transform: scaleY(1.3);
-ms-transform: scaleY(1.3);
transform: scaleY(1.3);
}
.c7n-performance-table-scrollbar-vertical {
top: 0;
right: 0px;
width: 10px;
bottom: 2px;
}
.c7n-performance-table-scrollbar-vertical .c7n-performance-table-scrollbar-handle {
min-height: 20px;
width: 0.08rem;
top: 0px;
left: 1px;
}
.c7n-performance-table-scrollbar-arrow {
background-color: #f1f1f1 ;
}
.c7n-performance-table-scrollbar-arrow:hover {
-webkit-box-shadow: none ;
box-shadow: none ;
}
.c7n-performance-table-scrollbar-vertical .c7n-performance-table-scrollbar-pressed,
.c7n-performance-table-scrollbar-vertical:hover {
width: 14px;
-webkit-box-shadow: 1px 1px 2px #ddd inset;
box-shadow: 1px 1px 2px #ddd inset;
-webkit-transform: scaleX(1.3);
-ms-transform: scaleX(1.3);
transform: scaleX(1.3);
}
.c7n-performance-table-column-group {
position: absolute;
left: 0;
right: 0;
top: 0;
width: 100%;
}
.c7n-performance-table-column-group-header {
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
position: absolute;
width: 100%;
}
.c7n-performance-table-column-group-header-content {
display: table-cell;
}
.c7n-performance-table-column-group-cell {
position: absolute;
border-right: 1px solid #eee;
}
.c7n-performance-table-toolbar {
overflow-x: auto;
overflow-y: hidden;
line-height: 1;
}
.c7n-performance-table-toolbar-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 16px 0;
}
.c7n-performance-table-toolbar-header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
font-weight: 500;
font-size: 16px;
}
.c7n-performance-table-toolbar-right {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
gap: 16px;
}
.c7n-performance-table-toolbar-setting-items {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 12px;
}
.c7n-performance-table-toolbar-setting-item {
margin: 0 4px;
font-size: 16px;
cursor: pointer;
}
.c7n-performance-table-toolbar-setting-item:hover {
color: #3f51b5;
}