]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Use the bootstrap spacer variable as the basis for spacing calcuation, and match...
[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 /* Bootstrap buttons don't have any vertical margin, so
981    they touch when adjacent buttons wrap onto a new line
982    e.g. wide form buttons on a narrow sidebar */
983
984 .btn-wrapper {
985   > .btn {
986     margin-bottom: $spacer * 0.25;
987   }
988 }
989
990 /* Rules for export sidebar */
991
992 .export_form {
993   padding: $lineheight;
994
995   .export_area_inputs,
996   .export_button {
997     text-align: center;
998   }
999
1000   .export_area_inputs {
1001     margin-bottom: $lineheight/2;
1002     input[type="text"] {
1003       width: 100px;
1004       text-align: center;
1005     }
1006   }
1007
1008   .export_boxy {
1009     background: $lightgrey;
1010     border: 1px solid $grey;
1011     border-radius: 3px;
1012
1013     #maxlat { margin-top: -1px; }
1014     #minlon {
1015       float: left;
1016       /* no-r2 */ margin-left: -1px;
1017     }
1018     #maxlon {
1019       float: right;
1020       /* no-r2 */ margin-right: -1px;
1021     }
1022     #minlat { margin-bottom: -1px; }
1023   }
1024
1025   .export_bound {
1026     margin: $lineheight/4;
1027   }
1028
1029   dl {
1030     padding-left: $lineheight/2;
1031     dd {
1032       margin-left: 0;
1033       margin-bottom: 10px;
1034     }
1035   }
1036 }
1037
1038 /* Rules for the routing sidebar */
1039
1040 #sidebar_content {
1041   #routing_credit {
1042     text-align: center;
1043     padding: 0.5em;
1044   }
1045 }
1046
1047 /* Rules for edit pages */
1048
1049 .site-edit {
1050   #content {
1051     position: absolute;
1052     top: $headerHeight;
1053     bottom: 0;
1054     width: 100%;
1055   }
1056
1057   #map {
1058     height: 100%;
1059     overflow: hidden;
1060   }
1061 }
1062
1063 /* Rules for non-map content pages */
1064
1065 .content-heading {
1066   background: $lightgrey;
1067 }
1068
1069 .content-inner {
1070   position: relative;
1071   max-width: 900px;
1072   margin: auto;
1073   padding: $lineheight;
1074 }
1075
1076 /* Overrides for pages that use new layout conventions */
1077
1078 .users-new,
1079 .users-create,
1080 .users-terms,
1081 .users-confirm {
1082   .content-heading .content-inner {
1083     height: 200px;
1084   }
1085 }
1086
1087 .header-illustration {
1088   background-position: 0 0;
1089   background-repeat: no-repeat;
1090   position: absolute;
1091   height: 200px;
1092   width: 100%;
1093   left: 0;
1094   bottom: 0;
1095
1096   &.new-user-main {
1097     background-image: image-url("sign-up-illustration.png");
1098   }
1099
1100   &.confirm-main {
1101     background-image: image-url("confirm-illustration.png");
1102   }
1103
1104   &.new-user-terms {
1105     background-image: image-url("terms-illustration.png");
1106   }
1107
1108   &.new-user-arm {
1109     height: 110px;
1110     width: 130px;
1111     left: 260px;
1112     top: 160px;
1113     background-image: image-url("sign-up-illustration-arm.png");
1114     z-index: 100;
1115   }
1116 }
1117
1118 [dir=rtl] .header-illustration {
1119   transform: scaleX(-1);
1120 }
1121
1122 #content.maximised {
1123   top: 0;
1124   left: 0;
1125   right: 0;
1126   bottom: 0;
1127   border: 0;
1128   z-index: 2000;
1129 }
1130
1131 /* Rules for small maps in content areas */
1132
1133 .content_map {
1134   height: 200px;
1135   border: 1px solid $grey;
1136   margin-bottom: $lineheight;
1137 }
1138
1139 @include media-breakpoint-up(md) {
1140   .content_map {
1141     height: 400px;
1142   }
1143 }
1144
1145 /* Rules for the user profile page */
1146
1147 #userinformation {
1148   min-height: 100px;
1149   .userinformation-inner {
1150     float: left;
1151   }
1152   .user-description {
1153     width: 100%;
1154     clear: both;
1155   }
1156 }
1157
1158 .admin-user-info small {
1159   margin-bottom: $lineheight/2;
1160   display: inline;
1161   margin-right: $lineheight;
1162 }
1163
1164 .contact-activity {
1165   margin-top: $lineheight;
1166   width: 100%;
1167 }
1168
1169 .activity-details p {
1170   margin-left: 70px;
1171   margin-bottom: 0;
1172 }
1173
1174 .users-show {
1175   // Silly exception; remove when user page is redesigned.
1176   .content-inner {
1177     max-width: none;
1178   }
1179   p#no_home_location {
1180     margin: $lineheight;
1181   }
1182   .user_thumbnail {
1183     margin-top: $lineheight/4;
1184     float: left;
1185   }
1186 }
1187
1188 /* Rules for the user map */
1189
1190 .content_map .leaflet-popup-content {
1191   margin: $lineheight/2;
1192   min-height: 50px;
1193 }
1194
1195 /* Rules for user popups on maps */
1196
1197 .user_popup {
1198   min-width: 200px;
1199   p {
1200     padding: 0 0 5px 0;
1201     margin-top: 0 0 0 60px;
1202     font-size: 12px;
1203   }
1204   img.user_thumbnail {
1205     float: left;
1206     margin: 0 $lineheight/2 0 0;
1207   }
1208 }
1209
1210 /* Rules for the user list */
1211
1212 #user_list {
1213   width: 100%;
1214
1215   tr {
1216     vertical-align: middle;
1217   }
1218
1219   p {
1220     margin-top: 0px;
1221     margin-bottom: 0px;
1222   }
1223 }
1224
1225 #user_list_actions {
1226   float: right;
1227   margin-top: $lineheight/2;
1228 }
1229
1230 /* Rules for the diary list page */
1231
1232 .diary_post {
1233   position: relative;
1234   padding-top: $lineheight;
1235   padding-bottom: $lineheight/2;
1236   border-top: 1px solid $grey;
1237
1238   &:first-of-type {
1239     margin-top: $lineheight/2;
1240   }
1241
1242   &.deleted {
1243     background-color: #fee;
1244   }
1245
1246   .post_heading {
1247     margin-bottom: $lineheight;
1248
1249     h2 {
1250       margin-top: 0;
1251       margin-bottom: $lineheight/2;
1252     }
1253   }
1254
1255   img.user_thumbnail {
1256     float: left;
1257   }
1258
1259   small.deemphasize {
1260     float: left;
1261     display: block;
1262   }
1263 }
1264
1265 /* Rules for the diary entry page */
1266
1267 .diary_entries {
1268   #map {
1269     height: 400px;
1270     border: 1px solid $grey;
1271     display: none;
1272     margin-bottom: $lineheight;
1273   }
1274   .comments {
1275     max-width: 740px;
1276   }
1277   .diary-comment {
1278     border-top: 1px dashed $grey;
1279     padding-top: $lineheight/2;
1280     padding-bottom: $lineheight/2;
1281     &:first-child {
1282       margin-top: $lineheight/2;
1283       padding-top: $lineheight;
1284       border-top: 1px solid $grey;
1285     }
1286     &.deleted {
1287       background-color: #fee;
1288     }
1289     p {
1290       margin-bottom: $lineheight/2;
1291     }
1292     .comment-heading {
1293       margin-bottom: 0;
1294       margin-top: 0;
1295     }
1296   }
1297 }
1298
1299 .diary_entries-show img.user_thumbnail {
1300   float: left;
1301 }
1302
1303 /* Rules for the log in page */
1304
1305 #login_auth_buttons {
1306   margin-bottom: 0;
1307
1308   li {
1309     float: left;
1310     padding: $lineheight/4 $lineheight/2;
1311   }
1312 }
1313
1314 /* Rules for the account confirmation page */
1315
1316 .users-terms {
1317   .legale {
1318     border: 1px solid $grey;
1319     padding: $lineheight;
1320     margin-bottom: $lineheight;
1321     overflow: auto;
1322     height: 20em;
1323
1324     li {
1325       list-style: inherit;
1326     }
1327
1328     ol ol {
1329       list-style-type: lower-alpha;
1330     }
1331   }
1332
1333   #decline {
1334     background: $lightblue;
1335     &:hover {
1336       background: darken($lightblue, $hovercolor);
1337     }
1338   }
1339 }
1340
1341 /* Rules for the account settings page */
1342
1343 #accountForm .user_image {
1344   margin-bottom: 0;
1345 }
1346
1347 #accountForm #user_image {
1348   margin-left: 20px;
1349 }
1350
1351 #accountForm ul.accountImage-options {
1352   margin-left: 120px;
1353 }
1354
1355 .nohome .location {
1356   display: none;
1357 }
1358
1359 #homerow .message {
1360   display: none;
1361 }
1362
1363 .nohome .message {
1364   display: inline !important;
1365 }
1366
1367 /* Rules for the oauth settings page */
1368
1369 .oauth_clients .buttons .oauth-edit {
1370   border-radius: 2px 0 0 2px;
1371 }
1372
1373 .oauth_clients .buttons .oauth-delete {
1374   border-radius: 0 2px 2px 0;
1375 }
1376
1377 /* Rules for the oauth authorization page */
1378
1379 .oauth-authorize ul {
1380   list-style: none;
1381 }
1382
1383 /* Rules for messages pages */
1384
1385 .messages {
1386   input[type="submit"] {
1387     margin: auto;
1388   }
1389
1390   .inbox-row {
1391     background: $offwhite;
1392   }
1393
1394   .inbox-row-unread {
1395     background: #CBEEA7;
1396   }
1397
1398   .right {
1399     float: right;
1400   }
1401 }
1402
1403 .inbox-row .inbox-mark-read {
1404   display: none;
1405 }
1406
1407 .info-line {
1408   margin-bottom: $lineheight;
1409   padding: $lineheight/4 0px 4px 0px;
1410   border-bottom: 1px solid $grey;
1411
1412   form, form div {
1413     display: inline;
1414   }
1415 }
1416
1417 .info-line .user_thumbnail_tiny {
1418   vertical-align: middle;
1419 }
1420
1421 .inbox-sent {
1422   white-space: nowrap;
1423 }
1424
1425 .inbox-mark-unread,
1426 .inbox-mark-read,
1427 .inbox-delete {
1428   width: 1%;
1429 }
1430
1431 .inbox-row-unread .inbox-mark-unread {
1432   display: none;
1433 }
1434
1435 /* Rules for "flash" notice boxes shown at the top of the content area */
1436
1437 .flash {
1438   padding: $lineheight;
1439
1440   &.error {
1441     background-color: #ff7070;
1442   }
1443
1444   &.warning {
1445     background-color: #ffe0cc;
1446   }
1447
1448   &.notice {
1449     background-color: #CBEEA7;
1450   }
1451
1452   div.message {
1453     display: inline-block;
1454     margin-left: $lineheight / 2;
1455     vertical-align: middle;
1456
1457     p {
1458       margin-top: $lineheight * 0.5;
1459       margin-bottom: $lineheight * 0.5;
1460
1461       &:first-child {
1462         margin-top: 0px;
1463       }
1464
1465       &:last-child {
1466         margin-bottom: 0px;
1467       }
1468     }
1469   }
1470 }
1471
1472 /* Rules for highlighting fields with rails validation errors */
1473
1474 .formError {
1475   display: inline-block;
1476   padding: 5px 10px;
1477   margin-top: 5px;
1478   border-radius: 4px;
1479   font-size: 12px;
1480   color: #fff;
1481   background-color: #ff7070;
1482 }
1483
1484 /* Rules for rails validation error boxes */
1485
1486 #errorExplanation {
1487   width: 400px;
1488   border: 2px solid #ff7070;
1489   padding: 0 $lineheight/2;
1490   margin-bottom: $lineheight;
1491   background-color: #f0f0f0;
1492
1493   h2 {
1494     margin: 0 -10px 10px -10px;
1495     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1496     font-weight: bold;
1497     font-size: 12px;
1498     background-color: #c00;
1499     color: #fff;
1500     text-align: left;
1501   }
1502
1503   p {
1504     color: #333;
1505     margin-bottom: 0px;
1506     padding: $lineheight/4;
1507   }
1508 }
1509
1510 /* Rules for forms */
1511
1512 .standard-form {
1513   fieldset {
1514     margin-bottom: $lineheight;
1515   }
1516   label.standard-label {
1517     display: block;
1518     margin-bottom: $lineheight/4;
1519     font-size: $typeheight;
1520     font-weight: bold;
1521     line-height: 1.5;
1522   }
1523   label.standard-label.secondary {
1524     display: inline-block;
1525     font-weight: normal;
1526   }
1527   .form-help {
1528     font-weight: normal;
1529   }
1530   .form-column {
1531     float: left;
1532     margin-right: 20px;
1533   }
1534   .form-divider {
1535     margin-top: $lineheight;
1536     padding-top: $lineheight;
1537     border-top: 1px solid $lightgrey;
1538   }
1539   .horizontal-list .standard-form-row {
1540     float: left;
1541     padding-right: 10px;
1542   }
1543   .standard-form-row {
1544     margin-bottom: $lineheight/2;
1545   }
1546   .form-list {
1547     margin-bottom: 0;
1548   }
1549   .form-list li {
1550     margin-bottom: 5px;
1551     list-style-type: none;
1552   }
1553   input[type="checkbox"],
1554   input[type="radio"] {
1555     float: left;
1556     margin-top: 5px;
1557   }
1558
1559   #remember_me_openid {
1560     display: block;
1561   }
1562
1563   select {
1564     padding: 2px;
1565   }
1566
1567   input[type="checkbox"],
1568   input[type="radio"] {
1569       margin-right: 5px;
1570   }
1571
1572   input[type="text"],
1573   input[type="email"],
1574   input[type="url"],
1575   input[type="password"],
1576   textarea {
1577     color: #222;
1578     background-color: #fff;
1579     border: 1px solid $grey;
1580     border-radius: 3px;
1581     padding: 2px 5px;
1582     margin: 0;
1583     width: 200px;
1584
1585     &.field_with_errors {
1586       border: 2px solid #ff7070;
1587     }
1588   }
1589
1590   textarea {
1591     padding: 5px;
1592     width: 100%;
1593     min-height: 50px;
1594     resize: vertical;
1595   }
1596
1597
1598   /* Utility for general button styles */
1599
1600   input[type="button"],
1601   input[type="submit"],
1602   input[type="reset"],
1603   a.button {
1604     cursor: pointer;
1605     border: 0;
1606     display: inline-block;
1607     padding: $lineheight/4 $lineheight/2;
1608     min-height: 20px + $lineheight/2;
1609     min-width: 120px;
1610     margin: 0 0 $lineheight/2 0;
1611     color: white;
1612     background: $blue;
1613     text-align: center;
1614     border-radius: 2px;
1615     &:hover {
1616       background: darken($blue, $hovercolor);
1617       text-decoration: none;
1618     }
1619     &.deemphasize {
1620       background: $lightblue;
1621       &:hover {
1622         background: darken($lightblue, $hovercolor);
1623       }
1624     }
1625     &:disabled {
1626       background: $lightgrey;
1627       &:hover {
1628         background: $lightgrey;
1629       }
1630     }
1631     &:last-child {
1632       margin-bottom: 0;
1633     }
1634   }
1635
1636   input[type="button"],
1637   input[type="submit"],
1638   input[type="reset"] {
1639     line-height: normal;
1640   }
1641
1642   a.button {
1643     line-height: 20px;
1644   }
1645
1646   .search_form,
1647   .directions_form {
1648     position: relative;
1649     padding: $lineheight/2;
1650     background-color: $lightgrey;
1651
1652     .query_wrapper {
1653       position: relative;
1654       overflow: hidden;
1655       border-radius: 2px 0 0 2px;
1656     }
1657
1658     input[type=text] {
1659       width: 100%;
1660       height: 30px;
1661       transition: 300ms linear;
1662     }
1663
1664     input[type=text].overflow {
1665       border-right: none;
1666       border-radius: 3px 0px 0px 3px;
1667     }
1668
1669     input:focus {
1670       outline: none;
1671       box-shadow: 0px 0px 7px $vibrant-green;
1672     }
1673
1674     input[type=submit].float {
1675       float: right;
1676       width: auto;
1677       min-width: 0;
1678       border-radius: 0 2px 2px 0;
1679     }
1680
1681     input.error {
1682       background-color: rgba($red, 0.4);
1683     }
1684
1685     select {
1686       /* this next line is to polyfill the vertical alignment of text within a select element,
1687        * which is different between firefox and chrome. */
1688       padding: 0.3em 0;
1689     }
1690
1691     .query_options {
1692       text-align: right;
1693       font-size: 10px;
1694       color: $blue;
1695     }
1696
1697     .describe_location {
1698       position: absolute;
1699       top: 6px;
1700       right: 6px;
1701       font-size: 10px;
1702       color: $blue;
1703     }
1704
1705     .switch_link {
1706       float: right;
1707       width: auto;
1708       min-width: 0;
1709       margin-left: 6px;
1710     }
1711
1712     img.button {
1713       display: block;
1714       width: 20px;
1715       height: 20px;
1716     }
1717
1718     span.force_width {
1719       width: 100%;
1720       padding-right: 25px;
1721       display: block;
1722     }
1723
1724     select.routing_engines {
1725       min-height: 30px;
1726       margin: 0px 0px 5px 25px;
1727     }
1728
1729     input.routing_go {
1730       min-width: 100px;
1731       float: right;
1732     }
1733
1734     div.header {
1735       width: 100%;
1736       height: 30px;
1737     }
1738
1739     div.line {
1740       width: 100%;
1741       margin: 0px 0px 5px 0px;
1742     }
1743
1744     div.loader_copy {
1745       display: none;
1746
1747       img {
1748         vertical-align: middle;
1749       }
1750     }
1751
1752     a.reverse_directions {
1753       cursor: pointer;
1754       margin: 0px 0px 5px 25px;
1755     }
1756   }
1757 }
1758
1759 /* Rules for user images */
1760
1761 img.user_image {
1762   max-width: 100px;
1763   max-height: 100px;
1764   border: 1px solid $grey;
1765   margin-bottom: $lineheight;
1766   float: left;
1767   margin-right: $lineheight;
1768 }
1769
1770 img.user_thumbnail {
1771   max-width: 50px;
1772   max-height: 50px;
1773   border: 1px solid $grey;
1774   margin-right: $lineheight;
1775 }
1776
1777 img.user_thumbnail_tiny {
1778   width: auto;
1779   height: auto;
1780   max-width: 25px;
1781   max-height: 25px;
1782   border: 1px solid $grey;
1783 }
1784
1785 /* Rules for geo microformats */
1786
1787 abbr.geo {
1788   border-bottom: none;
1789 }
1790
1791 /* General styles for action lists / subnavs / pager navs */
1792
1793 ul.secondary-actions {
1794   font-style: normal;
1795   margin-bottom: 0;
1796   margin-left: 0;
1797   padding: 0;
1798   &.pager {
1799     display: inline-block;
1800     margin-right: 60px;
1801   }
1802   > li {
1803     display: block;
1804     float: left;
1805     list-style: none;
1806     border-left: 1px solid $grey;
1807     padding-left: $lineheight/2;
1808     margin-right: $lineheight/2;
1809     &:first-child {
1810       border-left: 0;
1811       padding-left: 0;
1812     }
1813     &:last-child {
1814       margin-right: 0px;
1815     }
1816   }
1817 }
1818
1819 div.secondary-actions {
1820   padding: 10px;
1821   text-align: center;
1822 }
1823
1824 /* Utility for managing inner content areas */
1825
1826 .inner22 { padding: $lineheight;}
1827
1828 .inner12 { padding: $lineheight/2 $lineheight;}
1829
1830 .inner11 { padding: $lineheight/2;}
1831
1832 .inner20 { padding: $lineheight 0;}
1833
1834 .inner02 { padding: 0 $lineheight;}
1835
1836 .buttons {
1837   min-width: 200px;
1838   input[type="submit"],
1839   input[type="button"],
1840   input[type="reset"],
1841   .button,
1842   .button_to {
1843     box-sizing: border-box;
1844     float: left;
1845     border-radius: 0;
1846     margin:0;
1847     min-width: 75px;
1848     max-width: 180px;
1849     border-right:1px solid white;
1850     text-overflow: ellipsis;
1851     white-space: nowrap;
1852     overflow: hidden;
1853   }
1854   input:first-child,
1855   .button:first-child,
1856   .button_to:first-child {
1857     border-radius:2px 0 0 2px;
1858   }
1859   input:last-child,
1860   .button:last-child,
1861   .button_to:last-child {
1862     border-radius:0 2px 2px 0;
1863     border-right-width: 0;
1864   }
1865   input:only-child,
1866   .button:only-child,
1867   .button_to:only-child,
1868   *[value="Hide"] + input:last-child,
1869   *[value="Hide"] + .button:last-child,
1870   *[value="Hide"] + .button_to:last-child {
1871     border-radius:2px;
1872     border-right-width: 0;
1873   }
1874     /* if a 3-button set has a hidden middle button */
1875   *[value="Hide"] + input:nth-child(3),
1876   *[value="Hide"] + .button:nth-child(3),
1877   *[value="Hide"] + .button_to:nth-child(3) {
1878     border-radius:0 2px 2px 0;
1879     border-right-width: 0;
1880   }
1881   /* if a 3-button set starts with a hidden button */
1882   *[value="Hide"] + input:nth-child(2):not(:last-child),
1883   *[value="Hide"] + .button:nth-child(2):not(:last-child),
1884   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1885     border-radius:2px 0 0 2px;
1886     border-right-width: 1px;
1887   }
1888 }
1889
1890 /* Customise the background colour of striped tables */
1891
1892 .table-striped > tbody > tr:nth-child(2n+1) > td,
1893 .table-striped > tbody > tr:nth-child(2n+1) > th {
1894    background-color: $offwhite;
1895 }
1896
1897 /* Rules for OpenID logo */
1898
1899 .openid_logo {
1900   vertical-align: text-bottom;
1901   border: 0;
1902 }
1903
1904 /* Rules for rich text */
1905
1906 .richtext,
1907 .prose {
1908   code {
1909     font-size: 13px;
1910     background: $lightgrey;
1911     padding: 2px 3px;
1912   }
1913
1914   pre {
1915     font-size: 13px;
1916     background: $lightgrey;
1917     padding: 2px 3px;
1918     white-space: pre-wrap;
1919
1920     code {
1921       padding: 0;
1922     }
1923   }
1924
1925   img {
1926     padding: $lineheight;
1927     background-color: $offwhite;
1928     display: block;
1929     max-width: 100%;
1930     margin: auto;
1931   }
1932
1933   blockquote {
1934     border-left: $lineheight solid $offwhite;
1935     padding-left: $lineheight;
1936     margin: 0;
1937     color: $darkgrey;
1938   }
1939 }
1940
1941 .diary_post .richtext {
1942     margin-top: $lineheight;
1943   }
1944
1945 .comments .richtext {
1946   margin-left: 70px;
1947   margin-top: 0;
1948 }
1949
1950 /* Rules for rich text editors */
1951
1952 .standard-form {
1953   input.richtext_title[type="text"] {
1954     width: 50%;
1955     width: calc(100% - 235px);
1956
1957     @media only screen and (max-width:768px) {
1958       width: 100%;
1959     }
1960   }
1961
1962   .richtext_container {
1963     margin-bottom: $lineheight;
1964
1965     .richtext_content {
1966       width: 50%;
1967       width: calc(100% - 235px);
1968       display: inline-block;
1969       vertical-align: top;
1970
1971       @media only screen and (max-width:768px) {
1972         width: 100%;
1973       }
1974
1975       .richtext_preview {
1976         display: inline-block;
1977         padding: $lineheight;
1978         background-color: $offwhite;
1979         overflow-x: auto;
1980
1981         &.loading {
1982           background-image: image-url("loading.gif");
1983           background-repeat: no-repeat;
1984           background-position: center;
1985         }
1986
1987         > :first-child {
1988           margin-top: 0px;
1989         }
1990       }
1991     }
1992
1993     .richtext_help {
1994       display: inline-block;
1995       vertical-align: top;
1996       margin-left: 15px;
1997       background-color: $offwhite;
1998       padding: $lineheight/2;
1999       width: 220px;
2000
2001       ul {
2002         margin-bottom: 0;
2003       }
2004
2005       h4.heading, li {
2006         border-bottom: 1px solid $grey;
2007         margin-bottom: $lineheight/4;
2008         padding-bottom: $lineheight/4;
2009       }
2010
2011       li h4, li span, li p {
2012         display: inline-block;
2013         vertical-align: top;
2014         font-size: 11px;
2015       }
2016
2017       li h4 {
2018         width: 40%;
2019         margin: 0;
2020       }
2021
2022       li span, li p {
2023         width: 50%;
2024         margin-left: $lineheight/2;
2025         margin-bottom: $lineheight/4;
2026         white-space: nowrap;
2027       }
2028     }
2029   }
2030 }
2031
2032 /* Rules for the user notes list */
2033
2034 .note_list {
2035   tr.creator {
2036     background-color: $offwhite;
2037   }
2038 }
2039
2040 /* Rules for the iD editor */
2041
2042 .id-embed {
2043   width: 100%;
2044   height: 100%;
2045 }
2046
2047 /* Rules for the "Welcome" page */
2048 .site-welcome, .site-fixthemap {
2049   .center {
2050     text-align: center;
2051     .sprite {
2052       float: none;
2053       margin: auto;
2054     }
2055   }
2056
2057   .sprite {
2058     background-image: image-url("welcome-sprite.png");
2059     background-size: 500px 250px;
2060     display: block;
2061     float: left;
2062   }
2063
2064   .icon-list {
2065     padding-bottom: 20px;
2066     div {
2067       margin-bottom: 10px;
2068       p {
2069         padding-top: 10px;
2070       }
2071     }
2072   }
2073   .sprite.small {
2074     width: 50px;
2075     height: 50px;
2076   }
2077
2078   .sprite.x {
2079     /* no-r2 */ background-position: -50px 0;
2080   }
2081
2082   .sprite.term {
2083     margin-right: 10px;
2084     vertical-align: middle;
2085   }
2086
2087   .sprite.node {
2088     /* no-r2 */ background-position: -100px 0;
2089   }
2090
2091   .sprite.way {
2092     /* no-r2 */ background-position: -150px 0;
2093   }
2094
2095   .sprite.tag {
2096     /* no-r2 */ background-position: -200px 0;
2097   }
2098
2099   .sprite.editor {
2100     /* no-r2 */ background-position: -250px 0;
2101   }
2102
2103   .sprite.question {
2104     /* no-r2 */ background-position: -300px 0;
2105   }
2106
2107   .sprite.rules {
2108     /* no-r2 */ background-position: -350px 0;
2109   }
2110
2111   .start-mapping {
2112     margin: auto;
2113     cursor: pointer;
2114     border: none;
2115     padding: 20px 40px;
2116     font-size: 30px;
2117     text-decoration: none;
2118   }
2119
2120   .icon.note {
2121     background-color: #333;
2122     border-radius: 4px;
2123   }
2124 }
2125
2126 .site-about #content {
2127   background-color: $lightgrey;
2128   background-position: 50% 50%;
2129   background-repeat: no-repeat;
2130   background-size: cover;
2131   background-attachment: fixed;
2132
2133
2134   .content-inner {
2135     position: relative;
2136     color: #333;
2137     min-width: 320px;
2138     max-width: 640px;
2139   }
2140
2141   .text {
2142     background: white;
2143     padding: 40px;
2144   }
2145
2146   .attr {
2147     position: relative;
2148     padding: 170px 40px 20px;
2149     background: #333;
2150     background: rgba(0, 0, 0, .8);
2151     margin-bottom: 0;
2152     margin-top: -20px;
2153
2154     h1 {
2155       display: block;
2156       color: white;
2157       font-weight: 300;
2158       font-size: 28px;
2159       span {
2160         color: $vibrant-green;
2161       }
2162     }
2163
2164     @include media-breakpoint-up(sm) {
2165       h1 {
2166         font-size: 34px;
2167       }
2168     }
2169
2170     .user-image {
2171       position: absolute;
2172       top: 0px;
2173       right: 240px;
2174       left: 0px;
2175       height: 150px;
2176       background-position: 0 50%;
2177       background-repeat: no-repeat;
2178       background-image: image-url('about/osm.png');
2179       background-size: cover;
2180       background-color: $vibrant-green;
2181     }
2182
2183     .byosm {
2184       position: absolute;
2185       top: 0px;
2186       right: 0px;
2187       z-index: 1;
2188       width: 240px;
2189       height: 150px;
2190       padding: 20px 20px 20px 40px;
2191       font: 500 20px/24px Helvetica, Arial, sans-serif;
2192       white-space: nowrap;
2193       color: #fff;
2194       background: $vibrant-green;
2195     }
2196
2197     .byosm span {
2198       display: inline-block;
2199       width: 20px;
2200       margin-left: -20px;
2201     }
2202   }
2203
2204   .icon {
2205     width: 30px;
2206     height: 30px;
2207     margin-right: 10px;
2208     vertical-align: middle;
2209     background: 40px 40px image-url('about/sprite.png') no-repeat;
2210
2211     &.local {
2212       /* no-r2 */
2213       background-position: 0px 0px;
2214     }
2215     &.community {
2216       /* no-r2 */
2217       background-position: 0px -40px;
2218     }
2219     &.open {
2220       /* no-r2 */
2221       background-position: 0px -80px;
2222     }
2223     &.partners {
2224       /* no-r2 */
2225       background-position: 0px -120px;
2226     }
2227     &.infringement {
2228       /* no-r2 */
2229       background-position: 0px -160px;
2230     }
2231     &.legal {
2232       /* no-r2 */
2233       background-position: -45px -160px;
2234     }
2235   }
2236 }
2237
2238 @import 'browse';
2239
2240 @media only screen and (max-width:960px) {
2241   .header-illustration.new-user-arm {
2242     display: none;
2243   }
2244 }