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