Refined the CSS and fixed some of the more recent issues.
[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         margin-top: 50px;
76         background: url(/images/graph.jpg) top left no-repeat;
77         height: 0px;
78         overflow: hidden;
79         padding-top: 243px;
80 } */
81
82
83
84 /* Right column. Includes top-bar and main-box. */
85
86 #right-side {
87         width: 611px;
88         margin-top: 0px;
89         float: right;
90 }
91  
92 #top-bar {
93         float: right;
94         margin-right: 50px;
95         width: 231px;
96         text-align: center;
97         margin-bottom: 35px;
98 }
99
100 #top-bar a {
101         color: #dddddd;
102         font-size: 11px;
103 }
104
105 div#bar-left {
106         background-image: url(/images/top_bar_1.png);
107         width: 153px;
108         height: 37px;
109         padding-top: 8px;
110         float: left;
111         clear: left;
112 }
113
114 div#bar-right {
115         background-image: url(/images/top_bar_2.png);
116         width: 78px;
117         height: 37px;
118         padding-top: 8px;
119         float: left;
120         clear: right;
121 }
122
123 .green { color: #10a700; }
124
125 .left-aligned h4 {
126         float: left;
127         padding-top: 26px;
128         height: 0px;
129         overflow: hidden;
130         background: no-repeat top left;
131 }
132
133 .right-aligned h4 {
134         float: right;
135         padding-top: 26px;
136         height: 0px;
137         overflow: hidden;
138         background: no-repeat top right;
139 }
140
141 .left-aligned { text-align: left; }
142
143 .right-aligned { text-align: right; }
144
145 h5 {
146         color: #5c5c5c;
147         background-color: #d6d6d6;
148         height: 21px;
149         font-size: 16px;
150         padding: 5px 15px 0 15px;
151         margin-bottom: .75em;
152         overflow: hidden;
153 }
154
155 #page-title {
156     margin: -20px -20px 1em -20px;
157 }
158
159 .plain-header {
160     margin: 1em -20px 1em -20px;
161 }
162
163 .header {
164         display: block;
165         font-family: "trebuchet ms",trebuchet,verdana,arial,sans-serif;
166         font-size: 30px;
167         text-transform: uppercase;
168         text-align: center;
169         color: white;
170         background-color: #999999;
171         height: 32px;
172         float: left;
173         padding: 0px .75em 0px .75em;
174         margin-right: 10px;
175         margin-bottom: 14px;
176 }
177
178 .subheader {
179         display: block;
180         font-family: "trebuchet ms",trebuchet,verdana,arial,sans-serif;
181         font-size: 18px;
182         text-align: left;
183         color: #666666;
184         background-color: #CCCCCC;
185         height: 26px;
186         padding: 6px 1em 0px 20px;
187         margin-bottom: 14px;
188 }
189
190 #main-box {
191         float: right;
192         width: 571px;
193         padding: 20px;
194         background: #f9f9f9;
195         border: 1px solid #b3b3b3;
196 }
197
198 #main-box p, #main-box blockquote, #main-box ul {
199     margin-bottom: 1em;
200 }
201
202 blockquote {
203     margin-left: 3em;
204 }
205
206
207 /* css related to error in forms */
208
209 #errorExplanation {
210   border: 2px solid #C00;
211   width: 260px;
212   margin-bottom: 20px;
213   background-color: #f0f0f0;
214 }
215
216 #errorExplanation h2 {
217   font-size: 1em !important;
218   text-align: left;
219   font-weight: bold;
220   padding: 5px 5px 5px 5px;
221   background-color: #c00;
222   color: #fff;
223 }
224
225 #errorExplanation p {
226   font-size: 1em;
227   color: #333;
228   margin-bottom: 0;
229   padding: 5px;
230 }
231
232 #errorExplanation ul li {
233   font-size: 1em;
234   list-style: square;
235 }
236
237 .fieldWithErrors {
238     display: inline;
239 }
240 .fieldWithErrors input, .fieldWithErrors select, .fieldWithErrors textarea {
241     background-color: #FFFBB3; 
242 }
243
244 #status {
245   width: 400px;
246   border: 1px solid #0000FF;
247   border-width: 1px;
248   padding: 7px;
249   padding-bottom: 12px;
250   margin-bottom: 20px;
251   background-color: #f0f0f0;
252 }
253
254 li.moveable {
255   background-color: #E5FFCC;
256   border:1px solid #4D801A;
257   cursor: move;
258   padding: 4px;
259   margin: 4px;
260 }
261
262 #sortable_list {
263   font-size: 24pt;
264   display: float;
265   float: left;
266 }
267
268 .voterbox {
269   border-spacing: 0px;
270   border-width: 2px;
271   border-color: #4D801A;
272   border-style: solid;
273 }
274
275 .voterbox th {
276   border-width: 2px;
277   border-color: #73BF26;
278   border-style: solid;
279   text-align: center;
280   font-weight: bold;
281   padding: 5px 5px 5px 15px;
282   background-color: #73BF26;
283   color: #fff;
284 }
285
286 .voterbox td {
287   border-collapse: collapse;
288   border-width: 1px;
289   border-color: #4D801A;
290   border-style: solid;
291
292   text-align: right;
293   padding-right: 5px;
294   padding-left: 5px;
295 }
296
297 .rbmoreinfo hr {
298   width: 100%;
299   height: 10px;
300   color: #4D801A;
301 }
302 .rbmoreinfo h4 {
303   border: 0px;
304   font-style: italic;
305   text-align: center;
306   font-size: 0.9em;
307 }
308
309 .rbmoreinfo p {
310   font-size: 0.8em;
311   padding-left: 30px;
312   padding-right: 30px;
313   text-align: left;
314 }
315
316 .example {
317   width: 400px;
318   border-width: 2px;
319   border-style: solid;
320   border-color: #73BF26;
321   padding: 7px;
322   padding-bottom: 12px;
323   margin-bottom: 20px;
324   background-color: #f0f0f0;
325 }
326
327 .example h4 {
328   text-align: center;
329   font-weight: bold;
330   padding: 5px 5px 5px 15px;
331   font-size: 12px;
332   margin: -7px;
333   background-color: #73BF26;
334   color: #fff;
335   border-bottom: 0px;
336 }
337                                 
338 .example p {
339   margin-bottom: 0;
340   padding: 5px;
341 }
342
343
344 .warning {
345   width: 400px;
346   border-width: 2px;
347   border-style: solid;
348   border-color: #4D801A;
349   padding: 7px;
350   padding-bottom: 12px;
351   margin-bottom: 20px;
352   background-color: #f0f0f0;
353 }
354
355 .warning h4 {
356   text-align:
357   center;
358   font-weight:
359   bold;
360   padding: 5px 5px 5px 15px;
361   font-size: 12px;
362   margin: -7px;
363   background-color: #4D801A;
364   color: #fff;
365   border-bottom: 0px;
366 }
367
368 .warning p {
369   margin-bottom: 0;
370   padding: 5px;
371 }
372
373 #election_creation_progress_bar ul li {
374   display: block;
375   list-style: default;
376 }
377
378 #election_creation_progress_bar li.step_selected {
379   font-weight: bold;
380 }
381
382 #election_creation_progress_bar li.step_unselected {
383   color: #CCCCCC;
384   font-weight: bold;
385 }
386
387
388

Benjamin Mako Hill || Want to submit a patch?