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