-
Notifications
You must be signed in to change notification settings - Fork 664
/
chart.css
121 lines (100 loc) · 2.24 KB
/
chart.css
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
.chart {
display: flex;
max-width: 107px;
text-decoration: none;
height: 100%;
min-height: 70px;
}
.chart:focus {
box-shadow: none;
}
.chart__wrap {
position: relative;
}
.chart__wrap--offset_top {
height: 55px;
margin-top: auto;
}
.chart__wrap--offset_bottom {
height: 55px;
}
.chart__image {
width: 100%;
min-width: 50px;
height: 100%;
overflow: visible;
display: block;
margin: 0 auto;
}
.chart__explanations {
opacity: 0;
transition: var(--transition-time);
}
.chart--active .chart__explanations {
opacity: 1;
}
.chart__axis {
fill: none;
stroke-width: 1px;
stroke: var(--gray-lighten-color);
}
.chart__text {
fill: var(--gray-lighten-color);
font-size: 10px;
}
.chart__curve {
fill: none;
stroke-width: 3px;
stroke-linecap: round;
transition: var(--transition-time);
transform: translate(1px, -1px);
}
.chart__wrap--offset_top .chart__curve,
.chart__wrap--offset_bottom .chart__curve {
stroke-width: 4px;
}
.chart__cursor {
position: absolute;
top: 100%;
right: -17px;
opacity: 0;
will-change: top;
transition: top 0s, color 0s, opacity 0s;
transition-delay: 0s, 0s, 0s;
transform: translateY(-7px);
color: var(--brand-color);
}
.chart__cursor--func-in {
color: var(--main-text-color);
}
.chart__cursor--func-out,
.chart__cursor--func-in-out {
color: var(--brand-color);
}
.chart__cursor::after {
content: '';
display: block;
width: 10px;
height: 10px;
border-radius: 0 50% 50% 50%;
background: currentColor;
transform: rotate(-45deg);
}
.chart--active .chart__cursor {
opacity: 1;
top: 1%;
transition: top var(--transition-show-time), color var(--transition-show-time), opacity var(--transition-time);
transition-delay: var(--transition-time), var(--transition-time), 0s;
}
.chart--active .chart__cursor--func-in,
.chart--active .chart__cursor--func-in-out {
color: var(--second-color);
}
.chart--active .chart__cursor--func-out {
color: var(--main-text-color);
}
@media (max-width: 550px) {
.chart {
width: 100px;
}
}