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