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