-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.css
80 lines (63 loc) · 1.18 KB
/
styles.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
/* common ------------------------------------ */
html {
font-size: 16px;
font-family: sans-serif;
}
body {
font-size: 1rem;
line-height: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
margin: 0;
}
/* tilemap ----------------------------------- */
svg {
display: block;
width: 850px;
height: 500px;
}
.county-0 { fill: #dddddd; }
.county-1 { fill: #8da0cb; }
.county-2 { fill: #a6d854; }
.county-3 { fill: #e78ac3; }
.county-4 { fill: #e5c494; }
.county-5 { fill: #fc8d62; }
.county-6 { fill: #b3b3b3; }
.county-7 { fill: #ffd92f; }
.county-8 { fill: #66c2a5; }
rect:hover {
opacity: .5;
}
text {
pointer-events: none;
}
/* popup ------------------------------------- */
.popup {
opacity: 0;
pointer-events: none;
background-color: #fff;
box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
position: absolute;
top: 0;
left: 0;
transition: all .2s ease-out;
}
.popup.active {
opacity: 1;
}
table {
border-spacing: none;
padding: 10px;
}
td {
padding: 0 5px;
}
td:first-of-type {
color: #999;
}
td:first-of-type::after {
content: ':';
}