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