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