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