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