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