]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Merge remote-tracking branch 'upstream/pull/4297'
[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     table-layout: fixed;
710     white-space: pre-wrap;
711
712     tr:last-child th, tr:last-child td {
713       border-bottom: 0;
714     }
715
716     .colour-preview-box {
717       width: 14px;
718       height: 14px;
719       // add color via inline css on element: background-color: <tag value>;
720     }
721   }
722
723   span.action-button:hover {
724     cursor: pointer;
725     text-decoration: underline;
726   }
727
728   .note-description {
729     overflow: hidden;
730     margin: 0 0 10px 10px;
731   }
732
733   .query-results {
734     display: none;
735
736     ul {
737       li {
738         &.query-result {
739           cursor: pointer;
740         }
741
742         &.selected {
743           background: $list-highlight;
744         }
745       }
746     }
747   }
748 }
749
750 /* Bootstrap buttons don't have any vertical margin, so
751    they touch when adjacent buttons wrap onto a new line
752    e.g. wide form buttons on a narrow sidebar */
753
754 .btn-wrapper {
755   > .btn {
756     margin-bottom: $spacer * 0.25;
757   }
758 }
759
760 /* Rules for export sidebar */
761
762 .export_form {
763   .export_area_inputs,
764   .export_button {
765     text-align: center;
766   }
767
768   .export_area_inputs {
769     margin-bottom: $spacer;
770     input[type="text"] {
771       width: 100px;
772       text-align: center;
773     }
774   }
775
776   .export_boxy {
777     background: $lightgrey;
778
779     #maxlat { margin-top: -1px; }
780     #minlon {
781       float: left;
782       /* no-r2 */ margin-left: -1px;
783     }
784     #maxlon {
785       float: right;
786       /* no-r2 */ margin-right: -1px;
787     }
788     #minlat { margin-bottom: -1px; }
789   }
790 }
791
792 /* Rules for edit pages */
793
794 .site-edit {
795   #content {
796     position: absolute;
797     top: $headerHeight;
798     bottom: 0;
799     width: 100%;
800   }
801 }
802
803 /* Rules for non-map content pages */
804
805 .content-heading {
806   background: $lightgrey;
807 }
808
809 .content-inner {
810   position: relative;
811   max-width: 960px;
812   margin: auto;
813   padding: $lineheight;
814 }
815
816 /* Overrides for pages that use new layout conventions */
817
818 .header-illustration {
819   background-position: 0 0;
820   background-repeat: no-repeat;
821   position: relative;
822   min-height: 200px;
823   width: 100%;
824   left: 0;
825   bottom: 0;
826
827   &.new-user-main {
828     background-image: image-url("sign-up-illustration.png");
829   }
830
831   &.confirm-main {
832     background-image: image-url("confirm-illustration.png");
833   }
834
835   &.new-user-terms {
836     background-image: image-url("terms-illustration.png");
837   }
838
839   &.new-user-arm {
840     height: 110px;
841     width: 130px;
842     left: 280px;
843     top: 180px;
844     background-image: image-url("sign-up-illustration-arm.png");
845     position: absolute;
846     z-index: 100;
847     pointer-events: none;
848   }
849 }
850
851 [dir=rtl] .header-illustration {
852   transform: scaleX(-1);
853
854   h1 {
855     transform: scaleX(-1);
856   }
857 }
858
859 /* Rules for small maps in content areas */
860
861 .content_map {
862   height: 200px;
863   margin-bottom: $lineheight;
864 }
865
866 @include media-breakpoint-up(md) {
867   .content_map {
868     height: 400px;
869   }
870 }
871
872 /* Rules for the user map */
873
874 .content_map .leaflet-popup-content {
875   margin: $spacer;
876   min-height: 50px;
877 }
878
879 /* Rules for user popups on maps */
880
881 .user_popup {
882   min-width: 200px;
883   p {
884     padding: 0 0 5px 0;
885     margin: 0 0 0 60px;
886     font-size: 12px;
887   }
888 }
889
890 /* Rules for the diary entry page */
891
892 .diary_entries {
893   #map {
894     height: 400px;
895     display: none;
896   }
897   .comments {
898     max-width: 740px;
899   }
900   .diary-comment {
901     border-top: 1px dashed $grey;
902     &:first-child {
903       border-top: 1px solid $grey;
904     }
905   }
906 }
907
908 /* Rules for the account confirmation page */
909
910 .users-terms {
911   .legale {
912     padding: $lineheight;
913     margin-bottom: $lineheight;
914     overflow: auto;
915     height: 20em;
916
917     li {
918       list-style: inherit;
919     }
920
921     ol ol {
922       list-style-type: lower-alpha;
923     }
924   }
925 }
926
927 /* Rules for messages pages */
928
929 .messages {
930   .inbox-row {
931     background: $offwhite;
932   }
933
934   .inbox-row-unread td {
935     background: #CBEEA7;
936   }
937 }
938
939 .search_form {
940   background-color: $lightgrey;
941
942   #query {
943     z-index: 0;
944   }
945
946   .describe_location {
947     font-size: 10px;
948   }
949 }
950
951 .directions_form {
952   background-color: $lightgrey;
953 }
954
955 /* Rules for user images */
956
957 img.user_image {
958   max-width: 100px;
959   max-height: 100px;
960 }
961
962 img.user_thumbnail {
963   max-width: 50px;
964   max-height: 50px;
965 }
966
967 img.user_thumbnail_tiny {
968   width: auto;
969   height: auto;
970   max-width: 25px;
971   max-height: 25px;
972 }
973
974 /* General styles for action lists / subnavs */
975
976 nav.secondary-actions {
977   margin-left: -11px;
978   overflow: hidden;
979   > ul {
980     display: flex;
981     flex-direction: row;
982     flex-wrap: wrap;
983     margin-bottom: 0;
984     margin-left: -1px;
985     padding: 0;
986     > li {
987       flex-basis: auto;
988       list-style: none;
989       border-left: 1px solid $grey;
990       padding-left: $lineheight * 0.5;
991       margin-right: $lineheight * 0.5;
992       margin-bottom: $lineheight * 0.125;
993     }
994   }
995 }
996
997 div.secondary-actions {
998   padding: 10px;
999   text-align: center;
1000 }
1001
1002 /* Rules for rich text */
1003
1004 .richtext,
1005 .prose {
1006   code {
1007     background: $lightgrey;
1008     padding: 2px 3px;
1009   }
1010
1011   pre {
1012     background: $lightgrey;
1013     padding: 2px 3px;
1014     white-space: pre-wrap;
1015
1016     code {
1017       padding: 0;
1018     }
1019   }
1020
1021   img {
1022     padding: $lineheight;
1023     background-color: $offwhite;
1024     display: block;
1025     max-width: 100%;
1026     margin: auto;
1027   }
1028
1029   blockquote {
1030     border-left: $lineheight solid $offwhite;
1031     padding-left: $lineheight;
1032     margin: 0;
1033     color: $darkgrey;
1034   }
1035 }
1036
1037 /* Rules for the "Welcome" page */
1038 .site-welcome, .site-fixthemap {
1039   .sprite {
1040     background-image: image-url("welcome-sprite.png");
1041     background-size: 500px 250px;
1042     display: block;
1043   }
1044
1045   .sprite.small {
1046     width: 50px;
1047     height: 50px;
1048   }
1049
1050   .sprite.x {
1051     /* no-r2 */ background-position: -50px 0;
1052   }
1053
1054   .sprite.term {
1055     margin-right: 10px;
1056     vertical-align: middle;
1057   }
1058
1059   .sprite.node {
1060     /* no-r2 */ background-position: -100px 0;
1061   }
1062
1063   .sprite.way {
1064     /* no-r2 */ background-position: -150px 0;
1065   }
1066
1067   .sprite.tag {
1068     /* no-r2 */ background-position: -200px 0;
1069   }
1070
1071   .sprite.editor {
1072     /* no-r2 */ background-position: -250px 0;
1073   }
1074
1075   .sprite.question {
1076     /* no-r2 */ background-position: -300px 0;
1077   }
1078
1079   .sprite.rules {
1080     /* no-r2 */ background-position: -350px 0;
1081   }
1082
1083   .icon.note {
1084     background-color: #333;
1085     border-radius: 4px;
1086   }
1087 }
1088
1089 .site-about #content {
1090   background-color: $lightgrey;
1091
1092   .content-inner {
1093     max-width: 760px;
1094   }
1095
1096   .attr {
1097     margin-top: -20px;
1098
1099     h1 {
1100       span {
1101         color: $vibrant-green;
1102       }
1103     }
1104
1105     .user-image {
1106       height: 150px;
1107       background-position: 0 50%;
1108       background-repeat: no-repeat;
1109       background-image: image-url('about/osm.png');
1110       background-size: cover;
1111       background-color: $vibrant-green;
1112     }
1113
1114     .byosm {
1115       background: $vibrant-green;
1116     }
1117
1118     .byosm span {
1119       display: inline-block;
1120       width: 1em;
1121       margin-left: -1em;
1122     }
1123   }
1124
1125   .icon {
1126     width: 30px;
1127     height: 30px;
1128     background: 40px 40px image-url('about/sprite.png') no-repeat;
1129
1130     &.local {
1131       /* no-r2 */
1132       background-position: 0px 0px;
1133     }
1134     &.community {
1135       /* no-r2 */
1136       background-position: 0px -40px;
1137     }
1138     &.open {
1139       /* no-r2 */
1140       background-position: 0px -80px;
1141     }
1142     &.partners {
1143       /* no-r2 */
1144       background-position: 0px -120px;
1145     }
1146     &.infringement {
1147       /* no-r2 */
1148       background-position: 0px -160px;
1149     }
1150     &.legal {
1151       /* no-r2 */
1152       background-position: -45px -160px;
1153     }
1154   }
1155 }
1156
1157 @import 'browse';