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