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