]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Merge remote-tracking branch 'upstream/pull/4295'
[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 /* Default rules for the body of every page */
8
9 body {
10   font-size: $typeheight;
11 }
12
13 p > img {
14   width: auto;
15   max-width: 100%;
16 }
17
18 small, aside {
19   font-size: 12px;
20 }
21
22 #container { position: relative; }
23
24 .small_icon {
25   vertical-align: middle;
26   margin-right: $lineheight * 0.25;
27 }
28
29 [dir=rtl] { /* no-r2 */ text-align: right; }
30
31 [dir=ltr] { /* no-r2 */ text-align: left; }
32
33 /* Rules for icons */
34
35 .icon {
36   display: inline-block;
37   vertical-align: top;
38   width: 20px;
39   height: 20px;
40   background: transparent image-url("sprite.png") no-repeat 0 0;
41   background-image: image-url("sprite.svg");
42   text-indent: -9999px;
43   overflow: hidden;
44 }
45
46 .icon.search      { /* no-r2 */ background-position: 0 0; }
47 .icon.donate      { /* no-r2 */ background-position: -20px 0; }
48 .icon.zoomin      { /* no-r2 */ background-position: -40px 0; }
49 .icon.zoomout     { /* no-r2 */ background-position: -60px 0; }
50 .icon.geolocate   { /* no-r2 */ background-position: -80px 0; }
51 .active .icon.geolocate   { /* no-r2 */ background-position: -80px -20px; }
52 .icon.layers      { /* no-r2 */ background-position: -100px 0; }
53 .icon.key         { /* no-r2 */ background-position: -120px 0; }
54 .icon.share       { /* no-r2 */ background-position: -140px 0; }
55 .icon.clipboard   { /* no-r2 */ background-position: -160px 0; }
56 .icon.link        { /* no-r2 */ background-position: -180px 0; }
57 .icon.close       { /* no-r2 */ background-position: -200px 0; }
58 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
59 .icon.check       { /* no-r2 */ background-position: -220px 0; }
60 .icon.note        { /* no-r2 */ background-position: -240px 0; }
61 .icon.note.grey   { /* no-r2 */ background-position: -240px -20px; }
62 .icon.query       { /* no-r2 */ background-position: -260px 0; }
63
64 /* Utility for de-emphasizing content */
65
66 .text-muted a {
67   color: $blue;
68 }
69
70 /* Rules for borders */
71 /* These add additional colours to those provided by bootstrap */
72 .border-grey {
73   border-color: $grey !important;
74 }
75
76 .border-lightgrey {
77   border-color: $lightgrey !important;
78 }
79
80 /* Rules for the header */
81
82 #menu-icon {
83   display: none;
84   float: right;
85   background: image-url("menu-icon.png") no-repeat;
86   background-size: 30px 30px;
87   width: 30px;
88   height: 30px;
89   margin: 14px 10px 0 0;
90   opacity: 0.6;
91 }
92
93 header {
94   height: $headerHeight;
95   position: relative;
96   z-index: 1001;
97   font-size: 14px;
98
99   h1, nav, nav > ul, nav > ul > li {
100     display: inline-block;
101   }
102
103   > * {
104     height: 100%;
105     padding: $lineheight * 0.5;
106   }
107
108   h1, nav.primary {
109     float: left;
110   }
111
112   img.logo {
113     margin-top: -2px;
114   }
115
116   h1 {
117     font-size: 18px;
118     line-height: 1.2;
119     padding-top: 15px;
120   }
121
122   .btn {
123     font-size: 14px;
124   }
125 }
126
127
128 nav.primary {
129   & > .btn-group .btn-outline-primary {
130     @include button-outline-variant($green, $color-hover: $white, $active-color: $white);
131   }
132
133   .disabled {
134     .btn-outline-primary {
135       color: $grey;
136       cursor: default;
137
138       .caret {
139         border-top-color: $grey;
140       }
141
142       &:hover {
143         background-color: lighten($green, 30%);
144       }
145     }
146   }
147
148   // Small tweaks to the toggle to stop the primary colour showing through
149   // when the menu is shown
150   .show > .btn-outline-primary.dropdown-toggle {
151     background-color: $green;
152     border-color: $green;
153
154     &:focus {
155       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
156     }
157   }
158 }
159
160 nav.secondary {
161   position: absolute;
162   right: 0;
163
164   .nav-link {
165     padding: 0.2rem;
166     color: $darkgrey;
167   }
168
169   > ul li.current a {
170     color: darken($darkgrey, 25%);
171   }
172
173   #inboxanchor {
174     background-color: lighten($grey, 10%);
175   }
176 }
177
178 nav.primary, nav.secondary {
179   .dropdown-item {
180     &:hover, &:active {
181       background-color: $green;
182       color: white;
183     }
184   }
185 }
186
187 #compact-secondary-nav {
188   display: none;
189 }
190
191 body.compact-nav {
192   #compact-secondary-nav {
193     display: inline-block;
194   }
195   .compact-hide {
196     display: none;
197   }
198 }
199
200 body.small-nav {
201   #menu-icon {
202     display: block;
203   }
204
205   nav.primary,
206   nav.secondary {
207     float: none !important;
208     position: relative;
209     display: block;
210     clear: both;
211   }
212
213   header {
214     height: auto;
215     min-height: $headerHeight;
216     background: #fff;
217
218     &.closed nav {
219       display: none;
220     }
221
222     .search_forms {
223       display: block;
224     }
225   }
226
227   #sidebar .search_forms,
228   #edit_tab,
229   #export_tab {
230     display: none;
231   }
232
233   nav.primary {
234     padding: 0;
235
236     ul, li {
237       border: none;
238       border-radius: 0;
239       width: 100%;
240     }
241
242     ul {
243       border-top: 1px solid #eee;
244       li {
245         border-bottom: 1px solid #eee;
246         border-right: none;
247         > a {
248           border-radius: 0;
249           width: 100%;
250           text-align: center;
251           font-size: 15px;
252         }
253       }
254     }
255
256     .btn-group {
257       width: 100%;
258       padding: 10px;
259     }
260   }
261
262   nav.secondary {
263     .user-menu, .login-menu {
264       width: 100%;
265     }
266   }
267
268   #compact-secondary-nav {
269     display: none;
270   }
271
272   .compact-hide {
273     display: inline-block;
274   }
275
276   .overlay-sidebar #sidebar .welcome {
277     display: none;
278   }
279
280   .overlay-sidebar #sidebar #banner {
281     display: none;
282   }
283 }
284
285 /* Utility for styling notification numbers */
286
287 .count-number {
288   background: lighten($green, 30%);
289   color: $gray-800;
290   font-weight: $font-weight-normal;
291 }
292
293 /* Rules for the message shown in place of the map when javascript is disabled */
294
295 #noscript {
296   z-index: 20000000;
297   margin-left: 400px;
298   margin-top: 50px;
299 }
300
301 /* Rules for Leaflet maps */
302
303 .leaflet-top.leaflet-right,
304 .leaflet-top.leaflet-left {
305   height: 100%;
306   column-gap: 10px;
307   display: flex;
308   flex-direction: column;
309   flex-wrap: wrap-reverse;
310 }
311
312 .leaflet-control .control-button {
313   display: block;
314   height: 40px;
315   width: 40px;
316   background-color: #333;
317   background-color: rgba(0,0,0,.6);
318   outline: none;
319
320   &:hover,
321   &:focus {
322     background-color: black;
323   }
324
325   &.disabled,
326   &.leaflet-disabled {
327     background-color: #333;
328     background-color: rgba(0,0,0,.5);
329     cursor: default;
330   }
331
332   &.active {
333     background-color: $vibrant-green;
334   }
335
336   &-first {
337     border-start-start-radius: 4px;
338   }
339
340   &-last {
341     border-end-start-radius: 4px;
342     margin-bottom: 10px;
343   }
344
345   .icon {
346     margin: 10px;
347   }
348 }
349
350 /* Rules for the sidebar and main map area */
351
352 .map-layout {
353   #content {
354     overflow: hidden;
355     position: absolute;
356     top: $headerHeight;
357     bottom: 0;
358     width: 100%;
359   }
360
361   #sidebar, #map {
362     position: relative;
363     height: 100%;
364     overflow-x: hidden;
365     overflow-y: auto;
366   }
367
368   #sidebar {
369     float: left;
370     width: $sidebarWidth;
371     background: #fff;
372
373     #sidebar_loader {
374       display: none;
375     }
376
377     #sidebar_content {
378       padding: $spacer;
379     }
380
381     > div {
382       position: relative;
383     }
384   }
385
386   .overlay-sidebar #sidebar {
387     position: absolute;
388     z-index: 1000;
389     height: auto;
390     overflow: hidden;
391
392     #banner {
393       display: block;
394     }
395
396     .welcome {
397       display: block;
398     }
399
400     #sidebar_content {
401       display: none;
402     }
403   }
404
405   .welcome {
406     display: none;
407
408     p {
409       font-size: 110%;
410       font-weight: 300;
411     }
412   }
413
414   #banner {
415     display: none;
416
417     img {
418       display: block;
419       width: $sidebarWidth;
420     }
421
422     button.btn-close {
423       background-color: rgba(255, 255, 255, 0.5);
424       opacity: 1.0;
425     }
426   }
427
428   #map {
429     height: 100%;
430     overflow: hidden;
431
432     &.query-active {
433       cursor: help;
434     }
435
436     &.query-disabled {
437       cursor: not-allowed;
438     }
439
440     .leaflet-marker-draggable {
441       cursor: move;
442     }
443   }
444
445   #map-ui {
446     display: none;
447     position: relative;
448     float: right;
449     width: 250px;
450     height: 100%;
451     background: white;
452     overflow: auto;
453
454     .section {
455       border-bottom: 1px solid $grey;
456       padding: $spacer;
457     }
458   }
459 }
460
461 @include media-breakpoint-down(md) {
462   body.map-layout {
463     #sidebar, #map {
464       position: relative;
465       overflow-x: hidden;
466       width: 100%;
467       height: 50%;
468     }
469
470     #map-ui {
471       z-index: 9999;
472       width: 100%;
473       height: 50%;
474       overflow-y: scroll;
475     }
476
477     .overlay-sidebar {
478       #sidebar {
479         position: absolute;
480         width: 350px;
481         height: auto;
482         overflow: hidden;
483       }
484
485       #map, #map-ui {
486         height: 100%;
487       }
488     }
489   }
490 }
491
492 .layers-ui {
493   .base-layers {
494     .leaflet-container {
495       width: 100%;
496       height: 50px;
497       cursor: pointer;
498     }
499
500     li  {
501       overflow: hidden;
502       border-radius: 3px;
503       border: 2px solid #fff;
504       margin-bottom: 8px;
505       position: relative;
506       transition: border-color 0.08s ease-in;
507
508       label {
509         position: absolute;
510         top: 0;
511         left: 0;
512         padding: 2px 6px;
513         border-bottom-right-radius: 3px;
514         cursor: pointer;
515         font-weight: 600;
516         font-size: 16px;
517         text-stroke: 2px #fff;
518         background: rgba(255,255,255,.9);
519         z-index: 1000;
520         input[type="radio"] {
521           display: none;
522         }
523       }
524
525       &.active { border-color: darken($green, 10%); }
526       &:hover {
527         border-color: $grey;
528         &.active { border-color: darken($green, 20%); }
529       }
530     }
531   }
532
533   .overlay-layers {
534     p {
535       font-size: 13px;
536       margin-bottom: 8px;
537     }
538     li.disabled { color: $darkgrey; }
539   }
540 }
541
542 .share-ui {
543   #mapnik_scale {
544     width: 100px;
545   }
546 }
547
548 .leaflet-top {
549   top: 10px !important;
550   .leaflet-control {
551     margin-right: 0px !important;
552     margin-top: 0px !important;
553   }
554 }
555
556 .leaflet-popup-scrolled {
557   padding-right: $lineheight;
558   border-bottom: 0px !important;
559   border-top: 0px !important;
560 }
561
562 .leaflet-popup-content-wrapper {
563   border-radius: 4px !important;
564 }
565
566 /* Rules for attribution text under the main map shown on printouts */
567
568 #attribution {
569   display: none;
570 }
571
572 .donate-attr { color: darken($green, 10%) !important; }
573
574 /* Rules for the sidebar */
575
576 #browse_status {
577   input {
578     display: block;
579     margin-left: auto;
580     margin-right: auto;
581   }
582
583   > div {
584    padding: $spacer;
585   }
586 }
587
588 /* Temporary label size override until we remove site-wide font customisation */
589
590 form {
591   label {
592     font-size: 16px;
593   }
594   .col-form-label {
595     font-size: 16px;
596   }
597 }
598
599 /* Stop bootstrap 5 from floating legends when they don't need to be */
600 legend {
601   float: none;
602 }
603
604 /* Override the text colour for primary and secondary buttons, to match our
605    bootstrap 4 colours. Note this has accessibility issues, which is why
606    bootstrap 5 calculates black as the appropriate colour, and we should
607    reconsider our colours at some point with that in mind. */
608
609 .btn-primary {
610   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
611 }
612
613 .btn-secondary {
614   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
615 }
616
617 .btn-outline-secondary {
618   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
619 }
620
621 /* Rules for the search and direction forms */
622
623 header .search_forms,
624 .directions_form {
625   display: none;
626 }
627
628 /* Rules for the map key which appears in the popout sidebar */
629
630 #mapkey {
631  .mapkey-table-key img {
632     display: block;
633     margin-left: auto;
634     margin-right: auto;
635   }
636 }
637
638 /* Rules for search sidebar */
639
640 #sidebar .search_results_entry {
641   ul li {
642     cursor: pointer;
643     &.selected { background: $list-highlight; }
644   }
645
646   .search_more .loader {
647     display: none;
648   }
649 }
650
651 .search_results_error {
652   color: #f00;
653   padding: 10px 20px;
654 }
655
656 /* Rules for routing */
657
658 div.direction {
659   background-image: image-url('routing-sprite.png');
660   width: 20px;
661   height: 20px;
662   background-repeat: no-repeat;
663 }
664 @for $i from 0 through 25 {
665 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
666 }
667
668 td.distance {
669     color: $darkgrey;
670     text-align: right;
671     font-size: x-small;
672 }
673 tr.turn {
674     cursor: pointer;
675 }
676 tr.turn:hover {
677     background: $list-highlight;
678 }
679
680 .routing_marker { width: 15px; cursor: move; }
681
682 .browse_status {
683   display: none;
684 }
685
686 /* Rules for the history sidebar */
687
688 #sidebar .changesets {
689   li {
690     &.selected { background: $list-highlight; }
691     /* color is derived from changeset bbox fillColor in history.js */
692
693     a.stretched-link > span, a:not(.stretched-link), [title] {
694       position: relative;
695       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
696     }
697   }
698
699   .changeset_more .loader {
700     display: none;
701     width: 100%;
702   }
703 }
704
705 /* Rules for the browse sidebar */
706
707 #sidebar_content {
708   .browse-section {
709     padding-bottom: $spacer;
710     margin-bottom: $spacer;
711     border-bottom: 1px solid $grey;
712
713     h4:first-child {
714       word-wrap: break-word;
715     }
716   }
717
718   .browse-section:last-of-type {
719     border-bottom: none;
720   }
721
722   .browse-tag-list {
723     background-color: $offwhite;
724     table-layout: fixed;
725     border-collapse: separate;
726     border-spacing: 0;
727     width: 100%;
728     margin-bottom: $spacer;
729
730     th, td {
731       border-bottom: 1px solid $grey;
732     }
733
734     tr:last-child th, tr:last-child td {
735       border-bottom: 0;
736     }
737
738     .browse-tag-k,
739     .browse-tag-v {
740       width: 50%;
741       padding: 6px 10px;
742       word-wrap: break-word;
743       white-space: pre-wrap;
744     }
745
746     .browse-tag-k {
747       font-weight: 500;
748       background-color: $offwhite;
749     }
750
751     .browse-tag-v {
752       border-left: 1px solid $grey;
753       background-color: #fff;
754     }
755
756     .colour-preview-box {
757       float: right;
758       width: 14px;
759       height: 14px;
760       margin: 4px 0px;
761       border: 1px solid rgba(0, 0, 0, .1);
762       // add color via inline css on element: background-color: <tag value>;
763     }
764   }
765
766   .subscribe-buttons input {
767     font-size: 90%;
768     line-height: 15px;
769     min-height: 20px;
770   }
771
772   span.action-button:hover {
773     cursor: pointer;
774     text-decoration: underline;
775   }
776
777   .note-description {
778     overflow: hidden;
779     margin: 0 0 10px 10px;
780   }
781
782   .query-results {
783     display: none;
784
785     ul {
786       li {
787         &.query-result {
788           cursor: pointer;
789         }
790
791         &.selected {
792           background: $list-highlight;
793         }
794       }
795     }
796   }
797 }
798
799 /* Bootstrap buttons don't have any vertical margin, so
800    they touch when adjacent buttons wrap onto a new line
801    e.g. wide form buttons on a narrow sidebar */
802
803 .btn-wrapper {
804   > .btn {
805     margin-bottom: $spacer * 0.25;
806   }
807 }
808
809 /* Rules for export sidebar */
810
811 .export_form {
812   .export_area_inputs,
813   .export_button {
814     text-align: center;
815   }
816
817   .export_area_inputs {
818     margin-bottom: $spacer;
819     input[type="text"] {
820       width: 100px;
821       text-align: center;
822     }
823   }
824
825   .export_boxy {
826     background: $lightgrey;
827
828     #maxlat { margin-top: -1px; }
829     #minlon {
830       float: left;
831       /* no-r2 */ margin-left: -1px;
832     }
833     #maxlon {
834       float: right;
835       /* no-r2 */ margin-right: -1px;
836     }
837     #minlat { margin-bottom: -1px; }
838   }
839 }
840
841 /* Rules for edit pages */
842
843 .site-edit {
844   #content {
845     position: absolute;
846     top: $headerHeight;
847     bottom: 0;
848     width: 100%;
849   }
850
851   #map {
852     height: 100%;
853     overflow: hidden;
854   }
855 }
856
857 /* Rules for non-map content pages */
858
859 .content-heading {
860   background: $lightgrey;
861 }
862
863 .content-inner {
864   position: relative;
865   max-width: 960px;
866   margin: auto;
867   padding: $lineheight;
868 }
869
870 /* Overrides for pages that use new layout conventions */
871
872 .header-illustration {
873   background-position: 0 0;
874   background-repeat: no-repeat;
875   position: relative;
876   min-height: 200px;
877   width: 100%;
878   left: 0;
879   bottom: 0;
880
881   &.new-user-main {
882     background-image: image-url("sign-up-illustration.png");
883   }
884
885   &.confirm-main {
886     background-image: image-url("confirm-illustration.png");
887   }
888
889   &.new-user-terms {
890     background-image: image-url("terms-illustration.png");
891   }
892
893   &.new-user-arm {
894     height: 110px;
895     width: 130px;
896     left: 280px;
897     top: 180px;
898     background-image: image-url("sign-up-illustration-arm.png");
899     position: absolute;
900     z-index: 100;
901     pointer-events: none;
902   }
903 }
904
905 [dir=rtl] .header-illustration {
906   transform: scaleX(-1);
907
908   h1 {
909     transform: scaleX(-1);
910   }
911 }
912
913 #content.maximised {
914   top: 0;
915   left: 0;
916   right: 0;
917   bottom: 0;
918   border: 0;
919   z-index: 2000;
920 }
921
922 /* Rules for small maps in content areas */
923
924 .content_map {
925   height: 200px;
926   margin-bottom: $lineheight;
927 }
928
929 @include media-breakpoint-up(md) {
930   .content_map {
931     height: 400px;
932   }
933 }
934
935 /* Rules for the user map */
936
937 .content_map .leaflet-popup-content {
938   margin: $spacer;
939   min-height: 50px;
940 }
941
942 /* Rules for user popups on maps */
943
944 .user_popup {
945   min-width: 200px;
946   p {
947     padding: 0 0 5px 0;
948     margin: 0 0 0 60px;
949     font-size: 12px;
950   }
951 }
952
953 /* Rules for the user list */
954
955 #user_list {
956   width: 100%;
957 }
958
959 /* Rules for the diary entry page */
960
961 .diary_entries {
962   #map {
963     height: 400px;
964     display: none;
965   }
966   .comments {
967     max-width: 740px;
968   }
969   .diary-comment {
970     border-top: 1px dashed $grey;
971     &:first-child {
972       border-top: 1px solid $grey;
973     }
974   }
975 }
976
977 /* Rules for the account confirmation page */
978
979 .users-terms {
980   .legale {
981     padding: $lineheight;
982     margin-bottom: $lineheight;
983     overflow: auto;
984     height: 20em;
985
986     li {
987       list-style: inherit;
988     }
989
990     ol ol {
991       list-style-type: lower-alpha;
992     }
993   }
994 }
995
996 /* Rules for the oauth authorization page */
997
998 .oauth-authorize ul {
999   list-style: none;
1000 }
1001
1002 /* Rules for messages pages */
1003
1004 .messages {
1005   .inbox-row {
1006     background: $offwhite;
1007   }
1008
1009   .inbox-row-unread {
1010     background: #CBEEA7;
1011   }
1012 }
1013
1014 .search_form {
1015   background-color: $lightgrey;
1016
1017   #query {
1018     z-index: 0;
1019   }
1020
1021   .describe_location {
1022     font-size: 10px;
1023   }
1024 }
1025
1026 .directions_form {
1027   background-color: $lightgrey;
1028 }
1029
1030 /* Rules for user images */
1031
1032 img.user_image {
1033   max-width: 100px;
1034   max-height: 100px;
1035 }
1036
1037 img.user_thumbnail {
1038   max-width: 50px;
1039   max-height: 50px;
1040 }
1041
1042 img.user_thumbnail_tiny {
1043   width: auto;
1044   height: auto;
1045   max-width: 25px;
1046   max-height: 25px;
1047 }
1048
1049 /* General styles for action lists / subnavs */
1050
1051 nav.secondary-actions {
1052   margin-left: -11px;
1053   overflow: hidden;
1054   > ul {
1055     display: flex;
1056     flex-direction: row;
1057     flex-wrap: wrap;
1058     margin-bottom: 0;
1059     margin-left: -1px;
1060     padding: 0;
1061     > li {
1062       flex-basis: auto;
1063       list-style: none;
1064       border-left: 1px solid $grey;
1065       padding-left: $lineheight * 0.5;
1066       margin-right: $lineheight * 0.5;
1067       margin-bottom: $lineheight * 0.125;
1068     }
1069   }
1070 }
1071
1072 div.secondary-actions {
1073   padding: 10px;
1074   text-align: center;
1075 }
1076
1077 /* Rules for rich text */
1078
1079 .richtext,
1080 .prose {
1081   code {
1082     background: $lightgrey;
1083     padding: 2px 3px;
1084   }
1085
1086   pre {
1087     background: $lightgrey;
1088     padding: 2px 3px;
1089     white-space: pre-wrap;
1090
1091     code {
1092       padding: 0;
1093     }
1094   }
1095
1096   img {
1097     padding: $lineheight;
1098     background-color: $offwhite;
1099     display: block;
1100     max-width: 100%;
1101     margin: auto;
1102   }
1103
1104   blockquote {
1105     border-left: $lineheight solid $offwhite;
1106     padding-left: $lineheight;
1107     margin: 0;
1108     color: $darkgrey;
1109   }
1110 }
1111
1112 /* Rules for the iD editor */
1113
1114 .id-embed {
1115   width: 100%;
1116   height: 100%;
1117 }
1118
1119 /* Rules for the "Welcome" page */
1120 .site-welcome, .site-fixthemap {
1121   .sprite {
1122     background-image: image-url("welcome-sprite.png");
1123     background-size: 500px 250px;
1124     display: block;
1125   }
1126
1127   .sprite.small {
1128     width: 50px;
1129     height: 50px;
1130   }
1131
1132   .sprite.x {
1133     /* no-r2 */ background-position: -50px 0;
1134   }
1135
1136   .sprite.term {
1137     margin-right: 10px;
1138     vertical-align: middle;
1139   }
1140
1141   .sprite.node {
1142     /* no-r2 */ background-position: -100px 0;
1143   }
1144
1145   .sprite.way {
1146     /* no-r2 */ background-position: -150px 0;
1147   }
1148
1149   .sprite.tag {
1150     /* no-r2 */ background-position: -200px 0;
1151   }
1152
1153   .sprite.editor {
1154     /* no-r2 */ background-position: -250px 0;
1155   }
1156
1157   .sprite.question {
1158     /* no-r2 */ background-position: -300px 0;
1159   }
1160
1161   .sprite.rules {
1162     /* no-r2 */ background-position: -350px 0;
1163   }
1164
1165   .icon.note {
1166     background-color: #333;
1167     border-radius: 4px;
1168   }
1169 }
1170
1171 .site-about #content {
1172   background-color: $lightgrey;
1173
1174   .content-inner {
1175     max-width: 760px;
1176   }
1177
1178   .attr {
1179     margin-top: -20px;
1180
1181     h1 {
1182       span {
1183         color: $vibrant-green;
1184       }
1185     }
1186
1187     .user-image {
1188       height: 150px;
1189       background-position: 0 50%;
1190       background-repeat: no-repeat;
1191       background-image: image-url('about/osm.png');
1192       background-size: cover;
1193       background-color: $vibrant-green;
1194     }
1195
1196     .byosm {
1197       background: $vibrant-green;
1198     }
1199
1200     .byosm span {
1201       display: inline-block;
1202       width: 1em;
1203       margin-left: -1em;
1204     }
1205   }
1206
1207   .icon {
1208     width: 30px;
1209     height: 30px;
1210     background: 40px 40px image-url('about/sprite.png') no-repeat;
1211
1212     &.local {
1213       /* no-r2 */
1214       background-position: 0px 0px;
1215     }
1216     &.community {
1217       /* no-r2 */
1218       background-position: 0px -40px;
1219     }
1220     &.open {
1221       /* no-r2 */
1222       background-position: 0px -80px;
1223     }
1224     &.partners {
1225       /* no-r2 */
1226       background-position: 0px -120px;
1227     }
1228     &.infringement {
1229       /* no-r2 */
1230       background-position: 0px -160px;
1231     }
1232     &.legal {
1233       /* no-r2 */
1234       background-position: -45px -160px;
1235     }
1236   }
1237 }
1238
1239 @import 'browse';