]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Site cleanup
[rails.git] / app / assets / stylesheets / common.css.scss
1 /* Styles common to large and small screens */
2
3 /* Minimal CSS reset */
4
5 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p {
6   margin: 0;
7   padding: 0;
8   border: 0;
9   font-size:100%;
10 }
11
12 fieldset,img { border: 0; }
13
14 legend { color: #000; }
15
16 sup { vertical-align: text-top; }
17
18 sub { vertical-align: text-bottom; }
19
20 table {
21   border-collapse: collapse;
22   border-spacing: 0;
23 }
24
25 li { list-style: none; }
26
27 input,
28 select,
29 textarea,
30 body { font: 14px/20px "Helvetica Neue",Arial,sans-serif; }
31
32 abbr, acronym {
33   border-bottom: .1em dotted;
34   cursor: help;
35 }
36
37 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
38
39 .clearfix:before,
40 .clearfix:after {
41     content: " ";
42     display: table;
43 }
44
45 .clearfix:after {
46     clear: both;
47 }
48
49 /* Default rules for the body of every page */
50
51 body {
52   font-family: 'Helvetica Neue',Arial,sans-serif;
53   font-size: 14px;
54   line-height: 1.6666;
55   color: #222;
56   background-color: #fff;
57   margin: 0px;
58   padding: 0px;
59   text-align: left;
60 }
61
62 body.slim {
63   background-color: #f0f0f0;
64 }
65
66 h1, h2, h3 {
67   margin-top: 10px;
68   margin-bottom: 20px;
69   font-weight: bold;
70   line-height: 1.2;
71 }
72
73 h1, h2 {
74   font-size: 32px;
75 }
76
77 #content h2 {
78   font-size: 24px;
79 }
80
81 h3 {
82   font-size: 21px;
83   margin-top: 10px;
84   margin-bottom: 20px;
85 }
86
87 h4,h5,h6 {
88   font-size: 14px;
89   margin-top: 10px;
90   margin-bottom: 20px;
91   font-weight: bold;
92   line-height: 1.5;
93 }
94
95 p, ul {
96   margin-bottom: 20px;
97 }
98
99 p > img {
100   width: auto;
101   max-width: 100%;
102 }
103
104 small, aside {
105   font-size: 12px;
106 }
107
108 h1:first-child,
109 h2:first-child,
110 h3:first-child,
111 h4:first-child,
112 h5:first-child,
113 h6:first-child {
114   margin-top: 0;
115 }
116
117 .column-1 {
118   width: 50%;
119   margin-bottom: 20px;
120 }
121
122 .small_icon {
123   vertical-align: middle;
124   margin-right: 5px;
125 }
126
127 /* Rules for links */
128
129 a {
130   color: #00f;
131   text-decoration: none;
132   &:hover {
133     text-decoration: underline;
134   }
135 }
136
137 /* Rules for horizontal lines */
138
139 hr {
140   border: none;
141   background-color: #ccc;
142   color: #ccc;
143   height: 1px;
144 }
145
146 /* General styles for tables */
147
148 table {
149   width: 100%;
150   margin-bottom: 20px;
151   th, td {
152     text-align: left;
153     padding: 5px;
154     line-height: 20px;
155   }
156   th {
157     font-weight: bold;
158     vertical-align: top;
159   }
160   td {
161     vertical-align: middle;
162   }
163 }
164
165 /* Rules for the whole left sidebar, including the logo */
166
167 #left {
168   position: absolute;
169   height: 100%;
170   width: 185px;
171   font-size: 11px;
172   line-height: 12px;
173   z-index: 100;
174   border-right: 1px solid #ccc;
175 }
176
177 /* Rules for the OpenStreetMap logo in the top left corner */
178
179 #logo {
180   display: block;
181   width: 170px;
182   min-width: 170px;
183   padding: 20px 5px;
184   text-align: center;
185   margin: auto;
186 }
187
188 #logo h1 {
189   font-size: 18px;
190   line-height: 20px;
191   text-align: center;
192   margin: 0px;
193 }
194
195 #logo h2 {
196   font-size: 10px;
197   line-height: 15px;
198   margin: 0px;
199 }
200
201 /* Rules for the site name */
202
203 #small-title {
204   display: none;
205 }
206
207 /* Rules for the introductory text displayed in the left sidebar to new users */
208
209 .sidebar-copy {
210   padding: 5px 10px;
211 }
212
213 .sidebar-copy p {
214   margin: 5px 0;
215 }
216
217 .sidebar-copy.intro {
218   margin-top: -1px;
219   border-top: 1px solid #ccc;
220 }
221
222 /*
223  * Rules for alert boxes shown in the left sidebar when important
224  * information needs to be conveyed such as when the site is
225  * undergoing maintenance.
226  */
227
228 .sidebar-alert {
229   padding: 5px;
230   border-top: 1px solid #ccc;
231   margin-top: 4px;
232   margin-bottom: -4px;
233   background: #e00;
234   font-size: 12px;
235   font-weight: bold;
236   p {
237     margin: 5px;
238   }
239 }
240
241 /*
242  * Rules for notice boxes shown in the left sidebar when important, but
243  * non-critical information needs to be conveyed such as notices about
244  * donation drives.
245  */
246
247 .sidebar-notice {
248   padding: 5px;
249   border-top: 1px solid #ccc;
250   margin-top: 4px;
251   margin-bottom: -4px;
252   background: #ea0;
253   font-size: 12px;
254   p {
255     margin: 5px;
256   }
257 }
258
259 /* Rules for the menu displayed in the left sidebar */
260
261 .left_menu {
262   left: 0px;
263   margin: 0;
264   padding: 5px 10px;
265   line-height: 15px;
266   font-size: 12px;
267   list-style-type: none;
268   border-bottom: 1px solid #ccc;
269   border-top: 1px solid #ccc;
270 }
271
272 .left_menu img {
273   margin: 10px 0px;
274 }
275
276 .left_menu ul {
277   padding: 0;
278   margin: 0;
279 }
280
281 .left_menu li {
282   list-style-type: none;
283   padding: 0;
284   margin: 0;
285 }
286
287 .left_menu h4 {
288   padding: 5px 0 5px 0;
289   font-size: 12px;
290   margin: 0;
291 }
292
293 .left_menu li:last-child h4 {
294   padding-top: 0;
295 }
296
297 /* Rules for SOTM advert */
298
299 #sotm {
300   width: 165px;
301   margin: 10px;
302   padding: 0px;
303   border: 0px;
304   background: #fff;
305 }
306
307 #sotm img {
308   width: 165px;
309 }
310
311 /*
312  * Rules for "optional boxes" which appear in the left sidebar on
313  * certain pages. Current users are the seach box on the main page
314  * and the tag cloud on the traces pages.
315  */
316
317 .optionalbox {
318   left: 0px;
319   padding: 5px 10px;
320   margin: 5px 0;
321   text-align: left;
322 }
323
324 /* Rules for the search box */
325
326 #search_field form {
327   width: 165px;
328 }
329
330 #search_field {
331   position: relative;
332 }
333
334 #search_field input[type="text"] {
335   width: 165px;
336   padding: 3px;
337   font-size: 14px;
338   line-height: 15px;
339   height: 25px;
340   padding: 2px 0px 2px 5px;
341   box-shadow: inset #DDD 0px 1px 3px;
342   box-sizing: border-box;
343   -webkit-box-sizing: border-box;
344   -moz-box-sizing: border-box;
345   -ms-box-sizing: border-box;
346 }
347
348 #search_field input[type="text"]:focus {
349   outline: none;
350   border: 1px solid #000;
351 }
352
353 #search_field input[type="submit"] {
354   border: 0;
355   margin: 0;
356   padding: 0;
357   width: 15px;
358   height: 15px;
359   text-indent: -1000px;
360   overflow: hidden;
361   background: image-url("sprite.png") 0 0 no-repeat;
362   position: absolute;
363   top: 5px;
364   right: 5px;
365   cursor: pointer;
366 }
367
368 .search_help {
369   margin: 5px 0 0 0;
370 }
371
372 /* Utility for de-emphasizing content */
373
374 .deemphasize {
375   color: #999;
376   a {
377     color: #7092FF;
378   }
379 }
380
381 /* Rules for donation request box */
382
383 .donate {
384   display: block;
385   position: relative;
386   width: 153px;
387   padding: 5px;
388   border: 1px solid #AED1A0;
389   background: #cbeea7;
390   line-height: 20px;
391   text-align: center;
392   font-size: 14px;
393   border-radius: 2px;
394   -moz-border-radius: 2px;
395   color: #222;
396   margin: 10px 10px 0px 10px;
397 }
398
399 .donate:hover {
400   background: #9ed485;
401   text-decoration: none;
402 }
403
404 .donate p {
405   text-indent: 20px;
406   margin: 0;
407 }
408
409 .donate .donate-icon {
410   width: 15px;
411   height: 15px;
412   border: 0px;
413   background: image-url("sprite.png") 0 -30px no-repeat;
414   position: absolute;
415   top: 8px;
416   left: 17px;
417 }
418
419 /* Rules for Creative Commons logo button */
420
421 #cclogo {
422   margin: 10px 0;
423   float: right;
424 }
425
426 /* Rules for tabbed navigation bar */
427
428 #top-bar {
429   position: relative;
430   margin-left: 185px;
431   height: 29px;
432   border-bottom: 1px solid #ccc;
433   background: white;
434   z-index: 100;
435 }
436
437 .site-edit #top-bar,
438 .site-index #top-bar,
439 .site-export #top-bar {
440   position: fixed;
441   left: 0;
442   right: 0;
443 }
444
445 #tabnav {
446   height: 29px;
447   margin-bottom:0;
448   overflow: hidden;
449 }
450
451 #tabnav li {
452   display: inline;
453 }
454
455 #tabnav a, #tabnav a:link, #tabnav a:visited {
456   float: left;
457   background: #fff;
458   font-weight: bold;
459   padding: 3px 10px;
460   text-decoration: none;
461   color: #333;
462   float: left;
463   margin-right: 1px;
464   -webkit-transition: color 200ms ease-in;
465      -moz-transition: color 200ms ease-in;
466        -o-transition: color 200ms ease-in;
467           transition: color 200ms ease-in;
468 }
469
470 .site-index #tabnav a#viewanchor,
471 .site-edit #tabnav a#editanchor,
472 .changeset_list #tabnav a#historyanchor,
473 .site-export #tabnav a#exportanchor {
474   border-bottom: 1px solid #aaa;
475   background: #9ed485;
476   color: #000;
477 }
478
479 #tabnav a:link:hover, #tabnav a:visited:hover {
480   text-decoration: underline;
481 }
482
483 #tabnav a:link.disabled,
484 #tabnav a:visited.disabled,
485 #tabnav a:link:hover.disabled,
486 #tabnav a:visited:hover.disabled {
487   color: #ccc;
488   cursor: default;
489 }
490
491 #tabnav a:link.disabled:hover,
492 #tabnav a:visited.disabled:hover,
493 #tabnav a:link:hover.disabled:hover,
494 #tabnav a:visited:hover.disabled:hover {
495   text-decoration: none;
496 }
497
498 /* Utility for styling notification numbers */
499
500 .count-number {
501   padding: 2px 5px;
502   border-radius: 3px;
503   background: #d7d7ff;
504   margin: 0 2px;
505   font-size: 11px;
506   color: #333;
507 }
508
509 /* Rules for greeting bar in the top right corner */
510
511 #greeting {
512   float: right;
513   padding-top: 3px;
514 }
515
516 .greeting-bar-unread {
517   font-weight: bold;
518 }
519
520 /* Rules for the message shown in place of the map when javascript is disabled */
521
522 #noscript {
523   z-index: 20000000;
524   position: absolute;
525   top: 15px;
526   left: 15px;
527 }
528
529 /* Rules for Leaflet maps */
530
531 #permalink {
532   z-index: 10000;
533   position: absolute;
534   bottom: 0px;
535   right: 0px;
536   padding: 5px;
537   background:#fff;
538 }
539
540 .site-index .leaflet-top,
541 .site-export .leaflet-top {
542   top: 10px !important;
543   .leaflet-control {
544     margin-top: 0px !important;
545   }
546 }
547
548 .site-index #map .olControlScaleLine,
549 .site-export #map .olControlScaleLine {
550   left: 10px !important;
551 }
552
553 /* Rules for edit menu */
554
555 .menuicon {
556   padding: 0 5px;
557   font-weight: normal;
558   display: inline-block;
559   &:hover {
560     text-decoration: none !important;
561   }
562 }
563
564 .menu {
565   display: none;
566   z-index: 10000;
567   position: absolute;
568   background-color: #ffffff;
569   border: 1px solid #cccccc;
570   border-top: 0px;
571 }
572
573 .menu ul {
574   margin: 0px;
575 }
576
577 .menu li {
578   padding: 2px 5px;
579   border-top: 1px solid #eee;
580   white-space: nowrap;
581 }
582
583 /* Rules for attribution text under the main map shown on printouts */
584
585 #attribution {
586   display: none;
587 }
588
589 .attribution_license,
590 .attribution_project {
591   text-align: left;
592 }
593
594 .attribution_notice {
595   text-align: center;
596 }
597
598 /* Rules for the popout map sidebar */
599
600 #sidebar {
601   display: none;
602   position: absolute;
603   overflow: auto;
604   top: 0px;
605   bottom: 0px;
606   left: 0px;
607   border-right: 1px solid #ccc;
608   width: 33.3333%;
609   .sidebar_heading {
610     position: relative;
611     padding: 10px 20px;
612     z-index: 9999;
613     background: #F4F4FF;
614     border-bottom: 1px solid #ccc;
615   }
616   h4 {
617     margin: 0;
618   }
619   ul {
620     margin-bottom: 0;
621     li {
622       margin-bottom: 5px;
623       &:last-child {
624         margin-bottom: 0;
625       }
626     }
627   }
628 }
629
630 #sidebar_close {
631   position: absolute;
632   height: 20px;
633   top: 0px;
634   bottom: 0;
635   right: 20px;
636   margin: auto;
637 }
638
639 #sidebar_content {
640   position: relative;
641   bottom: 0;
642   width: 100%;
643   h4 {
644     padding: 0 20px 10px 20px;
645     margin-top: 10px;
646     margin-bottom: 0;
647     border-bottom: 1px solid #ddd;
648   }
649 }
650
651 /* Rules for the map key which appears in the popout sidebar */
652
653 #mapkey {
654   padding: 20px;
655 }
656
657 #mapkey .mapkey-table-key img {
658   display: block;
659   margin-left: auto;
660   margin-right: auto;
661 }
662
663 #mapkey td {
664   padding: 0 5px 5px 5px;
665 }
666
667 /* Rules for search results which appear in the popout sidebar */
668
669 .search_searching {
670   margin-top: 5px;
671   margin-bottom: 5px;
672 }
673
674 .search_results_entry {
675   margin-bottom: 0 ;
676 }
677
678 .search_results_entry .search_searching {
679   text-align: center;
680   margin: 20px auto;
681   width: 20px;
682   display: block;
683 }
684
685 ul.results-list li { border-bottom: 1px solid #ccc; }
686
687 .search_results_error {
688   color: #f00;
689 }
690
691 /* Rules for data browser information which appears in the popout sidebar */
692
693 #browse_content {
694   position: relative;
695   .browse_show_list.button {
696     position: absolute;
697     left: 20px;
698     right: 20px;
699     bottom: -40px;
700     margin-bottom: 0;
701   }
702   a.more-details {
703     position: absolute;
704     top: 0;
705     right: 20px;
706   }
707   ul li {
708     margin-bottom: 0;
709   }
710 }
711
712 .browse_details {
713   position: relative;
714 }
715
716 .browse_status {
717   display: none;
718 }
719
720 /* Rules for export information which appears in the popout sidebar */
721
722 .export_bounds {
723   text-align: center;
724 }
725
726 .export_area_inputs {
727   margin-bottom: 10px;
728 }
729
730 .export_bound {
731   margin: 5px;
732 }
733
734 .export_details input[type="text"]#export_html_text {
735   width: 100%;
736 }
737
738 #sidebar #marker_inputs li:last-child {
739   margin-bottom: 10px;
740 }
741
742 #export_osm,
743 #export_mapnik,
744 #export_osmarender {
745   display: none;
746 }
747
748 .export_buttons {
749   width: 100%;
750   text-align: center;
751 }
752
753 /* Rules for the main content area */
754
755 #content {
756   padding: 20px;
757   position: relative;
758 }
759
760 .site-edit #content,
761 .site-index #content,
762 .site-export #content {
763   position: fixed;
764   padding: 0;
765   top: 30px; bottom: 0;
766   left: 185px; right: 0;
767   border-left: 1px solid #ccc;
768 }
769
770 .wrapper {
771   margin-left: 185px;
772   border-left: 1px solid #ccc;
773   text-align: left;
774 }
775
776 .site-edit #content {
777   top: 30px;
778 }
779
780 #slim_container {
781   width: 100%;
782 }
783
784 #slim_container_content {
785   max-width: 50em;
786   background-color: #FFFFFF;
787   margin: 10px auto;
788   padding: 3px;
789   border-radius: 25px;
790   -moz-border-radius: 25px;
791   border: 1px solid #e6e6e6;
792 }
793
794 #slim_content {
795   margin: 10px;
796   margin-top: 90px;
797   max-width: 50em;
798 }
799
800 #slim_header {
801   margin: 10px;
802   position: absolute;
803   top: 0px;
804   margin-right: 5px;
805 }
806
807 #slim_header img {
808   vertical-align: middle;
809   margin-bottom: 5px;
810   margin-right: 5px;
811 }
812
813 .content-heading {
814   position: relative;
815   padding: 20px;
816   background: #F4F4FF;
817   h1, h2 {
818     margin-bottom: 10px;
819     line-height: 100%;
820     &:last-child {
821       margin-bottom: 0;
822     }
823   }
824   p {
825     margin-top: 10px;
826     margin-bottom: 0px;
827   }
828 }
829
830 /* Rules for small maps in content areas */
831
832 .content_map {
833   position: relative;
834   width: 45%;
835   height: 398px;
836   border: 1px solid #ccc;
837   margin-bottom: 20px;
838   float: right;
839 }
840
841 .content_map #small_map {
842   height: 100%;
843   width: 100%;
844   margin-bottom: 20px;
845 }
846
847 /* Rules for the home page */
848
849 .site-export #map,
850 .site-index #map {
851   position: absolute;
852   top: 0px;
853   bottom: 0px;
854   left: 0px;
855   right: 0px;
856 }
857
858 /* Rules for the edit page */
859
860 .site-edit #map {
861   position: absolute;
862   top: 0px;
863   bottom: 0px;
864   left: 0px;
865   right: 0px;
866   overflow: hidden;
867 }
868
869 /* Rules for the changeset list shown by the history tab etc */
870
871 #changeset_list {
872   width: 100%;
873   ul {
874     padding: 10px 0;
875     margin-bottom: 0px;
876     border-top: 1px solid #ccc;
877     &:last-child {
878       border-bottom: 1px solid #ccc;
879     }
880   }
881   .selected {
882     background-color: rgb(255, 255, 160);
883   }
884   .date,
885   .user {
886     border-left: 1px solid #ccc;
887     padding-left: 5px;
888     margin-right: 5px;
889   }
890 }
891
892 #changeset_list_map {
893   position: absolute;
894   bottom: 20px;
895   top: 20px;
896   right: 20px;
897   width: 45%;
898   min-height: 398px;
899   max-height: 598px;
900   border: 1px solid #ccc;
901 }
902
903 /* Rules for the data browser */
904
905 .browse-section {
906   border-top: 1px solid #ccc;
907   margin-top: 10px;
908   padding-top: 10px;
909   &:first-child {
910     margin-top: 0;
911   }
912   h4, p {
913     margin-bottom: 5px;
914   }
915   p, ul, .bbox {
916     margin-left: 33.3333%;
917   }
918   h4 {
919     width: 33.3333%;
920     float: left;
921   }
922 }
923
924 .bbox {
925   div {
926     width: 33.3333%;
927     text-align: center;
928     padding: 5px 0;
929     overflow: hidden;
930     text-overflow: ellipsis;
931     float: left;
932   }
933   .max_lat,
934   .min_lat {
935     margin-left: auto;
936     margin-right: auto;
937     width: 100%;
938   }
939 }
940
941 #browse_map .geolink {
942   display: none;
943 }
944
945 #browse_map .secondary-actions {
946   margin-bottom: 10px;
947 }
948
949 /* Rules for the trace list shown by the traces tab etc */
950
951 #trace_list {
952   font-size: 10px;
953   border-width: 0px;
954   text-align: right;
955 }
956
957 #trace_list .trace_summary {
958   font-size: 12px;
959   color: gray;
960 }
961
962 #trace_list .trace_pending {
963   color: red;
964 }
965
966 #trace_list .trace_public {
967   color: green;
968 }
969
970 #trace_list .trace_identifiable {
971   color: green;
972 }
973
974 #trace_list .trace_trackable {
975   color: red;
976 }
977
978 #trace_list .trace_private {
979   color: red;
980 }
981
982 /* Rules for the user profile page */
983
984 #userinformation {
985   min-height: 100px;
986   .userinformation-inner {
987     float: left;
988   }
989   h2 {
990     margin-top: 0;
991   }
992   .user-description {
993     width: 100%;
994     clear: both;
995   }
996   .deemphasize {
997     margin: 0;
998   }
999 }
1000
1001 .admin-user-info small {
1002   margin-bottom: 10px;
1003   display: inline;
1004   margin-right: 20px;
1005 }
1006
1007 .activity-block {
1008   border-bottom: 1px solid #ccc;
1009   padding-bottom: 20px;
1010   float: left;
1011   h3 {
1012     margin-bottom: 10px;
1013   }
1014 }
1015
1016 .contact-activity {
1017   margin-top: 20px;
1018   width: 100%;
1019 }
1020
1021 .activity-details p {
1022   margin-left: 72px;
1023   margin-bottom: 0;
1024 }
1025
1026 #friends-container .contact-activity ul {
1027   margin-left: 72px;
1028   }
1029
1030 .user-view p#no_home_location {
1031   margin: 20px;
1032 }
1033
1034 .user-view .user_thumbnail {
1035   margin-top: 5px;
1036   float: left;
1037 }
1038
1039 /* Rules for the user map */
1040
1041 .content_map .leaflet-popup-content {
1042   margin: 10px 15px;
1043   min-height: 62px;
1044 }
1045
1046 .content_map .leaflet-popup-content-wrapper {
1047 -webkit-border-radius: 4px;
1048   border-radius: 4px;
1049 }
1050
1051 /* Rules for user popups on maps */
1052
1053 .user_popup {
1054   min-width: 200px;
1055 }
1056
1057 .user_popup p {
1058   padding-top: 3px;
1059   padding-bottom: 3px;
1060   margin-top: 0px;
1061   margin-bottom: 0px;
1062   margin-left: 55px;
1063   margin-right: 2px;
1064 }
1065
1066 .user_popup img.user_thumbnail {
1067   float: left;
1068   margin-right: 10px;
1069 }
1070
1071 /* Rules for user popups on maps */
1072
1073 .user_popup p {
1074   margin-bottom: 0;
1075   margin-left: 60px;
1076   font-size: 12px;
1077 }
1078
1079 /* Rules for the user list */
1080
1081 #user_list {
1082   font-size: 10px;
1083   width: 100%;
1084 }
1085
1086 #user_list tr {
1087   vertical-align: middle;
1088 }
1089
1090 #user_list p {
1091   margin-top: 0px;
1092   margin-bottom: 0px;
1093 }
1094
1095 #user_list_actions {
1096   float: right;
1097   margin-top: 10px;
1098 }
1099
1100 /* Rules for the diary list page */
1101
1102 .diary_entry-list img.user_thumbnail {
1103   float: left;
1104 }
1105
1106 .diary_post {
1107   position: relative;
1108   margin-top: 20px;
1109   padding-top: 20px;
1110   border-top: 1px solid #ccc;
1111
1112   &:first-child {
1113     margin-top: 0;
1114     border-top: 0;
1115     padding-top: 0;
1116   }
1117   h1, h2 {
1118     font-size: 21px;
1119     line-height: 21px;
1120   }
1121   small.deemphasize {
1122     display: block;
1123   }
1124   ul,
1125   ol {
1126     margin-bottom: 20px;
1127     font-style: italic;
1128     margin-left: 20px;
1129   }
1130   ul li {
1131     list-style: disc;
1132   }
1133   ol li {
1134     list-style: decimal;
1135   }
1136   ul.secondary-actions { display: inline-block;}
1137 }
1138
1139 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1140   display: inline;
1141 }
1142
1143 .post_heading {
1144   margin-bottom: 20px;
1145   h2 {
1146     margin-top: 0;
1147     margin-bottom: 0;
1148     font-size: 24px;
1149     float: left;
1150     line-height: 32px;
1151   }
1152 }
1153
1154 /* Rules for the diary entry page */
1155
1156 .diary_entry {
1157   #map {
1158     position: relative;
1159     width: 90%;
1160     height: 398px;
1161     border: 1px solid #ccc;
1162     display: none;
1163     margin-bottom: 20px;
1164   }
1165   #newcomment {
1166     border-top: 1px solid #ccc;
1167     padding-top: 20px;
1168     margin-top: 10px;
1169   }
1170   .diary-comment {
1171     margin-top: 10px;
1172     &:first-child {
1173       margin-top: 20px;
1174       padding-top: 20px;
1175       border-top: 1px solid #ccc;
1176     }
1177     p {
1178       margin-bottom: 10px;
1179       margin-left: 70px;
1180     }
1181     .comment-heading {
1182       margin-bottom: 0;
1183       margin-top: 0;
1184     }
1185   }
1186 }
1187
1188 .diary_entry-view img.user_thumbnail {
1189   float: left;
1190 }
1191
1192 /* Rules for the login page */
1193
1194 #login_openid_buttons li {
1195   float: left;
1196   padding: 5px 10px;
1197 }
1198
1199 /* Rules for the account confirmation page */
1200
1201 div#contributorTerms {
1202   border: 1px solid #ccc;
1203   padding: 20px;
1204   margin-bottom: 20px;
1205   overflow: auto;
1206   height: 398px;
1207 }
1208
1209 div#contributorTerms p#last {
1210   margin-bottom: 0px;
1211 }
1212
1213 div#contributorTerms ol {
1214   margin-bottom: 0px;
1215 }
1216
1217 div#contributorTerms img {
1218   display: block;
1219   margin: 20px auto inherit auto;
1220 }
1221
1222 form#termsForm div#buttons {
1223   float: right;
1224 }
1225
1226 form#termsForm input#agree {
1227   margin-left: 40px;
1228 }
1229
1230 div#slim_content form#termsForm {
1231   width: auto;
1232 }
1233
1234 p#contributorGuidance {
1235   background-color: #f4f4ff;
1236   border-radius: 3px;
1237   -moz-border-radius: 3px;
1238   margin-top: 20px;
1239   padding: 10px;
1240 }
1241
1242 /* Rules for the account settings page */
1243
1244 #accountForm {
1245   margin-top: 20px;
1246 }
1247
1248 #accountForm td {
1249   padding-bottom: 10px;
1250 }
1251
1252 #accountForm .user_map {
1253   position: relative;
1254   width: 498px;
1255   height: 398px;
1256   border: 1px solid #ccc;
1257 }
1258
1259 .accountImage-options {
1260   width: 50%;
1261   display: inline-block;
1262 }
1263
1264 .nohome .location {
1265   display: none;
1266 }
1267
1268 #homerow .message {
1269   display: none;
1270 }
1271
1272 .nohome .message {
1273   display: inline !important;
1274 }
1275
1276 #accountForm input[type=submit] {
1277   margin-top: 15px;
1278 }
1279
1280 .content_map.settings_map {
1281   float: none;
1282   width: 50%;
1283 }
1284
1285 /* Rules for message in/out box page */
1286
1287 .messages {
1288   width: 100%;
1289   border: 1px solid #ddd;
1290 }
1291
1292 .messages tbody tr {
1293   border-top: 1px solid #ccc;
1294 }
1295
1296 .messages .inbox-row {
1297   background: #f8f8ff;
1298 }
1299
1300 .messages .inbox-row-unread {
1301   background:#CBEEA7;
1302 }
1303
1304 .right {
1305   float: right;
1306 }
1307
1308 .messages tr td,
1309 .messages tr th {
1310   padding: 5px;
1311 }
1312
1313 .inbox-row .inbox-mark-read {
1314   display: none;
1315 }
1316
1317 .info-line {
1318   margin-bottom: 20px;
1319   padding: 5px 0px 4px 0px;
1320   border-bottom: 1px solid #ccc;
1321 }
1322
1323 .info-line form,
1324 .info-line form div {
1325   display: inline;
1326 }
1327
1328 .info-line .user_thumbnail_tiny {
1329   vertical-align: middle;
1330 }
1331
1332 .inbox-row-unread .inbox-mark-unread {
1333   display: none;
1334 }
1335
1336 /* Rules for "flash" notice boxes shown at the top of the content area */
1337
1338 .flash {
1339     padding: 20px;
1340   &#error {
1341     background-color: #ff7070;
1342   }
1343   &#warning {
1344     background-color: #fff6f0;
1345   }
1346   &#notice {
1347     background-color: #CBEEA7;
1348   }
1349 }
1350
1351 /* Rules for highlighting fields with rails validation errors */
1352
1353 .field_with_errors {
1354   padding: 2px;
1355   background-color: #ff7070;
1356   display: table;
1357 }
1358
1359 /* Rules for rails validation error boxes */
1360
1361 #errorExplanation {
1362   width: 400px;
1363   border: 2px solid #ff7070;
1364   padding: 10px;
1365   margin-bottom: 20px;
1366   background-color: #f0f0f0;
1367 }
1368
1369 #errorExplanation h2 {
1370   margin: -10px;
1371   padding: 5px 5px 5px 15px;
1372   font-weight: bold;
1373   font-size: 12px;
1374   background-color: #c00;
1375   color: #fff;
1376   text-align: left;
1377 }
1378
1379 #errorExplanation p {
1380   color: #333;
1381   margin-bottom: 0px;
1382   padding: 5px;
1383 }
1384
1385 #errorExplanation ul li {
1386   font-size: 12px;
1387   list-style: disc;
1388 }
1389
1390 /* Rules for forms */
1391
1392 .submitButton {
1393   text-align: center;
1394 }
1395
1396 .fieldName {
1397   vertical-align: top;
1398   font-weight: bold;
1399   font-size: 12px;
1400   line-height: 20px;
1401   text-align: right;
1402 }
1403
1404 .submitButton {
1405   text-align: right;
1406 }
1407
1408 .minorNote {
1409   font-size: 12px;
1410 }
1411
1412 input[type="text"],
1413 input[type="email"],
1414 input[type="url"],
1415 input[type="password"],
1416 textarea {
1417   border: 1px solid #ccc;
1418 }
1419
1420 /* Rules for user images */
1421
1422 img.user_image {
1423   width: 100px;
1424   height: 100px;
1425   border: 1px solid #ccc;
1426   margin-bottom: 20px;
1427   float: left;
1428   margin-right: 20px;
1429 }
1430
1431 img.user_thumbnail {
1432   width: 50px;
1433   height: 50px;
1434   border: 1px solid #ccc;
1435   margin-right: 20px;
1436 }
1437
1438 img.user_thumbnail_tiny {
1439   max-width: 24px;
1440   max-height: 24px;
1441   border: 1px solid #ccc;
1442 }
1443
1444 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1445
1446 .nowrap {
1447   white-space: nowrap;
1448 }
1449
1450 /* Rules for geo microformats */
1451
1452 abbr.geo {
1453   border-bottom: none;
1454 }
1455
1456 /* Rules for RSS buttons */
1457
1458 .rsssmall {
1459   position: relative;
1460   top: 4px;
1461 }
1462
1463 /* General styles for action lists / subnavs / pager navs */
1464
1465 ul.secondary-actions {
1466   font-style: normal;
1467   margin-bottom: 0;
1468   margin-left: 0;
1469   &.pager {
1470     display: inline-block;
1471     margin-bottom: 20px;
1472     margin-right: 60px;
1473   }
1474   li {
1475     display: block;
1476     float: left;
1477     list-style: none;
1478     border-left: 1px solid #ccc;
1479     padding-left: 5px;
1480     margin-right: 5px;
1481     &:first-child {
1482       border-left: 0;
1483       padding-left: 0;
1484     }
1485   }
1486   .hidden li,
1487   .hide_unless_logged_in li,
1488   .hide_unless_administrator li {
1489     border-left: 1px solid #ccc;
1490     padding-left: 5px;
1491     }
1492   .hidden:first-child li,
1493   .hide_unless_logged_in:first-child li,
1494   .hide_unless_administrator:first-child li {
1495     border-left: 0;
1496     padding-left: 0;
1497   }
1498 }
1499
1500 /* Utility for managing inner content areas */
1501
1502 .inner22 { padding: 20px;}
1503
1504 .inner12 { padding: 10px 20px;}
1505
1506 .inner02 { padding: 0 20px;}
1507
1508 /* Utility for general button styles */
1509
1510 a.button {
1511   display: block;
1512   padding: 5px;
1513   min-width: 120px;
1514   margin-bottom: 10px;
1515   color: white;
1516   background: #7092FF;
1517   text-align: center;
1518   border-radius: 2px;
1519   -moz-border-radius: 2px;
1520   &:hover {
1521     background: blue;
1522     text-decoration: none;
1523   }
1524   &:last-child {
1525     margin-bottom: 0;
1526   }
1527 }
1528
1529 a.button.submit {
1530   background-color: #cbeea7;
1531   &:hover {
1532     background-color: #9ed485;
1533   }
1534 }
1535 /* Rules for doing distinct colour of alternate table rows */
1536
1537 .table0,
1538 .item0 {
1539   background: #F4F4FF;
1540 }
1541
1542 .table1,
1543 .item1 {
1544   background: #fff;
1545 }
1546
1547 /* Rules for OpenID logo */
1548
1549 .openid_logo {
1550   vertical-align: text-bottom;
1551   border: 0;
1552 }
1553
1554 /* Rules for rich text editors */
1555
1556 .richtext_container {
1557   white-space: nowrap;
1558   .richtext_content {
1559     display: inline-block;
1560     vertical-align: top;
1561     .richtext_preview {
1562       display: inline-block;
1563       padding: 20px;
1564       background-color: #f4f4ff;
1565       white-space: normal;
1566       &.loading {
1567         background-image: image-url("loading.gif");
1568         background-repeat: no-repeat;
1569         background-position: center;
1570       }
1571       > :first-child {
1572         margin-top: 0px;
1573       }
1574     }
1575   }
1576   .richtext_help {
1577     display: inline-block;
1578     vertical-align: top;
1579     margin-left: 15px;
1580     background-color: #f8f8ff;
1581     padding: 20px;
1582     p {
1583       margin: 0px;
1584     }
1585     th {
1586       vertical-align: top;
1587       text-align: left;
1588       padding: 0px 15px 0px 0px !important;
1589     }
1590     table > thead th {
1591       font-weight: bold;
1592     }
1593     td {
1594       font-family: fixed;
1595       line-height: 16px;
1596       text-align: left;
1597       padding: 0px !important;
1598     }
1599     input.richtext_doedit {
1600       margin-top: 5px !important;
1601       margin-right: 10px !important;
1602     }
1603     input.richtext_dopreview {
1604       margin-top: 5px !important;
1605       margin-left: 10px !important;
1606     }
1607   }
1608 }