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