]> git.openstreetmap.org Git - rails.git/blob - public/stylesheets/common.css
Merge branch 'master' into openstreetbugs
[rails.git] / public / stylesheets / common.css
1 /* Styles common to large and small screens */
2
3 /* Default rules for the body of every page */
4
5 body {
6   font-family: Arial,sans-serif;
7   color: #000;
8   background-color: #fff;
9   margin: 0px;
10   padding: 0px;
11 }
12
13 body.slim {
14   background-color: #f0f0f0;
15 }
16
17 /* Rules for links */
18
19 a {
20   color: #00f;
21   text-decoration: none;
22 }
23
24 a:hover {
25   text-decoration: underline;
26 }
27
28 /* Rules for horizontal lines */
29
30 hr {
31   border: none;
32   background-color: #ccc;
33   color: #ccc;
34   height: 1px;
35 }
36
37 /* Rules for the whole left sidebar, including the logo */
38
39 #left {
40   position: absolute;
41   top: 0px;
42   min-width: 170px;
43 }
44
45 /* Rules for the OpenStreetMap logo in the top left corner */
46
47 #logo {
48   width: 170px;
49   min-width: 170px;
50   padding: 5px;
51   margin: 5px;
52   height: 150px;
53   background: #fff;
54   border: 1px solid #ccd;
55   border-radius: 5px;
56   -moz-border-radius: 5px;
57 }
58
59 #logo h1 {
60   font-size: 14px;
61   text-align: center;
62   margin: 0px;
63 }
64
65 #logo h2 {
66   font-size: 10px;
67   margin: 0px;
68 }
69
70 /* Rules for the site name */
71
72 #small-title {
73   display: none;
74 }
75
76 /* Rules for the introductory text displayed in the left sidebar to new users */
77
78 #intro {
79   width: 170px;
80   padding: 5px;
81   margin: 5px;
82   border: 1px solid #ccc;
83   font-size: 11px;
84   border-radius: 5px;
85   -moz-border-radius: 5px;
86 }
87
88 #intro p { margin: 5px; }
89
90 /*
91  * Rules for alert boxes shown in the left sidebar when important
92  * information needs to be conveyed such as when the site is
93  * undergoing maintenance.
94  */
95
96 #alert {
97   width: 170px;
98   margin: 5px;
99   padding: 5px;
100   border: 1px solid #ccc;
101   background: #d00;
102   line-height: 1.2em;
103   text-align: left;
104   font-size: 14px;
105   border-radius: 5px;
106   -moz-border-radius: 5px;
107 }
108
109 /*
110  * Rules for notice boxes shown in the left sidebar when important, but
111  * non-critical information needs to be conveyed such as notices about
112  * donation drives.
113  */
114
115 .notice {
116   width: 170px;
117   margin: 5px;
118   padding: 5px;
119   border: 1px solid #ccc;
120   background: #ea0;
121   line-height: 1.2em;
122   text-align: left;
123   font-size: 14px;
124   border-radius: 5px;
125   -moz-border-radius: 5px;
126 }
127
128 /* Rules for the menu displayed in the left sidebar */
129
130 .left_menu {
131   width: 170px;
132   min-width: 170px;
133   margin: 5px;
134   padding: 5px;
135   border: 1px solid #ccc;
136   left: 0px;
137   background: #ddd;
138   line-height: 1.2em;
139   text-align: Left;
140   font-size: 14px;
141   font-weight: bold;
142   border-radius: 5px;
143   -moz-border-radius: 5px;
144 }
145
146 .left_menu td {
147   font-size: 12px;
148   padding-right: 4px;
149 }
150
151 .left_menu h1 {
152   font-style: normal;
153   font-size: 15px;
154   padding: 0em 0em 0em 1em;
155   text-align: left;
156 }
157
158 .left_menu ul {
159   padding-left: 0px;
160   margin: 0px;
161   list-style-type: none;
162 }
163
164 .left_menu li {
165   margin: 0px;
166   padding: 0px;
167 }
168
169 .left_menu img {
170   margin: 2px 8px 0px 0px;
171 }
172
173 .left_menu a {
174   color: #000;
175 }
176
177 /* Rules for SOTM advert */
178
179 #sotm {
180   width: 180px;
181   min-width: 180px;
182   margin: 5px;
183   padding: 0px;
184   border: 0px;
185   background: #fff;
186 }
187
188 /*
189  * Rules for "optional boxes" which appear in the left sidebar on
190  * certain pages. Current users are the seach box on the main page
191  * and the tag cloud on the traces pages.
192  */
193
194 .optionalbox {
195   width: 170px;
196   min-width: 170px;
197   margin: 5px;
198   padding: 5px;
199   border: 1px solid #ccc;
200   left: 0px;
201   line-height: 1.2em;
202   text-align: left;
203   font-size: 12px;
204   background: #eee;
205   border-radius: 5px;
206   -moz-border-radius: 5px;
207 }
208
209 .optionalbox h1 {
210   font-size: 14px;
211   font-weight: bold;
212   line-height: 22px;
213   margin: 0px;
214   vertical-align: bottom;
215 }
216
217 /* Rules for the search box */
218
219 .whereami {
220   line-height: 22px;
221   vertical-align: bottom;
222   float: right;
223 }
224
225 .search_form {
226   height: 16px;
227   padding-bottom: 6px;
228 }
229
230 #search_field form {
231   width: 100%;
232   margin: 0px;
233   padding: 0px;
234 }
235
236 #search_field input[type="text"] {
237   width: 136px;
238 }
239
240 #search_field input[type="submit"] {
241   width: 26px;
242   padding-left: 0px;
243   padding-right: 0px;
244 }
245
246 .search_help {
247   font-size: 10px;
248   line-height: 1em;
249   margin-top: 3px;
250   margin-bottom: 0px;
251 }
252
253 /* Rules for donation request box */
254
255 .donate {
256   width: 170px;
257   margin: 5px;
258   padding: 5px;
259   border: 1px solid #ccc;
260   background: #cbeea7;
261   line-height: 1.2em;
262   text-align: center;
263   font-size: 14px;
264   border-radius: 5px;
265   -moz-border-radius: 5px;
266 }
267
268 /* Rules for Creative Commons logo button */
269
270 #cclogo {
271   margin-top: 10px;
272   margin-bottom: 10px;
273 }
274
275 /* Rules for tabbed navigation bar */
276
277 #tabnav
278 {
279   height: 20px;
280   margin: 0px;
281   padding-left: 215px;
282   padding-top: 5px;
283   background: url('../images/tab_bottom.gif') repeat-x bottom;
284 }
285
286 #tabnav li
287 {
288   margin: 0px; 
289   padding: 0px;
290   display: inline;
291   list-style-type: none;
292 }
293
294 #tabnav a, #tabnav a:link, #tabnav a:visited 
295 {
296   float: left;
297   background: #f3f3f3;
298   font-size: 13px;
299   line-height: 14px;
300   font-weight: bold;
301   padding: 2px 10px;
302   margin-right: 4px;
303   border: 1px solid #ccc;
304   text-decoration: none;
305   color: #333;
306   border-top-right-radius: 5px;
307   -moz-border-radius-topright: 5px;
308   border-top-left-radius: 5px;
309   -moz-border-radius-topleft: 5px;
310 }
311
312 #tabnav a:link.active, #tabnav a:visited.active
313 {
314   border-bottom: 1px solid #fff;
315   background: #fff;
316   color: #000;
317 }
318
319 #tabnav a:link:hover, #tabnav a:visited:hover
320 {
321   background: #fff;
322 }
323
324 #tabnav a:link.disabled, #tabnav a:visited.disabled,
325 #tabnav a:link:hover.disabled, #tabnav a:visited:hover.disabled
326 {
327   background: #bbbbbb;
328   color: white
329 }
330
331 /* Rules for greeting bar in the top right corner */
332
333 #greeting {
334   float: right;
335   height: 20px;
336   margin: 0px;
337   padding-right: 10px;
338   padding-top: 5px;
339   font-size: 13px;
340   line-height: 14px;
341   background: url('../images/tab_bottom.gif') repeat-x bottom;
342 }
343
344 .greeting-bar-unread {
345   font-weight: bold;
346 }
347
348 /* Rules for the message shown in place of the map when javascript is disabled */
349
350 #noscript {
351   z-index: 20000000;
352   position: absolute;
353   top: 15px;
354   left: 15px
355 }
356
357 /* Rules for OpenLayers maps */
358
359 #map {
360   position: absolute;
361   border: 1px solid black;
362   margin: 0px; 
363   padding: 0px;
364   left: 0px;
365   right: 2px;
366   top: 0px;
367   bottom: 0px;
368 }
369
370 .olControlAttribution {
371   display: none !important;
372 }
373
374 #permalink {
375   z-index: 10000;
376   position: absolute;
377   bottom: 15px;
378   right: 15px;
379   font-size: smaller;
380   text-align: right;
381 }
382
383 /* Rules for edit menu */
384
385 #editmenu {
386   display: none;
387   z-index: 10000;
388   position: absolute;
389   background-color: #ffffff;
390   border: 1px solid black;
391 }
392
393 #editmenu ul {
394   margin-top: 10px;
395   margin-bottom: 10px;
396   padding-left: 10px;
397   padding-right: 10px;
398 }
399
400 #editmenu li {
401   list-style-type: none;
402 }
403
404 /* Rules for attribution text under the main map shown on printouts */
405
406 #attribution {
407   display: none;
408 }
409
410 /* Rules for the popout map sidebar */
411
412 #sidebar {
413   display: none;
414   position: absolute;
415   border: 1px solid black;
416   margin: 0px;
417   padding: 0px;
418   width: 30%;
419   left: 0px;
420   top: 0px;
421   bottom: 0px;
422 }
423
424 #sidebar_content {
425   overflow: auto;
426   position: absolute;
427   font-size: 13px;
428   line-height: 14px;
429   top: 29px;
430   bottom: 0px;
431   left: 0px;
432   right: 0px;
433 }
434
435 .sidebar_title {
436   margin: 0px;
437   padding: 3px 6px;
438   height: 29px;
439   font-size: 14px;
440   line-height: 15px;
441   border-bottom: 1px solid black;
442   background: #bbb;
443 }
444
445 /* Rules for the map key which appears in the popout sidebar */
446
447 #mapkey h3 {
448     font-size: 110%;
449     font-weight: normal;
450     text-align: center;
451 }
452
453 #mapkey .mapkey-table {
454     padding-left: 5px;
455     padding-right: 5px;
456 }
457
458 #mapkey .mapkey-table-key {
459 }
460
461 #mapkey .mapkey-table-value {
462     font-size: 90%;
463 }
464
465 /* Rules for search results which appear in the popout sidebar */
466
467 .search_searching {
468   margin-top: 5px;
469   margin-bottom: 5px;
470 }
471
472 .search_results_heading {
473   margin: 0px;
474   padding: 3px 6px;
475   border: 1px solid #ccc;
476   background: #ddd;
477 }
478
479 .search_results_entry {
480   margin: 0px;
481   padding: 2px 6px;
482 }
483
484 .search_results_error {
485   margin: 0px;
486   padding: 2px 6px 0px;
487   color: #f00;
488 }
489
490 /* Rules for data browser information which appears in the popout sidebar */
491
492 .browse_heading {
493   margin: 0px;
494   padding: 3px 6px;
495   border: 1px solid #ccc;
496   background: #ddd;
497 }
498
499 .browse_details {
500   margin: 0px;
501   padding: 0px 6px;
502 }
503
504 /* Rules for export information which appears in the popout sidebar */
505
506 .export_heading {
507   margin: 0px;
508   padding: 3px 6px;
509   border: 1px solid #ccc;
510   background: #ddd;
511 }
512
513 .export_bounds {
514   width: 100%;
515   text-align: center;
516 }
517
518 .export_bound {
519   margin: 5px;
520 }
521
522 .export_details {
523   padding: 2px 6px;
524 }
525
526 #export_osm {
527   display: none;
528 }
529
530 #export_mapnik {
531   display: none;
532 }
533
534 #export_osmarender {
535   display: none;
536 }
537
538 .export_hint {
539   padding: 0px 12px;
540   font-style: italic;
541 }
542
543 .export_buttons {
544   width: 100%;
545   text-align: center;
546 }
547
548 /* Rules for the main content area */
549
550 #content {
551   padding: 0px;
552   margin: 0px;
553   position: absolute; 
554   right: 10px;
555   bottom: 10px;
556   line-height: 1.2em;
557   text-align: left;
558 }
559
560 #slim_container {
561   width: 100%;
562 }
563
564 #slim_container_content {
565   max-width: 50em;
566   background-color: #FFFFFF;
567   margin: 10px auto;
568   padding: 3px;
569   border-radius: 25px;
570   -moz-border-radius: 25px;
571   border: 1px solid #e6e6e6;
572 }
573
574 #slim_content {
575   margin: 10px;
576   margin-top: 90px;
577   max-width: 50em;
578 }
579
580 #slim_header {
581   margin: 10px;
582   position: absolute;
583   top: 0px;
584 }
585
586 #slim_header img {
587   vertical-align: middle;
588   margin-right: 5px;
589   margin-bottom: 5px;
590 }
591
592 /* Rules for the changeset list shown by the history tab etc */
593
594 #changeset_list, #keyvalue {
595   width: 100%;
596   font-size: small;
597   text-align: left;
598   border-collapse: collapse;
599   border-width: 0px;
600 }
601
602 #changeset_list .date {
603   white-space: nowrap;
604 }
605
606 #changeset_list .user {
607   white-space: nowrap;
608 }
609
610 #changeset_list .area {
611   white-space: nowrap;
612 }
613
614 #changeset_list.th {
615   font-weight: bold;
616 }
617
618 /* Rules for the data browser */
619
620 #browse_navigation {
621   float: right;
622   width: 250px;
623   text-align: center;
624   margin-left: 10px;
625 }
626
627 #browse_map {
628   float: right;
629   width: 250px;
630   text-align: right;
631   margin-left: 10px;
632 }
633
634 #browse_map #small_map {
635   width: 250px;
636   height: 300px;
637   border: solid 1px black;
638 }
639
640 /* Rules for the trace list shown by the traces tab etc */
641
642 #trace_list {
643   font-size: small;
644   text-align: left;
645   border-collapse: collapse;
646   border-width: 0px;
647 }
648
649 #trace_list .trace_summary {
650   font-size: 12px;
651   color: gray;
652 }
653
654 /* Rules for the user list */
655
656 #user_list {
657   width: 100%;
658   font-size: small;
659 }
660
661 #user_list tr {
662   vertical-align: middle;
663 }
664
665 #user_list p {
666   margin-top: 0px;
667   margin-bottom: 0px;
668 }
669
670 #user_list_actions {
671   float: right;
672   margin-top: 10px;
673 }
674
675 /* Rules for the login page */
676
677 #login_wrapper div {
678   margin: 5px;
679   padding: 15px;
680   border-radius: 15px;
681   -moz-border-radius: 15px;
682 }
683
684 #login_wrapper input[type=submit] {
685   float: right;
686 }
687
688 #login_login {
689   background-color: #f5f5ff;
690   border: 1px solid #f3f3ff;
691   border-radius: 15px;
692   -moz-border-radius: 15px;
693 }
694
695 #login_login h1 {
696   margin-top: 5px;
697 }
698
699 #login_signup form.button-to div {
700   margin: 0px;
701   padding: 0px;
702 }
703
704 /* Rules for the account confirmation page */
705
706 div#contributorTerms {
707   border: 1px solid black;
708   padding: 4px;
709   overflow: auto;
710   width: 80%;
711   height: 400px;
712 }
713
714 div#slim_content div#contributorTerms {
715   width: auto;
716 }
717
718 div#contributorTerms p#first {
719   margin-top: 0px;
720 }
721
722 div#contributorTerms p#last {
723   margin-bottom: 0px;
724 }
725
726 div#contributorTerms ol {
727   margin-bottom: 0px;
728 }
729
730 div#contributorTerms img {
731   display: block;
732   margin-left: auto;
733   margin-right: auto;
734   margin-top: 10%;
735 }
736
737 form#termsForm {
738   width: 80%;
739   margin-bottom: 3em;
740 }
741
742 div#slim_content form#termsForm {
743   width: auto;
744 }
745
746 form#termsForm div#buttons {
747   float: right;
748 }
749
750 form#termsForm input#agree {
751   margin-left: 50px;
752 }
753
754 /* Rules for the account settings page */
755
756 #accountForm td {
757   padding-bottom: 10px;
758 }
759
760 #accountImage td {
761   padding-bottom: 0px;
762 }
763
764 .nohome .location {
765   display: none;
766 }
767
768 #homerow .message {
769   display: none;
770 }
771
772 .nohome .message {
773   display: inline !important;
774 }
775
776 /* Rules for the user map */
777
778 .user_map .olControlPanZoomBar {
779   display: none;
780 }
781
782 .user_map .olControlPanZoom {
783   display: block;
784 }
785
786 /* Rules for user popups on maps */
787
788 .user_popup p {
789   padding-top: 3px;
790   padding-bottom: 3px;
791   margin-top: 0px;
792   margin-bottom: 0px;
793   margin-left: 55px;
794   margin-right: 2px;
795 }
796
797 /* Rules for message in/out box page */
798
799 #messages {
800   border: 1px solid #ccc;
801 }
802
803 .inbox-row-unread .inbox-subject {
804   font-weight: bold;
805 }
806
807 /* Rules for "flash" notice boxes shown at the top of the content area */
808
809 #error {
810   border: 1px solid red;
811   padding: 7px;
812   background-color: #fff0f0;
813   margin-bottom: 20px;
814   border-radius: 5px;
815   -moz-border-radius: 5px;
816 }
817
818 #warning {
819   border: 1px solid orange;
820   padding: 7px;
821   background-color: #fff6f0;
822   margin-bottom: 20px;
823   border-radius: 5px;
824   -moz-border-radius: 5px;
825 }
826
827 #notice {
828   border: 1px solid green;
829   padding: 7px;
830   background-color: #f0fff0;
831   margin-bottom: 20px;
832   border-radius: 5px;
833   -moz-border-radius: 5px;
834 }
835
836 /* Rules for highlighting fields with rails validation errors */
837
838 .fieldWithErrors {
839   padding: 2px;
840   background-color: red;
841   display: table;
842 }
843
844 /* Rules for rails validation error boxes */
845
846 #errorExplanation {
847   width: 400px;
848   border: 2px solid red;
849   padding: 7px;
850   padding-bottom: 12px;
851   margin-bottom: 20px;
852   background-color: #f0f0f0;
853 }
854
855 #errorExplanation h2 {
856   text-align: left;
857   font-weight: bold;
858   padding: 5px 5px 5px 15px;
859   font-size: 12px;
860   margin: -7px;
861   background-color: #c00;
862   color: #fff;
863 }
864
865 #errorExplanation p {
866   color: #333;
867   margin-bottom: 0px;
868   padding: 5px;
869 }
870
871 #errorExplanation ul li {
872   font-size: 12px;
873   list-style: square;
874 }
875
876 /* Rules for forms */
877
878 .fieldName {
879   text-align: right;
880   font-weight: bold;
881 }
882
883 .minorNote {
884   font-size: 0.8em;
885 }
886
887 input[type="text"], input[type="password"], textarea {
888   border: 1px solid black;
889 }
890
891 input[type="submit"] {
892   border: 1px solid black;
893 }
894
895 /* Rules for user images */
896
897 img.user_image {
898   max-width: 100px;
899   max-height: 100px;
900   border: 1px solid black;
901 }
902
903 img.user_thumbnail {
904   max-width: 50px;
905   max-height: 100px;
906   border: 1px solid black;
907 }
908
909 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
910
911 .nowrap {
912   white-space: nowrap;
913 }
914
915 /* Rules for geo microformats */
916
917 abbr.geo {
918   border-bottom: none;
919 }
920
921 /* Rules for RSS buttons */
922
923 .rsssmall {
924   position: relative;
925   top: 4px;
926 }
927
928 /* Rules for doing distinct colour of alternate table rows */
929
930 .table0 { 
931   background: #f6f6f6;
932 }
933
934 .table1 { 
935   background: #fff;
936 }