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