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