]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
b29d5a4ad604301dce9713b39e168f4c1318fd74
[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: #FFFFC0;
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   clear: left;
1009   border-bottom: 1px solid #ccc;
1010   padding-bottom: 20px;
1011   float: left;
1012   h3 {
1013     margin-bottom: 10px;
1014   }
1015 }
1016
1017 .contact-activity {
1018   margin-top: 20px;
1019   width: 100%;
1020 }
1021
1022 .activity-details p {
1023   margin-left: 72px;
1024   margin-bottom: 0;
1025 }
1026
1027 #friends-container .contact-activity ul {
1028   margin-left: 72px;
1029   }
1030
1031 .user-view p#no_home_location {
1032   margin: 20px;
1033 }
1034
1035 .user-view .user_thumbnail {
1036   margin-top: 5px;
1037   float: left;
1038 }
1039
1040 /* Rules for the user map */
1041
1042 .content_map .leaflet-popup-content {
1043   margin: 10px 15px;
1044   min-height: 62px;
1045 }
1046
1047 .content_map .leaflet-popup-content-wrapper {
1048 -webkit-border-radius: 4px;
1049   border-radius: 4px;
1050 }
1051
1052 /* Rules for user popups on maps */
1053
1054 .user_popup {
1055   min-width: 200px;
1056 }
1057
1058 .user_popup p {
1059   padding-top: 3px;
1060   padding-bottom: 3px;
1061   margin-top: 0px;
1062   margin-bottom: 0px;
1063   margin-left: 55px;
1064   margin-right: 2px;
1065 }
1066
1067 .user_popup img.user_thumbnail {
1068   float: left;
1069   margin-right: 10px;
1070 }
1071
1072 /* Rules for user popups on maps */
1073
1074 .user_popup p {
1075   margin-bottom: 0;
1076   margin-left: 60px;
1077   font-size: 12px;
1078 }
1079
1080 /* Rules for the user list */
1081
1082 #user_list {
1083   font-size: 10px;
1084   width: 100%;
1085 }
1086
1087 #user_list tr {
1088   vertical-align: middle;
1089 }
1090
1091 #user_list p {
1092   margin-top: 0px;
1093   margin-bottom: 0px;
1094 }
1095
1096 #user_list_actions {
1097   float: right;
1098   margin-top: 10px;
1099 }
1100
1101 /* Rules for the diary list page */
1102
1103 .diary_entry-list img.user_thumbnail {
1104   float: left;
1105 }
1106
1107 .diary_post {
1108   position: relative;
1109   margin-top: 20px;
1110   padding-top: 20px;
1111   border-top: 1px solid #ccc;
1112
1113   &:first-child {
1114     margin-top: 0;
1115     border-top: 0;
1116     padding-top: 0;
1117   }
1118   h1, h2 {
1119     font-size: 21px;
1120     line-height: 21px;
1121   }
1122   small.deemphasize {
1123     display: block;
1124   }
1125   ul,
1126   ol {
1127     margin-bottom: 20px;
1128     font-style: italic;
1129     margin-left: 20px;
1130   }
1131   ul li {
1132     list-style: disc;
1133   }
1134   ol li {
1135     list-style: decimal;
1136   }
1137   ul.secondary-actions { display: inline-block;}
1138 }
1139
1140 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1141   display: inline;
1142 }
1143
1144 .post_heading {
1145   margin-bottom: 20px;
1146   h2 {
1147     margin-top: 0;
1148     margin-bottom: 0;
1149     font-size: 24px;
1150     float: left;
1151     line-height: 32px;
1152   }
1153 }
1154
1155 /* Rules for the diary entry page */
1156
1157 .diary_entry {
1158   #map {
1159     position: relative;
1160     width: 90%;
1161     height: 398px;
1162     border: 1px solid #ccc;
1163     display: none;
1164     margin-bottom: 20px;
1165   }
1166   #newcomment {
1167     border-top: 1px solid #ccc;
1168     padding-top: 20px;
1169     margin-top: 10px;
1170   }
1171   .diary-comment {
1172     margin-top: 10px;
1173     &:first-child {
1174       margin-top: 20px;
1175       padding-top: 20px;
1176       border-top: 1px solid #ccc;
1177     }
1178     p {
1179       margin-bottom: 10px;
1180       margin-left: 70px;
1181     }
1182     .comment-heading {
1183       margin-bottom: 0;
1184       margin-top: 0;
1185     }
1186   }
1187 }
1188
1189 .diary_entry-view img.user_thumbnail {
1190   float: left;
1191 }
1192
1193 /* Rules for the login page */
1194
1195 #login_openid_buttons li {
1196   float: left;
1197   padding: 5px 10px;
1198 }
1199
1200 /* Rules for the account confirmation page */
1201
1202 div#contributorTerms {
1203   border: 1px solid #ccc;
1204   padding: 20px;
1205   margin-bottom: 20px;
1206   overflow: auto;
1207   height: 398px;
1208 }
1209
1210 div#contributorTerms p#last {
1211   margin-bottom: 0px;
1212 }
1213
1214 div#contributorTerms ol {
1215   margin-bottom: 0px;
1216 }
1217
1218 div#contributorTerms img {
1219   display: block;
1220   margin: 20px auto inherit auto;
1221 }
1222
1223 form#termsForm div#buttons {
1224   float: right;
1225 }
1226
1227 form#termsForm input#agree {
1228   margin-left: 40px;
1229 }
1230
1231 div#slim_content form#termsForm {
1232   width: auto;
1233 }
1234
1235 p#contributorGuidance {
1236   background-color: #f4f4ff;
1237   border-radius: 3px;
1238   -moz-border-radius: 3px;
1239   margin-top: 20px;
1240   padding: 10px;
1241 }
1242
1243 /* Rules for the account settings page */
1244
1245 #accountForm {
1246   margin-top: 20px;
1247 }
1248
1249 #accountForm td {
1250   padding-bottom: 10px;
1251 }
1252
1253 #accountForm .user_map {
1254   position: relative;
1255   width: 498px;
1256   height: 398px;
1257   border: 1px solid #ccc;
1258 }
1259
1260 .accountImage-options {
1261   width: 50%;
1262   display: inline-block;
1263 }
1264
1265 .nohome .location {
1266   display: none;
1267 }
1268
1269 #homerow .message {
1270   display: none;
1271 }
1272
1273 .nohome .message {
1274   display: inline !important;
1275 }
1276
1277 #accountForm input[type=submit] {
1278   margin-top: 15px;
1279 }
1280
1281 .content_map.settings_map {
1282   float: none;
1283   width: 50%;
1284 }
1285
1286 /* Rules for message in/out box page */
1287
1288 .messages {
1289   width: 100%;
1290   border: 1px solid #ddd;
1291 }
1292
1293 .messages tbody tr {
1294   border-top: 1px solid #ccc;
1295 }
1296
1297 .messages .inbox-row {
1298   background: #f8f8ff;
1299 }
1300
1301 .messages .inbox-row-unread {
1302   background:#CBEEA7;
1303 }
1304
1305 .right {
1306   float: right;
1307 }
1308
1309 .messages tr td,
1310 .messages tr th {
1311   padding: 5px;
1312 }
1313
1314 .inbox-row .inbox-mark-read {
1315   display: none;
1316 }
1317
1318 .info-line {
1319   margin-bottom: 20px;
1320   padding: 5px 0px 4px 0px;
1321   border-bottom: 1px solid #ccc;
1322 }
1323
1324 .info-line form,
1325 .info-line form div {
1326   display: inline;
1327 }
1328
1329 .info-line .user_thumbnail_tiny {
1330   vertical-align: middle;
1331 }
1332
1333 .inbox-row-unread .inbox-mark-unread {
1334   display: none;
1335 }
1336
1337 /* Rules for "flash" notice boxes shown at the top of the content area */
1338
1339 .flash {
1340     padding: 20px;
1341   &#error {
1342     background-color: #ff7070;
1343   }
1344   &#warning {
1345     background-color: #fff6f0;
1346   }
1347   &#notice {
1348     background-color: #CBEEA7;
1349   }
1350 }
1351
1352 /* Rules for highlighting fields with rails validation errors */
1353
1354 .field_with_errors {
1355   padding: 2px;
1356   background-color: #ff7070;
1357   display: table;
1358 }
1359
1360 /* Rules for rails validation error boxes */
1361
1362 #errorExplanation {
1363   width: 400px;
1364   border: 2px solid #ff7070;
1365   padding: 10px;
1366   margin-bottom: 20px;
1367   background-color: #f0f0f0;
1368 }
1369
1370 #errorExplanation h2 {
1371   margin: -10px;
1372   padding: 5px 5px 5px 15px;
1373   font-weight: bold;
1374   font-size: 12px;
1375   background-color: #c00;
1376   color: #fff;
1377   text-align: left;
1378 }
1379
1380 #errorExplanation p {
1381   color: #333;
1382   margin-bottom: 0px;
1383   padding: 5px;
1384 }
1385
1386 #errorExplanation ul li {
1387   font-size: 12px;
1388   list-style: disc;
1389 }
1390
1391 /* Rules for forms */
1392
1393 .submitButton {
1394   text-align: center;
1395 }
1396
1397 .fieldName {
1398   vertical-align: top;
1399   font-weight: bold;
1400   font-size: 12px;
1401   line-height: 20px;
1402   text-align: right;
1403 }
1404
1405 .submitButton {
1406   text-align: right;
1407 }
1408
1409 .minorNote {
1410   font-size: 12px;
1411 }
1412
1413 input[type="text"],
1414 input[type="email"],
1415 input[type="url"],
1416 input[type="password"],
1417 textarea {
1418   border: 1px solid #ccc;
1419 }
1420
1421 /* Rules for user images */
1422
1423 img.user_image {
1424   width: 100px;
1425   height: 100px;
1426   border: 1px solid #ccc;
1427   margin-bottom: 20px;
1428   float: left;
1429   margin-right: 20px;
1430 }
1431
1432 img.user_thumbnail {
1433   width: 50px;
1434   height: 50px;
1435   border: 1px solid #ccc;
1436   margin-right: 20px;
1437 }
1438
1439 img.user_thumbnail_tiny {
1440   max-width: 24px;
1441   max-height: 24px;
1442   border: 1px solid #ccc;
1443 }
1444
1445 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1446
1447 .nowrap {
1448   white-space: nowrap;
1449 }
1450
1451 /* Rules for geo microformats */
1452
1453 abbr.geo {
1454   border-bottom: none;
1455 }
1456
1457 /* Rules for RSS buttons */
1458
1459 .rsssmall {
1460   position: relative;
1461   top: 4px;
1462 }
1463
1464 /* General styles for action lists / subnavs / pager navs */
1465
1466 ul.secondary-actions {
1467   font-style: normal;
1468   margin-bottom: 0;
1469   margin-left: 0;
1470   &.pager {
1471     display: inline-block;
1472     margin-bottom: 20px;
1473     margin-right: 60px;
1474   }
1475   li {
1476     display: block;
1477     float: left;
1478     list-style: none;
1479     border-left: 1px solid #ccc;
1480     padding-left: 5px;
1481     margin-right: 5px;
1482     &:first-child {
1483       border-left: 0;
1484       padding-left: 0;
1485     }
1486   }
1487 }
1488
1489 /* Utility for managing inner content areas */
1490
1491 .inner22 { padding: 20px;}
1492
1493 .inner12 { padding: 10px 20px;}
1494
1495 .inner02 { padding: 0 20px;}
1496
1497 /* Utility for general button styles */
1498
1499 a.button {
1500   display: block;
1501   padding: 5px;
1502   min-width: 120px;
1503   margin-bottom: 10px;
1504   color: white;
1505   background: #7092FF;
1506   text-align: center;
1507   border-radius: 2px;
1508   -moz-border-radius: 2px;
1509   &:hover {
1510     background: blue;
1511     text-decoration: none;
1512   }
1513   &:last-child {
1514     margin-bottom: 0;
1515   }
1516 }
1517
1518 a.button.submit {
1519   background-color: #cbeea7;
1520   &:hover {
1521     background-color: #9ed485;
1522   }
1523 }
1524 /* Rules for doing distinct colour of alternate table rows */
1525
1526 .table0,
1527 .item0 {
1528   background: #F4F4FF;
1529 }
1530
1531 .table1,
1532 .item1 {
1533   background: #fff;
1534 }
1535
1536 /* Rules for OpenID logo */
1537
1538 .openid_logo {
1539   vertical-align: text-bottom;
1540   border: 0;
1541 }
1542
1543 /* Rules for rich text editors */
1544
1545 .richtext_container {
1546   white-space: nowrap;
1547   .richtext_content {
1548     display: inline-block;
1549     vertical-align: top;
1550     .richtext_preview {
1551       display: inline-block;
1552       padding: 20px;
1553       background-color: #f4f4ff;
1554       white-space: normal;
1555       &.loading {
1556         background-image: image-url("loading.gif");
1557         background-repeat: no-repeat;
1558         background-position: center;
1559       }
1560       > :first-child {
1561         margin-top: 0px;
1562       }
1563     }
1564   }
1565   .richtext_help {
1566     display: inline-block;
1567     vertical-align: top;
1568     margin-left: 15px;
1569     background-color: #f8f8ff;
1570     padding: 20px;
1571     p {
1572       margin: 0px;
1573     }
1574     th {
1575       vertical-align: top;
1576       text-align: left;
1577       padding: 0px 15px 0px 0px !important;
1578     }
1579     table > thead th {
1580       font-weight: bold;
1581     }
1582     td {
1583       font-family: fixed;
1584       line-height: 16px;
1585       text-align: left;
1586       padding: 0px !important;
1587     }
1588     input.richtext_doedit {
1589       margin-top: 5px !important;
1590       margin-right: 10px !important;
1591     }
1592     input.richtext_dopreview {
1593       margin-top: 5px !important;
1594       margin-left: 10px !important;
1595     }
1596   }
1597 }