asb_cloud_front/src/styles/d3.less

65 lines
1.4 KiB
Plaintext
Raw Normal View History

.asb-d3-chart {
width: 100%;
height: 100%;
& .tooltip {
@color: white;
@bg-color: rgba(0, 0, 0, .75);
@arrow-size: 8px;
width: 100%;
height: 100% - @arrow-size;
font-size: 13px;
color: @color;
position: absolute;
padding: 5px;
border: none;
border-radius: 2px;
background-color: @bg-color;
transition: opacity .1s ease-out;
&::after {
content: ' ';
position: absolute;
width: 0;
height: 0;
border: @arrow-size solid transparent;
}
&.bottom::after {
border-top-color: @bg-color;
top: 100%;
left: 50%;
margin-left: -@arrow-size;
}
& .tooltip-group {
display: flex;
flex-direction: column;
justify-content: stretch;
align-items: flex-start;
& .group-label {
width: 200%;
overflow: hidden;
& span {
font-weight: 600;
margin-left: 5px;
white-space: nowrap;
}
}
}
}
& .chart-empty {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
}