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