Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 12844 Bytes
1 | /************************************************************************\ |
2 | * File: default_general.css * |
3 | * Hipposoft 2009, 2010, 2011 * |
4 | * * |
5 | * Purpose: Default stylesheet, all media types. * |
6 | * * |
7 | * History: 11-Dec-2009 (ADH): Created. * |
8 | * 18-Feb-2011 (ADH): Abridged version imported from Artisan. * |
9 | \************************************************************************/ |
10 | |
11 | form { |
12 | margin: 0; |
13 | padding: 0; |
14 | } |
15 | |
16 | pre { |
17 | background-color: #eee; |
18 | padding: 10px; |
19 | font-size: 11px; |
20 | } |
21 | |
22 | h1, h3 { |
23 | margin-bottom: 20px; |
24 | } |
25 | |
26 | /* On some operating system / browser combinations, underlines obscure e-mail |
27 | * address underscores which can lead to confusion. |
28 | */ |
29 | |
30 | a.email { |
31 | text-decoration: none; |
32 | padding-right: 20px; |
33 | background-image: url( ../images/icons/email_go.png ); |
34 | background-position: center right; |
35 | background-repeat: no-repeat; |
36 | } |
37 | |
38 | /* Don't underline "close" buttons */ |
39 | |
40 | .leightbox a.lbAction { |
41 | border-bottom: none; |
42 | } |
43 | |
44 | /* Definition lists (rarely used; e.g. on the video attachment help page) */ |
45 | |
46 | dt { |
47 | font-weight: bold; |
48 | font-size: 120%; |
49 | margin-top: 20px; |
50 | margin-bottom: 5px; |
51 | } |
52 | |
53 | dd { |
54 | margin-left: 20px; |
55 | } |
56 | |
57 | /* General "floating icon" based pages and variants */ |
58 | |
59 | div.icon_page { |
60 | background: top left no-repeat; |
61 | padding-left: 110px; |
62 | margin-top: 25px; |
63 | } |
64 | |
65 | div.icon_page.help { |
66 | background-image: url( ../images/icons/large/info.png ); |
67 | } |
68 | |
69 | div.icon_page.delete { |
70 | background-image: url( ../images/icons/large/exclamation.png ); |
71 | } |
72 | |
73 | /* Round-cornered rectangles on advanced browsers */ |
74 | |
75 | .round { |
76 | margin: 5px; |
77 | border: 3px solid #ddd; |
78 | background-color: #f4f4f4; |
79 | display: inline-block; |
80 | |
81 | border-radius: 10px; |
82 | -moz-border-radius: 10px; |
83 | -webkit-border-radius: 10px; |
84 | |
85 | padding: 10px; |
86 | } |
87 | |
88 | div.round h2 { |
89 | margin-top: 0; |
90 | } |
91 | |
92 | div.round ul { |
93 | margin-bottom: 0; |
94 | padding: 0 0 0 17px; |
95 | } |
96 | |
97 | div.round td { |
98 | background-color: white; |
99 | } |
100 | |
101 | div.round table.no_border td { |
102 | background-color: transparent; |
103 | } |
104 | |
105 | div.round td, |
106 | div.round th { |
107 | padding: 4px; |
108 | } |
109 | |
110 | div.round form, div.round p { |
111 | margin-bottom: 0; |
112 | } |
113 | |
114 | /* Generic Flash styles. Things using no specific class for the |
115 | * interior container H2 will fail in MSIE 6 since it doesn't |
116 | * handle the "a > b" selector syntax. |
117 | */ |
118 | |
119 | div.flash > h2 { |
120 | margin-top: 20px; |
121 | padding: 10px; |
122 | |
123 | border: 3px solid #c3c3df; |
124 | background-color: #e3e3ff; |
125 | |
126 | box-shadow: #888 0 0 8px; |
127 | -moz-box-shadow: #888 0 0 8px; |
128 | -webkit-box-shadow: #888 0 0 8px; |
129 | |
130 | font-weight: normal; |
131 | |
132 | /* Override things from class 'round', which gets applied too */ |
133 | |
134 | display: block; |
135 | } |
136 | |
137 | /* Specialisations for known flash use cases. The two selectors are |
138 | * for (of course) broken stuff in MSIE 6; the first gives the correct |
139 | * specificity to overide "div.flash > div" while the next gives a rule |
140 | * which shouldn't override it, but does in MSIE 6. The two cannot be |
141 | * combined into the same rule with "," because MSIE just throws the |
142 | * whole thing away. Argh! |
143 | */ |
144 | |
145 | div.flash > h2.notice { |
146 | border: 3px solid #c3efc3; |
147 | background-color: #e3ffe3; |
148 | } |
149 | h2.notice { |
150 | border: 3px solid #c3efc3; |
151 | background-color: #e3ffe3; |
152 | } |
153 | |
154 | div.flash > h2.attention { |
155 | border: 3px solid #d4c8bc; |
156 | background-color: #ffe8cc; |
157 | } |
158 | h2.attention { |
159 | border: 3px solid #d4c8bc; |
160 | background-color: #ffe8cc; |
161 | } |
162 | |
163 | div.flash > h2.alert, |
164 | div.flash > h2.error { |
165 | border: 3px solid #dfc3c3; |
166 | background-color: #ffe3e3; |
167 | } |
168 | h2.alert, |
169 | h2.error { |
170 | border: 3px solid #dfc3c3; |
171 | background-color: #ffe3e3; |
172 | } |
173 | |
174 | /* Highlight errors within form submissions */ |
175 | |
176 | .fieldWithErrors { |
177 | padding: 2px; |
178 | background-color: red; |
179 | display: table; /* For MSIE 6, better than nothing */ |
180 | display: inline-block; /* For less useless browsers...! */ |
181 | } |
182 | |
183 | #errorExplanation { |
184 | width: 400px; |
185 | border: 2px solid red; |
186 | padding: 7px; |
187 | padding-bottom: 12px; |
188 | margin-bottom: 20px; |
189 | background-color: #f0f0f0; |
190 | } |
191 | |
192 | #errorExplanation h2 { |
193 | text-align: left; |
194 | font-weight: bold; |
195 | padding: 5px 5px 5px 15px; |
196 | font-size: 12px; |
197 | margin: -7px; |
198 | background-color: #c00; |
199 | color: #fff; |
200 | } |
201 | |
202 | #errorExplanation p { |
203 | color: #333; |
204 | margin-bottom: 0; |
205 | padding: 5px; |
206 | } |
207 | |
208 | #errorExplanation ul li { |
209 | font-size: 12px; |
210 | list-style: square; |
211 | } |
212 | |
213 | /* Collapse margins and padding around "button_to..." forms */ |
214 | |
215 | form.button-to { |
216 | padding: 0; |
217 | margin: 0; |
218 | } |
219 | |
220 | /* Indicators of special form fields */ |
221 | |
222 | span.required_label { |
223 | font-weight: bold; |
224 | font-size: 96%; |
225 | } |
226 | |
227 | span.required_indicator { |
228 | color: #800; |
229 | font-size: 75%; |
230 | } |
231 | |
232 | /* Form action button styles - see: |
233 | * |
234 | * http://particletree.com/features/rediscovering-the-button-element/ |
235 | * http://famfamfam.com/lab/icons/silk/ |
236 | */ |
237 | |
238 | .buttons { |
239 | } |
240 | |
241 | .buttons.aligned { |
242 | text-align: center; |
243 | } |
244 | |
245 | .buttons a, .buttons button { |
246 | display: inline-block; |
247 | background-color: #f0f0f0; |
248 | border: 1px solid #c0c0c0; |
249 | border-top: 1px solid #e0e0e0; |
250 | border-left: 1px solid #e0e0e0; |
251 | |
252 | /* Some browsers reset the font family in button elements, so it must be |
253 | * explicitly restated here. |
254 | */ |
255 | |
256 | font-family: verdana, arial, helvetica, sans-serif; |
257 | |
258 | font-size: 12px; |
259 | line-height: 130%; |
260 | text-decoration: none; |
261 | font-weight: bold; |
262 | color: #565656; |
263 | cursor: pointer; |
264 | padding: 5px 7px 6px 7px; /* Links */ |
265 | margin: 1px 0; /* Stop vertically stacked buttons from touching */ |
266 | } |
267 | |
268 | .buttons button { |
269 | width: auto; |
270 | overflow: visible; |
271 | padding: 4px 10px 3px 7px; /* IE6 */ |
272 | } |
273 | |
274 | .buttons button[ type ] { |
275 | padding: 5px 10px 5px 7px; /* Firefox */ |
276 | line-height: 17px; /* Safari */ |
277 | } |
278 | |
279 | *:first-child + html button[ type ] { |
280 | padding: 4px 10px 3px 7px; /* IE7 */ |
281 | } |
282 | |
283 | .buttons button img, .buttons a img { |
284 | margin: 0 3px -3px -1px !important; |
285 | padding: 0; |
286 | border: none; |
287 | width: 16px; |
288 | height: 16px; |
289 | } |
290 | |
291 | /* Small tweak to make search panel buttons well spaced */ |
292 | |
293 | .simple_search .buttons a, |
294 | .simple_search .buttons button { |
295 | margin: 4px 0 0 0; |
296 | } |
297 | |
298 | div#leightbox_simple_search { |
299 | text-align: center; |
300 | } |
301 | |
302 | div#leightbox_simple_search div.simple_search { |
303 | clear: both; |
304 | float: none; |
305 | } |
306 | |
307 | /* Full image buttons (e.g. PayPal Express) */ |
308 | |
309 | a.image_button:hover { |
310 | background-color: transparent; |
311 | } |
312 | |
313 | a.image_button { display: block; } /* MSIE 6 hackery */ |
314 | a.image_button[ class ] { display: inline; } /* For any other browser */ |
315 | |
316 | /* Standard (generic) buttons */ |
317 | |
318 | button:hover, .buttons a:hover { |
319 | background-color: #dff4ff; |
320 | border: 1px solid #c2e1ef; |
321 | color: #336699; |
322 | |
323 | box-shadow: #888 0 0 4px; |
324 | -moz-box-shadow: #888 0 0 4px; |
325 | -webkit-box-shadow: #888 0 0 4px; |
326 | } |
327 | |
328 | .buttons a:active { |
329 | background-color: #6299c5; |
330 | border: 1px solid #6299c5; |
331 | color: #fff; |
332 | } |
333 | |
334 | /* Positive (accept-style) buttons */ |
335 | |
336 | button.positive, .buttons a.positive { |
337 | color: #529214; |
338 | } |
339 | |
340 | .buttons a.positive:hover, button.positive:hover { |
341 | background-color: #E6EFC2; |
342 | border-color: #C6D880; |
343 | color: #529214; |
344 | } |
345 | |
346 | .buttons a.positive:active { |
347 | background-color: #529214; |
348 | border-color: #529214; |
349 | color: #fff; |
350 | } |
351 | |
352 | /* Negative (cancellation-style) buttons */ |
353 | |
354 | .buttons a.negative, button.negative { |
355 | color: #d12f19; |
356 | } |
357 | |
358 | .buttons a.negative:hover, button.negative:hover { |
359 | background-color: #fbe3e4; |
360 | border-color: #fbc2c4; |
361 | color: #d12f19; |
362 | } |
363 | |
364 | .buttons a.negative:active { |
365 | background-color: #d12f19; |
366 | border-color: #d12f19; |
367 | color: #fff; |
368 | } |
369 | |
370 | /* Cart addition buttons */ |
371 | |
372 | button.cart, .buttons a.cart { |
373 | color: #149292; |
374 | } |
375 | |
376 | .buttons a.cart:hover, button.cart:hover { |
377 | background-color: #c2efef; |
378 | border-color: #70d8d8; |
379 | color: #166; |
380 | } |
381 | |
382 | .buttons a.cart:active { |
383 | background-color: #149292; |
384 | border-color: #149292; |
385 | color: #fff; |
386 | } |
387 | |
388 | /* Standard styled but emboldened buttons */ |
389 | |
390 | .buttons a.bold, |
391 | .buttons a:hover.bold, /* For MSIE 6 */ |
392 | .buttons a:active.bold /* For MSIE 6 */ { |
393 | border-width: 3px; |
394 | } |
395 | |
396 | /* Make some buttons outside tables really obvious */ |
397 | |
398 | input.obvious { |
399 | font-weight: bold; |
400 | font-size: 16px; |
401 | color: #050; |
402 | } |
403 | |
404 | input.obvious_negative { |
405 | font-weight: bold; |
406 | font-size: 16px; |
407 | color: #500; |
408 | } |
409 | |
410 | /* Various content area table styles */ |
411 | |
412 | div.content table { |
413 | border: none; |
414 | border-collapse: collapse; |
415 | } |
416 | |
417 | div.content td, div.content th { |
418 | padding: 4px; |
419 | border: 1px solid #aaa; |
420 | } |
421 | |
422 | div.content th { |
423 | background-color: #bbb; |
424 | border-color: #888; |
425 | } |
426 | |
427 | div.content td { |
428 | background-color: #fff; |
429 | } |
430 | |
431 | div.content tfoot tr td { |
432 | background-color: transparent; |
433 | } |
434 | |
435 | div.content table .corner { |
436 | border: none; |
437 | background-color: transparent; |
438 | } |
439 | |
440 | div.content table th.spinner.inline { |
441 | width: 30px; /* Needs 16 for spinner, 4 each side for padding, but rendering bugs in WebKit are avoided by making it wider still */ |
442 | min-width: 30px; |
443 | max-width: 30px; |
444 | } |
445 | |
446 | div.content #spinner { |
447 | width: 16px; |
448 | height: 16px; |
449 | float: right; |
450 | background: url( ../images/good_sort/ajax-loader.gif ) center center no-repeat; |
451 | } |
452 | |
453 | div.content table th.spinner.inline #spinner { |
454 | float: right; |
455 | } |
456 | |
457 | div.content .up, div.content .down, div.content th { |
458 | background-position: 5px center; |
459 | background-repeat: no-repeat; |
460 | padding-left: 5px; |
461 | text-align: left; |
462 | } |
463 | |
464 | div.content .up { |
465 | background-image: url( ../images/good_sort/up.gif ); |
466 | padding-left: 19px; |
467 | } |
468 | |
469 | div.content .down { |
470 | background-image: url( ../images/good_sort/down.gif ); |
471 | padding-left: 19px; |
472 | } |
473 | |
474 | div.content tr.odd td { |
475 | background-color: #fff; |
476 | } |
477 | |
478 | div.content tr.even td { |
479 | background-color: #eee; |
480 | } |
481 | |
482 | div.content tr.odd td.poll_state.a_open { |
483 | background-color: #efe; |
484 | } |
485 | |
486 | div.content tr.even td.poll_state.a_open { |
487 | background-color: #ded; |
488 | } |
489 | |
490 | div.content tr.odd td.poll_state.b_underway { |
491 | background-color: #fec; |
492 | } |
493 | |
494 | div.content tr.even td.poll_state.b_underway { |
495 | background-color: #edb; |
496 | } |
497 | |
498 | div.content tr.odd td.poll_state.c_completed { |
499 | background-color: #eff; |
500 | } |
501 | |
502 | div.content tr.even td.poll_state.c_completed { |
503 | background-color: #dee; |
504 | } |
505 | |
506 | div.content tr.odd td.poll_state.d_expired { |
507 | background-color: #fee; |
508 | } |
509 | |
510 | div.content tr.even td.poll_state.d_expired { |
511 | background-color: #edd; |
512 | } |
513 | |
514 | div.content tr.poll_state.a_open { |
515 | font-weight: bold; |
516 | } |
517 | |
518 | div.content tr.poll_state td.actions { |
519 | font-weight: normal; |
520 | font-size: 80%; |
521 | } |
522 | |
523 | div.content tr.poll_state.c_completed, |
524 | div.content tr.poll_state.d_expired { |
525 | color: #aaa; |
526 | } |
527 | |
528 | div.content tr.poll_state.c_completed a.help img, |
529 | div.content tr.poll_state.d_expired a.help img { |
530 | overflow: hidden; |
531 | height: 0; |
532 | padding-top: 16px; |
533 | background: url( ../images/icons/help_grey.png ) top center no-repeat; |
534 | } |
535 | |
536 | div.content tfoot td { |
537 | border: none; |
538 | padding: 5px 0 8px 0; |
539 | } |
540 | |
541 | div.content tfoot div.pagination { |
542 | float: left; |
543 | margin-top: 3px; |
544 | } |
545 | |
546 | div.content tfoot div.buttons { |
547 | margin-top: 3px; |
548 | float: right; |
549 | } |
550 | |
551 | div.content table.no_border td, |
552 | div.content table.no_border th { |
553 | border: none; |
554 | } |
555 | |
556 | div.content table.compact td { |
557 | padding: 2px; |
558 | } |
559 | |
560 | div.content table.abutted td { |
561 | padding: 0; |
562 | background-color: transparent; |
563 | } |
564 | |
565 | div.content table.abutted th { |
566 | background-color: #eee; |
567 | } |
568 | |
569 | div.content tr.pagination { |
570 | font-weight: bold; |
571 | } |
572 | |
573 | /* Searchable lists */ |
574 | |
575 | div.searchable_list { |
576 | float: left; |
577 | margin-right: 10px; |
578 | } |
579 | |
580 | div.simple_search { |
581 | margin: 0; |
582 | } |
583 | |
584 | /* User hints */ |
585 | |
586 | .view_hint { |
587 | font-style: italic; |
588 | font-size: 80%; |
589 | } |
590 | |
591 | /* Help icons */ |
592 | |
593 | a.help, a.help:hover { |
594 | position: relative; |
595 | top: 3px; |
596 | border-bottom: none; |
597 | } |
598 | |
599 | .view_hint a.help { |
600 | top: -2px; |
601 | } |
602 | |
603 | /* Generalised floating blocks */ |
604 | |
605 | .floaty { |
606 | display: table; |
607 | float: left; |
608 | margin: 0 10px 10px 0; |
609 | } |
610 | |
611 | .floaty_clear { |
612 | clear: both; |
613 | } |
614 | |
615 | .float_left { |
616 | float: left; |
617 | } |
618 | |
619 | .float_right { |
620 | float: right; |
621 | } |
622 | |
623 | /* RedCloth (Textile) input and preview */ |
624 | |
625 | textarea.redcloth_preview_source { |
626 | width: 45%; |
627 | min-height: 240px; |
628 | float: left; |
629 | } |
630 | |
631 | div.redcloth_preview_outer { |
632 | width: 45%; |
633 | float: right; |
634 | border: 1px solid #ccc; |
635 | padding: 5px; |
636 | min-height: 200px; |
637 | max-height: 450px; |
638 | overflow: auto; |
639 | } |
640 | |
641 | div.redcloth_preview_outer span.redcloth_preview_title { |
642 | font-size: 80%; |
643 | color: #888; |
644 | } |
645 | |
646 | div.redcloth_preview_inner { |
647 | margin-top: 5px; |
648 | border-top: 1px dashed #ccc; |
649 | } |
650 | |
651 | /* View-specific styles */ |
652 | |
653 | div.content td.poll_state { |
654 | white-space: nowrap; |
655 | } |
656 | |
657 | div.content table.cvv_help { |
658 | background-color: #fff; |
659 | border: 1px solid #ccc; |
660 | |
661 | box-shadow: #888 0 0 4px; |
662 | -moz-box-shadow: #888 0 0 4px; |
663 | -webkit-box-shadow: #888 0 0 4px; |
664 | } |
665 | |
666 | div.content table.cvv_help td { |
667 | padding: 6px; |
668 | } |
669 | |
670 | div.content table.audit_list td, |
671 | div.content table.audit_changes th { |
672 | font-size: 80%; |
673 | } |
674 | |
675 | div.content table.audit_changes td { |
676 | background-color: #f8f8f8; |
677 | } |
678 | |
679 | div.content table.audit_changes td p:first-child { |
680 | margin-top: 0; |
681 | } |
682 | |
683 | div.content table.audit_changes td p:last-child { |
684 | margin-bottom: 0; |
685 | } |
686 | |
687 | div.content .financial { |
688 | text-align: right; |
689 | } |
690 | |
691 | div.content .donation_debit { |
692 | text-decoration: underline; |
693 | color: #f00; |
694 | } |