-
Notifications
You must be signed in to change notification settings - Fork 202
Expand file tree
/
Copy pathHealthFactorChart.css
More file actions
88 lines (75 loc) · 1.6 KB
/
Copy pathHealthFactorChart.css
File metadata and controls
88 lines (75 loc) · 1.6 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* HealthFactorChart — compact per-line HF trend */
.hf-chart {
margin: 0.75rem 0 0;
padding: 0.75rem;
border: 1px solid var(--border, #30363d);
border-radius: var(--radius-md, 8px);
background: var(--surface, #161b22);
}
.hf-chart--empty {
color: var(--muted, #8b949e);
font-size: 0.8rem;
}
.hf-chart__caption {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.hf-chart__title {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted, #8b949e);
}
.hf-chart__badge {
font-size: 0.8rem;
font-weight: 600;
padding: 0.15rem 0.5rem;
border-radius: 999px;
border: 1px solid transparent;
}
.hf-chart__badge--safe {
color: var(--success, #3fb950);
background: rgba(63, 185, 80, 0.12);
border-color: rgba(63, 185, 80, 0.35);
}
.hf-chart__badge--caution {
color: var(--warning, #d29922);
background: rgba(210, 153, 34, 0.12);
border-color: rgba(210, 153, 34, 0.35);
}
.hf-chart__badge--risk {
color: var(--error, #f85149);
background: rgba(248, 81, 73, 0.12);
border-color: rgba(248, 81, 73, 0.35);
}
.hf-chart__svg {
display: block;
width: 100%;
max-width: 100%;
height: auto;
}
.hf-chart__line {
animation: hf-draw 0.6s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
.hf-chart__line {
animation: none;
}
}
[data-motion='reduced'] .hf-chart__line {
animation: none;
}
@keyframes hf-draw {
from {
stroke-dasharray: 600;
stroke-dashoffset: 600;
}
to {
stroke-dasharray: 600;
stroke-dashoffset: 0;
}
}