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