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