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