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