This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/src/components/charts/panel.scss

427 lines
9.7 KiB
SCSS
Raw Normal View History

.entity-detail-tool {
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px 20px 10px 0;
padding: 0 20px;
height: 60px;
background-color: #FFFFFF;
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.06);
border-radius: 2px;
.cn-icon-arrow-left-circle {
color: $--color-primary;
}
}
2021-07-05 17:40:43 +08:00
.cn-panel, .cn-panel>.cn-chart__tabs>.el-tabs__content>.el-tab-pane {
display: grid;
2021-07-05 15:25:21 +08:00
grid-template-columns: repeat(30, 1fr);
grid-auto-flow: row;
2021-07-01 21:39:10 +08:00
grid-auto-rows: var(--chart-height-unit);
grid-gap: 10px;
height: 100%;
width: 100%;
overflow: auto;
padding-right: 20px;
position: relative;
.panel__time {
position: absolute;
right: 20px;
2021-07-09 21:58:49 +08:00
top: 10px;
2021-06-25 19:11:00 +08:00
display: flex;
}
2021-07-01 21:39:10 +08:00
&>.cn-chart {
background-color: #FFFFFF;
border: 1px solid #E7EAED;
box-shadow: 0 2px 4px 0 rgba(51,51,51,0.02);
border-radius: 2px;
height: 100%;
width: 100%;
}
&>.cn-chart.cn-chart__echarts--statistics {
border: none;
box-shadow: none;
2021-07-09 17:24:22 +08:00
.cn-chart__header {
border-bottom: none;
}
}
2021-07-01 21:39:10 +08:00
&>.cn-chart__echarts, &>.cn-chart__table, &>.cn-chart__map {
display: flex;
flex-direction: column;
.cn-chart__header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px 10px 18px;
height: 50px;
font-size: 16px;
color: #333333;
font-weight: bold;
.header__operations {
.cn-icon-more-light {
color: #999;
}
}
}
.cn-chart__body {
flex: auto;
.chart-drawing {
height: 100%;
width: 100%;
}
}
}
2021-07-01 21:39:10 +08:00
&>.cn-chart__single-value.cn-chart__single-value--icon-left {
display: flex;
align-items: center;
.single-value-icon__box {
2021-07-05 10:22:17 +08:00
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 40%;
2021-07-05 10:22:17 +08:00
}
.single-value__icon {
display: flex;
justify-content: center;
width: 72px;
height: 72px;
background-color: $--chart-single-value-icon-background-color;
border-radius: 50%;
i {
2021-07-05 10:22:17 +08:00
display: flex;
align-items: center;
font-size: 28px;
color: $--color-primary;
}
}
.single-value__content {
display: flex;
flex-direction: column;
max-width: 60%;
padding-right: 10px;
.content__data {
padding-bottom: 7%;
font-size: 24px;
color: #333333;
font-weight: bold;
}
.content__title {
2021-07-05 15:11:32 +08:00
overflow: hidden;
2021-07-05 10:22:17 +08:00
white-space: nowrap;
text-overflow: ellipsis;
font-size: 16px;
color: #666666;
}
2021-07-13 18:38:32 +08:00
.single-value__unit {
font-weight: normal;
padding-left: 10px;
color: #666;
font-size: 20px;
}
}
}
2021-07-01 21:39:10 +08:00
&>.cn-chart__single-value.cn-chart__single-value--icon-right {
display: flex;
flex-direction: row-reverse;
justify-content: space-around;
align-items: center;
.single-value__icon {
background-color: $--chart-single-value-icon-background-color;
border-radius: 50%;
position: relative;
margin-right: 7.5%;
margin-bottom: 6%;
width: 56px;
height: 56px;
i {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
font-size: 24px;
color: $--color-primary;
}
}
.single-value__content {
display: flex;
height: 100%;
flex-direction: column;
.content__title {
display: flex;
align-items: center;
height: 50%;
font-size: 16px;
color: #666666;
}
.content__data {
display: flex;
padding-top: 5%;
height: 50%;
flex: auto;
font-size: 24px;
color: #333333;
font-weight: bold;
}
}
}
2021-07-01 21:39:10 +08:00
&>.cn-chart__title {
2021-06-25 19:11:00 +08:00
display: flex;
align-items: center;
font-size: 20px;
padding-left: 10px;
color: #333;
background-color: transparent;
box-shadow: none;
border: none;
}
2021-07-01 21:39:10 +08:00
&>.cn-chart__tabs {
2021-07-05 22:58:12 +08:00
padding: 10px 25px 10px 15px;
2021-07-01 21:39:10 +08:00
2021-07-05 22:58:12 +08:00
.el-tabs__nav-wrap::after {
height: 1px;
}
&>.el-tabs__header {
margin-bottom: 10px;
}
2021-07-09 21:58:49 +08:00
&>.el-tabs__content {
height: calc(100% - 40px);
}
2021-07-01 21:39:10 +08:00
}
&>.cn-chart__table {
.cn-chart__header {
border-bottom: 1px solid $--content-right-background-color;
.header__operations {
2021-06-29 19:45:44 +08:00
display: flex;
justify-content: end;
align-items: center;
.header__operation.header__operation--table {
display: flex;
align-items: center;
height: 22px;
2021-07-05 22:58:12 +08:00
margin-left: 10px;
color: $--color-primary;
border: 1px solid $--color-primary;
border-radius: $--border-radius-primary;
.option__button {
display: flex;
align-items: center;
height: 100%;
padding: 0 5px;
cursor: pointer;
background-color: white;
transition: all linear .2s;
}
.option__button:hover {
background-color: #EFF2F5;
}
.option__button.icon-group-item:first-of-type:not(:last-of-type) {
padding: 0 5px 0 0;
}
.option__button.icon-group-item:last-of-type:not(:first-of-type) {
padding: 0 0 0 5px;
}
2021-06-21 20:33:39 +08:00
.option__select {
.el-input__inner {
width: 80px;
2021-06-21 20:33:39 +08:00
padding-right: 20px;
border: none;
height: 100%;
line-height: 20px;
color: $--color-primary;
}
.el-input__prefix > div {
font-weight: normal;
line-height: 19px;
color: $--color-primary;
}
.el-input__suffix {
display: flex;
.el-input__suffix-inner {
line-height: 14px;
.el-select__caret {
line-height: 14px;
width: 16px;
color: $--color-primary;
}
}
}
}
.option__select.select-column {
2021-06-21 20:33:39 +08:00
.el-input__inner {
width: 86px;
padding-left: 8px;
2021-06-21 20:33:39 +08:00
}
}
.icon-group-divide {
height: 14px;
width: 1px;
background-color: $--color-primary;
}
i {
font-size: 12px;
}
}
}
}
.cn-chart__body {
flex: auto;
overflow-y: auto;
.el-table {
padding: 0 10px;
&:before {
height: 0;
}
thead {
color: #333;
}
th.is-leaf, td {
border-bottom: none;
}
th {
padding-bottom: 5px;
}
td {
padding: 4px 0;
color: #333;
}
}
}
}
&>.cn-chart__echarts {
.cn-chart__header {
border-bottom: 1px solid $--content-right-background-color;
.header__operations {
display: flex;
justify-content: end;
align-items: center;
.header__operation.header__operation--echarts {
display: flex;
align-items: center;
height: 22px;
margin-left: 10px;
color: $--color-primary;
border: 1px solid $--color-primary;
border-radius: $--border-radius-primary;
.option__button {
display: flex;
align-items: center;
height: 100%;
padding: 0 5px;
cursor: pointer;
background-color: white;
transition: all linear .2s;
}
.option__button:hover {
background-color: #EFF2F5;
}
.option__button.icon-group-item:first-of-type:not(:last-of-type) {
padding: 0 5px 0 0;
}
.option__button.icon-group-item:last-of-type:not(:first-of-type) {
padding: 0 0 0 5px;
}
.option__select {
.el-input__inner {
width: 120px;
padding-right: 20px;
border: none;
height: 100%;
line-height: 20px;
color: $--color-primary;
}
.el-input__prefix > div {
font-weight: normal;
line-height: 19px;
color: $--color-primary;
}
.el-input__suffix {
display: flex;
.el-input__suffix-inner {
line-height: 14px;
.el-select__caret {
line-height: 14px;
width: 16px;
color: $--color-primary;
}
}
}
}
.option__select.select-column {
.el-input__inner {
width: 86px;
padding-left: 8px;
}
}
.icon-group-divide {
height: 14px;
width: 1px;
background-color: $--color-primary;
}
i {
font-size: 12px;
}
}
}
}
.cn-chart__body {
overflow-y: auto;
.el-table {
padding: 0 10px;
&:before {
height: 0;
}
thead {
color: #333;
}
th.is-leaf, td {
border-bottom: none;
}
th {
padding-bottom: 5px;
}
td {
2021-06-29 19:45:44 +08:00
padding: 4px 0;
color: #333;
}
}
}
}
2021-06-21 20:33:39 +08:00
}
.option-popper {
2021-06-21 20:33:39 +08:00
.el-select-dropdown__item {
height: 24px;
line-height: 24px;
font-size: 12px;
}
}
//.cn-chart-select{
// display: flex;
// align-items: center;
// height: 22px;
// margin-left: 10px;
// color: #0091ff;
// border: 1px solid #0091ff;
// border-radius: 2px;
//}