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