]> git.openstreetmap.org Git - rails.git/blob - public/stylesheets/common.css
Move more styling into CSS and make it support RTL layout
[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   position: absolute;
342   border: 1px solid black;
343   margin: 0px; 
344   padding: 0px;
345   top: 0px;
346   bottom: 0px;
347 }
348
349 .olControlAttribution {
350   display: none !important;
351 }
352
353 #permalink {
354   z-index: 10000;
355   position: absolute;
356   bottom: 15px;
357   font-size: smaller;
358 }
359
360 /* Rules for edit menu */
361
362 #editmenu {
363   display: none;
364   z-index: 10000;
365   position: absolute;
366   background-color: #ffffff;
367   border: 1px solid black;
368 }
369
370 #editmenu ul {
371   margin-top: 10px;
372   margin-bottom: 10px;
373   padding-left: 10px;
374   padding-right: 10px;
375 }
376
377 #editmenu li {
378   list-style-type: none;
379 }
380
381 /* Rules for attribution text under the main map shown on printouts */
382
383 #attribution {
384   display: none;
385 }
386
387 .attribution_notice {
388   text-align: center;
389 }
390
391 /* Rules for the popout map sidebar */
392
393 #sidebar {
394   display: none;
395   position: absolute;
396   border: 1px solid black;
397   margin: 0px;
398   padding: 0px;
399   width: 30%;
400   top: 0px;
401   bottom: 0px;
402 }
403
404 #sidebar #sidebar_content {
405   overflow: auto;
406   position: absolute;
407   font-size: 13px;
408   line-height: 14px;
409   top: 29px;
410   bottom: 0px;
411   left: 0px;
412   right: 0px;
413 }
414
415 #sidebar .sidebar_title {
416   margin: 0px;
417   padding: 3px 6px;
418   height: 29px;
419   font-size: 14px;
420   line-height: 15px;
421   border-bottom: 1px solid black;
422   background: #bbb;
423 }
424
425 /* Rules for the map key which appears in the popout sidebar */
426
427 #mapkey h3 {
428   font-size: 110%;
429   font-weight: normal;
430   text-align: center;
431 }
432
433 #mapkey .mapkey-table {
434   padding-left: 5px;
435   padding-right: 5px;
436 }
437
438 #mapkey .mapkey-table-key {
439 }
440
441 #mapkey .mapkey-table-value {
442   font-size: 90%;
443 }
444
445 /* Rules for search results which appear in the popout sidebar */
446
447 .search_searching {
448   margin-top: 5px;
449   margin-bottom: 5px;
450 }
451
452 .search_results_heading {
453   margin: 0px;
454   padding: 3px 6px;
455   border: 1px solid #ccc;
456   background: #ddd;
457 }
458
459 .search_results_entry {
460   margin: 0px;
461   padding: 2px 6px;
462 }
463
464 .search_results_error {
465   margin: 0px;
466   padding: 2px 6px 0px;
467   color: #f00;
468 }
469
470 /* Rules for data browser information which appears in the popout sidebar */
471
472 .browse_heading {
473   margin: 0px;
474   padding: 3px 6px;
475   border: 1px solid #ccc;
476   background: #ddd;
477 }
478
479 .browse_details {
480   margin: 0px;
481   padding: 0px 6px;
482 }
483
484 /* Rules for export information which appears in the popout sidebar */
485
486 .export_heading {
487   margin: 0px;
488   padding: 3px 6px;
489   border: 1px solid #ccc;
490   background: #ddd;
491 }
492
493 .export_bounds {
494   width: 100%;
495   text-align: center;
496 }
497
498 .export_bound {
499   margin: 5px;
500 }
501
502 .export_details {
503   padding: 2px 6px;
504 }
505
506 #export_osm {
507   display: none;
508 }
509
510 #export_mapnik {
511   display: none;
512 }
513
514 #export_osmarender {
515   display: none;
516 }
517
518 .export_hint {
519   padding: 0px 12px;
520   font-style: italic;
521 }
522
523 .export_buttons {
524   width: 100%;
525   text-align: center;
526 }
527
528 /* Rules for the main content area */
529
530 #content {
531   padding: 0px;
532   margin: 0px;
533   position: absolute; 
534   bottom: 10px;
535   line-height: 1.2em;
536 }
537
538 #slim_container {
539   width: 100%;
540 }
541
542 #slim_container_content {
543   max-width: 50em;
544   background-color: #FFFFFF;
545   margin: 10px auto;
546   padding: 3px;
547   border-radius: 25px;
548   -moz-border-radius: 25px;
549   border: 1px solid #e6e6e6;
550 }
551
552 #slim_content {
553   margin: 10px;
554   margin-top: 90px;
555   max-width: 50em;
556 }
557
558 #slim_header {
559   margin: 10px;
560   position: absolute;
561   top: 0px;
562 }
563
564 #slim_header img {
565   vertical-align: middle;
566   margin-bottom: 5px;
567 }
568
569 /* Rules for the changeset list shown by the history tab etc */
570
571 #changeset_list_container {
572   position: relative;
573 }
574
575 #changeset_list {
576   width: 50%;
577   font-size: small;
578   border-collapse: collapse;
579   border-width: 0px;
580   margin-top: 1px;
581   margin-bottom: 1px;
582 }
583
584 #changeset_list td {
585   vertical-align: top;
586   padding: 3px;
587 }
588
589 #changeset_list .date {
590   white-space: nowrap;
591 }
592
593 #changeset_list .user {
594   white-space: nowrap;
595 }
596
597 #changeset_list .area {
598   white-space: nowrap;
599 }
600
601 #changeset_list .selected {
602   background-color: rgb(255, 255, 160);
603   background-color: rgba(255, 255, 85, 0.5);
604 }
605
606 #changeset_list_map {
607   position: absolute;
608   top: 0px;
609   bottom: 0px;
610   width: 49%;
611   min-height: 400px;
612   border: solid 1px black;
613 }
614
615 /* Rules for the data browser */
616
617 #browse_navigation {
618   width: 250px;
619   text-align: center;
620 }
621
622 table.browse_details th {
623   white-space: nowrap;
624 }
625
626 #browse_map {
627   width: 250px;
628 }
629
630 #browse_map #small_map {
631   width: 250px;
632   height: 300px;
633   border: solid 1px black;
634 }
635
636 /* Rules for the trace list shown by the traces tab etc */
637
638 #trace_list {
639   font-size: small;
640   border-collapse: collapse;
641   border-width: 0px;
642 }
643
644 #trace_list .trace_summary {
645   font-size: 12px;
646   color: gray;
647 }
648
649 /* Rules for the user list */
650
651 #user_list {
652   width: 100%;
653   font-size: small;
654 }
655
656 #user_list tr {
657   vertical-align: middle;
658 }
659
660 #user_list p {
661   margin-top: 0px;
662   margin-bottom: 0px;
663 }
664
665 #user_list_actions {
666   margin-top: 10px;
667 }
668
669 /* Rules for the login page */
670
671 #login_wrapper div {
672   margin: 5px;
673   padding: 15px;
674   border-radius: 15px;
675   -moz-border-radius: 15px;
676 }
677
678 #login_login {
679   background-color: #f5f5ff;
680   border: 1px solid #f3f3ff;
681   border-radius: 15px;
682   -moz-border-radius: 15px;
683 }
684
685 #login_login h1 {
686   margin-top: 5px;
687 }
688
689 table#login_openid_buttons {
690   padding-bottom: 10px;
691 }
692
693 #login_openid_buttons td {
694   padding-left: 10px;
695   padding-right: 10px;
696   padding-top: 5px;
697   padding-bottom: 5px;
698 }
699
700 #login_openid_buttons img {
701   border: 0;
702 }
703
704 #login_signup form.button-to div {
705   margin: 0px;
706   padding: 0px;
707 }
708
709 /* Rules for the account confirmation page */
710
711 div#contributorTerms {
712   border: 1px solid black;
713   padding: 4px;
714   overflow: auto;
715   width: 95%;
716   height: 400px;
717 }
718
719 div#slim_content div#contributorTerms {
720   width: auto;
721 }
722
723 div#contributorTerms p#first {
724   margin-top: 0px;
725 }
726
727 div#contributorTerms p#last {
728   margin-bottom: 0px;
729 }
730
731 div#contributorTerms ol {
732   margin-bottom: 0px;
733 }
734
735 div#contributorTerms img {
736   display: block;
737   margin-left: auto;
738   margin-right: auto;
739   margin-top: 10%;
740 }
741
742 form#termsForm {
743   width: 95%;
744   margin-bottom: 3em;
745 }
746
747 div#slim_content form#termsForm {
748   width: auto;
749 }
750
751 p#contributorGuidance {
752   background-color: #f5f5ff;
753   border: 1px solid #f3f3ff;
754   border-radius: 15px;
755   -moz-border-radius: 15px;
756   padding: 10px;
757 }
758
759 /* Rules for the account settings page */
760
761 #accountForm td {
762   padding-bottom: 10px;
763 }
764
765 #accountForm .user_map {
766   position: relative;
767   width: 500px;
768   height: 400px; 
769 }
770
771 #accountImage td {
772   padding-bottom: 0px;
773 }
774
775 .nohome .location {
776   display: none;
777 }
778
779 #homerow .message {
780   display: none;
781 }
782
783 .nohome .message {
784   display: inline !important;
785 }
786
787 #accountForm input[type=submit] {
788   margin-top: 15px;
789 }
790
791 /* Rules for the user view */
792
793 #user_details .user_map {
794   position: relative;
795   width: 400px;
796   height: 400px; 
797 }
798
799 /* Rules for the user map */
800
801 .user_map .olControlPanZoomBar {
802   display: none;
803 }
804
805 .user_map .olControlPanZoom {
806   display: block;
807 }
808
809 /* Rules for user popups on maps */
810
811 .user_popup p {
812   padding-top: 3px;
813   padding-bottom: 3px;
814   margin-top: 0px;
815   margin-bottom: 0px;
816   margin-left: 55px;
817   margin-right: 2px;
818 }
819
820 .user_popup img.user_thumbnail {
821   float: left;
822 }
823
824 /* Rules for message in/out box page */
825
826 #messages {
827   border: 1px solid #ccc;
828 }
829
830 .inbox-row-unread .inbox-subject {
831   font-weight: bold;
832 }
833
834 /* Rules for "flash" notice boxes shown at the top of the content area */
835
836 #error {
837   border: 1px solid red;
838   padding: 7px;
839   background-color: #fff0f0;
840   margin-bottom: 20px;
841   border-radius: 5px;
842   -moz-border-radius: 5px;
843 }
844
845 #warning {
846   border: 1px solid orange;
847   padding: 7px;
848   background-color: #fff6f0;
849   margin-bottom: 20px;
850   border-radius: 5px;
851   -moz-border-radius: 5px;
852 }
853
854 #notice {
855   border: 1px solid green;
856   padding: 7px;
857   background-color: #f0fff0;
858   margin-bottom: 20px;
859   border-radius: 5px;
860   -moz-border-radius: 5px;
861 }
862
863 /* Rules for highlighting fields with rails validation errors */
864
865 .fieldWithErrors {
866   padding: 2px;
867   background-color: red;
868   display: table;
869 }
870
871 /* Rules for rails validation error boxes */
872
873 #errorExplanation {
874   width: 400px;
875   border: 2px solid red;
876   padding: 7px;
877   padding-bottom: 12px;
878   margin-bottom: 20px;
879   background-color: #f0f0f0;
880 }
881
882 #errorExplanation h2 {
883   font-weight: bold;
884   font-size: 12px;
885   margin: -7px;
886   background-color: #c00;
887   color: #fff;
888 }
889
890 #errorExplanation p {
891   color: #333;
892   margin-bottom: 0px;
893   padding: 5px;
894 }
895
896 #errorExplanation ul li {
897   font-size: 12px;
898   list-style: square;
899 }
900
901 /* Rules for forms */
902
903 .fieldName {
904   vertical-align: top;
905   font-weight: bold;
906 }
907
908 .minorNote {
909   font-size: 0.8em;
910 }
911
912 input[type="text"], input[type="password"], textarea {
913   border: 1px solid black;
914 }
915
916 input[type="submit"] {
917   border: 1px solid black;
918 }
919
920 /* Rules for user images */
921
922 img.user_image {
923   max-width: 100px;
924   max-height: 100px;
925   border: 1px solid black;
926 }
927
928 img.user_thumbnail {
929   max-width: 50px;
930   max-height: 100px;
931   border: 1px solid black;
932 }
933
934 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
935
936 .nowrap {
937   white-space: nowrap;
938 }
939
940 /* Rules for geo microformats */
941
942 abbr.geo {
943   border-bottom: none;
944 }
945
946 /* Rules for RSS buttons */
947
948 .rsssmall {
949   position: relative;
950   top: 4px;
951 }
952
953 /* Rules for doing distinct colour of alternate table rows */
954
955 .table0 { 
956   background: #f6f6f6;
957 }
958
959 .table1 { 
960   background: #fff;
961 }
962
963 /* Rules for OpenID logo */
964
965 .openid_logo {
966   vertical-align: text-bottom;
967   border: 0;
968 }