]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Fix hidden text behind the search icon
[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 22px 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   #content {
1113     max-width: 740px;
1114   }
1115 }
1116
1117 .user-new,
1118 .user-create,
1119 .user-terms,
1120 .user-confirm {
1121   .content-heading {
1122     height: 200px;
1123   }
1124 }
1125
1126 .user-new,
1127 .user-create,
1128 .user-terms {
1129   #content {
1130     padding: 0;
1131   }
1132 }
1133
1134 .header-illustration {
1135   background-position: 0 0;
1136   background-repeat: no-repeat;
1137   position: absolute;
1138   height: 200px;
1139   width: 100%;
1140   left: 0;
1141   bottom: 0;
1142
1143   &.new-user-main {
1144     background-image: image-url("sign-up-illustration.png");
1145   }
1146
1147   &.confirm-main {
1148     background-image: image-url("confirm-illustration.png");
1149   }
1150
1151   &.new-user-terms {
1152     background-image: image-url("terms-illustration.png");
1153   }
1154
1155   &.new-user-arm {
1156     height: 110px;
1157     width: 130px;
1158     left: 260px;
1159     top: 160px;
1160     background-image: image-url("sign-up-illustration-arm.png");
1161   }
1162 }
1163
1164 @media only screen and (max-width:900px) {
1165   .header-illustration.new-user-arm { display: none;}
1166 }
1167
1168 .wrapper {
1169   margin-left: 184px;
1170   border-left: 1px solid #ccc;
1171   text-align: left;
1172 }
1173
1174 #content.maximised {
1175   top: 0;
1176   left: 0;
1177   right: 0;
1178   bottom: 0;
1179   border: 0;
1180   z-index: 1000;
1181 }
1182
1183 #slim_container {
1184   width: 100%;
1185 }
1186
1187 #slim_container_content {
1188   max-width: 50em;
1189   background-color: #FFFFFF;
1190   margin: $lineheight/2 auto;
1191   padding: 3px;
1192   border-radius: 25px;
1193   -moz-border-radius: 25px;
1194   border: 1px solid #e6e6e6;
1195 }
1196
1197 #slim_content {
1198   margin: $lineheight/2;
1199   margin-top: 95px;
1200   max-width: 50em;
1201
1202   .content-heading {
1203     margin-bottom: 15px;
1204   }
1205 }
1206
1207 #slim_header {
1208   margin: 30px $lineheight/2;
1209   position: absolute;
1210   top: 0px;
1211   margin-right: $lineheight/4;
1212   img {
1213     vertical-align: middle;
1214     margin-bottom: $lineheight/4;
1215     margin-right: $lineheight/4;
1216   }
1217 }
1218
1219 .content-heading {
1220   position: relative;
1221   padding: $lineheight;
1222   background: $offwhite;
1223   z-index: 2;
1224   h1, h2 {
1225     margin-bottom: $lineheight/2;
1226     line-height: 100%;
1227     &:last-child {
1228       margin-bottom: 0;
1229     }
1230   }
1231   p {
1232     margin-top: $lineheight/2;
1233     margin-bottom: 0px;
1234   }
1235 }
1236
1237 /* Rules for small maps in content areas */
1238
1239 .content_map {
1240   position: relative;
1241   width: 45%;
1242   height: 400px;
1243   border: 1px solid #ccc;
1244   margin-bottom: $lineheight;
1245   float: right;
1246 }
1247
1248 .content_map #small_map {
1249   height: 100%;
1250   width: 100%;
1251   margin-bottom: $lineheight;
1252 }
1253
1254 /* Rules for the changeset list shown by the history tab etc */
1255
1256 #changeset_list {
1257   width: 100%;
1258   ul {
1259     padding: $lineheight/2 0;
1260     margin-bottom: 0px;
1261     border-top: 1px solid #ccc;
1262     &:last-child {
1263       border-bottom: 1px solid #ccc;
1264     }
1265   }
1266   .selected {
1267     background: #FFFFC0;
1268   }
1269   .date,
1270   .user {
1271     border-left: 1px solid #ccc;
1272     padding-left: $lineheight/4;
1273     margin-right: $lineheight/4;
1274   }
1275 }
1276
1277 #changeset_list_map_wrapper {
1278   position: absolute;
1279   width: 50%;
1280   height: 490px;
1281   top: 0;
1282   right: 0;
1283 }
1284
1285 #changeset_list_map_wrapper.scrolled {
1286   position: fixed;
1287 }
1288
1289 #changeset_list_map {
1290   position: absolute;
1291   bottom: $lineheight;
1292   top: $lineheight;
1293   right: $lineheight;
1294   left: $lineheight;
1295   border: 1px solid #ccc;
1296 }
1297
1298 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1299   margin-left: 93px;
1300 }
1301
1302 /* Rules for the data browser */
1303
1304 .browse-section {
1305   border-top: 1px solid #ccc;
1306   margin-top: $lineheight/2;
1307   padding-top: $lineheight/2;
1308   &:first-child {
1309     margin-top: 0;
1310   }
1311   .warning {
1312     background-color: #ffe0cc;
1313     margin: 0px;
1314     padding: 4px 6px;
1315     max-width: 100%;
1316   }
1317   h4, p {
1318     margin-bottom: $lineheight/4;
1319   }
1320   ul, .bbox, .geo {
1321     display: inline-block;
1322     vertical-align: top;
1323     max-width: 65%;
1324   }
1325   ul p {
1326     margin-left: 0;
1327     margin-bottom: 0;
1328   }
1329   h4 {
1330     float: left;
1331     width: 33.3333%;
1332     display: inline-block;
1333     vertical-align: top;
1334   }
1335 }
1336
1337 .bbox {
1338   div {
1339     width: 33.3333%;
1340     text-align: center;
1341     padding: $lineheight/4 0;
1342     overflow: hidden;
1343     text-overflow: ellipsis;
1344     float: left;
1345   }
1346   .max_lat,
1347   .min_lat {
1348     margin-left: auto;
1349     margin-right: auto;
1350     width: 100%;
1351   }
1352 }
1353
1354 #browse_map .secondary-actions {
1355   display: none;
1356   margin-bottom: $lineheight/2;
1357 }
1358
1359 /* Rules for the trace list shown by the traces tab etc */
1360
1361 #trace_list {
1362   font-size: $lineheight/2;
1363   border-width: 0px;
1364   text-align: right;
1365
1366   .trace_summary {
1367     font-size: 12px;
1368     color: gray;
1369   }
1370
1371   .trace_pending {
1372     color: red;
1373   }
1374
1375   .trace_public {
1376     color: green;
1377   }
1378
1379   .trace_identifiable {
1380     color: green;
1381   }
1382
1383   .trace_trackable {
1384     color: red;
1385   }
1386
1387   .trace_private {
1388     color: red;
1389   }
1390 }
1391
1392 /* Rules for the user profile page */
1393
1394 #userinformation {
1395
1396   min-height: 100px;
1397   .userinformation-inner {
1398     float: left;
1399   }
1400   h2 {
1401     margin-top: 0;
1402   }
1403   .user-description {
1404     width: 100%;
1405     clear: both;
1406   }
1407   .deemphasize {
1408     margin: 0;
1409   }
1410 }
1411
1412 .admin-user-info small {
1413   margin-bottom: $lineheight/2;
1414   display: inline;
1415   margin-right: $lineheight;
1416 }
1417
1418 .activity-block {
1419   clear: left;
1420   border-bottom: 1px solid #ccc;
1421   padding-bottom: $lineheight;
1422   float: left;
1423   h3 {
1424     margin-bottom: $lineheight/2;
1425   }
1426 }
1427
1428 .contact-activity {
1429   margin-top: $lineheight;
1430   width: 100%;
1431 }
1432
1433 .activity-details p {
1434   margin-left: 70px;
1435   margin-bottom: 0;
1436 }
1437
1438 #friends-container .contact-activity ul {
1439   margin-left: 70px;
1440 }
1441
1442 .user-view {
1443   p#no_home_location {
1444     margin: $lineheight;
1445   }
1446   .user_thumbnail {
1447     margin-top: $lineheight/4;
1448     float: left;
1449   }
1450 }
1451
1452 /* Rules for the user map */
1453
1454 .content_map .leaflet-popup-content {
1455   margin: $lineheight/2;
1456   min-height: 50px;
1457 }
1458
1459 /* Rules for user popups on maps */
1460
1461 .user_popup {
1462   min-width: 200px;
1463   p {
1464     padding: 0 0 5px 0;
1465     margin-top: 0 0 0 60px;
1466     font-size: 12px;
1467   }
1468   img.user_thumbnail {
1469     float: left;
1470     margin: 0 $lineheight/2 0 0;
1471   }
1472 }
1473
1474 /* Rules for the user list */
1475
1476 #user_list {
1477   font-size: $lineheight/2;
1478   width: 100%;
1479
1480   tr {
1481     vertical-align: middle;
1482   }
1483
1484   p {
1485     margin-top: 0px;
1486     margin-bottom: 0px;
1487   }
1488 }
1489
1490 #user_list_actions {
1491   float: right;
1492   margin-top: $lineheight/2;
1493 }
1494
1495 /* Rules for the diary list page */
1496
1497 .diary_entry-list img.user_thumbnail {
1498   float: left;
1499 }
1500
1501 .diary_post {
1502   max-width: 740px;
1503   position: relative;
1504   margin-top: $lineheight/2;
1505   padding-top: $lineheight;
1506   border-top: 1px solid #ccc;
1507
1508   &:first-child {
1509     margin-top: 0;
1510     border-top: 0;
1511     padding-top: 0;
1512   }
1513   h1, h2 {
1514     font-size: 21px;
1515     line-height: 1em;
1516   }
1517   small.deemphasize {
1518     float: left;
1519     display: block;
1520   }
1521   ul.secondary-actions { display: inline-block;}
1522 }
1523
1524 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1525   display: inline;
1526 }
1527
1528 #content  .post_heading {
1529   margin-bottom: $lineheight;
1530   h2 {
1531     margin-top: 0;
1532     margin-bottom: $lineheight/2;
1533     font-size: 24px;
1534   }
1535 }
1536
1537 /* Rules for the diary entry page */
1538
1539 .diary_entry {
1540   #map {
1541     position: relative;
1542     width: 90%;
1543     height: 400px;
1544     border: 1px solid #ccc;
1545     display: none;
1546     margin-bottom: $lineheight;
1547   }
1548   #newcomment {
1549     border-top: 1px solid #ccc;
1550     padding-top: $lineheight;
1551     margin-top: $lineheight/2;
1552   }
1553   .comments {
1554     max-width: 740px;
1555   }
1556   .diary-comment {
1557     margin-top: $lineheight/2;
1558     border-top: 1px dashed #ccc;
1559     padding-top: $lineheight/2;
1560     &:first-child {
1561       margin-top: $lineheight;
1562       padding-top: $lineheight;
1563       border-top: 1px solid #ccc;
1564     }
1565     p {
1566       margin-bottom: $lineheight/2;
1567     }
1568     .comment-heading {
1569       margin-bottom: 0;
1570       margin-top: 0;
1571     }
1572   }
1573 }
1574
1575 .diary_entry-view img.user_thumbnail {
1576   float: left;
1577 }
1578
1579 /* Rules for the log in page */
1580
1581 #login_openid_buttons {
1582   margin-bottom: 0;
1583 }
1584
1585 #login_openid_buttons li {
1586   float: left;
1587   padding: $lineheight/4 $lineheight/2;
1588 }
1589
1590 /* Rules for the account confirmation page */
1591
1592 .user-terms {
1593   .legale {
1594     border: 1px solid #ccc;
1595     padding: $lineheight;
1596     margin-bottom: $lineheight;
1597     overflow: auto;
1598     height: 10em;
1599
1600     &:p#last {
1601       margin-bottom: 0px;
1602     }
1603
1604     &:ol {
1605       margin-bottom: 0px;
1606     }
1607
1608     &:img {
1609       display: block;
1610       margin: $lineheight auto inherit auto;
1611     }
1612   }
1613
1614   #decline {
1615     background: $lightblue;
1616     &:hover {
1617       background: darken($lightblue, $hovercolor);
1618     }
1619   }
1620
1621   .form-row {
1622     margin: auto;
1623     max-width: 370px;
1624   }
1625 }
1626
1627 /* Rules for the account settings page */
1628
1629 #accountForm .user_map {
1630   position: relative;
1631   width: 500px;
1632   height: 400px;
1633   border: 1px solid #ccc;
1634 }
1635
1636 #accountForm .user_image {
1637   margin-bottom: 0;
1638 }
1639
1640 #accountForm #user_image {
1641   margin-left: 20px;
1642 }
1643
1644 #accountForm ul.accountImage-options {
1645   margin-left: 120px;
1646 }
1647
1648 .nohome .location {
1649   display: none;
1650 }
1651
1652 #homerow .message {
1653   display: none;
1654 }
1655
1656 .nohome .message {
1657   display: inline !important;
1658 }
1659
1660 .content_map.settings_map {
1661   width: 50%;
1662   float: none;
1663 }
1664
1665 /* Rules for the oauth settings page */
1666
1667 .oauth_clients .buttons .oauth-edit {
1668   border-radius: 2px 0 0 2px;
1669 }
1670
1671 .oauth_clients .buttons .oauth-delete {
1672   border-radius: 0 2px 2px 0;
1673 }
1674
1675 /* Rules for messages pages */
1676
1677 .messages {
1678   width: 100%;
1679   border: 1px solid #ddd;
1680
1681   input[type="submit"] {
1682     margin: auto;
1683   }
1684   tbody tr {
1685     border-top: 1px solid #ccc;
1686   }
1687
1688   .inbox-row {
1689     background: #f8f8ff;
1690   }
1691
1692   .inbox-row-unread {
1693     background:#CBEEA7;
1694   }
1695
1696   .right {
1697     float: right;
1698   }
1699
1700   tr td,
1701   tr th {
1702     padding: $lineheight/4;
1703   }
1704   p:last-child,
1705   h2:last-child,
1706   h3:last-child,
1707   ol:last-child,
1708   ul:last-child {
1709     margin-bottom:0;
1710   }
1711   tr td {
1712     height: 30px;
1713     border-right: 1px solid $lightgrey;
1714   }
1715 }
1716
1717 .inbox-row .inbox-mark-read {
1718   display: none;
1719 }
1720
1721 .info-line {
1722   margin-bottom: $lineheight;
1723   padding: $lineheight/4 0px 4px 0px;
1724   border-bottom: 1px solid #ccc;
1725
1726   form, form div {
1727     display: inline;
1728   }
1729 }
1730
1731 .info-line .user_thumbnail_tiny {
1732   vertical-align: middle;
1733 }
1734
1735 .inbox-mark-unread,
1736 .inbox-mark-read,
1737 .inbox-delete {
1738   width: 1%;
1739 }
1740
1741 .inbox-row-unread .inbox-mark-unread {
1742   display: none;
1743 }
1744
1745 .message-read .message-buttons {
1746   margin-top: $lineheight;
1747   padding-top: $lineheight;
1748   border-top: 1px solid $lightgrey;
1749 }
1750
1751 .message-read .buttons .mark-unread-button {
1752   border-radius: 0;
1753 }
1754
1755 /* Rules for "flash" notice boxes shown at the top of the content area */
1756
1757 .flash {
1758     padding: $lineheight;
1759   &#error {
1760     background-color: #ff7070;
1761   }
1762   &#warning {
1763     background-color: #ffe0cc;
1764   }
1765   &#notice {
1766     background-color: #CBEEA7;
1767   }
1768 }
1769
1770 /* Rules for highlighting fields with rails validation errors */
1771
1772 .field_with_errors {
1773   padding: 2px;
1774   background-color: #ff7070;
1775   display: inline-block;
1776 }
1777
1778 .formError {
1779   display: inline-block;
1780   padding: 5px 10px;
1781   margin-top: 5px;
1782   border-radius: 4px;
1783   font-size: 12px;
1784   color: #fff;
1785   background-color: #ff7070;
1786 }
1787
1788 /* Rules for rails validation error boxes */
1789
1790 #errorExplanation {
1791   width: 400px;
1792   border: 2px solid #ff7070;
1793   padding: 0 $lineheight/2;
1794   margin-bottom: $lineheight;
1795   background-color: #f0f0f0;
1796
1797   h2 {
1798     margin: 0 -10px 10px -10px;
1799     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1800     font-weight: bold;
1801     font-size: 12px;
1802     background-color: #c00;
1803     color: #fff;
1804     text-align: left;
1805   }
1806
1807   p {
1808     color: #333;
1809     margin-bottom: 0px;
1810     padding: $lineheight/4;
1811   }
1812
1813   ul {
1814     padding-left: $lineheight;
1815
1816     li {
1817       font-size: 12px;
1818       list-style: disc;
1819     }
1820   }
1821 }
1822
1823 /* Rules for forms */
1824
1825 .standard-form {
1826   fieldset {
1827     margin-bottom: $lineheight;
1828   }
1829   label.standard-label {
1830     display: block;
1831     margin-bottom: $lineheight/4;
1832     font-size: $typeheight;
1833     font-weight: bold;
1834     line-height: 1.5;
1835   }
1836   label.standard-label.secondary {
1837     display: inline-block;
1838     font-weight: normal;
1839   }
1840   .form-help {
1841     font-weight: normal;
1842   }
1843   .form-column {
1844     float: left;
1845     margin-right: 20px;
1846   }
1847   .form-divider {
1848     margin-top: $lineheight;
1849     padding-top: $lineheight;
1850     border-top: 1px solid $lightgrey;
1851   }
1852   .horizontal-list .form-row { 
1853     float: left;
1854     padding-right: 10px;
1855   }
1856   .form-row {
1857     margin-bottom: $lineheight/2;
1858   }
1859   .form-list {
1860     margin-bottom: 0;
1861   }
1862   .form-list li {
1863     margin-bottom: 5px;
1864    }
1865   input[type="checkbox"],
1866   input[type="radio"] {
1867     float: left;
1868     margin-top: 5px;
1869   }
1870 }
1871
1872 #remember_me_openid {
1873   display: block;
1874 }
1875
1876 input[type="checkbox"],
1877 input[type="radio"] {
1878     margin-right: 5px;
1879 }
1880
1881 input[type="text"],
1882 input[type="email"],
1883 input[type="url"],
1884 input[type="password"],
1885 textarea {
1886   border: 1px solid #ccc;
1887   padding: 2px 5px;
1888   margin: 0;
1889   width: 200px;
1890 }
1891
1892 textarea {
1893   padding: 5px;
1894   width: 100%;
1895 }
1896
1897 /* Rules for user images */
1898
1899 img.user_image {
1900   max-width: 100px;
1901   max-height: 100px;
1902   border: 1px solid #ccc;
1903   margin-bottom: $lineheight;
1904   float: left;
1905   margin-right: $lineheight;
1906 }
1907
1908 img.user_thumbnail {
1909   max-width: 50px;
1910   max-height: 50px;
1911   border: 1px solid #ccc;
1912   margin-right: $lineheight;
1913 }
1914
1915 img.user_thumbnail_tiny {
1916   max-width: 25px;
1917   max-height: 25px;
1918   border: 1px solid #ccc;
1919 }
1920
1921 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1922
1923 .nowrap {
1924   white-space: nowrap;
1925 }
1926
1927 /* Rules for geo microformats */
1928
1929 abbr.geo {
1930   border-bottom: none;
1931 }
1932
1933 /* Rules for RSS buttons */
1934
1935 .rsssmall {
1936   position: relative;
1937   top: 5px;
1938 }
1939
1940 /* General styles for action lists / subnavs / pager navs */
1941
1942 ul.secondary-actions {
1943   font-style: normal;
1944   margin-bottom: 0;
1945   margin-left: 0;
1946   &.pager {
1947     display: inline-block;
1948     margin-right: 60px;
1949   }
1950   > li {
1951     display: block;
1952     float: left;
1953     list-style: none;
1954     border-left: 1px solid #ccc;
1955     padding-left: $lineheight/4;
1956     margin-right: $lineheight/4;
1957     &:first-child {
1958       border-left: 0;
1959       padding-left: 0;
1960     }
1961     &:last-child {
1962       margin-right: 0px;
1963     }
1964   }
1965   .dropdown-menu {
1966     left: auto;
1967     right: 0;
1968   }
1969 }
1970
1971 /* Utility for managing inner content areas */
1972
1973 .inner22 { padding: $lineheight;}
1974
1975 .inner12 { padding: $lineheight/2 $lineheight;}
1976
1977 .inner11 { padding: $lineheight/2;}
1978
1979 .inner20 { padding: $lineheight 0;}
1980
1981 .inner02 { padding: 0 $lineheight;}
1982
1983 /* Utility for general button styles */
1984
1985 input[type="button"],
1986 input[type="submit"],
1987 input[type="reset"],
1988 a.button {
1989   cursor: pointer;
1990   border: 0;
1991   display: inline-block;
1992   line-height: 20px;
1993   padding: $lineheight/4 $lineheight/2;
1994   min-height: 20px + $lineheight/2;
1995   min-width: 120px;
1996   margin: 0 0 $lineheight/2 0;
1997   color: white;
1998   background: $blue;
1999   text-align: center;
2000   border-radius: 2px;
2001   -moz-border-radius: 2px;
2002   &:hover {
2003     background: darken($blue, $hovercolor);
2004     text-decoration: none;
2005   }
2006   &.deemphasize {
2007     background: $lightblue;
2008     &:hover {
2009       background: darken($lightblue, $hovercolor);
2010     }
2011   }
2012   &:disabled {
2013     background: $lightgrey;
2014     &:hover {
2015       background: $lightgrey;
2016     }
2017   }
2018   &:last-child {
2019     margin-bottom: 0;
2020   }
2021 }
2022
2023 .buttons {
2024   min-width: 200px;
2025   input[type="submit"],
2026   input[type="button"],
2027   input[type="reset"],
2028   .button {
2029     box-sizing: border-box;
2030     float: left;
2031     border-radius: 0;
2032     margin:0;
2033     min-width: 100px;
2034     max-width: 180px;
2035     border-right:1px solid white;
2036     text-overflow: ellipsis;
2037     white-space: nowrap;
2038     overflow: hidden;
2039   }
2040   input:first-child,
2041   .button:first-child {
2042     border-radius:2px 0 0 2px;
2043   }
2044   input:last-child,
2045   .button:last-child {
2046     border-radius:0 2px 2px 0;
2047     border-right-width: 0;
2048   }
2049   input:only-child,
2050   .button:only-child,
2051   *[value="Hide"] + input:last-child,
2052   *[value="Hide"] + .button:last-child {
2053     border-radius:2px;
2054     border-right-width: 0;
2055   }
2056     /* if a 3-button set has a hidden middle button */
2057   *[value="Hide"] + input:nth-child(3),
2058   *[value="Hide"] + .button:nth-child(3) {
2059     border-radius:0 2px 2px 0;
2060     border-right-width: 0;
2061   }
2062   /* if a 3-button set starts with a hidden button */
2063   *[value="Hide"] + input:nth-child(2):not(:last-child),
2064   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
2065     border-radius:2px 0 0 2px;
2066     border-right-width: 1px solid white;
2067   }
2068 }
2069
2070 /* Rules for doing distinct colour of alternate table rows */
2071
2072 .table0,
2073 .item0 {
2074   background: $offwhite;
2075 }
2076
2077 .table1,
2078 .item1 {
2079   background: #fff;
2080 }
2081
2082 /* Rules for OpenID logo */
2083
2084 .openid_logo {
2085   vertical-align: text-bottom;
2086   border: 0;
2087 }
2088
2089 /* Rules for rich text */
2090
2091 .richtext,
2092 .prose {
2093   h1, h2 {
2094     padding-bottom: $lineheight/2;
2095     border-bottom: 1px dashed #cccccc;
2096     margin-bottom: $lineheight/2;
2097   }
2098
2099   h1 {
2100     font-size: 24px;
2101   }
2102
2103   h2 {
2104     font-size: 18px;
2105   }
2106
2107   h3 {
2108     font-size: $typeheight;
2109   }
2110
2111   code {
2112     font-size: 13px;
2113     background: #e8e8e8;
2114     padding: 2px 3px;
2115   }
2116
2117   pre {
2118     font-size: 13px;
2119     background: #e8e8e8;
2120     padding: 2px 3px;
2121
2122     code {
2123       padding: 0;
2124     }
2125   }
2126
2127   img {
2128     padding: $lineheight;
2129     background-color: $offwhite;
2130     display: block;
2131     max-width: 100%;
2132     margin: auto;
2133   }
2134
2135   blockquote {
2136     border-left: $lineheight solid $offwhite;
2137     padding-left: $lineheight;
2138     margin: 0;
2139     color: #7E7E7E;
2140   }
2141
2142   ul, ol {
2143     padding-left: $lineheight;
2144     margin-bottom: $lineheight;
2145     margin-left: $lineheight;
2146   }
2147
2148   ul li {
2149     list-style: disc;
2150   }
2151
2152   ol li {
2153     list-style: decimal;
2154   }
2155 }
2156
2157 .diary_post .richtext {
2158     margin-top: $lineheight;
2159   }
2160
2161 .comments .richtext {
2162   margin-left: 70px;
2163   margin-top: 0;
2164 }
2165
2166 /* Rules for rich text editors */
2167
2168 .richtext_container {
2169   margin-bottom: $lineheight;
2170
2171   .richtext_content {
2172     width: 50%;
2173     display: inline-block;
2174     vertical-align: top;
2175
2176     .richtext_preview {
2177       display: inline-block;
2178       padding: $lineheight;
2179       background-color: $offwhite;
2180       overflow-x: auto;
2181
2182       &.loading {
2183         background-image: image-url("loading.gif");
2184         background-repeat: no-repeat;
2185         background-position: center;
2186       }
2187
2188       > :first-child {
2189         margin-top: 0px;
2190       }
2191     }
2192   }
2193
2194   .richtext_help {
2195     display: inline-block;
2196     vertical-align: top;
2197     margin-left: 15px;
2198     background-color: #f8f8ff;
2199     padding: $lineheight/2;
2200     width: 220px;
2201
2202     ul {
2203       margin-bottom: 0;
2204     }
2205
2206     h4.heading, li {
2207       border-bottom: 1px solid #ccc;
2208       margin-bottom: $lineheight/4;
2209       padding-bottom: $lineheight/4;
2210     }
2211
2212     li h4, li span, li p {
2213       display: inline-block;
2214       vertical-align: top;
2215       font-size: 11px;
2216     }
2217
2218     li h4 {
2219       width: 40%;
2220       margin: 0;
2221     }
2222
2223     li span, li p {
2224       width: 50%;
2225       margin-left: $lineheight/2;
2226       margin-bottom: $lineheight/4;
2227       white-space: nowrap;
2228     }
2229   }
2230 }
2231
2232 /* Rules for the user notes list */
2233
2234 .note_list {
2235   tr.creator {
2236     background-color: #eeeeee;
2237   }
2238
2239   td {
2240     padding: 3px;
2241   }
2242
2243   p {
2244     margin-bottom: 0px;
2245   }
2246 }
2247
2248 /* Rules for the notes interface */
2249
2250 .leaflet-popup-content .note {
2251   padding-top: $lineheight/2;
2252 }
2253
2254 .leaflet-popup-content .note {
2255   h2 {
2256     margin-bottom: $lineheight/2;
2257   }
2258
2259   div {
2260     margin-top: $lineheight/2;
2261   }
2262
2263   .permalink {
2264     position: absolute;
2265     top: $lineheight/4;
2266     left: $lineheight/4;
2267     min-width: 15px;
2268     min-height: 15px;
2269   }
2270
2271   .permalink span {
2272     display: none;
2273     padding-left: $lineheight;
2274   }
2275
2276   .permalink:hover span {
2277     display: block;
2278   }
2279
2280   .warning {
2281     display: block;
2282     background-color: #ffe0cc;
2283     padding: 4px 6px;
2284     margin-bottom: $lineheight/2;
2285   }
2286
2287   .comment_body {
2288     margin-top: 2px;
2289     margin-bottom: 2px;
2290
2291     p {
2292       margin-top: 0px;
2293       margin-bottom: 0px;
2294     }
2295   }
2296
2297   .comment {
2298     width: 100%;
2299     height: 100px;
2300   }
2301
2302   .buttons {
2303     margin-top: $lineheight/4;
2304     text-align: right;
2305   }
2306 }
2307
2308 /*
2309  * Rules for the iD editor
2310  */
2311
2312 .site-edit-id {
2313   #left,
2314   #large-title {
2315     display: none;
2316   }
2317
2318   #small-title {
2319     display: inline-block;
2320     width: 185px;
2321     height: 30px;
2322     font-size: 14px;
2323     margin: 0;
2324     background-color: #eee;
2325     border-bottom: 1px solid #ccc;
2326     text-align: center;
2327     padding-top: 7px;
2328   }
2329
2330   #content {
2331     left: 0;
2332   }
2333 }
2334
2335 .id-embed {
2336   width: 100%;
2337   height: 100%;
2338 }
2339
2340 /* Rules for rotating sidebar ads */
2341 .ad-container {
2342   display: block;
2343   height: 120px;
2344   overflow: hidden;
2345   position: relative;
2346   border-bottom: 1px solid #ccc;
2347 }
2348
2349 .ad {
2350   height: 100px;
2351   border: 0;
2352   background: #fff;
2353 }
2354
2355 /* Rules for dropdown menus */
2356
2357 .dropdown {
2358   position: relative;
2359 }
2360
2361 .dropdown-toggle {
2362   *margin-bottom: -3px;
2363 }
2364
2365 .dropdown-toggle:active,
2366 .open .dropdown-toggle {
2367   outline: 0;
2368 }
2369
2370 .caret {
2371   display: inline-block;
2372   width: 0;
2373   height: 0;
2374   vertical-align: top;
2375   border-top: 4px solid #000000;
2376   border-right: 4px solid transparent;
2377   border-left: 4px solid transparent;
2378   content: "";
2379 }
2380
2381 .dropdown .caret {
2382   margin-top: 8px;
2383   margin-left: 2px;
2384 }
2385
2386 .dropdown-menu {
2387   position: absolute;
2388   top: 100%;
2389   left: 0;
2390   z-index: 1000;
2391   display: none;
2392   float: left;
2393   min-width: 160px;
2394   padding: 5px 0;
2395   margin: 0;
2396   list-style: none;
2397   background-color: #ffffff;
2398   border: 1px solid #ccc;
2399   *border-right-width: 2px;
2400   *border-bottom-width: 2px;
2401   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2402      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2403           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2404   -webkit-background-clip: padding-box;
2405      -moz-background-clip: padding;
2406           background-clip: padding-box;
2407 }
2408
2409 .dropdown-menu.pull-right {
2410   right: 0;
2411   left: auto;
2412 }
2413
2414 .dropdown-menu .divider {
2415   *width: 100%;
2416   height: 1px;
2417   margin: 9px 1px;
2418   *margin: -5px 0 5px;
2419   overflow: hidden;
2420   background-color: #e5e5e5;
2421   border-bottom: 1px solid #ffffff;
2422 }
2423
2424 .dropdown-menu > li > a {
2425   display: block;
2426   padding: 3px 10px;
2427   clear: both;
2428   font-weight: normal;
2429   line-height: 20px;
2430   color: #333333;
2431   white-space: nowrap;
2432 }
2433
2434 .dropdown-menu > li > a:hover,
2435 .dropdown-menu > li > a:focus,
2436 .dropdown-submenu:hover > a,
2437 .dropdown-submenu:focus > a {
2438   color: #ffffff;
2439   text-decoration: none;
2440   background-color: #0081c2;
2441 }
2442
2443 .dropdown-menu > .active > a,
2444 .dropdown-menu > .active > a:hover,
2445 .dropdown-menu > .active > a:focus {
2446   color: #ffffff;
2447   text-decoration: none;
2448   background-color: #0081c2;
2449   outline: 0;
2450 }
2451
2452 .dropdown-menu > .disabled > a,
2453 .dropdown-menu > .disabled > a:hover,
2454 .dropdown-menu > .disabled > a:focus {
2455   color: #999999;
2456 }
2457
2458 .dropdown-menu > .disabled > a:hover,
2459 .dropdown-menu > .disabled > a:focus {
2460   text-decoration: none;
2461   cursor: default;
2462   background-color: transparent;
2463   background-image: none;
2464 }
2465
2466 .open {
2467   *z-index: 1000;
2468 }
2469
2470 .open > .dropdown-menu {
2471   display: block;
2472 }
2473
2474 .dropdown-backdrop {
2475   position: fixed;
2476   top: 0;
2477   right: 0;
2478   bottom: 0;
2479   left: 0;
2480   z-index: 990;
2481 }
2482
2483 /* Rules for the "Welcome" page */
2484 .site-welcome {
2485   .center {
2486     text-align: center;
2487     .sprite { 
2488       float: none;
2489       margin: auto;
2490     }
2491   }
2492
2493   .sprite {
2494     background-image: image-url("welcome-sprite.png");
2495     background-size: 500px 250px;
2496     display: block;
2497     float: left;
2498   }
2499
2500   .icon-list { 
2501     padding-bottom: 20px;
2502     div {
2503       margin-bottom: 10px;
2504       p {
2505         padding-top: 10px;
2506       }
2507     }
2508   }
2509   .sprite.small {
2510     width: 50px;
2511     height: 50px;
2512   }
2513
2514   .sprite.x {
2515     background-position: -50px 0;
2516   }
2517
2518   .sprite.term {
2519     margin-right: 10px;
2520     vertical-align: middle;
2521   }
2522
2523   .sprite.node {
2524     background-position: -100px 0;
2525   }
2526
2527   .sprite.way {
2528     background-position: -150px 0;
2529   }
2530
2531   .sprite.tag {
2532     background-position: -200px 0;
2533   }
2534
2535   .sprite.editor {
2536     background-position: -250px 0;
2537   }
2538
2539   .sprite.question {
2540     background-position: -300px 0;
2541   }
2542
2543   .start-mapping {
2544     margin: auto;
2545     cursor: pointer;
2546     border: none;
2547     padding: 20px 40px;
2548     font-size: 30px;
2549     text-decoration: none;
2550   }
2551
2552   .note-box {
2553     margin-top: 20px;
2554     background-color: $offwhite;
2555   }
2556
2557   .icon.note {
2558     background-color: #333;
2559     border-radius: 4px;
2560   }
2561 }