]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Merge remote-tracking branch 'upstream/pull/4340'
[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
433   #banner {
434     display: none;
435
436     img {
437       display: block;
438       width: $sidebarWidth;
439     }
440   }
441
442   #map {
443     height: 100%;
444     overflow: hidden;
445
446     &.query-active {
447       cursor: help;
448     }
449
450     &.query-disabled {
451       cursor: not-allowed;
452     }
453
454     .leaflet-marker-draggable {
455       cursor: move;
456     }
457   }
458
459   #map-ui {
460     display: none;
461     position: relative;
462     float: right;
463     width: 250px;
464     height: 100%;
465     background: white;
466     overflow: auto;
467
468     .section {
469       border-bottom: 1px solid $grey;
470       padding: $spacer;
471     }
472   }
473 }
474
475 @include media-breakpoint-down(md) {
476   body.map-layout {
477     #sidebar, #map {
478       position: relative;
479       overflow-x: hidden;
480       width: 100%;
481       height: 50%;
482     }
483
484     #map-ui {
485       z-index: 9999;
486       width: 100%;
487       height: 50%;
488       overflow-y: scroll;
489     }
490
491     .overlay-sidebar {
492       #sidebar {
493         position: absolute;
494         width: 350px;
495         height: auto;
496         overflow: hidden;
497       }
498
499       #map, #map-ui {
500         height: 100%;
501       }
502     }
503   }
504 }
505
506 .layers-ui {
507   .base-layers {
508     .leaflet-container {
509       width: 100%;
510       height: 50px;
511       cursor: pointer;
512     }
513
514     li  {
515       overflow: hidden;
516       border-radius: 3px;
517       border: 2px solid #fff;
518       margin-bottom: 8px;
519       position: relative;
520       transition: border-color 0.08s ease-in;
521
522       label {
523         position: absolute;
524         top: 0;
525         left: 0;
526         padding: 2px 6px;
527         border-bottom-right-radius: 3px;
528         cursor: pointer;
529         font-weight: 600;
530         font-size: 16px;
531         text-stroke: 2px #fff;
532         background: rgba(255,255,255,.9);
533         z-index: 1000;
534         input[type="radio"] {
535           display: none;
536         }
537       }
538
539       &.active { border-color: darken($green, 10%); }
540       &:hover {
541         border-color: $grey;
542         &.active { border-color: darken($green, 20%); }
543       }
544     }
545   }
546
547   .overlay-layers {
548     p {
549       font-size: 13px;
550       margin-bottom: 8px;
551     }
552     li.disabled { color: $darkgrey; }
553   }
554 }
555
556 .share-ui {
557   #mapnik_scale {
558     width: 100px;
559   }
560 }
561
562 .leaflet-top {
563   top: 10px !important;
564   .leaflet-control {
565     margin-right: 0px !important;
566     margin-top: 0px !important;
567   }
568 }
569
570 .leaflet-popup-scrolled {
571   padding-right: $lineheight;
572   border-bottom: 0px !important;
573   border-top: 0px !important;
574 }
575
576 .leaflet-popup-content-wrapper {
577   border-radius: 4px !important;
578 }
579
580 /* Rules for attribution text under the main map shown on printouts */
581
582 .donate-attr { color: darken($green, 10%) !important; }
583
584 /* Rules for the sidebar */
585
586 #browse_status {
587   input {
588     display: block;
589     margin-left: auto;
590     margin-right: auto;
591   }
592
593   > div {
594    padding: $spacer;
595   }
596 }
597
598 /* Temporary label size override until we remove site-wide font customisation */
599
600 form {
601   label {
602     font-size: 16px;
603   }
604   .col-form-label {
605     font-size: 16px;
606   }
607 }
608
609 /* Stop bootstrap 5 from floating legends when they don't need to be */
610 legend {
611   float: none;
612 }
613
614 /* Override the text colour for primary and secondary buttons, to match our
615    bootstrap 4 colours. Note this has accessibility issues, which is why
616    bootstrap 5 calculates black as the appropriate colour, and we should
617    reconsider our colours at some point with that in mind. */
618
619 .btn-primary {
620   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
621 }
622
623 .btn-secondary {
624   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
625 }
626
627 .btn-outline-secondary {
628   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
629 }
630
631 /* Rules for the search and direction forms */
632
633 header .search_forms,
634 .directions_form {
635   display: none;
636 }
637
638 /* Rules for the map key which appears in the popout sidebar */
639
640 #mapkey {
641  .mapkey-table-key img {
642     display: block;
643     margin-left: auto;
644     margin-right: auto;
645   }
646 }
647
648 /* Rules for search sidebar */
649
650 #sidebar .search_results_entry {
651   ul li.selected {
652     background: $list-highlight;
653   }
654
655   .search_more .loader {
656     display: none;
657   }
658 }
659
660 /* Rules for routing */
661
662 div.direction {
663   background-image: image-url('routing-sprite.png');
664   width: 20px;
665   height: 20px;
666   background-repeat: no-repeat;
667 }
668 @for $i from 0 through 25 {
669 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
670 }
671
672 td.distance {
673     font-size: x-small;
674 }
675 tr.turn {
676     cursor: pointer;
677 }
678 tr.turn:hover {
679     background: $list-highlight;
680 }
681
682 .routing_marker { width: 15px; cursor: move; }
683
684 .browse_status {
685   display: none;
686 }
687
688 /* Rules for the history sidebar */
689
690 #sidebar .changesets {
691   li {
692     &.selected { background: $list-highlight; }
693     /* color is derived from changeset bbox fillColor in history.js */
694
695     a.stretched-link > span, a:not(.stretched-link), [title] {
696       position: relative;
697       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
698     }
699   }
700
701   .changeset_more .loader {
702     display: none;
703     width: 100%;
704   }
705 }
706
707 /* Rules for the browse sidebar */
708
709 #sidebar_content {
710   .browse-section {
711     padding-bottom: $spacer;
712     margin-bottom: $spacer;
713     border-bottom: 1px solid $grey;
714
715     h4:first-child {
716       word-wrap: break-word;
717     }
718   }
719
720   .browse-section:last-of-type {
721     border-bottom: none;
722   }
723
724   .browse-tag-list {
725     background-color: $offwhite;
726     table-layout: fixed;
727     border-collapse: separate;
728     border-spacing: 0;
729     width: 100%;
730     margin-bottom: $spacer;
731
732     th, td {
733       border-bottom: 1px solid $grey;
734     }
735
736     tr:last-child th, tr:last-child td {
737       border-bottom: 0;
738     }
739
740     .browse-tag-k,
741     .browse-tag-v {
742       width: 50%;
743       padding: 6px 10px;
744       word-wrap: break-word;
745       white-space: pre-wrap;
746     }
747
748     .browse-tag-k {
749       font-weight: 500;
750       background-color: $offwhite;
751     }
752
753     .browse-tag-v {
754       border-left: 1px solid $grey;
755       background-color: #fff;
756     }
757
758     .colour-preview-box {
759       float: right;
760       width: 14px;
761       height: 14px;
762       margin: 4px 0px;
763       border: 1px solid rgba(0, 0, 0, .1);
764       // add color via inline css on element: background-color: <tag value>;
765     }
766   }
767
768   span.action-button:hover {
769     cursor: pointer;
770     text-decoration: underline;
771   }
772
773   .note-description {
774     overflow: hidden;
775     margin: 0 0 10px 10px;
776   }
777
778   .query-results {
779     display: none;
780
781     ul {
782       li {
783         &.query-result {
784           cursor: pointer;
785         }
786
787         &.selected {
788           background: $list-highlight;
789         }
790       }
791     }
792   }
793 }
794
795 /* Bootstrap buttons don't have any vertical margin, so
796    they touch when adjacent buttons wrap onto a new line
797    e.g. wide form buttons on a narrow sidebar */
798
799 .btn-wrapper {
800   > .btn {
801     margin-bottom: $spacer * 0.25;
802   }
803 }
804
805 /* Rules for export sidebar */
806
807 .export_form {
808   .export_area_inputs,
809   .export_button {
810     text-align: center;
811   }
812
813   .export_area_inputs {
814     margin-bottom: $spacer;
815     input[type="text"] {
816       width: 100px;
817       text-align: center;
818     }
819   }
820
821   .export_boxy {
822     background: $lightgrey;
823
824     #maxlat { margin-top: -1px; }
825     #minlon {
826       float: left;
827       /* no-r2 */ margin-left: -1px;
828     }
829     #maxlon {
830       float: right;
831       /* no-r2 */ margin-right: -1px;
832     }
833     #minlat { margin-bottom: -1px; }
834   }
835 }
836
837 /* Rules for edit pages */
838
839 .site-edit {
840   #content {
841     position: absolute;
842     top: $headerHeight;
843     bottom: 0;
844     width: 100%;
845   }
846
847   #map {
848     height: 100%;
849     overflow: hidden;
850   }
851 }
852
853 /* Rules for non-map content pages */
854
855 .content-heading {
856   background: $lightgrey;
857 }
858
859 .content-inner {
860   position: relative;
861   max-width: 960px;
862   margin: auto;
863   padding: $lineheight;
864 }
865
866 /* Overrides for pages that use new layout conventions */
867
868 .header-illustration {
869   background-position: 0 0;
870   background-repeat: no-repeat;
871   position: relative;
872   min-height: 200px;
873   width: 100%;
874   left: 0;
875   bottom: 0;
876
877   &.new-user-main {
878     background-image: image-url("sign-up-illustration.png");
879   }
880
881   &.confirm-main {
882     background-image: image-url("confirm-illustration.png");
883   }
884
885   &.new-user-terms {
886     background-image: image-url("terms-illustration.png");
887   }
888
889   &.new-user-arm {
890     height: 110px;
891     width: 130px;
892     left: 280px;
893     top: 180px;
894     background-image: image-url("sign-up-illustration-arm.png");
895     position: absolute;
896     z-index: 100;
897     pointer-events: none;
898   }
899 }
900
901 [dir=rtl] .header-illustration {
902   transform: scaleX(-1);
903
904   h1 {
905     transform: scaleX(-1);
906   }
907 }
908
909 #content.maximised {
910   top: 0;
911   left: 0;
912   right: 0;
913   bottom: 0;
914   border: 0;
915   z-index: 2000;
916 }
917
918 /* Rules for small maps in content areas */
919
920 .content_map {
921   height: 200px;
922   margin-bottom: $lineheight;
923 }
924
925 @include media-breakpoint-up(md) {
926   .content_map {
927     height: 400px;
928   }
929 }
930
931 /* Rules for the user map */
932
933 .content_map .leaflet-popup-content {
934   margin: $spacer;
935   min-height: 50px;
936 }
937
938 /* Rules for user popups on maps */
939
940 .user_popup {
941   min-width: 200px;
942   p {
943     padding: 0 0 5px 0;
944     margin: 0 0 0 60px;
945     font-size: 12px;
946   }
947 }
948
949 /* Rules for the diary entry page */
950
951 .diary_entries {
952   #map {
953     height: 400px;
954     display: none;
955   }
956   .comments {
957     max-width: 740px;
958   }
959   .diary-comment {
960     border-top: 1px dashed $grey;
961     &:first-child {
962       border-top: 1px solid $grey;
963     }
964   }
965 }
966
967 /* Rules for the account confirmation page */
968
969 .users-terms {
970   .legale {
971     padding: $lineheight;
972     margin-bottom: $lineheight;
973     overflow: auto;
974     height: 20em;
975
976     li {
977       list-style: inherit;
978     }
979
980     ol ol {
981       list-style-type: lower-alpha;
982     }
983   }
984 }
985
986 /* Rules for messages pages */
987
988 .messages {
989   .inbox-row {
990     background: $offwhite;
991   }
992
993   .inbox-row-unread td {
994     background: #CBEEA7;
995   }
996 }
997
998 .search_form {
999   background-color: $lightgrey;
1000
1001   #query {
1002     z-index: 0;
1003   }
1004
1005   .describe_location {
1006     font-size: 10px;
1007   }
1008 }
1009
1010 .directions_form {
1011   background-color: $lightgrey;
1012 }
1013
1014 /* Rules for user images */
1015
1016 img.user_image {
1017   max-width: 100px;
1018   max-height: 100px;
1019 }
1020
1021 img.user_thumbnail {
1022   max-width: 50px;
1023   max-height: 50px;
1024 }
1025
1026 img.user_thumbnail_tiny {
1027   width: auto;
1028   height: auto;
1029   max-width: 25px;
1030   max-height: 25px;
1031 }
1032
1033 /* General styles for action lists / subnavs */
1034
1035 nav.secondary-actions {
1036   margin-left: -11px;
1037   overflow: hidden;
1038   > ul {
1039     display: flex;
1040     flex-direction: row;
1041     flex-wrap: wrap;
1042     margin-bottom: 0;
1043     margin-left: -1px;
1044     padding: 0;
1045     > li {
1046       flex-basis: auto;
1047       list-style: none;
1048       border-left: 1px solid $grey;
1049       padding-left: $lineheight * 0.5;
1050       margin-right: $lineheight * 0.5;
1051       margin-bottom: $lineheight * 0.125;
1052     }
1053   }
1054 }
1055
1056 div.secondary-actions {
1057   padding: 10px;
1058   text-align: center;
1059 }
1060
1061 /* Rules for rich text */
1062
1063 .richtext,
1064 .prose {
1065   code {
1066     background: $lightgrey;
1067     padding: 2px 3px;
1068   }
1069
1070   pre {
1071     background: $lightgrey;
1072     padding: 2px 3px;
1073     white-space: pre-wrap;
1074
1075     code {
1076       padding: 0;
1077     }
1078   }
1079
1080   img {
1081     padding: $lineheight;
1082     background-color: $offwhite;
1083     display: block;
1084     max-width: 100%;
1085     margin: auto;
1086   }
1087
1088   blockquote {
1089     border-left: $lineheight solid $offwhite;
1090     padding-left: $lineheight;
1091     margin: 0;
1092     color: $darkgrey;
1093   }
1094 }
1095
1096 /* Rules for the iD editor */
1097
1098 .id-embed {
1099   width: 100%;
1100   height: 100%;
1101 }
1102
1103 /* Rules for the "Welcome" page */
1104 .site-welcome, .site-fixthemap {
1105   .sprite {
1106     background-image: image-url("welcome-sprite.png");
1107     background-size: 500px 250px;
1108     display: block;
1109   }
1110
1111   .sprite.small {
1112     width: 50px;
1113     height: 50px;
1114   }
1115
1116   .sprite.x {
1117     /* no-r2 */ background-position: -50px 0;
1118   }
1119
1120   .sprite.term {
1121     margin-right: 10px;
1122     vertical-align: middle;
1123   }
1124
1125   .sprite.node {
1126     /* no-r2 */ background-position: -100px 0;
1127   }
1128
1129   .sprite.way {
1130     /* no-r2 */ background-position: -150px 0;
1131   }
1132
1133   .sprite.tag {
1134     /* no-r2 */ background-position: -200px 0;
1135   }
1136
1137   .sprite.editor {
1138     /* no-r2 */ background-position: -250px 0;
1139   }
1140
1141   .sprite.question {
1142     /* no-r2 */ background-position: -300px 0;
1143   }
1144
1145   .sprite.rules {
1146     /* no-r2 */ background-position: -350px 0;
1147   }
1148
1149   .icon.note {
1150     background-color: #333;
1151     border-radius: 4px;
1152   }
1153 }
1154
1155 .site-about #content {
1156   background-color: $lightgrey;
1157
1158   .content-inner {
1159     max-width: 760px;
1160   }
1161
1162   .attr {
1163     margin-top: -20px;
1164
1165     h1 {
1166       span {
1167         color: $vibrant-green;
1168       }
1169     }
1170
1171     .user-image {
1172       height: 150px;
1173       background-position: 0 50%;
1174       background-repeat: no-repeat;
1175       background-image: image-url('about/osm.png');
1176       background-size: cover;
1177       background-color: $vibrant-green;
1178     }
1179
1180     .byosm {
1181       background: $vibrant-green;
1182     }
1183
1184     .byosm span {
1185       display: inline-block;
1186       width: 1em;
1187       margin-left: -1em;
1188     }
1189   }
1190
1191   .icon {
1192     width: 30px;
1193     height: 30px;
1194     background: 40px 40px image-url('about/sprite.png') no-repeat;
1195
1196     &.local {
1197       /* no-r2 */
1198       background-position: 0px 0px;
1199     }
1200     &.community {
1201       /* no-r2 */
1202       background-position: 0px -40px;
1203     }
1204     &.open {
1205       /* no-r2 */
1206       background-position: 0px -80px;
1207     }
1208     &.partners {
1209       /* no-r2 */
1210       background-position: 0px -120px;
1211     }
1212     &.infringement {
1213       /* no-r2 */
1214       background-position: 0px -160px;
1215     }
1216     &.legal {
1217       /* no-r2 */
1218       background-position: -45px -160px;
1219     }
1220   }
1221 }
1222
1223 @import 'browse';