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