]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Remove custom css and unnecessary div nesting of welcome panel
[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
437   #banner {
438     display: none;
439
440     img {
441       display: block;
442       width: $sidebarWidth;
443     }
444   }
445
446   #map {
447     height: 100%;
448     overflow: hidden;
449
450     &.query-active {
451       cursor: help;
452     }
453
454     &.query-disabled {
455       cursor: not-allowed;
456     }
457
458     .leaflet-marker-draggable {
459       cursor: move;
460     }
461   }
462
463   #map-ui {
464     display: none;
465     position: relative;
466     float: right;
467     width: 250px;
468     height: 100%;
469     background: white;
470     overflow: auto;
471
472     .section {
473       border-bottom: 1px solid $grey;
474       padding: $spacer;
475     }
476   }
477 }
478
479 @include media-breakpoint-down(md) {
480   body.map-layout {
481     #sidebar, #map {
482       position: relative;
483       overflow-x: hidden;
484       width: 100%;
485       height: 50%;
486     }
487
488     #map-ui {
489       z-index: 9999;
490       width: 100%;
491       height: 50%;
492       overflow-y: scroll;
493     }
494
495     .overlay-sidebar {
496       #sidebar {
497         position: absolute;
498         width: 350px;
499         height: auto;
500         overflow: hidden;
501       }
502
503       #map, #map-ui {
504         height: 100%;
505       }
506     }
507   }
508 }
509
510 .layers-ui {
511   .base-layers {
512     .leaflet-container {
513       width: 100%;
514       height: 50px;
515       cursor: pointer;
516     }
517
518     li  {
519       overflow: hidden;
520       border-radius: 3px;
521       border: 2px solid #fff;
522       margin-bottom: 8px;
523       position: relative;
524       transition: border-color 0.08s ease-in;
525
526       label {
527         position: absolute;
528         top: 0;
529         left: 0;
530         padding: 2px 6px;
531         border-bottom-right-radius: 3px;
532         cursor: pointer;
533         font-weight: 600;
534         font-size: 16px;
535         text-stroke: 2px #fff;
536         background: rgba(255,255,255,.9);
537         z-index: 1000;
538         input[type="radio"] {
539           display: none;
540         }
541       }
542
543       &.active { border-color: darken($green, 10%); }
544       &:hover {
545         border-color: $grey;
546         &.active { border-color: darken($green, 20%); }
547       }
548     }
549   }
550
551   .overlay-layers {
552     p {
553       font-size: 13px;
554       margin-bottom: 8px;
555     }
556     li.disabled { color: $darkgrey; }
557   }
558 }
559
560 .share-ui {
561   #mapnik_scale {
562     width: 100px;
563   }
564 }
565
566 .leaflet-top {
567   top: 10px !important;
568   .leaflet-control {
569     margin-right: 0px !important;
570     margin-top: 0px !important;
571   }
572 }
573
574 .leaflet-popup-scrolled {
575   padding-right: $lineheight;
576   border-bottom: 0px !important;
577   border-top: 0px !important;
578 }
579
580 .leaflet-popup-content-wrapper {
581   border-radius: 4px !important;
582 }
583
584 /* Rules for attribution text under the main map shown on printouts */
585
586 .donate-attr { color: darken($green, 10%) !important; }
587
588 /* Rules for the sidebar */
589
590 #browse_status {
591   input {
592     display: block;
593     margin-left: auto;
594     margin-right: auto;
595   }
596
597   > div {
598    padding: $spacer;
599   }
600 }
601
602 /* Temporary label size override until we remove site-wide font customisation */
603
604 form {
605   label {
606     font-size: 16px;
607   }
608   .col-form-label {
609     font-size: 16px;
610   }
611 }
612
613 /* Stop bootstrap 5 from floating legends when they don't need to be */
614 legend {
615   float: none;
616 }
617
618 /* Override the text colour for primary and secondary buttons, to match our
619    bootstrap 4 colours. Note this has accessibility issues, which is why
620    bootstrap 5 calculates black as the appropriate colour, and we should
621    reconsider our colours at some point with that in mind. */
622
623 .btn-primary {
624   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
625 }
626
627 .btn-secondary {
628   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
629 }
630
631 .btn-outline-secondary {
632   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
633 }
634
635 /* Rules for the search and direction forms */
636
637 header .search_forms,
638 .directions_form {
639   display: none;
640 }
641
642 /* Rules for the map key which appears in the popout sidebar */
643
644 #mapkey {
645  .mapkey-table-key img {
646     display: block;
647     margin-left: auto;
648     margin-right: auto;
649   }
650 }
651
652 /* Rules for search sidebar */
653
654 #sidebar .search_results_entry {
655   ul li.selected {
656     background: $list-highlight;
657   }
658
659   .search_more .loader {
660     display: none;
661   }
662 }
663
664 /* Rules for routing */
665
666 div.direction {
667   background-image: image-url('routing-sprite.png');
668   width: 20px;
669   height: 20px;
670   background-repeat: no-repeat;
671 }
672 @for $i from 0 through 25 {
673 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
674 }
675
676 td.distance {
677     font-size: x-small;
678 }
679 tr.turn {
680     cursor: pointer;
681 }
682 tr.turn:hover {
683     background: $list-highlight;
684 }
685
686 .routing_marker { width: 15px; cursor: move; }
687
688 .browse_status {
689   display: none;
690 }
691
692 /* Rules for the history sidebar */
693
694 #sidebar .changesets {
695   li {
696     &.selected { background: $list-highlight; }
697     /* color is derived from changeset bbox fillColor in history.js */
698
699     a.stretched-link > span, a:not(.stretched-link), [title] {
700       position: relative;
701       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
702     }
703   }
704
705   .changeset_more .loader {
706     display: none;
707     width: 100%;
708   }
709 }
710
711 /* Rules for the browse sidebar */
712
713 #sidebar_content {
714   .browse-section {
715     padding-bottom: $spacer;
716     margin-bottom: $spacer;
717     border-bottom: 1px solid $grey;
718
719     h4:first-child {
720       word-wrap: break-word;
721     }
722   }
723
724   .browse-section:last-of-type {
725     border-bottom: none;
726   }
727
728   .browse-tag-list {
729     background-color: $offwhite;
730     table-layout: fixed;
731     border-collapse: separate;
732     border-spacing: 0;
733     width: 100%;
734     margin-bottom: $spacer;
735
736     th, td {
737       border-bottom: 1px solid $grey;
738     }
739
740     tr:last-child th, tr:last-child td {
741       border-bottom: 0;
742     }
743
744     .browse-tag-k,
745     .browse-tag-v {
746       width: 50%;
747       padding: 6px 10px;
748       word-wrap: break-word;
749       white-space: pre-wrap;
750     }
751
752     .browse-tag-k {
753       font-weight: 500;
754       background-color: $offwhite;
755     }
756
757     .browse-tag-v {
758       border-left: 1px solid $grey;
759       background-color: #fff;
760     }
761
762     .colour-preview-box {
763       float: right;
764       width: 14px;
765       height: 14px;
766       margin: 4px 0px;
767       border: 1px solid rgba(0, 0, 0, .1);
768       // add color via inline css on element: background-color: <tag value>;
769     }
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 diary entry page */
954
955 .diary_entries {
956   #map {
957     height: 400px;
958     display: none;
959   }
960   .comments {
961     max-width: 740px;
962   }
963   .diary-comment {
964     border-top: 1px dashed $grey;
965     &:first-child {
966       border-top: 1px solid $grey;
967     }
968   }
969 }
970
971 /* Rules for the account confirmation page */
972
973 .users-terms {
974   .legale {
975     padding: $lineheight;
976     margin-bottom: $lineheight;
977     overflow: auto;
978     height: 20em;
979
980     li {
981       list-style: inherit;
982     }
983
984     ol ol {
985       list-style-type: lower-alpha;
986     }
987   }
988 }
989
990 /* Rules for messages pages */
991
992 .messages {
993   .inbox-row {
994     background: $offwhite;
995   }
996
997   .inbox-row-unread td {
998     background: #CBEEA7;
999   }
1000 }
1001
1002 .search_form {
1003   background-color: $lightgrey;
1004
1005   #query {
1006     z-index: 0;
1007   }
1008
1009   .describe_location {
1010     font-size: 10px;
1011   }
1012 }
1013
1014 .directions_form {
1015   background-color: $lightgrey;
1016 }
1017
1018 /* Rules for user images */
1019
1020 img.user_image {
1021   max-width: 100px;
1022   max-height: 100px;
1023 }
1024
1025 img.user_thumbnail {
1026   max-width: 50px;
1027   max-height: 50px;
1028 }
1029
1030 img.user_thumbnail_tiny {
1031   width: auto;
1032   height: auto;
1033   max-width: 25px;
1034   max-height: 25px;
1035 }
1036
1037 /* General styles for action lists / subnavs */
1038
1039 nav.secondary-actions {
1040   margin-left: -11px;
1041   overflow: hidden;
1042   > ul {
1043     display: flex;
1044     flex-direction: row;
1045     flex-wrap: wrap;
1046     margin-bottom: 0;
1047     margin-left: -1px;
1048     padding: 0;
1049     > li {
1050       flex-basis: auto;
1051       list-style: none;
1052       border-left: 1px solid $grey;
1053       padding-left: $lineheight * 0.5;
1054       margin-right: $lineheight * 0.5;
1055       margin-bottom: $lineheight * 0.125;
1056     }
1057   }
1058 }
1059
1060 div.secondary-actions {
1061   padding: 10px;
1062   text-align: center;
1063 }
1064
1065 /* Rules for rich text */
1066
1067 .richtext,
1068 .prose {
1069   code {
1070     background: $lightgrey;
1071     padding: 2px 3px;
1072   }
1073
1074   pre {
1075     background: $lightgrey;
1076     padding: 2px 3px;
1077     white-space: pre-wrap;
1078
1079     code {
1080       padding: 0;
1081     }
1082   }
1083
1084   img {
1085     padding: $lineheight;
1086     background-color: $offwhite;
1087     display: block;
1088     max-width: 100%;
1089     margin: auto;
1090   }
1091
1092   blockquote {
1093     border-left: $lineheight solid $offwhite;
1094     padding-left: $lineheight;
1095     margin: 0;
1096     color: $darkgrey;
1097   }
1098 }
1099
1100 /* Rules for the iD editor */
1101
1102 .id-embed {
1103   width: 100%;
1104   height: 100%;
1105 }
1106
1107 /* Rules for the "Welcome" page */
1108 .site-welcome, .site-fixthemap {
1109   .sprite {
1110     background-image: image-url("welcome-sprite.png");
1111     background-size: 500px 250px;
1112     display: block;
1113   }
1114
1115   .sprite.small {
1116     width: 50px;
1117     height: 50px;
1118   }
1119
1120   .sprite.x {
1121     /* no-r2 */ background-position: -50px 0;
1122   }
1123
1124   .sprite.term {
1125     margin-right: 10px;
1126     vertical-align: middle;
1127   }
1128
1129   .sprite.node {
1130     /* no-r2 */ background-position: -100px 0;
1131   }
1132
1133   .sprite.way {
1134     /* no-r2 */ background-position: -150px 0;
1135   }
1136
1137   .sprite.tag {
1138     /* no-r2 */ background-position: -200px 0;
1139   }
1140
1141   .sprite.editor {
1142     /* no-r2 */ background-position: -250px 0;
1143   }
1144
1145   .sprite.question {
1146     /* no-r2 */ background-position: -300px 0;
1147   }
1148
1149   .sprite.rules {
1150     /* no-r2 */ background-position: -350px 0;
1151   }
1152
1153   .icon.note {
1154     background-color: #333;
1155     border-radius: 4px;
1156   }
1157 }
1158
1159 .site-about #content {
1160   background-color: $lightgrey;
1161
1162   .content-inner {
1163     max-width: 760px;
1164   }
1165
1166   .attr {
1167     margin-top: -20px;
1168
1169     h1 {
1170       span {
1171         color: $vibrant-green;
1172       }
1173     }
1174
1175     .user-image {
1176       height: 150px;
1177       background-position: 0 50%;
1178       background-repeat: no-repeat;
1179       background-image: image-url('about/osm.png');
1180       background-size: cover;
1181       background-color: $vibrant-green;
1182     }
1183
1184     .byosm {
1185       background: $vibrant-green;
1186     }
1187
1188     .byosm span {
1189       display: inline-block;
1190       width: 1em;
1191       margin-left: -1em;
1192     }
1193   }
1194
1195   .icon {
1196     width: 30px;
1197     height: 30px;
1198     background: 40px 40px image-url('about/sprite.png') no-repeat;
1199
1200     &.local {
1201       /* no-r2 */
1202       background-position: 0px 0px;
1203     }
1204     &.community {
1205       /* no-r2 */
1206       background-position: 0px -40px;
1207     }
1208     &.open {
1209       /* no-r2 */
1210       background-position: 0px -80px;
1211     }
1212     &.partners {
1213       /* no-r2 */
1214       background-position: 0px -120px;
1215     }
1216     &.infringement {
1217       /* no-r2 */
1218       background-position: 0px -160px;
1219     }
1220     &.legal {
1221       /* no-r2 */
1222       background-position: -45px -160px;
1223     }
1224   }
1225 }
1226
1227 @import 'browse';