sci-pro
Version:
147 lines (146 loc) • 3.07 kB
CSS
.sci-pivot {
position: relative;
overflow: hidden;
border: 1px solid #d7dce5;
border-radius: 0;
background: #ffffff;
display: flex;
flex-direction: column;
}
.sci-pivot.is-borderless {
border: none;
}
.sci-pivot__head-scroll {
overflow-x: hidden;
overflow-y: hidden;
border-bottom: 1px solid #d8dde5;
flex: 0 0 auto;
scrollbar-width: none;
background: #e7edf9;
}
.sci-pivot__head-scroll::-webkit-scrollbar {
height: 0;
width: 0;
}
.sci-pivot__body-scroll {
overflow: auto;
max-height: 100%;
flex: 1 1 auto;
position: relative;
}
.sci-pivot__empty-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #626b78;
padding: 20px;
background: #f7f9fc;
pointer-events: none;
z-index: 2;
}
.sci-pivot__table {
width: 100%;
min-width: 100%;
border-collapse: separate;
border-spacing: 0;
table-layout: fixed;
font-size: 13px;
line-height: 1.25;
color: #262c35;
}
.sci-pivot__table--head {
margin-bottom: -1px;
}
.sci-pivot__table th,
.sci-pivot__table td {
border-right: 1px solid #d8dde5;
border-bottom: 1px solid #d8dde5;
padding: 12px 14px;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
background-clip: padding-box;
}
.sci-pivot__head,
.sci-pivot__row-head,
.sci-pivot__foot-head {
background: #e7edf9;
text-align: center;
font-weight: 500;
}
.sci-pivot__head {
background: #e7edf9;
color: #1f252e;
letter-spacing: 0.2px;
}
.sci-pivot__head-content,
.sci-pivot__row-head-content {
display: inline-flex;
align-items: center;
gap: 8px;
max-width: 100%;
}
.sci-pivot__toggle {
width: 16px;
height: 16px;
margin-right: 10px;
border: 1px solid #b0b8c0;
border-radius: 4px;
font-size: 13px;
cursor: pointer;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
color: #000;
}
.text-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sci-pivot__head--total,
.sci-pivot__cell--total,
.sci-pivot__foot-head {
background: #e7edf9;
font-weight: 600;
color: #1d232c;
}
.sci-pivot__cell {
text-align: center;
font-variant-numeric: tabular-nums;
background: #f6f8fb;
}
.sci-pivot__table tbody tr {
content-visibility: auto;
contain-intrinsic-size: 40px;
}
.sci-pivot__table tbody tr:hover .sci-pivot__cell,
.sci-pivot__table tbody tr:hover .sci-pivot__row-head {
background: #eef2f8;
}
.sci-pivot__table tbody tr:nth-child(even) .sci-pivot__cell,
.sci-pivot__table tbody tr:nth-child(even) .sci-pivot__row-head {
background: #f2f5f9;
}
.sci-pivot__table tbody tr:nth-child(odd) .sci-pivot__cell,
.sci-pivot__table tbody tr:nth-child(odd) .sci-pivot__row-head {
background: #f7f9fc;
}
.sci-pivot__table tr th:first-child,
.sci-pivot__table tr td:first-child {
border-left: 1px solid #d8dde5;
}
@media (max-width: 768px) {
.sci-pivot__table {
font-size: 12px;
}
.sci-pivot__table th,
.sci-pivot__table td {
padding: 10px 12px;
}
}