forked from runnanfu/InfoVisProjectGroup6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
162 lines (130 loc) · 2.43 KB
/
style.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* CSS */
body {
font-size: 1.6rem;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
fill: #7A7A7A;
text-align: center;
}
/* Headings and Footer*/
h1 {
font-size: 2.6rem;
fill: #4F4F4F;
font-weight: 300;
text-anchor: middle;
}
h2 {
font-size: 1.6rem;
fill: #AAAAAA;
font-weight: 300;
text-anchor: middle;
}
h3 {
text-anchor: middle;
font-size: .6rem;
fill: #4F4F4F;
font-weight: 300;
}
footer{
font-family: "Helvetica", "Arial", sans-serif;
text-anchor: middle;
font-size: .6rem;
fill: #4F4F4F;
font-weight: 300;
}
/* Prvinces label */
.subunit-label {
fill: #171302;
fill-opacity: .5;
font-size: 15px;
font-weight: 300;
text-anchor: middle;
pointer-events: none; /* Prevents text from messing up provinces hover style */
}
/* When user hovers above province make it orange */
.proviMouseOver {
fill: orange;
}
/* White boundaries between provinces */
.province-boundaries {
pointer-events: none;
fill: none;
stroke: #fff;
stroke-width: .7px;
}
/*Province population legend title*/
.legendTitle {
font-size: .8rem;
fill: #4F4F4F;
font-weight: 300;
}
/*Province population legend axis*/
.axis path, .axis tick, .axis line {
fill: none;
stroke: none;
}
/*Province population legend text*/
text {
font-size: .6rem;
fill: #AAAAAA;
font-weight: 400;
}
/*tooltip*/
div.tooltip {
position: absolute;
text-align: center;
width: 80px;
height: 14px;
padding: 2px;
font: 12px sans-serif;
background: #fff;
border: 0px;
pointer-events: none;
}
/* Textbox displaying name of place and total population */
.place-name {
font-size: 1.6rem;
fill: #4F4F4F;
font-weight: 300;
text-anchor: left;
}
.population-text {
font-size: 1rem;
fill: #4F4F4F;
font-weight: 300;
text-anchor: left;
position: relative;
top: -10px;
}
/*barchart style*/
.bar {
fill: steelblue;
}
#chart {
translate: (100 300);
}
.baraxis text {
font: 10px sans-serif;
}
.baraxis path,
.baraxis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.x.baraxis path {
display: none;
}
.x.baraxis text {
font-family: sans-serif;
font-size: 10px;
}
.y.baraxis text {
font: 10px sans-serif;
}
.y.baraxis path,
.y.baraxis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}