]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Remove some print-related custom css
[rails.git] / app / assets / stylesheets / common.scss
1 @import "parameters";
2 @import "bootstrap";
3 @import "rails_bootstrap_forms";
4
5 /* Styles common to large and small screens */
6
7 /* Default rules for the body of every page */
8
9 body {
10   font-size: $typeheight;
11 }
12
13 p > img {
14   width: auto;
15   max-width: 100%;
16 }
17
18 small, aside {
19   font-size: 12px;
20 }
21
22 #container { position: relative; }
23
24 .small_icon {
25   vertical-align: middle;
26   margin-right: $lineheight * 0.25;
27 }
28
29 [dir=rtl] { /* no-r2 */ text-align: right; }
30
31 [dir=ltr] { /* no-r2 */ text-align: left; }
32
33 /* Rules for icons */
34
35 .icon {
36   display: inline-block;
37   vertical-align: top;
38   width: 20px;
39   height: 20px;
40   background: transparent image-url("sprite.png") no-repeat 0 0;
41   background-image: image-url("sprite.svg");
42   text-indent: -9999px;
43   overflow: hidden;
44 }
45
46 .icon.search      { /* no-r2 */ background-position: 0 0; }
47 .icon.donate      { /* no-r2 */ background-position: -20px 0; }
48 .icon.zoomin      { /* no-r2 */ background-position: -40px 0; }
49 .icon.zoomout     { /* no-r2 */ background-position: -60px 0; }
50 .icon.geolocate   { /* no-r2 */ background-position: -80px 0; }
51 .active .icon.geolocate   { /* no-r2 */ background-position: -80px -20px; }
52 .icon.layers      { /* no-r2 */ background-position: -100px 0; }
53 .icon.key         { /* no-r2 */ background-position: -120px 0; }
54 .icon.share       { /* no-r2 */ background-position: -140px 0; }
55 .icon.clipboard   { /* no-r2 */ background-position: -160px 0; }
56 .icon.link        { /* no-r2 */ background-position: -180px 0; }
57 .icon.close       { /* no-r2 */ background-position: -200px 0; }
58 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
59 .icon.check       { /* no-r2 */ background-position: -220px 0; }
60 .icon.note        { /* no-r2 */ background-position: -240px 0; }
61 .icon.note.grey   { /* no-r2 */ background-position: -240px -20px; }
62 .icon.query       { /* no-r2 */ background-position: -260px 0; }
63
64 /* Utility for de-emphasizing content */
65
66 .text-muted a {
67   color: $blue;
68 }
69
70 /* Rules for borders */
71 /* These add additional colours to those provided by bootstrap */
72 .border-grey {
73   border-color: $grey !important;
74 }
75
76 .border-lightgrey {
77   border-color: $lightgrey !important;
78 }
79
80 /* Rules for the header */
81
82 #menu-icon {
83   display: none;
84   float: right;
85   background: image-url("menu-icon.png") no-repeat;
86   background-size: 30px 30px;
87   width: 30px;
88   height: 30px;
89   margin: 14px 10px 0 0;
90   opacity: 0.6;
91 }
92
93 header {
94   height: $headerHeight;
95   position: relative;
96   z-index: 1001;
97   font-size: 14px;
98
99   h1, nav, nav > ul, nav > ul > li {
100     display: inline-block;
101   }
102
103   > * {
104     height: 100%;
105     padding: $lineheight * 0.5;
106   }
107
108   h1, nav.primary {
109     float: left;
110   }
111
112   img.logo {
113     margin-top: -2px;
114   }
115
116   h1 {
117     font-size: 18px;
118     line-height: 1.2;
119     padding-top: 15px;
120   }
121
122   .btn {
123     font-size: 14px;
124   }
125 }
126
127
128 nav.primary {
129   & > .btn-group .btn-outline-primary {
130     @include button-outline-variant($green, $color-hover: $white, $active-color: $white);
131   }
132
133   .disabled {
134     .btn-outline-primary {
135       color: $grey;
136       cursor: default;
137
138       .caret {
139         border-top-color: $grey;
140       }
141
142       &:hover {
143         background-color: lighten($green, 30%);
144       }
145     }
146   }
147
148   // Small tweaks to the toggle to stop the primary colour showing through
149   // when the menu is shown
150   .show > .btn-outline-primary.dropdown-toggle {
151     background-color: $green;
152     border-color: $green;
153
154     &:focus {
155       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
156     }
157   }
158 }
159
160 nav.secondary {
161   position: absolute;
162   right: 0;
163
164   .nav-link {
165     padding: 0.2rem;
166     color: $darkgrey;
167   }
168
169   > ul li.current a {
170     color: darken($darkgrey, 25%);
171   }
172
173   #inboxanchor {
174     background-color: lighten($grey, 10%);
175   }
176 }
177
178 nav.primary, nav.secondary {
179   .dropdown-item {
180     &:hover, &:active {
181       background-color: $green;
182       color: white;
183     }
184   }
185 }
186
187 #compact-secondary-nav {
188   display: none;
189 }
190
191 body.compact-nav {
192   #compact-secondary-nav {
193     display: inline-block;
194   }
195   .compact-hide {
196     display: none;
197   }
198 }
199
200 body.small-nav {
201   #menu-icon {
202     display: block;
203   }
204
205   nav.primary,
206   nav.secondary {
207     float: none !important;
208     position: relative;
209     display: block;
210     clear: both;
211   }
212
213   header {
214     height: auto;
215     min-height: $headerHeight;
216     background: #fff;
217
218     &.closed nav {
219       display: none;
220     }
221
222     .search_forms {
223       display: block;
224     }
225   }
226
227   #sidebar .search_forms,
228   #edit_tab,
229   #export_tab {
230     display: none;
231   }
232
233   nav.primary {
234     padding: 0;
235
236     ul, li {
237       border: none;
238       border-radius: 0;
239       width: 100%;
240     }
241
242     ul {
243       border-top: 1px solid #eee;
244       li {
245         border-bottom: 1px solid #eee;
246         border-right: none;
247         > a {
248           border-radius: 0;
249           width: 100%;
250           text-align: center;
251           font-size: 15px;
252         }
253       }
254     }
255
256     .btn-group {
257       width: 100%;
258       padding: 10px;
259     }
260   }
261
262   nav.secondary {
263     .user-menu, .login-menu {
264       width: 100%;
265     }
266   }
267
268   #compact-secondary-nav {
269     display: none;
270   }
271
272   .compact-hide {
273     display: inline-block;
274   }
275
276   .overlay-sidebar #sidebar .welcome {
277     display: none;
278   }
279
280   .overlay-sidebar #sidebar #banner {
281     display: none;
282   }
283 }
284
285 /* Utility for styling notification numbers */
286
287 .count-number {
288   background: lighten($green, 30%);
289   color: $gray-800;
290   font-weight: $font-weight-normal;
291 }
292
293 /* Rules for the message shown in place of the map when javascript is disabled */
294
295 #noscript {
296   z-index: 20000000;
297   margin-left: 400px;
298   margin-top: 50px;
299 }
300
301 /* Rules for Leaflet maps */
302
303 .leaflet-top.leaflet-right,
304 .leaflet-top.leaflet-left {
305   height: 100%;
306   column-gap: 10px;
307   display: flex;
308   flex-direction: column;
309   flex-wrap: wrap-reverse;
310 }
311
312 .leaflet-control .control-button {
313   display: block;
314   height: 40px;
315   width: 40px;
316   background-color: #333;
317   background-color: rgba(0,0,0,.6);
318   outline: none;
319
320   &:hover,
321   &:focus {
322     background-color: black;
323   }
324
325   &.disabled,
326   &.leaflet-disabled {
327     background-color: #333;
328     background-color: rgba(0,0,0,.5);
329     cursor: default;
330   }
331
332   &.active {
333     background-color: $vibrant-green;
334   }
335
336   &-first {
337     border-start-start-radius: 4px;
338   }
339
340   &-last {
341     border-end-start-radius: 4px;
342     margin-bottom: 10px;
343   }
344
345   .icon {
346     margin: 10px;
347   }
348 }
349
350 /* Rules for the sidebar and main map area */
351
352 .map-layout {
353   #content {
354     overflow: hidden;
355     position: absolute;
356     top: $headerHeight;
357     bottom: 0;
358     width: 100%;
359   }
360
361   #sidebar, #map {
362     position: relative;
363     height: 100%;
364     overflow-x: hidden;
365     overflow-y: auto;
366   }
367
368   #sidebar {
369     float: left;
370     width: $sidebarWidth;
371     background: #fff;
372
373     #sidebar_loader {
374       display: none;
375     }
376
377     #sidebar_content {
378       padding: $spacer;
379     }
380
381     > div {
382       position: relative;
383     }
384   }
385
386   .overlay-sidebar #sidebar {
387     position: absolute;
388     z-index: 1000;
389     height: auto;
390     overflow: hidden;
391
392     #banner {
393       display: block;
394     }
395
396     .welcome {
397       display: block;
398     }
399
400     #sidebar_content {
401       display: none;
402     }
403   }
404
405   .welcome {
406     display: none;
407
408     p {
409       font-size: 110%;
410       font-weight: 300;
411     }
412   }
413
414   #banner {
415     display: none;
416
417     img {
418       display: block;
419       width: $sidebarWidth;
420     }
421
422     button.btn-close {
423       background-color: rgba(255, 255, 255, 0.5);
424       opacity: 1.0;
425     }
426   }
427
428   #map {
429     height: 100%;
430     overflow: hidden;
431
432     &.query-active {
433       cursor: help;
434     }
435
436     &.query-disabled {
437       cursor: not-allowed;
438     }
439
440     .leaflet-marker-draggable {
441       cursor: move;
442     }
443   }
444
445   #map-ui {
446     display: none;
447     position: relative;
448     float: right;
449     width: 250px;
450     height: 100%;
451     background: white;
452     overflow: auto;
453
454     .section {
455       border-bottom: 1px solid $grey;
456       padding: $spacer;
457     }
458   }
459 }
460
461 @include media-breakpoint-down(md) {
462   body.map-layout {
463     #sidebar, #map {
464       position: relative;
465       overflow-x: hidden;
466       width: 100%;
467       height: 50%;
468     }
469
470     #map-ui {
471       z-index: 9999;
472       width: 100%;
473       height: 50%;
474       overflow-y: scroll;
475     }
476
477     .overlay-sidebar {
478       #sidebar {
479         position: absolute;
480         width: 350px;
481         height: auto;
482         overflow: hidden;
483       }
484
485       #map, #map-ui {
486         height: 100%;
487       }
488     }
489   }
490 }
491
492 .layers-ui {
493   .base-layers {
494     .leaflet-container {
495       width: 100%;
496       height: 50px;
497       cursor: pointer;
498     }
499
500     li  {
501       overflow: hidden;
502       border-radius: 3px;
503       border: 2px solid #fff;
504       margin-bottom: 8px;
505       position: relative;
506       transition: border-color 0.08s ease-in;
507
508       label {
509         position: absolute;
510         top: 0;
511         left: 0;
512         padding: 2px 6px;
513         border-bottom-right-radius: 3px;
514         cursor: pointer;
515         font-weight: 600;
516         font-size: 16px;
517         text-stroke: 2px #fff;
518         background: rgba(255,255,255,.9);
519         z-index: 1000;
520         input[type="radio"] {
521           display: none;
522         }
523       }
524
525       &.active { border-color: darken($green, 10%); }
526       &:hover {
527         border-color: $grey;
528         &.active { border-color: darken($green, 20%); }
529       }
530     }
531   }
532
533   .overlay-layers {
534     p {
535       font-size: 13px;
536       margin-bottom: 8px;
537     }
538     li.disabled { color: $darkgrey; }
539   }
540 }
541
542 .share-ui {
543   #mapnik_scale {
544     width: 100px;
545   }
546 }
547
548 .leaflet-top {
549   top: 10px !important;
550   .leaflet-control {
551     margin-right: 0px !important;
552     margin-top: 0px !important;
553   }
554 }
555
556 .leaflet-popup-scrolled {
557   padding-right: $lineheight;
558   border-bottom: 0px !important;
559   border-top: 0px !important;
560 }
561
562 .leaflet-popup-content-wrapper {
563   border-radius: 4px !important;
564 }
565
566 /* Rules for attribution text under the main map shown on printouts */
567
568 .donate-attr { color: darken($green, 10%) !important; }
569
570 /* Rules for the sidebar */
571
572 #browse_status {
573   input {
574     display: block;
575     margin-left: auto;
576     margin-right: auto;
577   }
578
579   > div {
580    padding: $spacer;
581   }
582 }
583
584 /* Temporary label size override until we remove site-wide font customisation */
585
586 form {
587   label {
588     font-size: 16px;
589   }
590   .col-form-label {
591     font-size: 16px;
592   }
593 }
594
595 /* Stop bootstrap 5 from floating legends when they don't need to be */
596 legend {
597   float: none;
598 }
599
600 /* Override the text colour for primary and secondary buttons, to match our
601    bootstrap 4 colours. Note this has accessibility issues, which is why
602    bootstrap 5 calculates black as the appropriate colour, and we should
603    reconsider our colours at some point with that in mind. */
604
605 .btn-primary {
606   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
607 }
608
609 .btn-secondary {
610   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
611 }
612
613 .btn-outline-secondary {
614   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
615 }
616
617 /* Rules for the search and direction forms */
618
619 header .search_forms,
620 .directions_form {
621   display: none;
622 }
623
624 /* Rules for the map key which appears in the popout sidebar */
625
626 #mapkey {
627  .mapkey-table-key img {
628     display: block;
629     margin-left: auto;
630     margin-right: auto;
631   }
632 }
633
634 /* Rules for search sidebar */
635
636 #sidebar .search_results_entry {
637   ul li {
638     cursor: pointer;
639     &.selected { background: $list-highlight; }
640   }
641
642   .search_more .loader {
643     display: none;
644   }
645 }
646
647 .search_results_error {
648   color: #f00;
649   padding: 10px 20px;
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     color: $darkgrey;
666     text-align: right;
667     font-size: x-small;
668 }
669 tr.turn {
670     cursor: pointer;
671 }
672 tr.turn:hover {
673     background: $list-highlight;
674 }
675
676 .routing_marker { width: 15px; cursor: move; }
677
678 .browse_status {
679   display: none;
680 }
681
682 /* Rules for the history sidebar */
683
684 #sidebar .changesets {
685   li {
686     &.selected { background: $list-highlight; }
687     /* color is derived from changeset bbox fillColor in history.js */
688
689     a.stretched-link > span, a:not(.stretched-link), [title] {
690       position: relative;
691       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
692     }
693   }
694
695   .changeset_more .loader {
696     display: none;
697     width: 100%;
698   }
699 }
700
701 /* Rules for the browse sidebar */
702
703 #sidebar_content {
704   .browse-section {
705     padding-bottom: $spacer;
706     margin-bottom: $spacer;
707     border-bottom: 1px solid $grey;
708
709     h4:first-child {
710       word-wrap: break-word;
711     }
712   }
713
714   .browse-section:last-of-type {
715     border-bottom: none;
716   }
717
718   .browse-tag-list {
719     background-color: $offwhite;
720     table-layout: fixed;
721     border-collapse: separate;
722     border-spacing: 0;
723     width: 100%;
724     margin-bottom: $spacer;
725
726     th, td {
727       border-bottom: 1px solid $grey;
728     }
729
730     tr:last-child th, tr:last-child td {
731       border-bottom: 0;
732     }
733
734     .browse-tag-k,
735     .browse-tag-v {
736       width: 50%;
737       padding: 6px 10px;
738       word-wrap: break-word;
739       white-space: pre-wrap;
740     }
741
742     .browse-tag-k {
743       font-weight: 500;
744       background-color: $offwhite;
745     }
746
747     .browse-tag-v {
748       border-left: 1px solid $grey;
749       background-color: #fff;
750     }
751
752     .colour-preview-box {
753       float: right;
754       width: 14px;
755       height: 14px;
756       margin: 4px 0px;
757       border: 1px solid rgba(0, 0, 0, .1);
758       // add color via inline css on element: background-color: <tag value>;
759     }
760   }
761
762   span.action-button:hover {
763     cursor: pointer;
764     text-decoration: underline;
765   }
766
767   .note-description {
768     overflow: hidden;
769     margin: 0 0 10px 10px;
770   }
771
772   .query-results {
773     display: none;
774
775     ul {
776       li {
777         &.query-result {
778           cursor: pointer;
779         }
780
781         &.selected {
782           background: $list-highlight;
783         }
784       }
785     }
786   }
787 }
788
789 /* Bootstrap buttons don't have any vertical margin, so
790    they touch when adjacent buttons wrap onto a new line
791    e.g. wide form buttons on a narrow sidebar */
792
793 .btn-wrapper {
794   > .btn {
795     margin-bottom: $spacer * 0.25;
796   }
797 }
798
799 /* Rules for export sidebar */
800
801 .export_form {
802   .export_area_inputs,
803   .export_button {
804     text-align: center;
805   }
806
807   .export_area_inputs {
808     margin-bottom: $spacer;
809     input[type="text"] {
810       width: 100px;
811       text-align: center;
812     }
813   }
814
815   .export_boxy {
816     background: $lightgrey;
817
818     #maxlat { margin-top: -1px; }
819     #minlon {
820       float: left;
821       /* no-r2 */ margin-left: -1px;
822     }
823     #maxlon {
824       float: right;
825       /* no-r2 */ margin-right: -1px;
826     }
827     #minlat { margin-bottom: -1px; }
828   }
829 }
830
831 /* Rules for edit pages */
832
833 .site-edit {
834   #content {
835     position: absolute;
836     top: $headerHeight;
837     bottom: 0;
838     width: 100%;
839   }
840
841   #map {
842     height: 100%;
843     overflow: hidden;
844   }
845 }
846
847 /* Rules for non-map content pages */
848
849 .content-heading {
850   background: $lightgrey;
851 }
852
853 .content-inner {
854   position: relative;
855   max-width: 960px;
856   margin: auto;
857   padding: $lineheight;
858 }
859
860 /* Overrides for pages that use new layout conventions */
861
862 .header-illustration {
863   background-position: 0 0;
864   background-repeat: no-repeat;
865   position: relative;
866   min-height: 200px;
867   width: 100%;
868   left: 0;
869   bottom: 0;
870
871   &.new-user-main {
872     background-image: image-url("sign-up-illustration.png");
873   }
874
875   &.confirm-main {
876     background-image: image-url("confirm-illustration.png");
877   }
878
879   &.new-user-terms {
880     background-image: image-url("terms-illustration.png");
881   }
882
883   &.new-user-arm {
884     height: 110px;
885     width: 130px;
886     left: 280px;
887     top: 180px;
888     background-image: image-url("sign-up-illustration-arm.png");
889     position: absolute;
890     z-index: 100;
891     pointer-events: none;
892   }
893 }
894
895 [dir=rtl] .header-illustration {
896   transform: scaleX(-1);
897
898   h1 {
899     transform: scaleX(-1);
900   }
901 }
902
903 #content.maximised {
904   top: 0;
905   left: 0;
906   right: 0;
907   bottom: 0;
908   border: 0;
909   z-index: 2000;
910 }
911
912 /* Rules for small maps in content areas */
913
914 .content_map {
915   height: 200px;
916   margin-bottom: $lineheight;
917 }
918
919 @include media-breakpoint-up(md) {
920   .content_map {
921     height: 400px;
922   }
923 }
924
925 /* Rules for the user map */
926
927 .content_map .leaflet-popup-content {
928   margin: $spacer;
929   min-height: 50px;
930 }
931
932 /* Rules for user popups on maps */
933
934 .user_popup {
935   min-width: 200px;
936   p {
937     padding: 0 0 5px 0;
938     margin: 0 0 0 60px;
939     font-size: 12px;
940   }
941 }
942
943 /* Rules for the user list */
944
945 #user_list {
946   width: 100%;
947 }
948
949 /* Rules for the diary entry page */
950
951 .diary_entries {
952   #map {
953     height: 400px;
954     display: none;
955   }
956   .comments {
957     max-width: 740px;
958   }
959   .diary-comment {
960     border-top: 1px dashed $grey;
961     &:first-child {
962       border-top: 1px solid $grey;
963     }
964   }
965 }
966
967 /* Rules for the account confirmation page */
968
969 .users-terms {
970   .legale {
971     padding: $lineheight;
972     margin-bottom: $lineheight;
973     overflow: auto;
974     height: 20em;
975
976     li {
977       list-style: inherit;
978     }
979
980     ol ol {
981       list-style-type: lower-alpha;
982     }
983   }
984 }
985
986 /* Rules for the oauth authorization page */
987
988 .oauth-authorize ul {
989   list-style: none;
990 }
991
992 /* Rules for messages pages */
993
994 .messages {
995   .inbox-row {
996     background: $offwhite;
997   }
998
999   .inbox-row-unread {
1000     background: #CBEEA7;
1001   }
1002 }
1003
1004 .search_form {
1005   background-color: $lightgrey;
1006
1007   #query {
1008     z-index: 0;
1009   }
1010
1011   .describe_location {
1012     font-size: 10px;
1013   }
1014 }
1015
1016 .directions_form {
1017   background-color: $lightgrey;
1018 }
1019
1020 /* Rules for user images */
1021
1022 img.user_image {
1023   max-width: 100px;
1024   max-height: 100px;
1025 }
1026
1027 img.user_thumbnail {
1028   max-width: 50px;
1029   max-height: 50px;
1030 }
1031
1032 img.user_thumbnail_tiny {
1033   width: auto;
1034   height: auto;
1035   max-width: 25px;
1036   max-height: 25px;
1037 }
1038
1039 /* General styles for action lists / subnavs */
1040
1041 nav.secondary-actions {
1042   margin-left: -11px;
1043   overflow: hidden;
1044   > ul {
1045     display: flex;
1046     flex-direction: row;
1047     flex-wrap: wrap;
1048     margin-bottom: 0;
1049     margin-left: -1px;
1050     padding: 0;
1051     > li {
1052       flex-basis: auto;
1053       list-style: none;
1054       border-left: 1px solid $grey;
1055       padding-left: $lineheight * 0.5;
1056       margin-right: $lineheight * 0.5;
1057       margin-bottom: $lineheight * 0.125;
1058     }
1059   }
1060 }
1061
1062 div.secondary-actions {
1063   padding: 10px;
1064   text-align: center;
1065 }
1066
1067 /* Rules for rich text */
1068
1069 .richtext,
1070 .prose {
1071   code {
1072     background: $lightgrey;
1073     padding: 2px 3px;
1074   }
1075
1076   pre {
1077     background: $lightgrey;
1078     padding: 2px 3px;
1079     white-space: pre-wrap;
1080
1081     code {
1082       padding: 0;
1083     }
1084   }
1085
1086   img {
1087     padding: $lineheight;
1088     background-color: $offwhite;
1089     display: block;
1090     max-width: 100%;
1091     margin: auto;
1092   }
1093
1094   blockquote {
1095     border-left: $lineheight solid $offwhite;
1096     padding-left: $lineheight;
1097     margin: 0;
1098     color: $darkgrey;
1099   }
1100 }
1101
1102 /* Rules for the iD editor */
1103
1104 .id-embed {
1105   width: 100%;
1106   height: 100%;
1107 }
1108
1109 /* Rules for the "Welcome" page */
1110 .site-welcome, .site-fixthemap {
1111   .sprite {
1112     background-image: image-url("welcome-sprite.png");
1113     background-size: 500px 250px;
1114     display: block;
1115   }
1116
1117   .sprite.small {
1118     width: 50px;
1119     height: 50px;
1120   }
1121
1122   .sprite.x {
1123     /* no-r2 */ background-position: -50px 0;
1124   }
1125
1126   .sprite.term {
1127     margin-right: 10px;
1128     vertical-align: middle;
1129   }
1130
1131   .sprite.node {
1132     /* no-r2 */ background-position: -100px 0;
1133   }
1134
1135   .sprite.way {
1136     /* no-r2 */ background-position: -150px 0;
1137   }
1138
1139   .sprite.tag {
1140     /* no-r2 */ background-position: -200px 0;
1141   }
1142
1143   .sprite.editor {
1144     /* no-r2 */ background-position: -250px 0;
1145   }
1146
1147   .sprite.question {
1148     /* no-r2 */ background-position: -300px 0;
1149   }
1150
1151   .sprite.rules {
1152     /* no-r2 */ background-position: -350px 0;
1153   }
1154
1155   .icon.note {
1156     background-color: #333;
1157     border-radius: 4px;
1158   }
1159 }
1160
1161 .site-about #content {
1162   background-color: $lightgrey;
1163
1164   .content-inner {
1165     max-width: 760px;
1166   }
1167
1168   .attr {
1169     margin-top: -20px;
1170
1171     h1 {
1172       span {
1173         color: $vibrant-green;
1174       }
1175     }
1176
1177     .user-image {
1178       height: 150px;
1179       background-position: 0 50%;
1180       background-repeat: no-repeat;
1181       background-image: image-url('about/osm.png');
1182       background-size: cover;
1183       background-color: $vibrant-green;
1184     }
1185
1186     .byosm {
1187       background: $vibrant-green;
1188     }
1189
1190     .byosm span {
1191       display: inline-block;
1192       width: 1em;
1193       margin-left: -1em;
1194     }
1195   }
1196
1197   .icon {
1198     width: 30px;
1199     height: 30px;
1200     background: 40px 40px image-url('about/sprite.png') no-repeat;
1201
1202     &.local {
1203       /* no-r2 */
1204       background-position: 0px 0px;
1205     }
1206     &.community {
1207       /* no-r2 */
1208       background-position: 0px -40px;
1209     }
1210     &.open {
1211       /* no-r2 */
1212       background-position: 0px -80px;
1213     }
1214     &.partners {
1215       /* no-r2 */
1216       background-position: 0px -120px;
1217     }
1218     &.infringement {
1219       /* no-r2 */
1220       background-position: 0px -160px;
1221     }
1222     &.legal {
1223       /* no-r2 */
1224       background-position: -45px -160px;
1225     }
1226   }
1227 }
1228
1229 @import 'browse';