first (mostly) working version of full elections.
[selectricity-live] / public / stylesheets / main.css
1 @charset "utf-8";
2
3 /* CSS Document */
4
5 /****************************************************************
6    Selectricity || selectricity.org
7    Design by Courtland Allen
8 *****************************************************************/
9
10 /* basics */
11  
12 body {
13         color: black;
14         background: white;
15         background: url(/images/bg_main.png) repeat-x top left;
16 }
17
18 h2 {
19         font-size: 24px !important;
20         margin: 0 0 1em 0 !important;
21 }
22
23 h3 {
24         font-size: 18px !important;
25         margin: 0 0 1em 0 !important;
26 }
27
28 .special {
29         background-color: #999999;
30         color: white;
31         text-align: center;
32         pading: 0 1em 0 1em;
33 }
34
35 label {
36     font-weight: bold;
37 }
38
39
40 /* Left column. Includes logo, poll information, and graph. */
41  
42 #left-side {
43         width: 270px;
44         float: left;
45         text-align: left;
46         margin-top: 33px;
47         font-size: 13px;
48 }
49
50 #left-side h1 {
51         height: 0px;
52         overflow: hidden;
53         padding-top: 189px;
54         background: url(/images/title_main.png) no-repeat top left;
55 }
56
57
58 #left-side-content {
59         color: #666666;
60         margin-top: 40px;
61         text-align: left;
62 }
63
64 #left-side-content p {
65         color: #666666;
66         padding-left: 2em;
67         margin: 2em 0 2em 0;
68 }
69
70 #left-side-content ol {
71         color: #666666;
72 }
73
74 .graph {
75   text-align: center;
76 }
77
78 /* Right column. Includes top-bar and main-box. */
79
80 #right-side {
81         width: 611px;
82         margin-top: 0px;
83         float: right;
84 }
85  
86 #top-bar {
87         float: right;
88         margin-right: 50px;
89         width: 231px;
90         text-align: center;
91         margin-bottom: 35px;
92 }
93
94 #top-bar a {
95         color: #dddddd;
96         font-size: 11px;
97 }
98
99 div#bar-left {
100         background-image: url(/images/top_bar_1.png);
101         width: 153px;
102         height: 37px;
103         padding-top: 8px;
104         float: left;
105         clear: left;
106 }
107
108 div#bar-right {
109         background-image: url(/images/top_bar_2.png);
110         width: 78px;
111         height: 37px;
112         padding-top: 8px;
113         float: left;
114         clear: right;
115 }
116
117 .green { color: #10a700; }
118
119 .left-aligned h4 {
120         float: left;
121         padding-top: 26px;
122         height: 0px;
123         overflow: hidden;
124         background: no-repeat top left;
125 }
126
127 .right-aligned h4 {
128         float: right;
129         padding-top: 26px;
130         height: 0px;
131         overflow: hidden;
132         background: no-repeat top right;
133 }
134
135 .left-aligned { text-align: left; }
136
137 .right-aligned { text-align: right; }
138
139 h5 {
140         color: #5c5c5c;
141         background-color: #d6d6d6;
142         height: 21px;
143         font-size: 16px;
144         padding: 5px 15px 0 15px;
145         margin-bottom: .75em;
146         overflow: hidden;
147 }
148
149 #title-header {
150     margin: -20px -20px 14px -20px;
151     height: 34px;
152         background-color: #e5e5e5;
153 }
154
155 .normal-header {
156     margin: 1.3em -20px 1.3em -20px;
157     height: 34px;
158         background-color: #e5e5e5;
159 }
160
161 .header {
162     display: block;
163     font-family: verdana,arial,helvetica,sans-serif;
164     font-size: 30px;
165     text-transform: uppercase;
166     text-align: center;
167     color: white;
168     background-color: #999999;
169     height: 34px;
170     float: left;
171     padding: 0px .75em 0px .75em;
172 }
173
174 .subheader {
175     float: left;
176     font-family: verdana,arial,helvetica,sans-serif;
177     font-size: 18px;
178     color: #666666;
179         background-color: #e5e5e5;
180     /* height: 26px; */
181     padding: 6px 0px 0px 10px;
182     margin-bottom: 14px;
183
184
185 #main-box {
186         float: right;
187         width: 571px;
188         padding: 20px;
189         background: #f9f9f9;
190         border: 1px solid #b3b3b3;
191 }
192
193 #main-box p, #main-box blockquote, #main-box ul {
194     margin-bottom: 1em;
195 }
196
197 blockquote {
198     margin-left: 3em;
199 }
200
201
202 /* css related to error in forms */
203
204 #errorExplanation {
205   border: 2px solid #C00;
206   width: 260px;
207   margin-bottom: 20px;
208   background-color: #f0f0f0;
209 }
210
211 #errorExplanation h2 {
212   font-size: 1em !important;
213   text-align: left;
214   font-weight: bold;
215   padding: 5px 5px 5px 5px;
216   background-color: #c00;
217   color: #fff;
218 }
219
220 #errorExplanation p {
221   font-size: 1em;
222   color: #333;
223   margin-bottom: 0;
224   padding: 5px;
225 }
226
227 #errorExplanation ul li {
228   font-size: 1em;
229   list-style: square;
230 }
231
232 .fieldWithErrors {
233     display: inline;
234 }
235 .fieldWithErrors input, .fieldWithErrors select, .fieldWithErrors textarea {
236     background-color: #FFFBB3; 
237 }
238
239 #status {
240   width: 400px;
241   border: 1px solid #0000FF;
242   border-width: 1px;
243   padding: 7px;
244   padding-bottom: 12px;
245   margin-bottom: 20px;
246   background-color: #f0f0f0;
247 }
248
249 .result_table {
250  text-align: center;
251  margin-bottom: 1em;
252 }
253 .preftable {
254         font-family: verdana,arial,helvetica,sans-serif;
255         border-spacing: 0px;
256         border-width: 2px;
257         border-color: #999999;
258         border-style: solid;
259         caption-side: top;
260 }
261
262 .preftable th {
263         font-family: verdana,arial,helvetica,sans-serif;
264         border-width: 2px;
265         border-color: #999999;
266         border-style: solid;
267         text-align: center;
268         font-weight: bold;
269         padding: 5px 5px 5px 5px;
270         background-color: #999999;
271         color: #FFFFFF;
272 }
273
274 .preftable td {
275   border-collapse: collapse;
276   border-width: 1px;
277   border-color: #999999;
278   border-style: solid;
279   text-align: right;
280   padding-right: 5px;
281   padding-left: 5px;
282 }
283
284 .voterbox {
285   border-spacing: 0px;
286   border-width: 2px;
287   border-color: #4D801A;
288   border-style: solid;
289 }
290
291 .voterbox th {
292   border-width: 2px;
293   border-color: #73BF26;
294   border-style: solid;
295   text-align: center;
296   font-weight: bold;
297   padding: 5px 5px 5px 15px;
298   background-color: #73BF26;
299   color: #fff;
300 }
301
302 .voterbox td {
303   border-collapse: collapse;
304   border-width: 1px;
305   border-color: #4D801A;
306   border-style: solid;
307
308   text-align: right;
309   padding-right: 5px;
310   padding-left: 5px;
311 }
312
313 /* voterbox#election is used on user summary page */
314 .voterbox#election { border-color: #990d13; }
315
316 .voterbox#election th {
317          background-color: #dc0d13;
318          border-color: #dc0d13; 
319 }
320         
321 .voterbox#election td { border-color: #990d13;}
322
323 .rbmoreinfo hr {
324   width: 100%;
325   height: 10px;
326   color: #4D801A;
327 }
328 .rbmoreinfo h4 {
329   border: 0px;
330   font-style: italic;
331   text-align: center;
332   font-size: 0.9em;
333 }
334
335 .rbmoreinfo p {
336   font-size: 0.8em;
337   padding-left: 30px;
338   padding-right: 30px;
339   text-align: left;
340 }
341
342 .example {
343   width: 400px;
344   border-width: 2px;
345   border-style: solid;
346   border-color: #999999;
347   padding: 7px;
348   padding-bottom: 12px;
349   margin-bottom: 20px;
350   background-color: #f0f0f0;
351 }
352
353 .example h4 {
354   text-align: center;
355   font-weight: bold;
356   padding: 5px 5px 5px 15px;
357   font-size: 12px;
358   margin: -7px;
359   background-color: #999999;
360   color: #fff;
361   border-bottom: 0px;
362 }
363                                 
364 .example p {
365   margin-bottom: 0;
366   padding: 5px;
367 }
368
369
370 .warning {
371   width: 400px;
372   border-width: 2px;
373   border-style: solid;
374   border-color: #dc0d13;
375   padding: 7px;
376   padding-bottom: 12px;
377   margin-bottom: 20px;
378   background-color: #f0f0f0;
379 }
380
381 .warning h4 {
382   text-align:
383   center;
384   font-weight:
385   bold;
386   padding: 5px 5px 5px 15px;
387   font-size: 12px;
388   margin: -7px;
389   background-color: #dc0d13;
390   color: #fff;
391   border-bottom: 0px;
392 }
393
394 .warning p {
395   margin-bottom: 0;
396   padding: 5px;
397 }
398
399 #progress_bar ul li {
400   display: block;
401   list-style: default;
402 }
403
404 #progress_bar li.step_selected {
405   font-weight: bold;
406 }
407
408 #progress_bar li.step_unselected {
409   color: #CCCCCC;
410   font-weight: bold;
411 }
412
413 #progress_bar li.step_unselected {
414   color: #CCCCCC;
415   font-weight: bold;
416 }
417
418 #progress_bar li.step_unselected a {
419   text-decoration: none;
420 }
421
422 div.photo {
423  text-align: center;
424  margin-bottom: 1.5em;
425 }
426
427 div.photo img {
428  border: 1px black solid;
429 }
430
431 .winner_text {
432  text-align: center;
433 }
434
435 #winner_box {
436  border: 3px white solid;
437  background-color: #666666;
438  color: white; 
439  margin: 0.5em 0 1em 0;
440 }
441
442 .winner_text {
443  font-size: 1.2em;
444 }
445 #winner_box .winner_text {
446  font-size: 2em;
447 }
448
449 #winner_box p {
450  margin: 0;
451  padding: 0;
452 }
453
454 /* main election candidate stylesheet information */
455
456 .candidate_box {
457 }
458 .candidate_box_name {
459  float: left;
460  font-size: 1.3em;
461  font-weight: bold;
462 }
463 .candidate_box_menu {
464  text-align: right;
465  float: right;
466  font-size: 0.8em;
467  font-weight: bold;
468 }
469 .candidate_box_info {
470  margin: 0.5em 0 0.5em 3em;
471 }
472 /*.candidate_box_picture {
473  width: 100px;
474  float: left;
475  margin: 0 0.8em 0.5em 0;
476 }*/
477 .candidate_box_picture img {
478  width: 100px;
479  border: 1px solid black;
480 }
481 .candidate_box_description {
482  display: inline;
483 }

Benjamin Mako Hill || Want to submit a patch?