]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Style
[rails.git] / app / assets / stylesheets / common.css.scss
1 /* Parameters */
2 $lineheight: 20px;
3 $typeheight: 14px;
4
5 $offwhite: #f4f4ff;
6 $blue: #7092FF;
7 $lightblue: #B8C5F0;
8 $grey: #AAA;
9 $lightgrey: #CCC;
10 $hovercolor: 20%;
11
12 /* Styles common to large and small screens */
13
14 /* Minimal CSS reset */
15
16 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
17   margin: 0;
18   padding: 0;
19   border: 0;
20   font-size:100%;
21 }
22
23 fieldset,img { border: 0; }
24
25 legend { color: #000; }
26
27 sup { vertical-align: text-top; }
28
29 sub { vertical-align: text-bottom; }
30
31 table {
32   border-collapse: collapse;
33   border-spacing: 0;
34 }
35
36 li { list-style: none; }
37
38 input,
39 select,
40 textarea,
41 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
42
43 abbr, acronym {
44   border-bottom: .1em dotted;
45   cursor: help;
46 }
47
48 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
49
50 .clearfix:before,
51 .clearfix:after {
52     content: " ";
53     display: table;
54 }
55
56 .clearfix:after {
57     clear: both;
58 }
59
60 /* Basic grid */
61
62 .col0    { float:left; width:04.1666%; }
63 .col1    { float:left; width:08.3333%; }
64 .col2    { float:left; width:16.6666%; }
65 .col3    { float:left; width:25.0000%; }
66 .col4    { float:left; width:33.3333%; }
67 .col5    { float:left; width:41.6666%; }
68 .col6    { float:left; width:50.0000%; }
69 .col7    { float:left; width:58.3333%; }
70 .col8    { float:left; width:66.6666%; }
71 .col9    { float:left; width:75.0000%; }
72 .col10   { float:left; width:83.3333%; }
73 .col11   { float:left; width:91.6666%; }
74 .col12   { width:100%; }
75
76 .margin0  { margin-left:04.1666%; }
77 .margin1  { margin-left:08.3333%; }
78 .margin2  { margin-left:16.6666%; }
79 .margin3  { margin-left:25.0000%; }
80 .margin4  { margin-left:33.3333%; }
81 .margin5  { margin-left:41.6666%; }
82 .margin6  { margin-left:50.0000%; }
83 .margin7  { margin-left:58.3333%; }
84 .margin8  { margin-left:66.6666%; }
85 .margin9  { margin-left:75.0000%; }
86 .margin10 { margin-left:83.3333%; }
87 .margin11 { margin-left:91.6666%; }
88 .margin12 { margin-left:100.0000%; }
89
90 .fillL { background-color: white; }
91 /* Default rules for the body of every page */
92
93 * {
94   -moz-box-sizing: border-box;
95   -webkit-box-sizing: border-box;
96   box-sizing: border-box;
97 }
98
99 body {
100   font-family: 'Helvetica Neue',Arial,sans-serif;
101   font-size: $typeheight;
102   line-height: 1.6666;
103   color: #222;
104   background-color: #fff;
105   margin: 0px;
106   padding: 0px;
107   text-align: left;
108 }
109
110 body.slim {
111   background-color: #f0f0f0;
112 }
113
114 h1, h2, h3 {
115   margin-top: $lineheight/2;
116   margin-bottom: $lineheight;
117   font-weight: bold;
118   line-height: 1.2;
119 }
120
121 h1, h2 {
122   font-size: 32px;
123 }
124
125 #content h2 {
126   font-size: 21px;
127 }
128
129 h3 {
130   font-size: 21px;
131   margin-top: $lineheight/2;
132   margin-bottom: $lineheight;
133 }
134
135 h4,h5,h6 {
136   font-size: $typeheight;
137   margin-top: $lineheight/2;
138   margin-bottom: $lineheight/2;
139   font-weight: bold;
140   line-height: 1.5;
141 }
142
143 p, ul {
144   margin-bottom: $lineheight;
145 }
146
147 p > img {
148   width: auto;
149   max-width: 100%;
150 }
151
152 small, aside {
153   font-size: 12px;
154 }
155
156 h1:first-child,
157 h2:first-child,
158 h3:first-child,
159 h4:first-child,
160 h5:first-child,
161 h6:first-child {
162   margin-top: 0;
163 }
164
165 .column-1 {
166   width: 50%;
167   margin: 0 0 $lineheight/2 0;
168 }
169
170 .small_icon {
171   vertical-align: middle;
172   margin-right: $lineheight/4;
173 }
174
175 /* Rules for icons */
176
177 .icon {
178   display:inline-block;
179   vertical-align:top;
180   width:20px;
181   height:20px;
182   background:transparent image-url("sprite.png") no-repeat 0 0;
183   text-indent:-9999px;
184   overflow:hidden;
185   }
186
187 .icon-pre-text {
188     margin-right: 5px;
189 }
190
191 .icon.search      { background-position: 0 0; }
192 .icon.donate      { background-position: -20px 0; }
193 .icon.zoomin      { background-position: -40px 0; }
194 .icon.zoomout     { background-position: -60px 0; }
195 .icon.geolocate   { background-position: -80px 0; }
196 .active .icon.geolocate   { background-position: -80px -20px; }
197 .icon.layers      { background-position: -100px 0; }
198 .icon.key         { background-position: -120px 0; }
199 .icon.share       { background-position: -140px 0; }
200 .icon.clipboard   { background-position: -160px 0; }
201 .icon.link        { background-position: -180px 0; }
202 .icon.close       { background-position: -200px 0; }
203 .icon.check       { background-position: -220px 0; }
204 .icon.note        { background-position: -240px 0; }
205 .icon.gear        { background-position: -260px 0; }
206
207 /* Rules for links */
208
209 a {
210   color: #00f;
211   text-decoration: none;
212   &:hover {
213     text-decoration: underline;
214   }
215 }
216
217 /* Rules for horizontal lines */
218
219 hr {
220   border: none;
221   background-color: #ccc;
222   color: #ccc;
223   height: 1px;
224 }
225
226 /* General styles for tables */
227
228 table {
229   width: 100%;
230   margin-bottom: $lineheight;
231   th, td {
232     text-align: left;
233     padding: $lineheight/4;
234     line-height: $lineheight;
235   }
236   th {
237     font-weight: bold;
238     vertical-align: top;
239   }
240   td {
241     vertical-align: middle;
242   }
243 }
244
245 /* Rules for the whole left sidebar, including the logo */
246
247 #left {
248   position: absolute;
249   height: 100%;
250   width: 185px;
251   font-size: 11px;
252   line-height: 1.1;
253   z-index: 100;
254   border-right: 1px solid #ccc;
255 }
256
257 /* Rules for the OpenStreetMap logo in the top left corner */
258
259 #logo {
260   display: block;
261   width: 170px;
262   min-width: 170px;
263   padding: $lineheight $lineheight/4;
264   text-align: center;
265   margin: auto;
266 }
267
268 #logo h1 {
269   font-size: 18px;
270   line-height: 1;
271   text-align: center;
272   margin: 0;
273 }
274
275 #logo h2 {
276   font-size: $lineheight/2;
277   line-height: 15px;
278   margin: 0;
279 }
280
281 /* Rules for the site name */
282
283 #small-title {
284   display: none;
285
286   img {
287     vertical-align: text-bottom;
288   }
289 }
290
291 /* Rules for the introductory text displayed in the left sidebar to new users */
292
293 .sidebar-copy {
294   padding: $lineheight/4 $lineheight/2;
295   p {
296     margin: $lineheight/4 0;
297   }
298 }
299 .sidebar-copy.intro {
300   border-top: 1px solid #ccc;
301 }
302
303 /*
304  * Rules for alert boxes shown in the left sidebar when important
305  * information needs to be conveyed such as when the site is
306  * undergoing maintenance.
307  */
308
309 .sidebar-alert {
310   padding: $lineheight/4;
311   border-top: 1px solid #ccc;
312   margin-top: 4px;
313   margin-bottom: -5px;
314   background: #e00;
315   font-size: 12px;
316   font-weight: bold;
317   p {
318     margin: $lineheight/4;
319   }
320 }
321
322 /*
323  * Rules for notice boxes shown in the left sidebar when important, but
324  * non-critical information needs to be conveyed such as notices about
325  * donation drives.
326  */
327
328 .sidebar-notice {
329   padding: $lineheight/4;
330   border-top: 1px solid #ccc;
331   margin-top: 4px;
332   margin-bottom: -5px;
333   background: #ea0;
334   font-size: 12px;
335   p {
336     margin: $lineheight/4;
337   }
338 }
339
340 /* Rules for the menu displayed in the left sidebar */
341
342 .left_menu {
343   left: 0px;
344   margin: 0;
345   padding: $lineheight/4 $lineheight/2 $lineheight/2 $lineheight/2;
346   font-size: 12px;
347   line-height: 1.25;
348   list-style-type: none;
349   border-bottom: 1px solid #ccc;
350   border-top: 1px solid #ccc;
351   img {
352     margin: $lineheight/2 0px;
353   }
354
355   ul {
356     padding: 0;
357     margin: 0;
358   }
359
360   li {
361     list-style-type: none;
362     padding: 0;
363     margin: 0;
364   }
365
366   h4 {
367     padding: $lineheight/4 0 $lineheight/4 0;
368     font-size: 12px;
369     margin: 0;
370   }
371 }
372
373 /*
374  * Rules for "optional boxes" which appear in the left sidebar on
375  * certain pages. Current users are the seach box on the main page
376  * and the tag cloud on the traces pages.
377  */
378
379 .optionalbox {
380   left: 0px;
381   padding: $lineheight/4 $lineheight/2;
382   margin: $lineheight/4 0;
383   text-align: left;
384 }
385
386 /* Rules for the search box */
387
388 #search_field {
389   position: relative;
390
391   form {
392     width: 165px;
393   }
394
395   input[type="text"] {
396     width: 165px;
397     padding: 3px;
398     font-size: $typeheight;
399     line-height: 1.1;
400     height: 25px;
401     padding: 2px 0px 2px $lineheight/4;
402     box-shadow: inset #DDD 0px 1px 3px;
403
404     transition: 300ms linear;
405     -webkit-transition: 300ms linear;
406     -moz-transition: 300ms linear;
407   }
408
409   input[type="text"]:focus {
410     box-shadow: 0px 0px 7px #9ED485;
411     outline: none;
412   }
413
414   input[type="submit"] {
415     border: 0;
416     margin: 0;
417     padding: 0;
418     width: 15px;
419     height: 15px;
420     min-width: 0;
421     text-indent: -1000px;
422     overflow: hidden;
423     background: image-url("sprite.png") -2px -2px no-repeat;
424     position: absolute;
425     top: $lineheight/4;
426     right: $lineheight/4;
427     cursor: pointer;
428   }
429 }
430
431 .search_help {
432   margin: $lineheight/4 0 0 0;
433 }
434
435 /* Utility for de-emphasizing content */
436
437 .deemphasize {
438   color: #999;
439   a {
440     color: $blue;
441   }
442 }
443
444 /* Rules for donation request box */
445
446 a.donate {
447   display: block;
448   width: 163px;
449   padding: $lineheight/4;
450   border: 1px solid #AED1A0;
451   background: #cbeea7;
452   font-size: $typeheight;
453   line-height: 1.4;
454   text-align: center;
455   border-radius: 2px;
456   color: #222;
457   margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
458
459   &:hover {
460     background: #9ed485;
461     text-decoration: none;
462   }
463 }
464
465 /* Rules for Creative Commons logo button */
466
467 #cclogo {
468   margin: $lineheight/2 0;
469   float: right;
470 }
471
472 /* Rules for tabbed navigation bar */
473
474 #top-bar {
475   position: relative;
476   margin-left: 185px;
477   height: 30px;
478   border-bottom: 1px solid #ccc;
479   background: white;
480   z-index: 1001;
481
482   .caret {
483     margin-top: 10px;
484   }
485 }
486
487 .site-edit #top-bar,
488 .site-index #top-bar,
489 .site-export #top-bar {
490   position: fixed;
491   top: 0;
492   left: 0;
493   right: 0;
494 }
495
496 #tabnav {
497   height: 29px;
498   margin-bottom: 0;
499
500   > li {
501     float: left;
502
503     > * {
504       padding: 3px $lineheight/2;
505     }
506   }
507
508   a.tab {
509     display: inline-block;
510     font-weight: bold;
511     text-decoration: none;
512     color: #333;
513
514     -webkit-transition: color 200ms ease-in;
515        -moz-transition: color 200ms ease-in;
516          -o-transition: color 200ms ease-in;
517             transition: color 200ms ease-in;
518
519     &:hover {
520       text-decoration: underline;
521     }
522   }
523
524   .disabled a {
525     color: #ccc;
526     cursor: default;
527
528     &:hover {
529       text-decoration: none;
530     }
531
532     .caret {
533       border-top-color: #ccc;
534     }
535   }
536
537   .dropdown {
538     height: 29px;
539   }
540 }
541
542 .site-index #view_tab,
543 .site-edit #edit_tab,
544 .changeset-list #history_tab {
545   background: #9ed485;
546   color: #000;
547 }
548
549 /* Utility for styling notification numbers */
550
551 .count-number {
552   padding: 2px $lineheight/4;
553   border-radius: 2px;
554   background: #d7d7ff;
555   margin: 0 2px;
556   font-size: 11px;
557   color: #333;
558 }
559
560 /* Rules for greeting bar in the top right corner */
561
562 #greeting {
563   float: right;
564   height: 100%;
565
566   &.secondary-actions {
567     padding: 3px $lineheight/2;
568   }
569
570   &.dropdown {
571     background-color: #EEE;
572     &:hover {
573       background-color: #CCC;
574     }
575   }
576
577   img {
578     vertical-align: top;
579     border-radius: 2px 0 0 2px;
580     margin-right: 5px;
581   }
582
583   #inboxanchor {
584     display: inline-block;
585     position: relative;
586     height: 20px;
587     top: -2px;
588     margin: 0 2px 0 0;
589     padding: 0 5px 0 0;
590     border-radius: 2px;
591   }
592
593   .dropdown-toggle {
594     display: block;
595     padding: 3px 7px;
596     color: #000;
597     text-decoration: none;
598   }
599
600   .dropdown-menu {
601     left: auto;
602     right: 0;
603
604     .count-number {
605       float: right;
606       padding: 0 5px;
607       margin: 0;
608     }
609   }
610 }
611
612 /* Rules for the message shown in place of the map when javascript is disabled */
613
614 #noscript {
615   z-index: 20000000;
616   position: absolute;
617   top: 15px;
618   left: 15px;
619 }
620
621 /* Rules for bootstrap tooltips */
622
623 .tooltip {
624   position: absolute;
625   display: none;
626   color: #333;
627   text-align: left;
628   font-size: 12px;
629   max-width: 250px;
630 }
631
632 .tooltip.in {
633   opacity: 0.8;
634   z-index: 1030;
635   height: auto;
636   display: block;
637 }
638
639 .tooltip.top {
640   margin-top: -10px;
641   text-align: center;
642 }
643
644 .tooltip.right {
645   margin-left: 10px;
646 }
647
648 .tooltip.bottom {
649   margin-top: 10px;
650   text-align: center;
651 }
652
653 .tooltip.left {
654   margin-left: -10px;
655   text-align: right;
656 }
657
658 .tooltip-inner {
659   display: inline-block;
660   padding: 10px;
661   font-weight: normal;
662   background-color: white;
663 }
664
665 .tooltip-arrow {
666   position: absolute;
667   width: 0;
668   height: 0;
669   border-color: transparent;
670   border-style: solid;
671 }
672
673 .tooltip.top .tooltip-arrow {
674   bottom: -5px;
675   left: 50%;
676   margin-left: -5px;
677   border-top-color: white;
678   border-width: 5px 5px 0;
679 }
680
681 .tooltip.right .tooltip-arrow {
682   top: 50%;
683   left: -5px;
684   margin-top: -5px;
685   border-right-color: white;
686   border-width: 5px 5px 5px 0;
687 }
688
689 .tooltip.left .tooltip-arrow {
690   top: 50%;
691   right: -5px;
692   margin-top: -5px;
693   border-left-color: white;
694   border-width: 5px 0 5px 5px;
695 }
696
697 .tooltip.bottom .tooltip-arrow {
698   top: -5px;
699   left: 50%;
700   margin-left: -5px;
701   border-bottom-color: white;
702   border-width: 0 5px 5px;
703 }
704
705 /* Rules for Leaflet maps */
706
707 .leaflet-control .control-button {
708   display: block;
709   height: 40px;
710   width: 40px;
711   background-color: #333;
712   background-color: rgba(0,0,0,.6);
713   -bottom: 1px solid #333; 
714   border-radius: 4px 0 0 4px;
715   margin-bottom: 10px;
716   outline: none;
717
718   &:hover {
719     background-color: black;
720   }
721
722   &.active {
723     background-color: #9ed485;
724   }
725
726   &.disabled {
727     background-color: #333;
728     background-color: rgba(0,0,0,.5);
729     cursor: default;
730   }
731
732   .icon {
733     margin: 10px;
734   }
735 }
736
737 .leaflet-control .zoomin,
738 .control-layers .control-button {
739   margin-bottom: 0px;
740   border-radius: 4px 0 0 0;
741 }
742
743 .site .leaflet-control .zoomout,
744 .control-key .control-button {
745   margin-bottom: 0;
746   border-radius: 0;
747 }
748
749 .leaflet-control .zoomout, // For non-main page maps
750 .control-locate .control-button,
751 .control-share .control-button {
752   border-radius: 0 0 0 4px;
753 }
754
755 /* Rules for the home page */
756
757 .site-export #map,
758 .site-index #map,
759 .site-edit #map {
760   height: 100%;
761   overflow: hidden;
762 }
763
764 #map-ui {
765   display: none;
766   position: relative;
767   float: right;
768   width: 250px;
769   height: 100%;
770   background: white;
771   border-left: 1px solid #CCC;
772   overflow: auto;
773
774   .section {
775     border-bottom: 1px solid #DDD;
776     padding: 15px;
777   }
778
779   a.close-button {
780     float: right;
781     padding:5px;
782     font-size:20px;
783     line-height:10px;
784     color:#222;
785     border:1px solid #ddd;
786   }
787 }
788
789 .layers-ui,
790 .share-ui {
791   ul, li:last-child, p:last-child {
792     margin-bottom: 0;
793   }
794 }
795
796 .layers-ui {
797   li {
798     border-radius: 4px;
799     overflow: hidden;
800     margin-bottom: 10px;
801   }
802
803   label {
804     display: block;
805     padding: 5px 5px 5px 7px;
806     background-color: #eee;
807     cursor: pointer;
808   }
809
810   li.active label {
811     background-color: #ccc;
812   }
813
814   .base-layers {
815     .leaflet-container {
816       width: 100%;
817       height: 50px;
818       cursor: pointer;
819     }
820   }
821 }
822
823 .share-ui {
824   .share-tabs {
825     margin-bottom: 10px;
826
827     a {
828       color: #fff;
829       text-decoration: none;
830       background-color: $lightblue;
831       padding: 5px 10px;
832     }
833
834     a:first-child {
835       border-right: 1px solid #fff;
836       border-radius: 4px 0 0 4px;
837     }
838
839     a:last-child {
840       border-left: 1px solid #fff;
841       border-radius: 0 4px 4px 0;
842     }
843
844     a.active {
845       background-color: $blue;
846     }
847   }
848
849   .share-tab {
850     display: none;
851   }
852
853   .share-link {
854     input[type=text],
855     textarea {
856       width: 100%;
857       font-family: monospace;
858       font-size: small;
859       line-height: 1.3;
860     }
861   }
862
863   .share-image {
864     label {
865       margin-right: 10px;
866     }
867   }
868
869   #embed_html {
870     resize: vertical;
871   }
872
873   #mapnik_scale {
874     width: 100px;
875   }
876 }
877
878 .leaflet-top.leaflet-right {
879   top: $lineheight/2 !important;
880   .leaflet-control {
881     margin-right: 0px !important;
882     margin-top: 0px !important;
883   }
884 }
885
886 .leaflet-popup-scrolled {
887   padding-right: $lineheight;
888   border-bottom: 0px !important;
889   border-top: 0px !important;
890 }
891
892 .leaflet-popup-content-wrapper {
893   border-radius: 4px !important;
894   -webkit-border-radius: 4px !important;
895 }
896
897 /* Rules for edit menu */
898
899 .menuicon {
900   padding: 0 $lineheight/4;
901   font-weight: normal;
902   display: inline-block;
903   &:hover {
904     text-decoration: none !important;
905   }
906 }
907
908 .menu {
909   display: none;
910   z-index: 10000;
911   position: absolute;
912   background-color: #ffffff;
913   border: 1px solid $lightgrey;
914   border-top: 0px;
915   ul {
916     margin: 0px;
917   }
918   li {
919     padding: 2px $lineheight/4;
920     border-top: 1px solid #eee;
921     white-space: nowrap;
922   }
923 }
924
925 /* Rules for attribution text under the main map shown on printouts */
926
927 #attribution {
928   display: none;
929 }
930
931 .attribution_license,
932 .attribution_project {
933   text-align: left;
934 }
935
936 .attribution_notice {
937   text-align: center;
938 }
939
940 /* Rules for the popout map sidebar */
941
942 #sidebar {
943   display: none;
944   position: relative;
945   float: left;
946   border-right: 1px solid $lightgrey;
947   width: 33.3333%;
948   height: 100%;
949   ul {
950     margin-bottom: 0;
951     &:last-child {
952         border-bottom: 1px solid #ccc;
953     }
954     li {
955       margin-bottom: $lineheight/4;
956       &:last-child {
957         margin-bottom: 0;
958       }
959     }
960   }
961 }
962
963 .sidebar_heading {
964   position: relative;
965   padding: $lineheight/2 $lineheight;
966   background: $offwhite;
967   border-bottom: 1px solid #ccc;
968   h4 {
969     margin: 0;
970   }
971 }
972
973 .sidebar_close {
974   position: absolute;
975   height: $lineheight;
976   top: 0px;
977   bottom: 0;
978   right: $lineheight;
979   margin: auto;
980 }
981
982 #sidebar_content {
983   position: relative;
984   margin-bottom: 20px;
985   overflow: auto;
986   height: 100%;
987   width: 100%;
988   h4 {
989     padding: 0 $lineheight $lineheight/2 $lineheight;
990     margin-top: $lineheight/2;
991     margin-bottom: 0;
992     border-bottom: 1px solid #ddd;
993   }
994 }
995
996 /* Rules for the map key which appears in the popout sidebar */
997
998 #mapkey {
999  .mapkey-table-key img {
1000     display: block;
1001     margin-left: auto;
1002     margin-right: auto;
1003   }
1004   td {
1005     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
1006   }
1007 }
1008
1009 /* Rules for search results which appear in the popout sidebar */
1010
1011 .search_searching {
1012   margin-top: $lineheight/4;
1013   margin-bottom: $lineheight/4;
1014 }
1015
1016 .search_results_entry {
1017   margin-bottom: 0;
1018
1019   .search_details {
1020     display: block;
1021     float: right;
1022     text-align: right;
1023     margin-top: 0.2em;
1024     margin-left: 0.5em;
1025   }
1026 }
1027
1028 .search_results_entry .search_searching {
1029   text-align: center;
1030   margin: $lineheight auto;
1031   width: $lineheight;
1032   display: block;
1033 }
1034
1035 ul.results-list li { border-bottom: 1px solid #ccc; }
1036
1037 .search_results_error {
1038   color: #f00;
1039 }
1040
1041 /* Rules for data browser information which appears in the popout sidebar */
1042
1043 #browse_content {
1044   position: relative;
1045   .browse_show_list.button {
1046     position: absolute;
1047     left: $lineheight;
1048     right: $lineheight;
1049     bottom: -40px;
1050     margin-bottom: 0;
1051   }
1052   a.more-details {
1053     position: absolute;
1054     top: 0;
1055     right: $lineheight;
1056   }
1057   ul li {
1058     margin-bottom: 0;
1059   }
1060 }
1061
1062 .browse_details {
1063   position: relative;
1064 }
1065
1066 .browse_status {
1067   display: none;
1068 }
1069
1070 /* Rules for export information which appears in the popout sidebar */
1071
1072 .export_bounds {
1073   text-align: center;
1074 }
1075
1076 .export_area_inputs {
1077   margin-bottom: $lineheight/2;
1078   input[type="text"] {
1079     width: 80px;
1080     margin-bottom: 5px;
1081   }
1082 }
1083
1084 .export_bound {
1085   margin: $lineheight/4;
1086 }
1087
1088 /* Rules for the main content area */
1089
1090 #content {
1091   position: relative;
1092   padding: $lineheight;
1093 }
1094
1095 .site-edit #content,
1096 .site-index #content,
1097 .site-export #content {
1098   position: fixed;
1099   padding: 0;
1100   top: 30px; bottom: 0;
1101   left: 184px; right: 0;
1102   border-left: 1px solid #ccc;
1103 }
1104
1105 /* Overrides for pages that use new layout conventions */
1106 .user-new,
1107 .user-create,
1108 .user-terms,
1109 .user-confirm,
1110 .site-copyright,
1111 .site-welcome,
1112 .site-help {
1113   #content {
1114     max-width: 740px;
1115   }
1116 }
1117
1118 .user-new,
1119 .user-create,
1120 .user-terms,
1121 .user-confirm {
1122   .content-heading {
1123     height: 200px;
1124   }
1125 }
1126
1127 .user-new,
1128 .user-create,
1129 .user-terms {
1130   #content {
1131     padding: 0;
1132   }
1133 }
1134
1135 .header-illustration {
1136   background-position: 0 0;
1137   background-repeat: no-repeat;
1138   position: absolute;
1139   height: 200px;
1140   width: 100%;
1141   left: 0;
1142   bottom: 0;
1143
1144   &.new-user-main {
1145     background-image: image-url("sign-up-illustration.png");
1146   }
1147
1148   &.confirm-main {
1149     background-image: image-url("confirm-illustration.png");
1150   }
1151
1152   &.new-user-terms {
1153     background-image: image-url("terms-illustration.png");
1154   }
1155
1156   &.new-user-arm {
1157     height: 110px;
1158     width: 130px;
1159     left: 260px;
1160     top: 160px;
1161     background-image: image-url("sign-up-illustration-arm.png");
1162   }
1163 }
1164
1165 @media only screen and (max-width:900px) {
1166   .header-illustration.new-user-arm { display: none;}
1167 }
1168
1169 .wrapper {
1170   margin-left: 184px;
1171   border-left: 1px solid #ccc;
1172   text-align: left;
1173 }
1174
1175 #content.maximised {
1176   top: 0;
1177   left: 0;
1178   right: 0;
1179   bottom: 0;
1180   border: 0;
1181   z-index: 1000;
1182 }
1183
1184 #slim_container {
1185   width: 100%;
1186 }
1187
1188 #slim_container_content {
1189   max-width: 50em;
1190   background-color: #FFFFFF;
1191   margin: $lineheight/2 auto;
1192   padding: 3px;
1193   border-radius: 25px;
1194   -moz-border-radius: 25px;
1195   border: 1px solid #e6e6e6;
1196 }
1197
1198 #slim_content {
1199   margin: $lineheight/2;
1200   margin-top: 95px;
1201   max-width: 50em;
1202
1203   .content-heading {
1204     margin-bottom: 15px;
1205   }
1206 }
1207
1208 #slim_header {
1209   margin: 30px $lineheight/2;
1210   position: absolute;
1211   top: 0px;
1212   margin-right: $lineheight/4;
1213   img {
1214     vertical-align: middle;
1215     margin-bottom: $lineheight/4;
1216     margin-right: $lineheight/4;
1217   }
1218 }
1219
1220 .content-heading {
1221   position: relative;
1222   padding: $lineheight;
1223   background: $offwhite;
1224   z-index: 2;
1225   h1, h2 {
1226     margin-bottom: $lineheight/2;
1227     line-height: 100%;
1228     &:last-child {
1229       margin-bottom: 0;
1230     }
1231   }
1232   p {
1233     margin-top: $lineheight/2;
1234     margin-bottom: 0px;
1235   }
1236 }
1237
1238 /* Rules for small maps in content areas */
1239
1240 .content_map {
1241   position: relative;
1242   width: 45%;
1243   height: 400px;
1244   border: 1px solid #ccc;
1245   margin-bottom: $lineheight;
1246   float: right;
1247 }
1248
1249 .content_map #small_map {
1250   height: 100%;
1251   width: 100%;
1252   margin-bottom: $lineheight;
1253 }
1254
1255 /* Rules for the changeset list shown by the history tab etc */
1256
1257 #changeset_list {
1258   width: 100%;
1259   ul {
1260     padding: $lineheight/2 0;
1261     margin-bottom: 0px;
1262     border-top: 1px solid #ccc;
1263     &:last-child {
1264       border-bottom: 1px solid #ccc;
1265     }
1266   }
1267   .selected {
1268     background: #FFFFC0;
1269   }
1270   .date,
1271   .user {
1272     border-left: 1px solid #ccc;
1273     padding-left: $lineheight/4;
1274     margin-right: $lineheight/4;
1275   }
1276 }
1277
1278 #changeset_list_map_wrapper {
1279   position: absolute;
1280   width: 50%;
1281   height: 490px;
1282   top: 0;
1283   right: 0;
1284 }
1285
1286 #changeset_list_map_wrapper.scrolled {
1287   position: fixed;
1288 }
1289
1290 #changeset_list_map {
1291   position: absolute;
1292   bottom: $lineheight;
1293   top: $lineheight;
1294   right: $lineheight;
1295   left: $lineheight;
1296   border: 1px solid #ccc;
1297 }
1298
1299 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1300   margin-left: 93px;
1301 }
1302
1303 /* Rules for the data browser */
1304
1305 .browse-section {
1306   border-top: 1px solid #ccc;
1307   margin-top: $lineheight/2;
1308   padding-top: $lineheight/2;
1309   &:first-child {
1310     margin-top: 0;
1311   }
1312   .warning {
1313     background-color: #ffe0cc;
1314     margin: 0px;
1315     padding: 4px 6px;
1316     max-width: 100%;
1317   }
1318   h4, p {
1319     margin-bottom: $lineheight/4;
1320   }
1321   ul, .bbox, .geo {
1322     display: inline-block;
1323     vertical-align: top;
1324     max-width: 65%;
1325   }
1326   ul p {
1327     margin-left: 0;
1328     margin-bottom: 0;
1329   }
1330   h4 {
1331     float: left;
1332     width: 33.3333%;
1333     display: inline-block;
1334     vertical-align: top;
1335   }
1336 }
1337
1338 .bbox {
1339   div {
1340     width: 33.3333%;
1341     text-align: center;
1342     padding: $lineheight/4 0;
1343     overflow: hidden;
1344     text-overflow: ellipsis;
1345     float: left;
1346   }
1347   .max_lat,
1348   .min_lat {
1349     margin-left: auto;
1350     margin-right: auto;
1351     width: 100%;
1352   }
1353 }
1354
1355 #browse_map .secondary-actions {
1356   display: none;
1357   margin-bottom: $lineheight/2;
1358 }
1359
1360 /* Rules for the trace list shown by the traces tab etc */
1361
1362 #trace_list {
1363   font-size: $lineheight/2;
1364   border-width: 0px;
1365   text-align: right;
1366
1367   .trace_summary {
1368     font-size: 12px;
1369     color: gray;
1370   }
1371
1372   .trace_pending {
1373     color: red;
1374   }
1375
1376   .trace_public {
1377     color: green;
1378   }
1379
1380   .trace_identifiable {
1381     color: green;
1382   }
1383
1384   .trace_trackable {
1385     color: red;
1386   }
1387
1388   .trace_private {
1389     color: red;
1390   }
1391 }
1392
1393 /* Rules for the user profile page */
1394
1395 #userinformation {
1396
1397   min-height: 100px;
1398   .userinformation-inner {
1399     float: left;
1400   }
1401   h2 {
1402     margin-top: 0;
1403   }
1404   .user-description {
1405     width: 100%;
1406     clear: both;
1407   }
1408   .deemphasize {
1409     margin: 0;
1410   }
1411 }
1412
1413 .admin-user-info small {
1414   margin-bottom: $lineheight/2;
1415   display: inline;
1416   margin-right: $lineheight;
1417 }
1418
1419 .activity-block {
1420   clear: left;
1421   border-bottom: 1px solid #ccc;
1422   padding-bottom: $lineheight;
1423   float: left;
1424   h3 {
1425     margin-bottom: $lineheight/2;
1426   }
1427 }
1428
1429 .contact-activity {
1430   margin-top: $lineheight;
1431   width: 100%;
1432 }
1433
1434 .activity-details p {
1435   margin-left: 70px;
1436   margin-bottom: 0;
1437 }
1438
1439 #friends-container .contact-activity ul {
1440   margin-left: 70px;
1441 }
1442
1443 .user-view {
1444   p#no_home_location {
1445     margin: $lineheight;
1446   }
1447   .user_thumbnail {
1448     margin-top: $lineheight/4;
1449     float: left;
1450   }
1451 }
1452
1453 /* Rules for the user map */
1454
1455 .content_map .leaflet-popup-content {
1456   margin: $lineheight/2;
1457   min-height: 50px;
1458 }
1459
1460 /* Rules for user popups on maps */
1461
1462 .user_popup {
1463   min-width: 200px;
1464   p {
1465     padding: 0 0 5px 0;
1466     margin-top: 0 0 0 60px;
1467     font-size: 12px;
1468   }
1469   img.user_thumbnail {
1470     float: left;
1471     margin: 0 $lineheight/2 0 0;
1472   }
1473 }
1474
1475 /* Rules for the user list */
1476
1477 #user_list {
1478   font-size: $lineheight/2;
1479   width: 100%;
1480
1481   tr {
1482     vertical-align: middle;
1483   }
1484
1485   p {
1486     margin-top: 0px;
1487     margin-bottom: 0px;
1488   }
1489 }
1490
1491 #user_list_actions {
1492   float: right;
1493   margin-top: $lineheight/2;
1494 }
1495
1496 /* Rules for the diary list page */
1497
1498 .diary_entry-list img.user_thumbnail {
1499   float: left;
1500 }
1501
1502 .diary_post {
1503   max-width: 740px;
1504   position: relative;
1505   margin-top: $lineheight/2;
1506   padding-top: $lineheight;
1507   border-top: 1px solid #ccc;
1508
1509   &:first-child {
1510     margin-top: 0;
1511     border-top: 0;
1512     padding-top: 0;
1513   }
1514   h1, h2 {
1515     font-size: 21px;
1516     line-height: 1em;
1517   }
1518   small.deemphasize {
1519     float: left;
1520     display: block;
1521   }
1522   ul.secondary-actions { display: inline-block;}
1523 }
1524
1525 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1526   display: inline;
1527 }
1528
1529 #content  .post_heading {
1530   margin-bottom: $lineheight;
1531   h2 {
1532     margin-top: 0;
1533     margin-bottom: $lineheight/2;
1534     font-size: 24px;
1535   }
1536 }
1537
1538 /* Rules for the diary entry page */
1539
1540 .diary_entry {
1541   #map {
1542     position: relative;
1543     width: 90%;
1544     height: 400px;
1545     border: 1px solid #ccc;
1546     display: none;
1547     margin-bottom: $lineheight;
1548   }
1549   #newcomment {
1550     border-top: 1px solid #ccc;
1551     padding-top: $lineheight;
1552     margin-top: $lineheight/2;
1553   }
1554   .comments {
1555     max-width: 740px;
1556   }
1557   .diary-comment {
1558     margin-top: $lineheight/2;
1559     border-top: 1px dashed #ccc;
1560     padding-top: $lineheight/2;
1561     &:first-child {
1562       margin-top: $lineheight;
1563       padding-top: $lineheight;
1564       border-top: 1px solid #ccc;
1565     }
1566     p {
1567       margin-bottom: $lineheight/2;
1568     }
1569     .comment-heading {
1570       margin-bottom: 0;
1571       margin-top: 0;
1572     }
1573   }
1574 }
1575
1576 .diary_entry-view img.user_thumbnail {
1577   float: left;
1578 }
1579
1580 /* Rules for the log in page */
1581
1582 #login_openid_buttons {
1583   margin-bottom: 0;
1584 }
1585
1586 #login_openid_buttons li {
1587   float: left;
1588   padding: $lineheight/4 $lineheight/2;
1589 }
1590
1591 /* Rules for the account confirmation page */
1592
1593 .user-terms {
1594   .legale {
1595     border: 1px solid #ccc;
1596     padding: $lineheight;
1597     margin-bottom: $lineheight;
1598     overflow: auto;
1599     height: 10em;
1600
1601     &:p#last {
1602       margin-bottom: 0px;
1603     }
1604
1605     &:ol {
1606       margin-bottom: 0px;
1607     }
1608
1609     &:img {
1610       display: block;
1611       margin: $lineheight auto inherit auto;
1612     }
1613   }
1614
1615   #decline {
1616     background: $lightblue;
1617     &:hover {
1618       background: darken($lightblue, $hovercolor);
1619     }
1620   }
1621
1622   .form-row {
1623     margin: auto;
1624     max-width: 370px;
1625   }
1626 }
1627
1628 /* Rules for the account settings page */
1629
1630 #accountForm .user_map {
1631   position: relative;
1632   width: 500px;
1633   height: 400px;
1634   border: 1px solid #ccc;
1635 }
1636
1637 #accountForm .user_image {
1638   margin-bottom: 0;
1639 }
1640
1641 #accountForm #user_image {
1642   margin-left: 20px;
1643 }
1644
1645 #accountForm ul.accountImage-options {
1646   margin-left: 120px;
1647 }
1648
1649 .nohome .location {
1650   display: none;
1651 }
1652
1653 #homerow .message {
1654   display: none;
1655 }
1656
1657 .nohome .message {
1658   display: inline !important;
1659 }
1660
1661 .content_map.settings_map {
1662   width: 50%;
1663   float: none;
1664 }
1665
1666 /* Rules for the oauth settings page */
1667
1668 .oauth_clients .buttons .oauth-edit {
1669   border-radius: 2px 0 0 2px;
1670 }
1671
1672 .oauth_clients .buttons .oauth-delete {
1673   border-radius: 0 2px 2px 0;
1674 }
1675
1676 /* Rules for messages pages */
1677
1678 .messages {
1679   width: 100%;
1680   border: 1px solid #ddd;
1681
1682   input[type="submit"] {
1683     margin: auto;
1684   }
1685   tbody tr {
1686     border-top: 1px solid #ccc;
1687   }
1688
1689   .inbox-row {
1690     background: #f8f8ff;
1691   }
1692
1693   .inbox-row-unread {
1694     background:#CBEEA7;
1695   }
1696
1697   .right {
1698     float: right;
1699   }
1700
1701   tr td,
1702   tr th {
1703     padding: $lineheight/4;
1704   }
1705   p:last-child,
1706   h2:last-child,
1707   h3:last-child,
1708   ol:last-child,
1709   ul:last-child {
1710     margin-bottom:0;
1711   }
1712   tr td {
1713     height: 30px;
1714     border-right: 1px solid $lightgrey;
1715   }
1716 }
1717
1718 .inbox-row .inbox-mark-read {
1719   display: none;
1720 }
1721
1722 .info-line {
1723   margin-bottom: $lineheight;
1724   padding: $lineheight/4 0px 4px 0px;
1725   border-bottom: 1px solid #ccc;
1726
1727   form, form div {
1728     display: inline;
1729   }
1730 }
1731
1732 .info-line .user_thumbnail_tiny {
1733   vertical-align: middle;
1734 }
1735
1736 .inbox-mark-unread,
1737 .inbox-mark-read,
1738 .inbox-delete {
1739   width: 1%;
1740 }
1741
1742 .inbox-row-unread .inbox-mark-unread {
1743   display: none;
1744 }
1745
1746 .message-read .message-buttons {
1747   margin-top: $lineheight;
1748   padding-top: $lineheight;
1749   border-top: 1px solid $lightgrey;
1750 }
1751
1752 .message-read .buttons .mark-unread-button {
1753   border-radius: 0;
1754 }
1755
1756 /* Rules for "flash" notice boxes shown at the top of the content area */
1757
1758 .flash {
1759     padding: $lineheight;
1760   &#error {
1761     background-color: #ff7070;
1762   }
1763   &#warning {
1764     background-color: #ffe0cc;
1765   }
1766   &#notice {
1767     background-color: #CBEEA7;
1768   }
1769 }
1770
1771 /* Rules for highlighting fields with rails validation errors */
1772
1773 .field_with_errors {
1774   padding: 2px;
1775   background-color: #ff7070;
1776   display: inline-block;
1777 }
1778
1779 .formError {
1780   display: inline-block;
1781   padding: 5px 10px;
1782   margin-top: 5px;
1783   border-radius: 4px;
1784   font-size: 12px;
1785   color: #fff;
1786   background-color: #ff7070;
1787 }
1788
1789 /* Rules for rails validation error boxes */
1790
1791 #errorExplanation {
1792   width: 400px;
1793   border: 2px solid #ff7070;
1794   padding: 0 $lineheight/2;
1795   margin-bottom: $lineheight;
1796   background-color: #f0f0f0;
1797
1798   h2 {
1799     margin: 0 -10px 10px -10px;
1800     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1801     font-weight: bold;
1802     font-size: 12px;
1803     background-color: #c00;
1804     color: #fff;
1805     text-align: left;
1806   }
1807
1808   p {
1809     color: #333;
1810     margin-bottom: 0px;
1811     padding: $lineheight/4;
1812   }
1813
1814   ul {
1815     padding-left: $lineheight;
1816
1817     li {
1818       font-size: 12px;
1819       list-style: disc;
1820     }
1821   }
1822 }
1823
1824 /* Rules for forms */
1825
1826 .standard-form {
1827   fieldset {
1828     margin-bottom: $lineheight;
1829   }
1830   label.standard-label {
1831     display: block;
1832     margin-bottom: $lineheight/4;
1833     font-size: $typeheight;
1834     font-weight: bold;
1835     line-height: 1.5;
1836   }
1837   label.standard-label.secondary {
1838     display: inline-block;
1839     font-weight: normal;
1840   }
1841   .form-help {
1842     font-weight: normal;
1843   }
1844   .form-column {
1845     float: left;
1846     margin-right: 20px;
1847   }
1848   .form-divider {
1849     margin-top: $lineheight;
1850     padding-top: $lineheight;
1851     border-top: 1px solid $lightgrey;
1852   }
1853   .horizontal-list .form-row { 
1854     float: left;
1855     padding-right: 10px;
1856   }
1857   .form-row {
1858     margin-bottom: $lineheight/2;
1859   }
1860   .form-list {
1861     margin-bottom: 0;
1862   }
1863   .form-list li {
1864     margin-bottom: 5px;
1865    }
1866   input[type="checkbox"],
1867   input[type="radio"] {
1868     float: left;
1869     margin-top: 5px;
1870   }
1871 }
1872
1873 #remember_me_openid {
1874   display: block;
1875 }
1876
1877 input[type="checkbox"],
1878 input[type="radio"] {
1879     margin-right: 5px;
1880 }
1881
1882 input[type="text"],
1883 input[type="email"],
1884 input[type="url"],
1885 input[type="password"],
1886 textarea {
1887   border: 1px solid #ccc;
1888   padding: 2px 5px;
1889   margin: 0;
1890   width: 200px;
1891 }
1892
1893 textarea {
1894   padding: 5px;
1895   width: 100%;
1896 }
1897
1898 /* Rules for user images */
1899
1900 img.user_image {
1901   max-width: 100px;
1902   max-height: 100px;
1903   border: 1px solid #ccc;
1904   margin-bottom: $lineheight;
1905   float: left;
1906   margin-right: $lineheight;
1907 }
1908
1909 img.user_thumbnail {
1910   max-width: 50px;
1911   max-height: 50px;
1912   border: 1px solid #ccc;
1913   margin-right: $lineheight;
1914 }
1915
1916 img.user_thumbnail_tiny {
1917   max-width: 25px;
1918   max-height: 25px;
1919   border: 1px solid #ccc;
1920 }
1921
1922 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1923
1924 .nowrap {
1925   white-space: nowrap;
1926 }
1927
1928 /* Rules for geo microformats */
1929
1930 abbr.geo {
1931   border-bottom: none;
1932 }
1933
1934 /* Rules for RSS buttons */
1935
1936 .rsssmall {
1937   position: relative;
1938   top: 5px;
1939 }
1940
1941 /* General styles for action lists / subnavs / pager navs */
1942
1943 ul.secondary-actions {
1944   font-style: normal;
1945   margin-bottom: 0;
1946   margin-left: 0;
1947   &.pager {
1948     display: inline-block;
1949     margin-right: 60px;
1950   }
1951   > li {
1952     display: block;
1953     float: left;
1954     list-style: none;
1955     border-left: 1px solid #ccc;
1956     padding-left: $lineheight/4;
1957     margin-right: $lineheight/4;
1958     &:first-child {
1959       border-left: 0;
1960       padding-left: 0;
1961     }
1962     &:last-child {
1963       margin-right: 0px;
1964     }
1965   }
1966   .dropdown-menu {
1967     left: auto;
1968     right: 0;
1969   }
1970 }
1971
1972 /* Utility for managing inner content areas */
1973
1974 .inner22 { padding: $lineheight;}
1975
1976 .inner12 { padding: $lineheight/2 $lineheight;}
1977
1978 .inner11 { padding: $lineheight/2;}
1979
1980 .inner20 { padding: $lineheight 0;}
1981
1982 .inner02 { padding: 0 $lineheight;}
1983
1984 /* Utility for general button styles */
1985
1986 input[type="button"],
1987 input[type="submit"],
1988 input[type="reset"],
1989 a.button {
1990   cursor: pointer;
1991   border: 0;
1992   display: inline-block;
1993   line-height: 20px;
1994   padding: $lineheight/4 $lineheight/2;
1995   min-height: 20px + $lineheight/2;
1996   min-width: 120px;
1997   margin: 0 0 $lineheight/2 0;
1998   color: white;
1999   background: $blue;
2000   text-align: center;
2001   border-radius: 2px;
2002   -moz-border-radius: 2px;
2003   &:hover {
2004     background: darken($blue, $hovercolor);
2005     text-decoration: none;
2006   }
2007   &.deemphasize {
2008     background: $lightblue;
2009     &:hover {
2010       background: darken($lightblue, $hovercolor);
2011     }
2012   }
2013   &:disabled {
2014     background: $lightgrey;
2015     &:hover {
2016       background: $lightgrey;
2017     }
2018   }
2019   &:last-child {
2020     margin-bottom: 0;
2021   }
2022 }
2023
2024 .buttons {
2025   min-width: 200px;
2026   input[type="submit"],
2027   input[type="button"],
2028   input[type="reset"],
2029   .button {
2030     box-sizing: border-box;
2031     float: left;
2032     border-radius: 0;
2033     margin:0;
2034     min-width: 100px;
2035     max-width: 180px;
2036     border-right:1px solid white;
2037     text-overflow: ellipsis;
2038     white-space: nowrap;
2039     overflow: hidden;
2040   }
2041   input:first-child,
2042   .button:first-child {
2043     border-radius:2px 0 0 2px;
2044   }
2045   input:last-child,
2046   .button:last-child {
2047     border-radius:0 2px 2px 0;
2048     border-right-width: 0;
2049   }
2050   input:only-child,
2051   .button:only-child,
2052   *[value="Hide"] + input:last-child,
2053   *[value="Hide"] + .button:last-child {
2054     border-radius:2px;
2055     border-right-width: 0;
2056   }
2057     /* if a 3-button set has a hidden middle button */
2058   *[value="Hide"] + input:nth-child(3),
2059   *[value="Hide"] + .button:nth-child(3) {
2060     border-radius:0 2px 2px 0;
2061     border-right-width: 0;
2062   }
2063   /* if a 3-button set starts with a hidden button */
2064   *[value="Hide"] + input:nth-child(2):not(:last-child),
2065   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
2066     border-radius:2px 0 0 2px;
2067     border-right-width: 1px solid white;
2068   }
2069 }
2070
2071 /* Rules for doing distinct colour of alternate table rows */
2072
2073 .table0,
2074 .item0 {
2075   background: $offwhite;
2076 }
2077
2078 .table1,
2079 .item1 {
2080   background: #fff;
2081 }
2082
2083 /* Rules for OpenID logo */
2084
2085 .openid_logo {
2086   vertical-align: text-bottom;
2087   border: 0;
2088 }
2089
2090 /* Rules for rich text */
2091
2092 .richtext,
2093 .prose {
2094   h1, h2 {
2095     padding-bottom: $lineheight/2;
2096     border-bottom: 1px dashed #cccccc;
2097     margin-bottom: $lineheight/2;
2098   }
2099
2100   h1 {
2101     font-size: 24px;
2102   }
2103
2104   h2 {
2105     font-size: 18px;
2106   }
2107
2108   h3 {
2109     font-size: $typeheight;
2110   }
2111
2112   code {
2113     font-size: 13px;
2114     background: #e8e8e8;
2115     padding: 2px 3px;
2116   }
2117
2118   pre {
2119     font-size: 13px;
2120     background: #e8e8e8;
2121     padding: 2px 3px;
2122
2123     code {
2124       padding: 0;
2125     }
2126   }
2127
2128   img {
2129     padding: $lineheight;
2130     background-color: $offwhite;
2131     display: block;
2132     max-width: 100%;
2133     margin: auto;
2134   }
2135
2136   blockquote {
2137     border-left: $lineheight solid $offwhite;
2138     padding-left: $lineheight;
2139     margin: 0;
2140     color: #7E7E7E;
2141   }
2142
2143   ul, ol {
2144     padding-left: $lineheight;
2145     margin-bottom: $lineheight;
2146     margin-left: $lineheight;
2147   }
2148
2149   ul li {
2150     list-style: disc;
2151   }
2152
2153   ol li {
2154     list-style: decimal;
2155   }
2156 }
2157
2158 .diary_post .richtext {
2159     margin-top: $lineheight;
2160   }
2161
2162 .comments .richtext {
2163   margin-left: 70px;
2164   margin-top: 0;
2165 }
2166
2167 /* Rules for rich text editors */
2168
2169 .richtext_container {
2170   margin-bottom: $lineheight;
2171
2172   .richtext_content {
2173     width: 50%;
2174     display: inline-block;
2175     vertical-align: top;
2176
2177     .richtext_preview {
2178       display: inline-block;
2179       padding: $lineheight;
2180       background-color: $offwhite;
2181       overflow-x: auto;
2182
2183       &.loading {
2184         background-image: image-url("loading.gif");
2185         background-repeat: no-repeat;
2186         background-position: center;
2187       }
2188
2189       > :first-child {
2190         margin-top: 0px;
2191       }
2192     }
2193   }
2194
2195   .richtext_help {
2196     display: inline-block;
2197     vertical-align: top;
2198     margin-left: 15px;
2199     background-color: #f8f8ff;
2200     padding: $lineheight/2;
2201     width: 220px;
2202
2203     ul {
2204       margin-bottom: 0;
2205     }
2206
2207     h4.heading, li {
2208       border-bottom: 1px solid #ccc;
2209       margin-bottom: $lineheight/4;
2210       padding-bottom: $lineheight/4;
2211     }
2212
2213     li h4, li span, li p {
2214       display: inline-block;
2215       vertical-align: top;
2216       font-size: 11px;
2217     }
2218
2219     li h4 {
2220       width: 40%;
2221       margin: 0;
2222     }
2223
2224     li span, li p {
2225       width: 50%;
2226       margin-left: $lineheight/2;
2227       margin-bottom: $lineheight/4;
2228       white-space: nowrap;
2229     }
2230   }
2231 }
2232
2233 /* Rules for the user notes list */
2234
2235 .note_list {
2236   tr.creator {
2237     background-color: #eeeeee;
2238   }
2239
2240   td {
2241     padding: 3px;
2242   }
2243
2244   p {
2245     margin-bottom: 0px;
2246   }
2247 }
2248
2249 /* Rules for the notes interface */
2250
2251 .leaflet-popup-content .note {
2252   padding-top: $lineheight/2;
2253 }
2254
2255 .leaflet-popup-content .note {
2256   h2 {
2257     margin-bottom: $lineheight/2;
2258   }
2259
2260   div {
2261     margin-top: $lineheight/2;
2262   }
2263
2264   .permalink {
2265     position: absolute;
2266     top: $lineheight/4;
2267     left: $lineheight/4;
2268     min-width: 15px;
2269     min-height: 15px;
2270   }
2271
2272   .permalink span {
2273     display: none;
2274     padding-left: $lineheight;
2275   }
2276
2277   .permalink:hover span {
2278     display: block;
2279   }
2280
2281   .warning {
2282     display: block;
2283     background-color: #ffe0cc;
2284     padding: 4px 6px;
2285     margin-bottom: $lineheight/2;
2286   }
2287
2288   .comment_body {
2289     margin-top: 2px;
2290     margin-bottom: 2px;
2291
2292     p {
2293       margin-top: 0px;
2294       margin-bottom: 0px;
2295     }
2296   }
2297
2298   .comment {
2299     width: 100%;
2300     height: 100px;
2301   }
2302
2303   .buttons {
2304     margin-top: $lineheight/4;
2305     text-align: right;
2306   }
2307 }
2308
2309 /*
2310  * Rules for the iD editor
2311  */
2312
2313 .site-edit-id {
2314   #left,
2315   #large-title {
2316     display: none;
2317   }
2318
2319   #small-title {
2320     display: inline-block;
2321     width: 185px;
2322     height: 30px;
2323     font-size: 14px;
2324     margin: 0;
2325     background-color: #eee;
2326     border-bottom: 1px solid #ccc;
2327     text-align: center;
2328     padding-top: 7px;
2329   }
2330
2331   #content {
2332     left: 0;
2333   }
2334 }
2335
2336 .id-embed {
2337   width: 100%;
2338   height: 100%;
2339 }
2340
2341 /* Rules for rotating sidebar ads */
2342 .ad-container {
2343   display: block;
2344   height: 120px;
2345   overflow: hidden;
2346   position: relative;
2347   border-bottom: 1px solid #ccc;
2348 }
2349
2350 .ad {
2351   height: 100px;
2352   border: 0;
2353   background: #fff;
2354 }
2355
2356 /* Rules for dropdown menus */
2357
2358 .dropdown {
2359   position: relative;
2360 }
2361
2362 .dropdown-toggle {
2363   *margin-bottom: -3px;
2364 }
2365
2366 .dropdown-toggle:active,
2367 .open .dropdown-toggle {
2368   outline: 0;
2369 }
2370
2371 .caret {
2372   display: inline-block;
2373   width: 0;
2374   height: 0;
2375   vertical-align: top;
2376   border-top: 4px solid #000000;
2377   border-right: 4px solid transparent;
2378   border-left: 4px solid transparent;
2379   content: "";
2380 }
2381
2382 .dropdown .caret {
2383   margin-top: 8px;
2384   margin-left: 2px;
2385 }
2386
2387 .dropdown-menu {
2388   position: absolute;
2389   top: 100%;
2390   left: 0;
2391   z-index: 1000;
2392   display: none;
2393   float: left;
2394   min-width: 160px;
2395   padding: 5px 0;
2396   margin: 0;
2397   list-style: none;
2398   background-color: #ffffff;
2399   border: 1px solid #ccc;
2400   *border-right-width: 2px;
2401   *border-bottom-width: 2px;
2402   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2403      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2404           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2405   -webkit-background-clip: padding-box;
2406      -moz-background-clip: padding;
2407           background-clip: padding-box;
2408 }
2409
2410 .dropdown-menu.pull-right {
2411   right: 0;
2412   left: auto;
2413 }
2414
2415 .dropdown-menu .divider {
2416   *width: 100%;
2417   height: 1px;
2418   margin: 9px 1px;
2419   *margin: -5px 0 5px;
2420   overflow: hidden;
2421   background-color: #e5e5e5;
2422   border-bottom: 1px solid #ffffff;
2423 }
2424
2425 .dropdown-menu > li > a {
2426   display: block;
2427   padding: 3px 10px;
2428   clear: both;
2429   font-weight: normal;
2430   line-height: 20px;
2431   color: #333333;
2432   white-space: nowrap;
2433 }
2434
2435 .dropdown-menu > li > a:hover,
2436 .dropdown-menu > li > a:focus,
2437 .dropdown-submenu:hover > a,
2438 .dropdown-submenu:focus > a {
2439   color: #ffffff;
2440   text-decoration: none;
2441   background-color: #0081c2;
2442 }
2443
2444 .dropdown-menu > .active > a,
2445 .dropdown-menu > .active > a:hover,
2446 .dropdown-menu > .active > a:focus {
2447   color: #ffffff;
2448   text-decoration: none;
2449   background-color: #0081c2;
2450   outline: 0;
2451 }
2452
2453 .dropdown-menu > .disabled > a,
2454 .dropdown-menu > .disabled > a:hover,
2455 .dropdown-menu > .disabled > a:focus {
2456   color: #999999;
2457 }
2458
2459 .dropdown-menu > .disabled > a:hover,
2460 .dropdown-menu > .disabled > a:focus {
2461   text-decoration: none;
2462   cursor: default;
2463   background-color: transparent;
2464   background-image: none;
2465 }
2466
2467 .open {
2468   *z-index: 1000;
2469 }
2470
2471 .open > .dropdown-menu {
2472   display: block;
2473 }
2474
2475 .dropdown-backdrop {
2476   position: fixed;
2477   top: 0;
2478   right: 0;
2479   bottom: 0;
2480   left: 0;
2481   z-index: 990;
2482 }
2483
2484 /* Rules for the "Welcome" page */
2485 .site-welcome {
2486   .center {
2487     text-align: center;
2488     .sprite { 
2489       float: none;
2490       margin: auto;
2491     }
2492   }
2493
2494   .sprite {
2495     background-image: image-url("welcome-sprite.png");
2496     background-size: 500px 250px;
2497     display: block;
2498     float: left;
2499   }
2500
2501   .icon-list { 
2502     padding-bottom: 20px;
2503     div {
2504       margin-bottom: 10px;
2505       p {
2506         padding-top: 10px;
2507       }
2508     }
2509   }
2510   .sprite.small {
2511     width: 50px;
2512     height: 50px;
2513   }
2514
2515   .sprite.x {
2516     background-position: -50px 0;
2517   }
2518
2519   .sprite.term {
2520     margin-right: 10px;
2521     vertical-align: middle;
2522   }
2523
2524   .sprite.node {
2525     background-position: -100px 0;
2526   }
2527
2528   .sprite.way {
2529     background-position: -150px 0;
2530   }
2531
2532   .sprite.tag {
2533     background-position: -200px 0;
2534   }
2535
2536   .sprite.editor {
2537     background-position: -250px 0;
2538   }
2539
2540   .sprite.question {
2541     background-position: -300px 0;
2542   }
2543
2544   .start-mapping {
2545     margin: auto;
2546     cursor: pointer;
2547     border: none;
2548     padding: 20px 40px;
2549     font-size: 30px;
2550     text-decoration: none;
2551   }
2552
2553   .note-box {
2554     margin-top: 20px;
2555     background-color: $offwhite;
2556   }
2557
2558   .icon.note {
2559     background-color: #333;
2560     border-radius: 4px;
2561   }
2562 }