-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
238 lines (225 loc) · 5.56 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
body {
background-color: #ffffff;
font-family:'Raleway', 'Open Sans', sans-serif;
}
p {
margin: 5px 0;
}
strong {
font-weight: 700;
}
h1, h2, h3, h4, h5 {
margin: 10px 0 15px 0;
}
header, nav {
text-align: center;
min-width: 767px;
}
li {
display: inline;
}
/* Information boxes for different chart layouts */
/* Positioning */
#initial-content, #a, #b, #c, #d, #e, #f, #view-party-type, #view-donor-type, #view-source-type, #partyInfo, #conservative, #labour, #libdem, #individual, #company, #union, #society, #other, #public-or-private-money, #public-or-private-money-split, #private-money, #public-money {
position: absolute;
}
/* Initial appearance on load */
#view-party-type, #view-donor-type, #view-source-type {
display: none;
}
/* View containers */
#initial-content, #view-source-type {
left: 650px;
width: 400px;
}
#view-party-type {
left: 650px;
width: 272px;
}
/* Public or private funds view */
#public-or-private-money {
max-width: 300px;
}
#public-or-private-money-split {
top: 550px;
left: -600px;
text-align: center;
}
#private-money, #public-money {
width: 200px;
}
#private-money {
left: 200px;
}
#public-money {
left: 610px;
}
/* Party view */
#conservative, #labour, #libdem { padding: 10px; }
#conservative {
background: rgba(8, 127, 189, 0.2);
top: 110px;
}
#labour {
background: rgba(240, 34, 51, 0.2);
top: 330px;
}
#libdem {
background: rgba(253, 187, 48, 0.2);
top: 550px;
}
/* Donor type layout */
#view-donor-type {
height: 100%;
left: 500px;
width: 370px;
}
#individual {
top: 55px;
}
#company {
top: 390px;
}
#union {
top: 660px;
}
#society {
top: 205px;
text-align: right;
right: 0;
}
#other {
top: 530px;
text-align: right;
right: 0
}
/* Value scale */
#value-scale {
opacity: 0.5;
font-size: 0.75em;
}
#a, #b, #c, #d, #e { left: 40px; }
#a { top: 635px;}
#b { top: 585px;}
#c { top: 535px;}
#d { top: 485px;}
#e { top: 435px;}
#f { top: 648px; left: 575px; }
/* End of view */
circle {
stroke: rgba(238, 238, 238, 1);
stroke-width: 0.5;
}
circle.active {
stroke: rgba(17, 17, 17, 0.8);
stroke-width: 5;
}
.legend circle {
stroke: #aabbcc;
stroke-width: 1;
fill: none;
}
.tooltip {
margin: 0;
padding: 5px;
line-height: 1.4;
display: none;
height: 125px;
width: 280px;
text-align: left;
border: 4px solid rgba(0, 0, 0, .8);
border-radius: 2px;
-moz-box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5);
box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5);
background-color: rgba(255, 255, 255, 1);
position: absolute;
}
.tooltip p, h3 {
margin: 0.2em;
}
.lab {
fill: #F02233;
}
.lib {
fill: #FDBB30;
}
.con {
fill: #087FBD;
}
.snp {
fill: #C9C945;
}
/*!
Pure v0.2.1
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
https://github.com/yui/pure/blob/master/LICENSE.md
*/
.pure-button {
/* Structure */
display: inline-block;
*display: inline;
/*IE 6/7*/
zoom: 1;
line-height: normal;
white-space: nowrap;
vertical-align: baseline;
text-align: center;
cursor: pointer;
-webkit-user-drag: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Firefox: Get rid of the inner focus border */
.pure-button::-moz-focus-inner {
padding: 0;
border: 0;
}
/*csslint unqualified-attributes:false, outline-none:false*/
.pure-button {
font-size: 100%;
*font-size: 90%;
/*IE 6/7 - To reduce IE's oversized button text*/
*overflow: visible;
/*IE 6/7 - Because of IE's overly large left/right padding on buttons */
padding: 0.5em 1.5em 0.5em;
color: #444;
/* rgba not supported (IE 8) */
color: rgba(0, 0, 0, 0.80);
/* rgba supported */
*color: #444;
/* IE 6 & 7 */
border: 1px solid #999;
/*IE 6/7/8*/
border: none rgba(0, 0, 0, 0);
/*IE9 + everything else*/
background-color: #E6E6E6;
text-decoration: none;
border-radius: 2px;
-webkit-font-smoothing: antialiased;
/* Transitions */
-webkit-transition: 0.1s linear -webkit-box-shadow;
-moz-transition: 0.1s linear -moz-box-shadow;
-ms-transition: 0.1s linear box-shadow;
-o-transition: 0.1s linear box-shadow;
transition: 0.1s linear box-shadow;
}
.pure-button-hover, .pure-button:hover, .pure-button:focus {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000', GradientType=0);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.10)));
background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.10));
background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.10));
background-image: -ms-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.10));
background-image: -o-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.10));
background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.10));
}
.pure-button:focus {
outline: 0;
}
.pure-button-active, .pure-button:active {
color: rgb(0, 120, 231);
color: #fff
}