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