-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd3Style.css
70 lines (60 loc) · 1002 Bytes
/
d3Style.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
.aText {
font-family: sans-serif;
font-size: 16px;
text-anchor: middle;
}
.active {
font-weight: bold;
fill: #000;
transition: fill 0.3s ease-out;
text-anchor: middle;
}
.inactive {
font-weight: lighter;
fill: #c9c9c9;
transition: fill 0.3s ease-out;
text-anchor: middle;
}
.inactive:hover {
fill: #000;
cursor: pointer;
}
/* font size dependent on radius, see app.js */
.stateText {
font-family: sans-serif;
fill: #fff;
text-anchor: middle;
}
.stateCircle {
fill: #89bdd3;
stroke: #e3e3e3;
}
.chart {
display: block;
margin: 0;
}
.d3-tip {
padding: 6px;
font-size: 12px;
line-height: 1;
line-height: 1.5em;
color: #fff;
text-align: center;
text-transform: capitalize;
background: rgba(0, 0, 0, 0.8);
border-radius: 4px;
}
/* Mobile Rules */
@media screen and (max-width: 530px) {
.stateText {
display: none;
}
.aText {
font-size: 14px;
}
}
@media screen and (max-width: 400px) {
.aText {
font-size: 13px;
}
}