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