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