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