syn-insight-client
Version:
Generic Frontend Component for Insight Client project.
878 lines (737 loc) • 16.3 kB
text/less
@min-height-pvt: 410px;
.steps-content {
margin-top: 16px;
border: 1px dashed #e9e9e9;
border-radius: 6px;
background-color: #fafafa;
min-height: 330px;
text-align: center;
padding: 10px;
}
.steps-action {
margin-top: 24px;
}
.centralized-content-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.top {
position: relative;
width: 100%;
overflow: hidden;
}
.topMargin::after {
margin-bottom: 12px;
}
.topHasMargin {
margin-bottom: 20px;
}
.metaWrap {
float: left;
}
.meta {
height: 22px;
line-height: 22px;
}
.action {
position: absolute;
top: 4px;
right: 0;
line-height: 1;
cursor: pointer;
}
.title-config-table {
margin: 0 16px;
line-height: 42px;
}
.label-config-table i {
color: #979696;
font-style: normal;
}
.clear-config-table {
display: flex;
align-items: center;
justify-content: flex-end;
margin-right: 13px;
margin-top: 10px;
margin-bottom: 10px;
}
.pivot-table-page {
flex: 1;
}
.ins-pivot-table-page {
display: contents;
> div:first-of-type {
height: 100%;
background-color: #f0f2f5;
}
.ins-pivot-table {
display: flex;
.ins-pivot-table-header {
display: flex;
justify-content: space-between;
button {
margin-left: 12px;
}
}
.ant-card {
flex: 1;
display: flex;
flex-direction: column;
position: absolute;
overflow: auto;
top: 0;
bottom: 0;
left: 12px;
right: 12px;
.ant-card-body {
justify-content: center;
align-items: center;
overflow: auto;
overflow-y: hidden;
height: 100%;
flex-direction: column;
flex-grow: 1;
padding: 0;
.table-empty {
display: flex;
width: 100%;
height: 100%;
padding: 20px 20px 40px;
.ant-empty {
margin: 40px 60px;
}
ul {
margin: auto;
border: 1px solid #f0f0f0;
border-radius: 4px;
li:hover {
background: aliceblue;
}
}
}
}
}
#config-table {
display: flex;
align-items: center;
justify-items: center;
position: absolute;
right: 22px;
top: 10px;
z-index: 1;
.history-button button {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
&:first-child {
padding: 6px;
}
}
.config-button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
}
.ins-pivot-table-config {
.ins-pivot-table-config-header {
button {
margin-right: 10px;
}
}
.ins-pivot-table-card {
flex: 1 1 0%;
position: absolute;
overflow: overlay;
top: 0px;
bottom: 0px;
left: 12px;
right: 0px;
display: flex;
flex-direction: column;
.ant-card-body {
overflow: auto;
height: 100%;
display: flex;
flex-direction: column;
flex-grow: 1;
margin-top: 1px;
.ins-pivot-table-config-titles {
font-size: 14px;
i {
margin-left: 4px;
}
}
.ins-pivot-table-config-panels {
height: calc(~'100% - 60px');
margin-bottom: 12px;
min-height: @min-height-pvt;
.box {
margin: 8px 0;
height: 100%;
.border {
border: 1px solid #d9d9d9;
border-radius: 4px;
height: 100%;
overflow-y: auto;
display: flex;
flex-direction: column;
table {
width: 100%;
margin-top: 1px;
height: (100% - 2px);
}
}
}
> .ant-col {
display: flex;
flex-direction: column;
height: 100%;
min-height: @min-height-pvt;
}
.dimensions {
.box {
height: 33%;
> span {
height: 22px;
display: block;
i {
margin-right: 4px;
}
}
.border {
height: calc(~'100% - 22px');
}
}
}
}
}
}
}
}
.pvt-ui {
color: black;
border-collapse: collapse;
overflow: scroll;
width: 100%;
height: 100%;
}
.pvt-ui select {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
}
table.pvt-table {
font-size: 12px;
text-align: left;
border-collapse: collapse;
}
table.pvt-table thead tr th,
table.pvt-table tbody tr th {
background-color: #fafafa;
border: 1px solid #e8e8e8;
font-size: 14px;
padding: 5px;
}
.pvt-row-label {
font-weight: normal;
}
.pvt-axis-label {
font-weight: bold;
}
.pvt-total-label {
font-weight: bold;
}
table.pvt-table .pvt-col-label {
text-align: center;
}
table.pvt-table .pvt-total-label {
text-align: right;
font-size: 14px;
}
table.pvt-table tbody tr td {
padding: 5px;
background-color: #fff;
border: 1px solid #e8e8e8;
vertical-align: middle;
text-align: right;
}
.pvt-total,
.pvt-grand-total {
font-weight: bold;
font-size: 14px;
}
.pvt-row-order {
cursor: pointer;
width: 15px;
margin-left: 5px;
display: inline-block;
user-select: none;
text-decoration: none ;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
}
.pvt-vals {
background: #fff;
min-width: 20px;
min-height: 20px;
}
.pvt-dropdown {
display: inline-block;
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
margin: 3px;
}
.pvt-dropdown-icon {
float: right;
}
.pvt-dropdown-value.pvt-dropdown-current.pvt-dropdown-current-open .pvt-dropdown-icon::before {
float: right;
font-family: FontAwesome;
content: '\f107';
color: rgba(0, 0, 0, 0.25);
transform: rotate(180deg);
font-size: 18px;
visibility: visible;
transition: transform 0.3s, -webkit-transform 0.3s;
-webkit-transition: -webkit-transform 0.3s;
transition: -webkit-transform 0.3s;
}
.pvt-dropdown-current {
text-align: left;
border: 1px solid #e8e8e8;
border-radius: 4px;
display: inline-block;
position: relative;
width: 210px;
box-sizing: border-box;
background: white;
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.pvt-dropdown-current:hover {
border-color: #1890ff ;
background-color: #ffffff ;
cursor: pointer;
}
.pvt-dropdown-current-open {
}
.pvt-dropdown-menu {
background: white;
position: absolute;
width: 100%;
margin-top: 2px;
border: 1px solid #e8e8e8;
border-top: 1px solid #e8e8e8;
box-sizing: border-box;
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
border-radius: 4px;
font-size: 14px;
}
.pvt-dropdown-value {
padding: 0px 10px;
font-size: 14px;
text-align: left;
height: 30px;
line-height: 30px;
}
.pvt-dropdown-value {
cursor: pointer;
}
.pvt-dropdown-value:hover {
background: #e6f7ff;
border-color: #a2b1c6;
}
.pvt-dropdown-active-value {
background: #e6f7ff;
font-weight: bold ;
}
.pvt-vals {
text-align: center;
white-space: nowrap;
vertical-align: top;
padding-bottom: 7px;
}
.pvt-val td {
text-align: center ;
}
.pvt-rows {
height: 35px;
}
.pvt-axis-container {
background: #fff;
min-width: 20px;
min-height: 20px;
padding: 4px;
&.pvt-unused li span.pvt-attr {
-webkit-text-size-adjust: 100%;
border: none ;
white-space: nowrap;
padding-left: 8px;
user-select: none;
font-size: 12px;
height: 24px;
display: block;
line-height: 24px;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
span.pvt-more {
display: none;
}
}
&.pvt-vert-list {
height: 100px;
}
li {
margin-bottom: 4px;
list-style-type: none;
cursor: move;
border-radius: 2px;
width: 100%;
&:hover {
background: #ebf5ff;
border-radius: 4px;
}
&.pvt-placeholder {
border: 1px solid #717171;
height: 1px ;
padding: 0 ;
span.pvt-attr {
display: none ;
}
}
span.pvt-attr {
-webkit-text-size-adjust: 100%;
white-space: nowrap;
user-select: none;
font-size: 12px;
height: 24px;
width: 100%;
display: block;
line-height: 24px;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
span.pvt-more {
padding: 5px 6px;
text-align: center;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
&:hover {
background: rgba(184, 217, 249, 0.4);
cursor: pointer;
}
}
}
}
}
.pvt-vert-list {
vertical-align: top;
}
.pvt-filtered-attribute {
}
.sortable-chosen .pvt-filter-box {
display: none ;
}
.pvt-filter-box {
background-color: #fff;
user-select: none;
font-size: 14px;
margin-bottom: -24px;
.ant-input-search {
margin-top: 8px;
}
.ant-radio-group {
width: 100%;
}
.pvt-checkbox-wrapper() {
display: block;
margin-left: 0;
min-height: 30px;
padding: 10px 0 10px 15px;
}
& > .ant-checkbox-wrapper {
background: #dffbfe;
margin-top: 8px;
border-radius: 4px;
.pvt-checkbox-wrapper();
}
.pvt-check-radio-container {
overflow-y: scroll;
width: 100%;
max-height: 30vh;
padding: 8px 0;
.ant-checkbox-wrapper,
.ant-radio-wrapper {
.pvt-checkbox-wrapper();
border-bottom: 1px solid #e8e8e8;
&:last-child {
border-bottom: none;
}
}
}
}
.BaseTable {
box-shadow: 0 2px 4px 0 #eeeeee;
background-color: #ffffff;
position: relative;
box-sizing: border-box;
font-size: 13px;
}
.BaseTable--disabled {
opacity: 0.7;
pointer-events: none;
}
.BaseTable--dynamic .BaseTable__row {
overflow: hidden;
align-items: stretch;
}
.BaseTable:not(.BaseTable--dynamic) .BaseTable__row-cell-text,
.BaseTable .BaseTable__row--frozen .BaseTable__row-cell-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.BaseTable__table {
background-color: #ffffff;
position: absolute;
top: 0;
display: flex;
flex-direction: column-reverse;
}
.BaseTable__table-main {
outline: 1px solid #eeeeee;
left: 0;
}
// .BaseTable__table-main .BaseTable__header-cell:first-child,
// .BaseTable__table-main .BaseTable__row-cell:first-child {
// padding-left: 15px;
// border-left: 1px solid #eeeeee;
// border-right: 1px solid #eeeeee;
// }
// .BaseTable__table-main .BaseTable__header-cell:last-child,
// .BaseTable__table-main .BaseTable__row-cell:last-child {
// padding-right: 15px;
// border-left: 1px solid #eeeeee;
// border-right: 1px solid #eeeeee;
// }
.BaseTable__table-main .BaseTable__header {
background-color: #f8f8f8;
}
.BaseTable__table-frozen-left .BaseTable__header,
.BaseTable__table-frozen-left .BaseTable__body,
.BaseTable__table-frozen-right .BaseTable__header,
.BaseTable__table-frozen-right .BaseTable__body {
overflow: hidden ;
}
.BaseTable__table-frozen-left {
box-shadow: 2px 0 4px 0 #eeeeee;
top: 0;
left: 0;
}
.BaseTable__table-frozen-left .BaseTable__header-cell:first-child,
.BaseTable__table-frozen-left .BaseTable__row-cell:first-child {
padding-left: 15px;
}
.BaseTable__table-frozen-left .BaseTable__header-row,
.BaseTable__table-frozen-left .BaseTable__row {
padding-right: 0 ;
}
.BaseTable__table-frozen-left .BaseTable__body {
overflow-y: auto ;
}
.BaseTable__table-frozen-right {
box-shadow: -2px 0 4px 0 #eeeeee;
top: 0;
right: 0;
}
.BaseTable__table-frozen-right .BaseTable__header-cell:last-child,
.BaseTable__table-frozen-right .BaseTable__row-cell:last-child {
padding-right: 15px;
}
.BaseTable__table-frozen-right .BaseTable__header-row,
.BaseTable__table-frozen-right .BaseTable__row {
padding-left: 0 ;
}
.BaseTable__table-frozen-right .BaseTable__body {
overflow-y: auto ;
}
.BaseTable__header {
overflow: hidden ;
}
.BaseTable .BaseTable__header,
.BaseTable .BaseTable__body {
outline: none;
}
.BaseTable__header-row {
display: flex;
align-items: center;
box-sizing: border-box;
}
.BaseTable__row {
display: flex;
align-items: center;
border: 1px solid #eeeeee;
box-sizing: border-box;
}
.BaseTable__header-row {
background-color: #f8f8f8;
font-weight: 700;
}
.BaseTable__row {
background-color: #ffffff;
}
.BaseTable__row:hover,
.BaseTable__row--hovered {
background-color: #f8f8f8;
}
.BaseTable__row-expanded {
border-bottom: 1px solid #eeeeee;
}
.BaseTable__header-cell,
.BaseTable__row-cell {
min-width: 0;
height: 100%;
display: flex;
align-items: center;
box-sizing: border-box;
padding: 5px;
border-left: 1px solid #eeeeee;
border-right: 1px solid #eeeeee;
}
.BaseTable__header-cell--align-center,
.BaseTable__row-cell--align-center {
justify-content: center;
text-align: center;
}
.BaseTable__header-cell--align-right,
.BaseTable__row-cell--align-right {
justify-content: flex-end;
text-align: right;
}
.BaseTable__header-cell {
position: relative;
cursor: default;
}
.BaseTable__header-cell:hover .BaseTable__column-resizer {
visibility: visible;
opacity: 0.5;
}
.BaseTable__header-cell:hover .BaseTable__column-resizer:hover {
opacity: 1;
}
.BaseTable__header-cell .BaseTable__sort-indicator {
display: none;
}
.BaseTable__header-cell--sortable:hover {
background-color: #f3f3f3;
cursor: pointer;
}
.BaseTable__header-cell--sortable:not(.BaseTable__header-cell--sorting):hover .BaseTable__sort-indicator {
display: block;
color: #f3f3f3;
}
.BaseTable__header-cell--sorting .BaseTable__sort-indicator,
.BaseTable__header-cell--sorting:hover .BaseTable__sort-indicator {
display: block;
}
.BaseTable__header-cell--resizing .BaseTable__column-resizer {
visibility: visible;
opacity: 1;
}
.BaseTable__header-cell--resizing .BaseTable__column-resizer::after {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
content: '';
left: -9999px;
}
.BaseTable__header-cell-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
.BaseTable__header-row--resizing .BaseTable__header-cell {
background-color: transparent;
cursor: col-resize;
}
.BaseTable__header-row--resizing
.BaseTable__header-cell:not(.BaseTable__header-cell--sorting)
.BaseTable__sort-indicator {
display: none;
}
.BaseTable__header-row--resizing
.BaseTable__header-cell:not(.BaseTable__header-cell--resizing)
.BaseTable__column-resizer {
visibility: hidden;
}
.BaseTable__column-resizer {
width: 3px;
visibility: hidden;
background-color: #cccccc;
}
.BaseTable__column-resizer:hover {
visibility: visible;
opacity: 1;
}
.BaseTable__footer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
background-color: #ffffff;
}
.BaseTable__resizing-line {
cursor: col-resize;
position: absolute;
top: 0;
background-color: #cccccc;
width: 3px;
transform: translateX(-100%);
}
.BaseTable__empty-layer {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
background-color: #ffffff;
}
.BaseTable__overlay {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
pointer-events: none;
}
.BaseTable__overlay > * {
pointer-events: auto;
}
.PivotTable__header-cell {
padding: 5px;
height: 100%;
border: 1px solid #eeeeee;
}