]> git.openstreetmap.org Git - rails.git/blob - public/stylesheets/common.css
Remove tags from deleted nodes
[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_container {
595   position: relative;
596 }
597
598 #changeset_list {
599   width: 50%;
600   font-size: small;
601   text-align: left;
602   border-collapse: collapse;
603   border-width: 0px;
604   margin-top: 1px;
605   margin-bottom: 1px;
606 }
607
608 #changeset_list td {
609   vertical-align: top;
610   padding: 3px;
611 }
612
613 #changeset_list .date {
614   white-space: nowrap;
615 }
616
617 #changeset_list .user {
618   white-space: nowrap;
619 }
620
621 #changeset_list .area {
622   white-space: nowrap;
623 }
624
625 #changeset_list .selected {
626   background-color: rgb(255, 255, 160);
627   background-color: rgba(255, 255, 85, 0.5);
628 }
629
630 #changeset_list_map {
631   float: right;
632   position: absolute;
633   top: 0px;
634   bottom: 0px;
635   right: 0px;
636   width: 49%;
637   border: solid 1px black;
638 }
639
640 /* Rules for the data browser */
641
642 #browse_navigation {
643   float: right;
644   width: 250px;
645   text-align: center;
646   margin-left: 10px;
647 }
648
649 table.browse_details th {
650   white-space: nowrap;
651 }
652
653 #browse_map {
654   float: right;
655   width: 250px;
656   text-align: right;
657   margin-left: 10px;
658 }
659
660 #browse_map #small_map {
661   width: 250px;
662   height: 300px;
663   border: solid 1px black;
664 }
665
666 /* Rules for the trace list shown by the traces tab etc */
667
668 #trace_list {
669   font-size: small;
670   text-align: left;
671   border-collapse: collapse;
672   border-width: 0px;
673 }
674
675 #trace_list .trace_summary {
676   font-size: 12px;
677   color: gray;
678 }
679
680 /* Rules for the user list */
681
682 #user_list {
683   width: 100%;
684   font-size: small;
685 }
686
687 #user_list tr {
688   vertical-align: middle;
689 }
690
691 #user_list p {
692   margin-top: 0px;
693   margin-bottom: 0px;
694 }
695
696 #user_list_actions {
697   float: right;
698   margin-top: 10px;
699 }
700
701 /* Rules for the login page */
702
703 #login_wrapper div {
704   margin: 5px;
705   padding: 15px;
706   border-radius: 15px;
707   -moz-border-radius: 15px;
708 }
709
710 #login_wrapper input[type=submit] {
711   float: right;
712 }
713
714 #login_login {
715   background-color: #f5f5ff;
716   border: 1px solid #f3f3ff;
717   border-radius: 15px;
718   -moz-border-radius: 15px;
719 }
720
721 #login_login h1 {
722   margin-top: 5px;
723 }
724
725 #login_signup form.button-to div {
726   margin: 0px;
727   padding: 0px;
728 }
729
730 /* Rules for the account confirmation page */
731
732 div#contributorTerms {
733   border: 1px solid black;
734   padding: 4px;
735   overflow: auto;
736   width: 80%;
737   height: 400px;
738 }
739
740 div#slim_content div#contributorTerms {
741   width: auto;
742 }
743
744 div#contributorTerms p#first {
745   margin-top: 0px;
746 }
747
748 div#contributorTerms p#last {
749   margin-bottom: 0px;
750 }
751
752 div#contributorTerms ol {
753   margin-bottom: 0px;
754 }
755
756 div#contributorTerms img {
757   display: block;
758   margin-left: auto;
759   margin-right: auto;
760   margin-top: 10%;
761 }
762
763 form#termsForm {
764   width: 80%;
765   margin-bottom: 3em;
766 }
767
768 div#slim_content form#termsForm {
769   width: auto;
770 }
771
772 form#termsForm div#buttons {
773   float: right;
774 }
775
776 form#termsForm input#agree {
777   margin-left: 50px;
778 }
779
780 /* Rules for the account settings page */
781
782 #accountForm td {
783   padding-bottom: 10px;
784 }
785
786 #accountImage td {
787   padding-bottom: 0px;
788 }
789
790 .nohome .location {
791   display: none;
792 }
793
794 #homerow .message {
795   display: none;
796 }
797
798 .nohome .message {
799   display: inline !important;
800 }
801
802 /* Rules for the user map */
803
804 .user_map .olControlPanZoomBar {
805   display: none;
806 }
807
808 .user_map .olControlPanZoom {
809   display: block;
810 }
811
812 /* Rules for user popups on maps */
813
814 .user_popup p {
815   padding-top: 3px;
816   padding-bottom: 3px;
817   margin-top: 0px;
818   margin-bottom: 0px;
819   margin-left: 55px;
820   margin-right: 2px;
821 }
822
823 /* Rules for message in/out box page */
824
825 #messages {
826   border: 1px solid #ccc;
827 }
828
829 .inbox-row-unread .inbox-subject {
830   font-weight: bold;
831 }
832
833 /* Rules for "flash" notice boxes shown at the top of the content area */
834
835 #error {
836   border: 1px solid red;
837   padding: 7px;
838   background-color: #fff0f0;
839   margin-bottom: 20px;
840   border-radius: 5px;
841   -moz-border-radius: 5px;
842 }
843
844 #warning {
845   border: 1px solid orange;
846   padding: 7px;
847   background-color: #fff6f0;
848   margin-bottom: 20px;
849   border-radius: 5px;
850   -moz-border-radius: 5px;
851 }
852
853 #notice {
854   border: 1px solid green;
855   padding: 7px;
856   background-color: #f0fff0;
857   margin-bottom: 20px;
858   border-radius: 5px;
859   -moz-border-radius: 5px;
860 }
861
862 /* Rules for highlighting fields with rails validation errors */
863
864 .fieldWithErrors {
865   padding: 2px;
866   background-color: red;
867   display: table;
868 }
869
870 /* Rules for rails validation error boxes */
871
872 #errorExplanation {
873   width: 400px;
874   border: 2px solid red;
875   padding: 7px;
876   padding-bottom: 12px;
877   margin-bottom: 20px;
878   background-color: #f0f0f0;
879 }
880
881 #errorExplanation h2 {
882   text-align: left;
883   font-weight: bold;
884   padding: 5px 5px 5px 15px;
885   font-size: 12px;
886   margin: -7px;
887   background-color: #c00;
888   color: #fff;
889 }
890
891 #errorExplanation p {
892   color: #333;
893   margin-bottom: 0px;
894   padding: 5px;
895 }
896
897 #errorExplanation ul li {
898   font-size: 12px;
899   list-style: square;
900 }
901
902 /* Rules for forms */
903
904 .fieldName {
905   text-align: right;
906   font-weight: bold;
907 }
908
909 .minorNote {
910   font-size: 0.8em;
911 }
912
913 input[type="text"], input[type="password"], textarea {
914   border: 1px solid black;
915 }
916
917 input[type="submit"] {
918   border: 1px solid black;
919 }
920
921 /* Rules for user images */
922
923 img.user_image {
924   max-width: 100px;
925   max-height: 100px;
926   border: 1px solid black;
927 }
928
929 img.user_thumbnail {
930   max-width: 50px;
931   max-height: 100px;
932   border: 1px solid black;
933 }
934
935 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
936
937 .nowrap {
938   white-space: nowrap;
939 }
940
941 /* Rules for geo microformats */
942
943 abbr.geo {
944   border-bottom: none;
945 }
946
947 /* Rules for RSS buttons */
948
949 .rsssmall {
950   position: relative;
951   top: 4px;
952 }
953
954 /* Rules for doing distinct colour of alternate table rows */
955
956 .table0 { 
957   background: #f6f6f6;
958 }
959
960 .table1 { 
961   background: #fff;
962 }