]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
54ecb30e23b964270745372a05a727a32b487e76
[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 /* Rules for the map key which appears in the popout sidebar */
738
739 #mapkey {
740  .mapkey-table-key img {
741     display: block;
742     margin-left: auto;
743     margin-right: auto;
744   }
745 }
746
747 /* Rules for search sidebar */
748
749 #sidebar .search_results_entry {
750   ul li {
751     cursor: pointer;
752     &.selected { background: $list-highlight; }
753   }
754
755   .search_more .loader {
756     display: none;
757     width: 100%;
758   }
759 }
760
761 .search_results_error {
762   color: #f00;
763   padding: 10px 20px;
764 }
765
766 /* Rules for routing */
767
768 #sidebar_content>table {
769     padding: 5px 20px 10px 15px;
770     width: 100%;
771     border-collapse: separate;
772     border-spacing: 0;
773 }
774
775 div.direction {
776   background-image: image-url('routing-sprite.png');
777   width: 20px;
778   height: 20px;
779   background-repeat: no-repeat;
780 }
781 @for $i from 0 through 25 {
782 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
783 }
784
785 p#routing_summary {
786     padding: 0 $lineheight $lineheight/4;
787 }
788
789 td.instruction, td.distance {
790     padding-top: $lineheight/5;
791     padding-bottom: $lineheight/5;
792     border-bottom: 1px solid $grey;
793 }
794 td.distance {
795     color: $darkgrey;
796     text-align: right;
797     font-size: x-small;
798 }
799 tr.turn {
800     cursor: pointer;
801 }
802 tr.turn:hover {
803     background: $list-highlight;
804 }
805 .routing_engines, #route_from, #route_to { margin-left: 25px; }
806 .routing_marker { width: 15px; position: absolute; cursor: move; }
807
808 /* Rules for entity history */
809
810 #sidebar_content {
811   .browse_details {
812     position: relative;
813     border-bottom: $keyline;
814   }
815 }
816
817 .browse_status {
818   display: none;
819 }
820
821 /* Rules for the history sidebar */
822
823 #sidebar .changesets {
824   li {
825     cursor: pointer;
826
827     &.selected { background: $list-highlight; }
828     /* color is derived from changeset bbox fillColor in history.js */
829   }
830
831   .comments {
832     float: right;
833     color: $darkgrey;
834   }
835
836   .comments-0 {
837     opacity: 0.5;
838   }
839
840   .changeset_more .loader {
841     display: none;
842     width: 100%;
843   }
844 }
845
846 /* Rules for the browse sidebar */
847
848 #sidebar_content {
849   .browse-section {
850     padding: $lineheight/2 $lineheight;
851     border-bottom: 1px solid $grey;
852
853     h4:first-child {
854       margin-top: 0;
855       word-wrap: break-word;
856     }
857   }
858
859   .browse-section:last-of-type {
860     border-bottom: none;
861   }
862
863   .paginate {
864     float: right;
865     padding: 1px 6px;
866     border: 1px solid $lightgrey;
867     border-radius: 3px;
868   }
869
870   .browse-field {
871     margin-bottom: 10px;
872
873     h4 {
874       padding: 5px 0 5px 10px;
875       font-size: 12px;
876       border: 1px solid $grey;
877       border-radius: 4px 4px 0 0;
878       background-color: $offwhite;
879     }
880
881     p {
882       padding: 7px 10px;
883       font-size: 12px;
884       background-color: #FFF;
885       border: 1px solid $grey;
886       border-top: 0;
887       border-radius: 0 0 4px 4px;
888     }
889   }
890
891   .browse-tag-list {
892     background-color: $offwhite;
893     border: 1px solid $grey;
894     border-radius: 3px;
895     table-layout: fixed;
896     border-collapse: separate;
897     border-spacing: 0;
898     width: 100%;
899
900     th, td {
901       border-bottom: 1px solid $grey;
902     }
903
904     tr:last-child th, tr:last-child td {
905       border-bottom: 0;
906     }
907
908     .browse-tag-k,
909     .browse-tag-v {
910       width: 50%;
911       padding: 6px 10px;
912       word-wrap: break-word;
913       white-space: pre-wrap;
914     }
915
916     .browse-tag-k {
917       font-weight: 500;
918       background-color: $offwhite;
919     }
920
921     .browse-tag-v {
922       border-left: 1px solid $grey;
923       background-color: #fff;
924     }
925
926     .colour-preview-box {
927       float: right;
928       width: 14px;
929       height: 14px;
930       margin: 4px 0px;
931       border: 1px solid rgba(0, 0, 0, .1);
932       // add color via inline css on element: background-color: <tag value>;
933     }
934   }
935
936   .warning {
937     margin: 0 0 $lineheight/2 0;
938     padding: 0 $lineheight/2;
939   }
940
941   .note-comments li, .changeset-comments li {
942     margin: $lineheight/2 0;
943
944     p {
945       margin: 10px 6px 0 6px;
946       line-height: 1.5;
947     }
948   }
949
950   .comments-header {
951     float: left;
952   }
953
954   .subscribe-buttons {
955     float: left;
956     margin: 18px 10px 10px;
957     min-width: 80px;
958   }
959
960   .subscribe-buttons input {
961     font-size: 90%;
962     line-height: 15px;
963     min-height: 20px;
964   }
965
966   span.action-button:hover {
967     cursor: pointer;
968     text-decoration: underline;
969   }
970
971   .note-description {
972     overflow: hidden;
973     margin: 0 0 10px 10px;
974   }
975
976   .query-intro p {
977     padding: $lineheight $lineheight $lineheight/2;
978   }
979
980   .query-results {
981     display: none;
982     padding-bottom: $lineheight/2;
983
984     h3 {
985       padding: 0 $lineheight;
986     }
987
988     ul {
989       li {
990         &.query-result {
991           cursor: pointer;
992         }
993
994         &.selected {
995           background: $list-highlight;
996         }
997       }
998     }
999   }
1000 }
1001
1002 /* Rules for export sidebar */
1003
1004 .export_form {
1005   padding: $lineheight;
1006
1007   .export_area_inputs,
1008   .export_button {
1009     text-align: center;
1010   }
1011
1012   .export_area_inputs {
1013     margin-bottom: $lineheight/2;
1014     input[type="text"] {
1015       width: 80px;
1016       text-align: center;
1017       margin-bottom: 5px;
1018     }
1019   }
1020
1021   .export_boxy {
1022     background: $lightgrey;
1023     border: 1px solid $grey;
1024     border-radius: 3px;
1025
1026     #maxlat { margin-top: -1px; }
1027     #minlon {
1028       float: left;
1029       /* no-r2 */ margin-left: -1px;
1030     }
1031     #maxlon {
1032       float: right;
1033       /* no-r2 */ margin-right: -1px;
1034     }
1035     #minlat { margin-bottom: 0; }
1036   }
1037
1038   .export_bound {
1039     margin: $lineheight/4;
1040   }
1041
1042   .export_button {
1043     margin-top: $lineheight;
1044     margin-bottom: $lineheight;
1045   }
1046
1047   dl {
1048     padding-left: $lineheight/2;
1049     dd {
1050       margin-left: 0;
1051       margin-bottom: 10px;
1052     }
1053   }
1054 }
1055
1056 /* Rules for the routing sidebar */
1057
1058 #sidebar_content {
1059   #routing_credit {
1060     text-align: center;
1061     padding: 0.5em;
1062   }
1063 }
1064
1065 /* Rules for edit pages */
1066
1067 .site-edit {
1068   #content {
1069     position: absolute;
1070     top: $headerHeight;
1071     bottom: 0;
1072     width: 100%;
1073   }
1074
1075   #map {
1076     height: 100%;
1077     overflow: hidden;
1078   }
1079 }
1080
1081 /* Rules for non-map content pages */
1082
1083 .content-heading {
1084   background: $lightgrey;
1085 }
1086
1087 .content-body {
1088   h1, h2, h3, p, ul, ol {
1089     margin-bottom: $lineheight;
1090   }
1091
1092   h1, h2, h3 {
1093     margin-top: $lineheight/2;
1094   }
1095 }
1096
1097 .content-inner {
1098   position: relative;
1099   max-width: 900px;
1100   margin: auto;
1101   padding: $lineheight;
1102 }
1103
1104 /* Overrides for pages that use new layout conventions */
1105
1106 .users-new,
1107 .users-create,
1108 .users-terms,
1109 .users-confirm {
1110   .content-heading .content-inner {
1111     height: 200px;
1112   }
1113 }
1114
1115 .header-illustration {
1116   background-position: 0 0;
1117   background-repeat: no-repeat;
1118   position: absolute;
1119   height: 200px;
1120   width: 100%;
1121   left: 0;
1122   bottom: 0;
1123
1124   &.new-user-main {
1125     background-image: image-url("sign-up-illustration.png");
1126   }
1127
1128   &.confirm-main {
1129     background-image: image-url("confirm-illustration.png");
1130   }
1131
1132   &.new-user-terms {
1133     background-image: image-url("terms-illustration.png");
1134   }
1135
1136   &.new-user-arm {
1137     height: 110px;
1138     width: 130px;
1139     left: 260px;
1140     top: 160px;
1141     background-image: image-url("sign-up-illustration-arm.png");
1142     z-index: 100;
1143   }
1144 }
1145
1146 [dir=rtl] .header-illustration {
1147   transform: scaleX(-1);
1148 }
1149
1150 #content.maximised {
1151   top: 0;
1152   left: 0;
1153   right: 0;
1154   bottom: 0;
1155   border: 0;
1156   z-index: 2000;
1157 }
1158
1159 /* Rules for small maps in content areas */
1160
1161 .content_map {
1162   position: relative;
1163   width: 45%;
1164   height: 400px;
1165   border: 1px solid $grey;
1166   margin-bottom: $lineheight;
1167   float: right;
1168 }
1169
1170 /* Rules for the new trace form */
1171
1172 #new_trace {
1173   input[type=text] {
1174     width: 50%;
1175     width: calc(100% - 150px);
1176     max-width: 500px;
1177   }
1178 }
1179
1180 /* Rules for the edit trace form */
1181
1182 .edit_trace {
1183   .standard-form-row p {
1184     margin-bottom: 0px;
1185   }
1186
1187   input[type=text] {
1188     width: 50%;
1189     width: calc(100% - 150px);
1190     max-width: 500px;
1191   }
1192 }
1193
1194 /* Rules for the user profile page */
1195
1196 #userinformation {
1197
1198   min-height: 100px;
1199   .userinformation-inner {
1200     float: left;
1201   }
1202   h2 {
1203     margin-top: 0;
1204   }
1205   .user-description {
1206     width: 100%;
1207     clear: both;
1208   }
1209   .deemphasize {
1210     margin: 0;
1211   }
1212 }
1213
1214 .admin-user-info small {
1215   margin-bottom: $lineheight/2;
1216   display: inline;
1217   margin-right: $lineheight;
1218 }
1219
1220 .activity-block {
1221   clear: left;
1222   border-bottom: 1px solid $grey;
1223   padding-bottom: $lineheight;
1224   float: left;
1225   h3 {
1226     margin-bottom: $lineheight/2;
1227   }
1228 }
1229
1230 .contact-activity {
1231   margin-top: $lineheight;
1232   width: 100%;
1233 }
1234
1235 .activity-details p {
1236   margin-left: 70px;
1237   margin-bottom: 0;
1238 }
1239
1240 .users-show {
1241   // Silly exception; remove when user page is redesigned.
1242   .content-inner {
1243     max-width: none;
1244   }
1245   p#no_home_location {
1246     margin: $lineheight;
1247   }
1248   .user_thumbnail {
1249     margin-top: $lineheight/4;
1250     float: left;
1251   }
1252 }
1253
1254 /* Rules for the user map */
1255
1256 .content_map .leaflet-popup-content {
1257   margin: $lineheight/2;
1258   min-height: 50px;
1259 }
1260
1261 /* Rules for user popups on maps */
1262
1263 .user_popup {
1264   min-width: 200px;
1265   p {
1266     padding: 0 0 5px 0;
1267     margin-top: 0 0 0 60px;
1268     font-size: 12px;
1269   }
1270   img.user_thumbnail {
1271     float: left;
1272     margin: 0 $lineheight/2 0 0;
1273   }
1274 }
1275
1276 /* Rules for the user list */
1277
1278 #user_list {
1279   width: 100%;
1280
1281   tr {
1282     vertical-align: middle;
1283   }
1284
1285   p {
1286     margin-top: 0px;
1287     margin-bottom: 0px;
1288   }
1289 }
1290
1291 #user_list_actions {
1292   float: right;
1293   margin-top: $lineheight/2;
1294 }
1295
1296 /* Rules for the diary list page */
1297
1298 .diary_post {
1299   position: relative;
1300   padding-top: $lineheight;
1301   padding-bottom: $lineheight/2;
1302   border-top: 1px solid $grey;
1303
1304   &:first-of-type {
1305     margin-top: $lineheight/2;
1306   }
1307
1308   &.deemphasize {
1309     background-color: #fee;
1310   }
1311
1312   .post_heading {
1313     margin-bottom: $lineheight;
1314
1315     h2 {
1316       margin-top: 0;
1317       margin-bottom: $lineheight/2;
1318     }
1319   }
1320
1321   img.user_thumbnail {
1322     float: left;
1323   }
1324
1325   small.deemphasize {
1326     float: left;
1327     display: block;
1328   }
1329 }
1330
1331 .pagination {
1332   padding-top: $lineheight;
1333 }
1334
1335 /* Rules for the diary entry page */
1336
1337 .diary_entries {
1338   #map {
1339     position: relative;
1340     width: 90%;
1341     height: 400px;
1342     border: 1px solid $grey;
1343     display: none;
1344     margin-bottom: $lineheight;
1345   }
1346   #newcomment {
1347     border-top: 1px solid $grey;
1348     padding-top: $lineheight;
1349     margin-top: $lineheight/2;
1350   }
1351   .comments {
1352     max-width: 740px;
1353   }
1354   .diary-comment {
1355     border-top: 1px dashed $grey;
1356     padding-top: $lineheight/2;
1357     padding-bottom: $lineheight/2;
1358     &:first-child {
1359       margin-top: $lineheight/2;
1360       padding-top: $lineheight;
1361       border-top: 1px solid $grey;
1362     }
1363     &.deemphasize {
1364       background-color: #fee;
1365     }
1366     p {
1367       margin-bottom: $lineheight/2;
1368     }
1369     .comment-heading {
1370       margin-bottom: 0;
1371       margin-top: 0;
1372     }
1373   }
1374 }
1375
1376 .diary_entries-show img.user_thumbnail {
1377   float: left;
1378 }
1379
1380
1381 .diary-subscribe-buttons {
1382   position:relative;
1383   top: -30px;
1384   left: 130px;
1385 }
1386
1387 /* Rules for the log in page */
1388
1389 #login_auth_buttons {
1390   margin-bottom: 0;
1391 }
1392
1393 #login_auth_buttons li {
1394   float: left;
1395   padding: $lineheight/4 $lineheight/2;
1396 }
1397
1398 /* Rules for the account confirmation page */
1399
1400 .users-terms {
1401   .legale {
1402     border: 1px solid $grey;
1403     padding: $lineheight;
1404     margin-bottom: $lineheight;
1405     overflow: auto;
1406     height: 20em;
1407
1408     li {
1409       list-style: inherit;
1410     }
1411
1412     ol ol {
1413       list-style-type: lower-alpha;
1414     }
1415   }
1416
1417   #decline {
1418     background: $lightblue;
1419     &:hover {
1420       background: darken($lightblue, $hovercolor);
1421     }
1422   }
1423 }
1424
1425 /* Rules for the account settings page */
1426
1427 #accountForm .user_map {
1428   position: relative;
1429   width: 500px;
1430   height: 400px;
1431   border: 1px solid $grey;
1432 }
1433
1434 #accountForm .user_image {
1435   margin-bottom: 0;
1436 }
1437
1438 #accountForm #user_image {
1439   margin-left: 20px;
1440 }
1441
1442 #accountForm ul.accountImage-options {
1443   margin-left: 120px;
1444 }
1445
1446 .nohome .location {
1447   display: none;
1448 }
1449
1450 #homerow .message {
1451   display: none;
1452 }
1453
1454 .nohome .message {
1455   display: inline !important;
1456 }
1457
1458 .content_map.settings_map {
1459   width: 50%;
1460   float: none;
1461 }
1462
1463 /* Rules for the oauth settings page */
1464
1465 .oauth_clients .buttons .oauth-edit {
1466   border-radius: 2px 0 0 2px;
1467 }
1468
1469 .oauth_clients .buttons .oauth-delete {
1470   border-radius: 0 2px 2px 0;
1471 }
1472
1473 /* Rules for the oauth authorization page */
1474
1475 .oauth-authorize ul {
1476   list-style: none;
1477 }
1478
1479 /* Rules for messages pages */
1480
1481 .messages {
1482   input[type="submit"] {
1483     margin: auto;
1484   }
1485
1486   .inbox-row {
1487     background: $offwhite;
1488   }
1489
1490   .inbox-row-unread {
1491     background: #CBEEA7;
1492   }
1493
1494   .right {
1495     float: right;
1496   }
1497 }
1498
1499 .inbox-row .inbox-mark-read {
1500   display: none;
1501 }
1502
1503 .info-line {
1504   margin-bottom: $lineheight;
1505   padding: $lineheight/4 0px 4px 0px;
1506   border-bottom: 1px solid $grey;
1507
1508   form, form div {
1509     display: inline;
1510   }
1511 }
1512
1513 .info-line .user_thumbnail_tiny {
1514   vertical-align: middle;
1515 }
1516
1517 .inbox-sent {
1518   white-space: nowrap;
1519 }
1520
1521 .inbox-mark-unread,
1522 .inbox-mark-read,
1523 .inbox-delete {
1524   width: 1%;
1525 }
1526
1527 .inbox-row-unread .inbox-mark-unread {
1528   display: none;
1529 }
1530
1531 .messages-show .message-buttons {
1532   margin-top: $lineheight;
1533   margin-bottom: $lineheight * 1.5;
1534   padding-top: $lineheight;
1535   border-top: 1px solid $lightgrey;
1536 }
1537
1538 .messages-show .buttons .mark-unread-button {
1539   border-radius: 0;
1540 }
1541
1542 /* Rules for "flash" notice boxes shown at the top of the content area */
1543
1544 .flash {
1545   padding: $lineheight;
1546
1547   &.error {
1548     background-color: #ff7070;
1549   }
1550
1551   &.warning {
1552     background-color: #ffe0cc;
1553   }
1554
1555   &.notice {
1556     background-color: #CBEEA7;
1557   }
1558
1559   div.message {
1560     display: inline-block;
1561     margin-left: $lineheight / 2;
1562     vertical-align: middle;
1563
1564     p {
1565       margin-top: $lineheight * 0.5;
1566       margin-bottom: $lineheight * 0.5;
1567
1568       &:first-child {
1569         margin-top: 0px;
1570       }
1571
1572       &:last-child {
1573         margin-bottom: 0px;
1574       }
1575     }
1576   }
1577 }
1578
1579 /* Rules for highlighting fields with rails validation errors */
1580
1581 .formError {
1582   display: inline-block;
1583   padding: 5px 10px;
1584   margin-top: 5px;
1585   border-radius: 4px;
1586   font-size: 12px;
1587   color: #fff;
1588   background-color: #ff7070;
1589 }
1590
1591 /* Rules for rails validation error boxes */
1592
1593 #errorExplanation {
1594   width: 400px;
1595   border: 2px solid #ff7070;
1596   padding: 0 $lineheight/2;
1597   margin-bottom: $lineheight;
1598   background-color: #f0f0f0;
1599
1600   h2 {
1601     margin: 0 -10px 10px -10px;
1602     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1603     font-weight: bold;
1604     font-size: 12px;
1605     background-color: #c00;
1606     color: #fff;
1607     text-align: left;
1608   }
1609
1610   p {
1611     color: #333;
1612     margin-bottom: 0px;
1613     padding: $lineheight/4;
1614   }
1615 }
1616
1617 /* Rules for forms */
1618
1619 .standard-form {
1620   fieldset {
1621     margin-bottom: $lineheight;
1622   }
1623   label.standard-label {
1624     display: block;
1625     margin-bottom: $lineheight/4;
1626     font-size: $typeheight;
1627     font-weight: bold;
1628     line-height: 1.5;
1629   }
1630   label.standard-label.secondary {
1631     display: inline-block;
1632     font-weight: normal;
1633   }
1634   .form-help {
1635     font-weight: normal;
1636   }
1637   .form-column {
1638     float: left;
1639     margin-right: 20px;
1640   }
1641   .form-divider {
1642     margin-top: $lineheight;
1643     padding-top: $lineheight;
1644     border-top: 1px solid $lightgrey;
1645   }
1646   .horizontal-list .standard-form-row {
1647     float: left;
1648     padding-right: 10px;
1649   }
1650   .standard-form-row {
1651     margin-bottom: $lineheight/2;
1652   }
1653   .form-list {
1654     margin-bottom: 0;
1655   }
1656   .form-list li {
1657     margin-bottom: 5px;
1658     list-style-type: none;
1659   }
1660   input[type="checkbox"],
1661   input[type="radio"] {
1662     float: left;
1663     margin-top: 5px;
1664   }
1665
1666   #remember_me_openid {
1667     display: block;
1668   }
1669
1670   select {
1671     padding: 2px;
1672   }
1673
1674   input[type="checkbox"],
1675   input[type="radio"] {
1676       margin-right: 5px;
1677   }
1678
1679   input[type="text"],
1680   input[type="email"],
1681   input[type="url"],
1682   input[type="password"],
1683   textarea {
1684     color: #222;
1685     background-color: #fff;
1686     border: 1px solid $grey;
1687     border-radius: 3px;
1688     padding: 2px 5px;
1689     margin: 0;
1690     width: 200px;
1691
1692     &.field_with_errors {
1693       border: 2px solid #ff7070;
1694     }
1695   }
1696
1697   textarea {
1698     padding: 5px;
1699     width: 100%;
1700     min-height: 50px;
1701     resize: vertical;
1702   }
1703
1704
1705   /* Utility for general button styles */
1706
1707   input[type="button"],
1708   input[type="submit"],
1709   input[type="reset"],
1710   a.button {
1711     cursor: pointer;
1712     border: 0;
1713     display: inline-block;
1714     padding: $lineheight/4 $lineheight/2;
1715     min-height: 20px + $lineheight/2;
1716     min-width: 120px;
1717     margin: 0 0 $lineheight/2 0;
1718     color: white;
1719     background: $blue;
1720     text-align: center;
1721     border-radius: 2px;
1722     &:hover {
1723       background: darken($blue, $hovercolor);
1724       text-decoration: none;
1725     }
1726     &.deemphasize {
1727       background: $lightblue;
1728       &:hover {
1729         background: darken($lightblue, $hovercolor);
1730       }
1731     }
1732     &:disabled {
1733       background: $lightgrey;
1734       &:hover {
1735         background: $lightgrey;
1736       }
1737     }
1738     &:last-child {
1739       margin-bottom: 0;
1740     }
1741   }
1742
1743   input[type="button"],
1744   input[type="submit"],
1745   input[type="reset"] {
1746     line-height: normal;
1747   }
1748
1749   a.button {
1750     line-height: 20px;
1751   }
1752
1753   .search_form,
1754   .directions_form {
1755     position: relative;
1756     padding: $lineheight/2;
1757     background-color: $lightgrey;
1758
1759     .query_wrapper {
1760       position: relative;
1761       overflow: hidden;
1762       border-radius: 2px 0 0 2px;
1763     }
1764
1765     input[type=text] {
1766       width: 100%;
1767       height: 30px;
1768       transition: 300ms linear;
1769     }
1770
1771     input[type=text].overflow {
1772       border-right: none;
1773       border-radius: 3px 0px 0px 3px;
1774     }
1775
1776     input:focus {
1777       outline: none;
1778       box-shadow: 0px 0px 7px $vibrant-green;
1779     }
1780
1781     input[type=submit].float {
1782       float: right;
1783       width: auto;
1784       min-width: 0;
1785       border-radius: 0 2px 2px 0;
1786     }
1787
1788     input.error {
1789       background-color: rgba($red, 0.4);
1790     }
1791
1792     select {
1793       /* this next line is to polyfill the vertical alignment of text within a select element,
1794        * which is different between firefox and chrome. */
1795       padding: 0.3em 0;
1796     }
1797
1798     .query_options {
1799       text-align: right;
1800       font-size: 10px;
1801       color: $blue;
1802     }
1803
1804     .describe_location {
1805       position: absolute;
1806       top: 6px;
1807       right: 6px;
1808       font-size: 10px;
1809       color: $blue;
1810     }
1811
1812     .switch_link {
1813       float: right;
1814       width: auto;
1815       min-width: 0;
1816       margin-left: 6px;
1817     }
1818
1819     img.button {
1820       display: block;
1821       width: 20px;
1822       height: 20px;
1823     }
1824
1825     span.force_width {
1826       width: 100%;
1827       padding-right: 25px;
1828       display: block;
1829     }
1830
1831     select.routing_engines {
1832       min-height: 30px;
1833       margin: 0px 0px 5px 25px;
1834     }
1835
1836     input.routing_go {
1837       min-width: 100px;
1838       float: right;
1839     }
1840
1841     div.header {
1842       width: 100%;
1843       height: 30px;
1844     }
1845
1846     div.line {
1847       width: 100%;
1848       margin: 0px 0px 5px 0px;
1849     }
1850
1851     div.loader_copy {
1852       display: none;
1853
1854       img {
1855         vertical-align: middle;
1856       }
1857     }
1858
1859     a.reverse_directions {
1860       cursor: pointer;
1861       margin: 0px 0px 5px 25px;
1862     }
1863   }
1864 }
1865
1866 /* Rules for user images */
1867
1868 img.user_image {
1869   max-width: 100px;
1870   max-height: 100px;
1871   border: 1px solid $grey;
1872   margin-bottom: $lineheight;
1873   float: left;
1874   margin-right: $lineheight;
1875 }
1876
1877 img.user_thumbnail {
1878   max-width: 50px;
1879   max-height: 50px;
1880   border: 1px solid $grey;
1881   margin-right: $lineheight;
1882 }
1883
1884 img.user_thumbnail_tiny {
1885   width: auto;
1886   height: auto;
1887   max-width: 25px;
1888   max-height: 25px;
1889   border: 1px solid $grey;
1890 }
1891
1892 /* Rules for geo microformats */
1893
1894 abbr.geo {
1895   border-bottom: none;
1896 }
1897
1898 /* General styles for action lists / subnavs / pager navs */
1899
1900 ul.secondary-actions {
1901   font-style: normal;
1902   margin-bottom: 0;
1903   margin-left: 0;
1904   padding: 0;
1905   &.pager {
1906     display: inline-block;
1907     margin-right: 60px;
1908   }
1909   > li {
1910     display: block;
1911     float: left;
1912     list-style: none;
1913     border-left: 1px solid $grey;
1914     padding-left: $lineheight/2;
1915     margin-right: $lineheight/2;
1916     &:first-child {
1917       border-left: 0;
1918       padding-left: 0;
1919     }
1920     &:last-child {
1921       margin-right: 0px;
1922     }
1923   }
1924 }
1925
1926 div.secondary-actions {
1927   padding: 10px;
1928   text-align: center;
1929 }
1930
1931 /* Utility for managing inner content areas */
1932
1933 .inner22 { padding: $lineheight;}
1934
1935 .inner12 { padding: $lineheight/2 $lineheight;}
1936
1937 .inner11 { padding: $lineheight/2;}
1938
1939 .inner20 { padding: $lineheight 0;}
1940
1941 .inner02 { padding: 0 $lineheight;}
1942
1943 .buttons {
1944   min-width: 200px;
1945   input[type="submit"],
1946   input[type="button"],
1947   input[type="reset"],
1948   .button,
1949   .button_to {
1950     box-sizing: border-box;
1951     float: left;
1952     border-radius: 0;
1953     margin:0;
1954     min-width: 75px;
1955     max-width: 180px;
1956     border-right:1px solid white;
1957     text-overflow: ellipsis;
1958     white-space: nowrap;
1959     overflow: hidden;
1960   }
1961   input:first-child,
1962   .button:first-child,
1963   .button_to:first-child {
1964     border-radius:2px 0 0 2px;
1965   }
1966   input:last-child,
1967   .button:last-child,
1968   .button_to:last-child {
1969     border-radius:0 2px 2px 0;
1970     border-right-width: 0;
1971   }
1972   input:only-child,
1973   .button:only-child,
1974   .button_to:only-child,
1975   *[value="Hide"] + input:last-child,
1976   *[value="Hide"] + .button:last-child,
1977   *[value="Hide"] + .button_to:last-child {
1978     border-radius:2px;
1979     border-right-width: 0;
1980   }
1981     /* if a 3-button set has a hidden middle button */
1982   *[value="Hide"] + input:nth-child(3),
1983   *[value="Hide"] + .button:nth-child(3),
1984   *[value="Hide"] + .button_to:nth-child(3) {
1985     border-radius:0 2px 2px 0;
1986     border-right-width: 0;
1987   }
1988   /* if a 3-button set starts with a hidden button */
1989   *[value="Hide"] + input:nth-child(2):not(:last-child),
1990   *[value="Hide"] + .button:nth-child(2):not(:last-child),
1991   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1992     border-radius:2px 0 0 2px;
1993     border-right-width: 1px;
1994   }
1995 }
1996
1997 /* Customise the background colour of striped tables */
1998
1999 .table-striped > tbody > tr:nth-child(2n+1) > td,
2000 .table-striped > tbody > tr:nth-child(2n+1) > th {
2001    background-color: $offwhite;
2002 }
2003
2004 /* Rules for OpenID logo */
2005
2006 .openid_logo {
2007   vertical-align: text-bottom;
2008   border: 0;
2009 }
2010
2011 /* Rules for rich text */
2012
2013 .richtext,
2014 .prose {
2015   code {
2016     font-size: 13px;
2017     background: $lightgrey;
2018     padding: 2px 3px;
2019   }
2020
2021   pre {
2022     font-size: 13px;
2023     background: $lightgrey;
2024     padding: 2px 3px;
2025     white-space: pre-wrap;
2026
2027     code {
2028       padding: 0;
2029     }
2030   }
2031
2032   img {
2033     padding: $lineheight;
2034     background-color: $offwhite;
2035     display: block;
2036     max-width: 100%;
2037     margin: auto;
2038   }
2039
2040   blockquote {
2041     border-left: $lineheight solid $offwhite;
2042     padding-left: $lineheight;
2043     margin: 0;
2044     color: $darkgrey;
2045   }
2046 }
2047
2048 .diary_post .richtext {
2049     margin-top: $lineheight;
2050   }
2051
2052 .comments .richtext {
2053   margin-left: 70px;
2054   margin-top: 0;
2055 }
2056
2057 /* Rules for rich text editors */
2058
2059 input.richtext_title[type="text"] {
2060   width: 50%;
2061   width: calc(100% - 235px);
2062
2063   @media only screen and (max-width:768px) {
2064     width: 100%;
2065   }
2066 }
2067
2068 .richtext_container {
2069   margin-bottom: $lineheight;
2070
2071   .richtext_content {
2072     width: 50%;
2073     width: calc(100% - 235px);
2074     display: inline-block;
2075     vertical-align: top;
2076
2077     @media only screen and (max-width:768px) {
2078       width: 100%;
2079     }
2080
2081     .richtext_preview {
2082       display: inline-block;
2083       padding: $lineheight;
2084       background-color: $offwhite;
2085       overflow-x: auto;
2086
2087       &.loading {
2088         background-image: image-url("loading.gif");
2089         background-repeat: no-repeat;
2090         background-position: center;
2091       }
2092
2093       > :first-child {
2094         margin-top: 0px;
2095       }
2096     }
2097   }
2098
2099   .richtext_help {
2100     display: inline-block;
2101     vertical-align: top;
2102     margin-left: 15px;
2103     background-color: $offwhite;
2104     padding: $lineheight/2;
2105     width: 220px;
2106
2107     ul {
2108       margin-bottom: 0;
2109     }
2110
2111     h4.heading, li {
2112       border-bottom: 1px solid $grey;
2113       margin-bottom: $lineheight/4;
2114       padding-bottom: $lineheight/4;
2115     }
2116
2117     li h4, li span, li p {
2118       display: inline-block;
2119       vertical-align: top;
2120       font-size: 11px;
2121     }
2122
2123     li h4 {
2124       width: 40%;
2125       margin: 0;
2126     }
2127
2128     li span, li p {
2129       width: 50%;
2130       margin-left: $lineheight/2;
2131       margin-bottom: $lineheight/4;
2132       white-space: nowrap;
2133     }
2134   }
2135 }
2136
2137 /* Rules for the user notes list */
2138
2139 .note_list {
2140   tr.creator {
2141     background-color: $offwhite;
2142   }
2143 }
2144
2145 /* Rules for the iD editor */
2146
2147 .id-embed {
2148   width: 100%;
2149   height: 100%;
2150 }
2151
2152 /* Rules for the "Welcome" page */
2153 .site-welcome, .site-fixthemap {
2154   .center {
2155     text-align: center;
2156     .sprite {
2157       float: none;
2158       margin: auto;
2159     }
2160   }
2161
2162   .sprite {
2163     background-image: image-url("welcome-sprite.png");
2164     background-size: 500px 250px;
2165     display: block;
2166     float: left;
2167   }
2168
2169   .icon-list {
2170     padding-bottom: 20px;
2171     div {
2172       margin-bottom: 10px;
2173       p {
2174         padding-top: 10px;
2175       }
2176     }
2177   }
2178   .sprite.small {
2179     width: 50px;
2180     height: 50px;
2181   }
2182
2183   .sprite.x {
2184     /* no-r2 */ background-position: -50px 0;
2185   }
2186
2187   .sprite.term {
2188     margin-right: 10px;
2189     vertical-align: middle;
2190   }
2191
2192   .sprite.node {
2193     /* no-r2 */ background-position: -100px 0;
2194   }
2195
2196   .sprite.way {
2197     /* no-r2 */ background-position: -150px 0;
2198   }
2199
2200   .sprite.tag {
2201     /* no-r2 */ background-position: -200px 0;
2202   }
2203
2204   .sprite.editor {
2205     /* no-r2 */ background-position: -250px 0;
2206   }
2207
2208   .sprite.question {
2209     /* no-r2 */ background-position: -300px 0;
2210   }
2211
2212   .sprite.rules {
2213     /* no-r2 */ background-position: -350px 0;
2214   }
2215
2216   .start-mapping {
2217     margin: auto;
2218     cursor: pointer;
2219     border: none;
2220     padding: 20px 40px;
2221     font-size: 30px;
2222     text-decoration: none;
2223   }
2224
2225   .icon.note {
2226     background-color: #333;
2227     border-radius: 4px;
2228   }
2229 }
2230
2231 .site-about #content {
2232   background-color: $lightgrey;
2233   background-position: 50% 50%;
2234   background-repeat: no-repeat;
2235   background-size: cover;
2236   background-attachment: fixed;
2237
2238
2239   .content-inner {
2240     position: relative;
2241     color: #333;
2242     min-width: 320px;
2243     max-width: 640px;
2244   }
2245
2246   .text {
2247     background: white;
2248     padding: 40px;
2249   }
2250
2251   .attr {
2252     position: relative;
2253     padding: 170px 40px 20px;
2254     background: #333;
2255     background: rgba(0, 0, 0, .8);
2256     margin-bottom: 0;
2257     margin-top: -20px;
2258
2259     h1 {
2260       display: block;
2261       color: white;
2262       font-weight: 300;
2263       font-size: 34px;
2264       span {
2265         color: $vibrant-green;
2266       }
2267     }
2268
2269     .user-image {
2270       position: absolute;
2271       top: 0px;
2272       right: 240px;
2273       left: 0px;
2274       height: 150px;
2275       background-position: 0 50%;
2276       background-repeat: no-repeat;
2277       background-image: image-url('about/osm.png');
2278       background-size: cover;
2279       background-color: $vibrant-green;
2280     }
2281
2282     .byosm {
2283       position: absolute;
2284       top: 0px;
2285       right: 0px;
2286       z-index: 1;
2287       width: 240px;
2288       height: 150px;
2289       padding: 20px 20px 20px 40px;
2290       font: 500 20px/24px Helvetica, Arial, sans-serif;
2291       white-space: nowrap;
2292       color: #fff;
2293       background: $vibrant-green;
2294     }
2295
2296     .byosm span {
2297       display: inline-block;
2298       width: 20px;
2299       margin-left: -20px;
2300     }
2301   }
2302
2303   .icon {
2304     width: 30px;
2305     height: 30px;
2306     margin-right: 10px;
2307     vertical-align: middle;
2308     background: 40px 40px image-url('about/sprite.png') no-repeat;
2309
2310     &.local {
2311       /* no-r2 */
2312       background-position: 0px 0px;
2313     }
2314     &.community {
2315       /* no-r2 */
2316       background-position: 0px -40px;
2317     }
2318     &.open {
2319       /* no-r2 */
2320       background-position: 0px -80px;
2321     }
2322     &.partners {
2323       /* no-r2 */
2324       background-position: 0px -120px;
2325     }
2326     &.infringement {
2327       /* no-r2 */
2328       background-position: 0px -160px;
2329     }
2330     &.legal {
2331       /* no-r2 */
2332       background-position: -45px -160px;
2333     }
2334   }
2335 }
2336
2337 @import 'browse';
2338
2339 @media only screen and (max-width:960px) {
2340   .header-illustration.new-user-arm {
2341     display: none;
2342   }
2343 }
2344
2345 .read-reports {
2346   background: $lightgrey;
2347   opacity: 0.7;
2348 }