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