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
nezha-nezha-fronted/nezha-fronted/src/assets/css/components/chart/chart.scss

1325 lines
28 KiB
SCSS

.temp-dropdown{
display: none;
border: none;
}
.my-loading-parent--relative {
position: relative;
height: 100%;
width: auto;
}
.pdfDom{
padding-bottom: 20px;
}
.panel-chart {
border: 1px solid $--chart-box-border-color;
height: 100%;
display: flex;
position: relative;
flex-direction: column;
&:hover > .chart-header.chart-header--float{
height: 39px;
opacity: 1;
}
.chart-header {
position: relative;
&.chart-header--float {
background-color: $--chart-title-hover-background-color;
position: absolute;
top: 0;
width: 100%;
z-index: 500;
box-sizing: border-box;
height: 0px;
opacity: 0;
transition: height linear 0.3s, opacity linear 0.3s;
.chart-header__tools {
.chart-header__tool .tool__icon {
}
}
}
display: flex;
align-items:center;
padding: 0 10px;
height: 39px;
font-size: 14px;
color: $--color-text-primary;
&:hover {
background-color: $--chart-title-hover-background-color;
.chart-header__tools {
background-color: $--chart-title-hover-background-color;
.chart-header__tool .tool__icon {
visibility: visible;
}
}
}
.chart-header__title {
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.chart-header__title.groupTitle{
position: relative;
left: 5px;
z-index: 10;
}
.chart-header__tools {
height: 100%;
position: absolute;
top: 0;
right: 10px;
display: flex;
align-items: center;
.chart-header__tool {
margin-left: 20px;
cursor: pointer;
.tool__icon {
visibility: hidden;
font-size: 14px;
color: $--color-text-primary;
}
.tool__icon-active {
color: $--color-primary;
}
.nz-chart-dropdown {
position: absolute;
top: 44px;
right: 0;
left: unset;
transform-origin: center top;
z-index: 1000;
width: 180px;
li {
padding-left: 15px !important;
padding-right: 0 !important;
width: calc(100% - 15px);
text-align: left;
i {
margin-right: 10px;
}
&:hover i {
color: $--color-primary;
}
}
}
}
}
.chart-header-error{
position: absolute;
left: 0;
top: -1px;
}
}
.chart-screen-header.list-page{
background: $--background-color-empty;
}
.chart-screen-header {
display: flex;
justify-content:space-between;
align-items:center;
padding: 0 20px 0 20px;
height: 39px;
font-size: 14px;
line-height: 40px;
color: $--color-text-primary;
transition: all 0.2s;
width: 100%;
box-sizing: border-box;
margin-top: 15px;
// &.chart-header--float {
// position: absolute;
// width: 100%;
// z-index: 500;
// box-sizing: border-box;
// height: 10px;
// opacity: 0;
// transition: all linear .3s;
// &:hover {
// height: 39px;
// opacity: 1;
// }
// }
.chart-header__title {
max-width: calc(100% - 100px);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-size: 18px;
color: $--color-text-primary;
font-weight: 700;
}
.chart-header__tools {
display: flex;
justify-content: space-between;
align-items: center;
.chart-header__tool {
margin-left: 20px;
.tool__icon {
font-size: 14px;
color: $--color-text-primary;
}
.tool__icon-active {
color: $--color-primary;
}
.nz-chart-dropdown {
position: absolute;
top: 44px;
right: 0;
left: unset;
transform-origin: center top;
z-index: 1000;
width: 180px;
li {
padding-left: 15px !important;
padding-right: 0 !important;
width: calc(100% - 15px);
text-align: left;
i {
margin-right: 10px;
}
&:hover i {
color: $--color-primary;
}
}
}
}
}
.chart-header-error{
position: absolute;
left: 0;
top: -1px;
}
}
.nz-panel-chart {
height: 100%;
width: 100%;
.nz-panel-chart__no-data {
width: 100%;
text-align: center;
position: absolute;
top: 50%;
margin-top: -12px;
color: $--color-text-regular;
font-family: NotoSans;
font-size: 12px;
}
}
.el-table{
background: $--background-color-empty;
border: 1px solid $--border-color-light;
.el-table--border::after{
background: $--border-color-light;
}
tr{
background: $--background-color-empty;
//border-bottom: 1px solid $--border-color-light !important;
th,td {
border-bottom: 1px solid $--border-color-light
}
}
}
}
.panel-chart.panel-chart--fullscreen {
border: none;
.nz-chart__component {
position: relative;
}
}
.chart__canvas {
> div:nth-of-type(1){
width: 100%;
height: 100%;
}
.nz-chart__tooltip {
.row__label,.row__value {
color: $--color-text-regular;
}
}
}
.no-header.nz-chart{
height: 100%;
&>.overview{
padding: 10px;
}
&>.nz-table-list{
padding-top: 10px !important;
}
}
.nz-chart {
position: relative;
height: calc(100% - 40px);
flex: 1;
.nz-chart__component {
display: flex;
height: 100%;
.chart__canvas {
flex: 1;
min-width: 0;
min-height: 0;
}
&.nz-chart__component--bottom {
flex-direction: column;
}
&.nz-chart__component--right {
flex-direction: row;
}
&.nz-chart__component--left {
flex-direction: row-reverse;
}
.legend-box{
width: 100%;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.rightYAxis-legend{
display: flex;
justify-content: flex-end;
flex-grow: 1;
}
.rightYAxis-name{
position: absolute;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
line-height: 100%;
margin-left: calc(50% - 10px);
transform-origin: center center;
font-size: 12px;
color:#6E7079;
pointer-events:none;
span{
transform: rotate(90deg);
font-family: sans-serif;
}
}
}
.chart-detail {
width: 100%;
height: 100%;
color: $--color-text-primary;
.chart-detail-title {
background-color: transparent;
line-height: 30px;
}
.chart-detail-title:hover {
background-color: $--background-color-base;
}
.basic-info {
font-size: 13px;
height: calc(100% - 22px);
margin: 10px;
overflow: auto;
.basic-info-title {
background-color: $--background-color-base;
height: 25px;
padding-left: 5px;
line-height: 25px;
}
.basic-info-table {
width: calc(100% - 5px);
height: calc(100% - 25px);
margin-left: 3px;
.basic-info-table-list {
display: flex;
.basic-info-table-title,.basic-info-table-value {
display: inline-flex;
flex-wrap: wrap;
width: 50%;
line-height: 30px;
padding-left: 10px;
border-bottom: 1px solid $--border-color-light;
border-right: 1px solid $--border-color-light;
align-items: center;
.alert-days-info{
div {
vertical-align: middle;
}
}
}
.basic-info-table-value {
border-right: none;
.label-table {
display: flex;
border: 1px solid #409eef;
height: 20px;
font-size: 12px;
line-height: 20px;
border-radius: 4px;
margin: 4px 5px 4px 0;
box-sizing: content-box;
.label-table-value {
flex: 1;
padding: 0 4px;
}
.label-table-name {
color: #fff;
background-color: #409eef;
padding: 0 4px;
}
}
}
}
}
}
}
}
.legend-container {
overflow-y: auto;
flex: 1;
display: flex;
flex-direction: column;
font-size: 12px;
text-align: left;
line-height: 18px;
box-sizing: border-box;
.legend-list{
display: flex;
overflow-y: auto;
}
.legend-item {
box-sizing: border-box;
padding: 0 8px;
white-space: nowrap;
cursor: pointer;
line-height: 20px;
color: $--color-text-primary;
max-width: 100%;
display: flex;
align-items: center;
.legend-name{
overflow: hidden;
text-overflow: ellipsis;
}
}
.legend--table-cell,.legend-item {
color: $--color-text-primary;
}
.legend-item, .legend--table-row {
&.legend-item--inactive, &.row--inactive {
.legend--table-cell,.legend-item {
color: $--color-text-secondary !important;
}
.legend-shape {
background-color: $--background-color-1 !important;
}
.nz-icon{
color: $--background-color-1 !important;
}
.nz-icon-override{
color: $--color-text-regular !important;
}
}
}
.nz-icon-override{
visibility: hidden;
font-size: 15px;
margin-left: 5px;
vertical-align: middle;
color: $--color-text-regular !important;
}
.legend-item:not(.legendSelect):hover {
background-color: $--background-color-1;
cursor: pointer;
.nz-icon-override{
visibility: visible;
}
}
.legendSelect{
padding-left: 0 !important;
width: 100%;
cursor: unset;
overflow: unset;
span{
visibility: hidden;
padding: 0px 6px;
height: 16px;
line-height: 16px;
text-align: center;
border: 1px solid $--border-color-base;
font-size: 12px;
cursor: pointer;
&:first-of-type{
margin-right: 6px;
}
&.legendSelect-disabled{
opacity: .6;
cursor: default;
color: $--color-text-secondary !important;
}
}
&.legend-item{
flex-shrink: 0;
height: 20px;
display: flex;
align-items: center;
}
}
// 表格类型
.legend--table {
width: 100%;
display: table;
table-layout: fixed;
.legend--table-body{
display: table-row-group;
}
.legend--table-row {
display: table-row;
width: 100%;
.legend--table-cell:not(:first-of-type){
width: 48px;
}
}
.legend--table-row:not(:first-of-type):hover {
background-color: $--background-color-1;
cursor: pointer;
.nz-icon-override{
visibility: visible;
}
}
.table-header {
position: sticky;
top: 0;
background-color: $--chart-background-color-base;
.legend--table-cell:not(:first-of-type) {
cursor: pointer;
color:#33a2e5;
font-size: 12px;
font-weight: bold;
}
.legend--table-cell{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.legend--table-cell {
display: table-cell;
padding: 0px 5px;
box-sizing: border-box;
line-height: 20px;
vertical-align: middle;
.legend--table-box{
display: flex;
align-items: center;
}
.legend-name{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
.nz-chart__tooltip {
.tooltip__row {
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
display: flex;
justify-content: space-between;
align-items: center;
min-width: 150px;
max-width: 500px;
line-height: 18px;
font-size: 12px;
.row__label {
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
.row__color-block {
display: inline-block;
margin-right: 5px;
border-radius: 10px;
width: 15px;
height: 5px;
}
}
.row__value {
padding-left: 5px;
}
}
.tooltip__row.highlight{
color: $--color-text-primary;
font-weight: bold;
}
}
.endpoint-query-metrics.chart-fullscreen.nz-dialog,.recordRules-query-metrics.chart-fullscreen.nz-dialog {
.chart-screen-header .chart-header__tools #browser-go {
margin-left: 5px;
}
}
.chart-fullscreen.nz-dialog {
.el-dialog__header{
display: none;
}
.el-dialog__body {
height: 100%;
padding: 0;
overflow: hidden;
}
.panel-chart--fullscreen {
display: flex;
.nz-chart{
padding: 0 20px 30px 20px;
box-sizing: border-box;
height: calc(100% - 55px);
}
}
}
.chart-stat{
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
padding: 2px;
box-sizing: border-box;
flex-direction: row;
align-items: center;
align-content: center;
position: relative;
.chart-stat-item{
display: flex;
justify-content: center;
align-items: center;
font-size: 30px;
word-break: break-all;
border-radius: 2px;
box-sizing: border-box;
//padding: 2px;
overflow: hidden;
color: $--color-text-regular;
flex-grow: 1;
position: relative;
border: 1px solid $--background-color-empty;
.stat-text{
text-align: center;
line-height: 1.2;
}
.sparkline{
width: 100%;
height: 40%;
position: absolute;
right: 0;
bottom: 0;
z-index: 1;
}
.comparison-text{
text-align: center;
color: $--color-text-secondary;
word-break: normal;
position: absolute;
left: 0;
right: 0;
&.comparison-text-center{
transform: translateY(-50%);
}
.nz-icon{
font-size: 1em;
color: $--color-text-regular;
}
.comparison-increase{
color: #19be6b;
}
.comparison-decrease{
color: #eb1010;
}
}
}
}
.chart-gauge-box{
width: 100%;
height: calc(100% - 20px);
display: flex;
flex-wrap: wrap;
padding: 5px;
box-sizing: border-box;
position: relative;
.chart-gauge-item{
display: flex;
position: relative;
justify-content: center;
align-items: center;
font-size: 30px;
word-break: break-all;
border-radius: 2px;
box-sizing: border-box;
padding: 2px;
overflow: hidden;
color: $--color-text-regular;
flex-direction: column;
}
.chart-gauge-content {
flex: 1;
width: 100%;
}
.chart-gauge-legend{
flex-shrink: 0;
width: 100%;
text-align: center;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
position: absolute;
bottom: 12%;
}
}
.chart-svg {
width: 100%;
height: 100%;
display: flex;
align-items:center;
justify-content:center;
overflow: hidden;
}
.chart-diagram{
height: 100%;
width: 100%;
box-sizing: border-box;
}
.no-animation {
.vue-grid-item {
transition: none
}
}
.chart-canvas-tooltip{
position: fixed;
display: block;
border-style: solid;
white-space: nowrap;
will-change: transform;
//box-shadow: rgba(0,0,0,0.2) 1px 2px 10px;
transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
border-width: 1px;
border-radius: 4px;
font: 14px / 21px "Microsoft YaHei";
padding: 10px;
z-index: 99999999;
pointer-events: none;
overflow: hidden;
}
.chart-canvas-tooltip-title{
min-width: 150px;
max-width: 500px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 5px;
font-size: 14px;
}
.chart-canvas-tooltip-content{
max-width: 500px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
overflow: hidden;
&>div:last-of-type{
padding-left: 5px;
}
}
.chart-toolbox{
position: absolute !important;
padding-bottom: 2px !important;
z-index: 9999;
pointer-events: auto;
.chart-dataLink-list{
width: calc(100% + 20px);
margin-left: -10px;
margin-top: 10px;
border-top: 1px solid $--border-color-light;
.chart-dataLink-item{
min-width: 120px;
max-width: 500px;
padding: 0 10px;
height: 32px;
line-height: 32px;
font-size: 14px;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:hover{
background: $--background-color-base;
color: $--color-primary !important;
}
.nz-icon{
margin-right: 4px;
}
}
.select-series+.chart-dataLink-item{
border-top: 1px solid $--border-color-light;
}
}
}
.chart-expolre-tooltip{
display: block;
border-style: solid;
white-space: nowrap;
will-change: transform;
box-shadow: rgba(0, 0, 0, 0.2) 1px 2px 10px;
transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
background-color: $--background-color-empty;
border-width: 1px;
border-radius: 4px;
color: rgb(0, 0, 0);
font: 14px / 21px "Microsoft YaHei";
padding: 10px;
border-color: rgb(221, 228, 237);
color: $--color-text-regular !important;
}
.graph-icon-info-box{
position: absolute;
top: 50%;
right: 5%;
display: flex;
width: 140px;
flex-direction: column;
transform: translateY(-50%);
.graph-icon-content {
font-size: 20px;
margin-bottom: 10px;
color: $--color-monitor;
.graph-icon-label{
margin-left: 5px;
}
}
}
.opacityItem{
opacity: 0;
pointer-events: none;
}
.hiddenItem{
box-shadow: $--chart-shadow;
}
.mapboxgl-control-container{
.mapboxgl-ctrl-attrib {
background-color: unset;
}
//position: absolute;
//bottom: 0;
//right: 0;
summary{
display: none;
}
.mapboxgl-ctrl-attrib-inner{
color: hsla(0,0%,69.8%,.77) !important;
background: unset;
a {
color: hsla(0,0%,69.8%,.77) !important;
cursor: pointer;
text-decoration: underline;
}
}
}
.chart-label{
color: $--color-text-primary;
}
.chart-label-text{
fill: $--color-text-primary;
}
.tickTest{
font-size: 12px;
color: $--color-text-primary;
}
.tickLine{
stroke: $--background-color-empty;
}
.tickLineFirst{
stroke: $--color-text-primary;;
}
.no-events{
pointer-events: none !important;
*{
pointer-events: none !important;
}
}
.foreign{
overflow: visible;
.foreign-label-wrap{
white-space: nowrap;
transform: translate(-50%,-50%);
pointer-events: none;
display: flex;
flex-direction: column;
align-items: center;
}
}
.funnel-label{
cursor: pointer;
pointer-events: auto;
line-height: 16px;
color: $--color-text-primary;
}
.doughnut-label,.rose-label{
cursor: pointer;
pointer-events: auto;
font-size: 12px;
line-height: 14px;
color: #000000;
max-width: 200px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.chart-cursor-default{
cursor: default !important;
*{
cursor: default !important;
}
}
.chart-cursor-pointer{
cursor: pointer !important;
*{
cursor: pointer !important;
}
}
.tabel-chart-box{
position: relative;
display: flex;
flex-direction: column;
.chart-table{
.value-mapping-table {
padding: 10px;
color: $--color-text-primary !important;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.tabel-chart-pagination{
height: auto !important;
padding-top: 6px;
overflow: hidden;
overflow-x: auto;
overflow-y: hidden;
.el-pagination{
text-align: center;
}
}
.chart-canvas-tooltip{
height: auto !important;
}
}
.bar-item {
&:last-of-type{
margin: 0 !important;
}
}
.bar-basic-vertical{
width: 100%;
height: 100%;
display: flex;
overflow: hidden;
.bar-rect{
border-radius: 2px;
background: $--chart-bar-background;
display: flex;
flex-direction: column;
justify-content: flex-end;
.bar-actual{
border-radius: 2px;
}
}
.bar-value{
display: flex;
justify-content: center;
align-items: center;
white-space: nowrap;
line-height: 1;
color: $--color-text-primary;
}
.bar-title{
width: 100%;
font-size: 14px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: center;
line-height: 1.5;
color: $--color-text-primary;
}
}
.bar-basic-horizontal{
width: 100%;
height: 100%;
overflow: hidden;
.bar-item{
display: flex;
align-items: center;
overflow: hidden;
}
.bar-rect{
border-radius: 2px;
background: $--chart-bar-background;
.bar-actual{
border-radius: 2px;
}
}
.bar-title{
padding-right: 10px;
box-sizing: border-box;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
text-align: right;
color: $--color-text-primary;
}
.bar-value{
padding: 0 10px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: flex-end;
color: $--color-text-primary;
white-space: nowrap;
span{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.bar-retro-vertical{
width: 100%;
height: 100%;
display: flex;
overflow: hidden;
.bar-item{
display: flex;
overflow: hidden;
flex-direction: column-reverse;
}
.bar-rect{
display: flex;
flex-direction: column-reverse;
align-items: center;
.bar-cell{
border-radius: 2px;
}
}
.bar-value{
display: flex;
justify-content: center;
align-items: center;
white-space: nowrap;
line-height: 1;
color: $--color-text-primary;
}
.bar-title{
width: 100%;
font-size: 14px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: center;
line-height: 1.5;
color: $--color-text-primary;
}
}
.bar-retro-horizontal{
width: 100%;
height: 100%;
overflow: hidden;
.bar-item{
display: flex;
align-items: center;
overflow: hidden;
.bar-rect{
display: flex;
align-items: center;
.bar-cell{
border-radius: 2px;
}
}
}
.bar-title{
padding-right: 10px;
box-sizing: border-box;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
text-align: right;
color: $--color-text-primary;
}
.bar-value{
padding: 0 10px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: flex-end;
color: $--color-text-primary;
white-space: nowrap;
span{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.chart-detail-new{
box-sizing: border-box;
margin: 10px;
width: calc(100% - 20px);
height: calc(100% - 20px);
overflow: auto;
.asset-info{
border: 1px solid $--border-color-light;
border-bottom: none;
.el-collapse{
border: none;
.el-collapse-item__header{
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
background: transparent;
border-bottom: 1px solid $--border-color-light;
font-size: 14px;
.el-collapse-item__arrow{
margin: 0 20px 0 20px;
}
.asset-info-collapse{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
i{
margin-right: 2px;
}
span{
margin-right: 10px;
}
}
}
.el-collapse-item__wrap{
background: transparent;
border-color: $--border-color-light;
.el-collapse-item__content{
padding: 0;
display: flex;
flex-wrap: wrap;
.asset-info-list{
flex-grow: 1;
box-sizing: border-box;
padding: 15px 50px;
min-width: 50%;
border-left: 1px solid $--border-color-light;
border-top: 1px solid $--border-color-light;
margin-left: -1px;
margin-top: -1px;
.asset-info-row{
margin-bottom: 15px;
display: flex;
align-items: center;
.asset-info-title{
width: 180px;
font-size: 14px;
word-break: break-word;
flex-shrink:0;
}
.asset-info-value{
word-break: break-word;
box-sizing: border-box;
max-width: calc(100% - 150px);
font-size: 14px;
background: $--background-color-2;
padding: 4px;
line-height: 1.5;
.label-table {
display: flex;
border: 1px solid #409eef;
height: 20px;
font-size: 12px;
line-height: 20px;
border-radius: 4px;
margin: 4px 5px 4px 0;
box-sizing: content-box;
.label-table-value {
flex: 1;
padding: 0 4px;
}
.label-table-name {
color: #fff;
background-color: #409eef;
padding: 0 4px;
}
}
}
}
}
}
}
}
}
}
.uplot-toolbox {
position: absolute;right: 10px;top: 0;z-index: 999; font-size: 20px;
display: none;
}
.panel-chart:hover .uplot-toolbox {
display: block;
}
.legend-wrap{
padding: 5px 10px 5px 10px;
box-sizing: border-box;
.legend-resize{
position: relative;
flex-shrink: 0;
.legend-resize-line{
background-color: $--border-color-light;
position: absolute;
margin: auto;
}
&:hover .legend-resize-line{
background-color: $--color-primary;
}
.nz-icon{
font-size: 16px;
color: $--color-text-regular;
width: 16px;
height: 2px;
line-height: 0;
position: absolute;
margin: auto;
}
}
&:hover .legendSelect {
span{
visibility: visible;
}
}
}
.nz-chart__component--bottom{
.legend-wrap{
min-height: 38px;
max-height: 90px;
display: flex;
flex-direction: column;
.legend-resize{
cursor: ns-resize;
width: 100%;
height: 8px;
.legend-resize-line{
width: 100%;
height: 2px;
top: 0;
bottom: 0;
}
.nz-icon{
top: 10px;
left: 0;
right: 0;
}
}
.legend-list{
flex-wrap: wrap;
}
}
}
.panel-chart--fullscreen{
.nz-chart__component--bottom{
.legend-wrap{
max-height: 238px;
}
}
}
.nz-chart__component--left{
.legend-wrap{
padding-top: 20px;
max-width: 50%;
display: flex;
flex-direction: row-reverse;
.legend-resize{
cursor: ew-resize;
width: 8px;
height: 100%;
.legend-resize-line{
width: 2px;
height: 100%;
left: 0;
right: 0;
}
.nz-icon{
transform: rotate(90deg);
top: 0;
bottom: 0;
right: -10px;
}
}
.legend-list{
flex: 1;
flex-direction: column;
}
}
}
.nz-chart__component--right{
.legend-wrap{
padding-top: 15px;
max-width: 30%;
display: flex;
.legend-resize{
cursor: ew-resize;
width: 8px;
height: 100%;
.legend-resize-line{
width: 2px;
height: 100%;
left: 0;
right: 0;
}
.nz-icon{
transform: rotate(90deg);
top: 0;
bottom: 0;
left: -10px;
}
}
.legend-list{
flex: 1;
flex-direction: column;
}
}
}