chart.module.scss
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.chart-canvas{
width: 100%;
}
.chart-box-pie {
width: 100%;
height: 230px;
.chart-canvas{
width: 42%;
}
}
.chart-legend {
width: calc(58% - 15px);
margin-left: 15px;
display: flex;
flex-direction: column;
justify-content: center;
&-item {
display: flex;
align-items: center;
margin-bottom: 8px;
color: #133368;
font-size: 12px;
transition: opacity 0.3s ease;
&-hidden {
opacity: 0.4;
color: #999;
.chart-legend-color{
background-color: #999 !important;
}
}
}
&-color {
width: 8px;
height: 8px;
margin-right: 4px;
}
&-text-box {
width: 50%;
}
&-text{
display: block;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&-value{
width: calc(50% - 23px);
text-align: right;
}
&-line {
width: 1px;
height: 100%;
background: #1333681a;
margin: 0 5px;
}
}