]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Switch to bootstrap for dropdowns and tooltips
[rails.git] / app / assets / stylesheets / common.scss
1 @import "parameters";
2 @import "bootstrap-custom";
3
4 /* Styles common to large and small screens */
5
6 .fillL { background-color: white; }
7
8 /* Default rules for the body of every page */
9
10 body {
11   font-family: 'Helvetica Neue',Arial,sans-serif;
12   font-size: $typeheight;
13   line-height: 1.6666;
14   color: #222;
15   background-color: #fff;
16   margin: 0px;
17   padding: 0px;
18   text-align: left;
19   height: 100%;
20 }
21
22 p > img {
23   width: auto;
24   max-width: 100%;
25 }
26
27 small, aside {
28   font-size: 12px;
29 }
30
31 #container { position: relative; }
32
33 .column-1 {
34   width: 50%;
35   margin: 0 0 $lineheight/2 0;
36 }
37
38 .small_icon {
39   vertical-align: middle;
40   margin-right: $lineheight/4;
41 }
42
43 .red { color: $red; }
44
45 .piwik { border: 0; }
46
47 [dir=rtl] { /* no-r2 */ text-align: right; }
48
49 [dir=ltr] { /* no-r2 */ text-align: left; }
50
51 /* Rules for icons */
52
53 .icon {
54   display: inline-block;
55   vertical-align: top;
56   width: 20px;
57   height: 20px;
58   background: transparent image-url("sprite.png") no-repeat 0 0;
59   background-image: image-url("sprite.svg");
60   text-indent: -9999px;
61   overflow: hidden;
62 }
63
64 .icon.search      { /* no-r2 */ background-position: 0 0; }
65 .icon.donate      { /* no-r2 */ background-position: -20px 0; }
66 .icon.zoomin      { /* no-r2 */ background-position: -40px 0; }
67 .icon.zoomout     { /* no-r2 */ background-position: -60px 0; }
68 .icon.geolocate   { /* no-r2 */ background-position: -80px 0; }
69 .active .icon.geolocate   { /* no-r2 */ background-position: -80px -20px; }
70 .icon.layers      { /* no-r2 */ background-position: -100px 0; }
71 .icon.key         { /* no-r2 */ background-position: -120px 0; }
72 .icon.share       { /* no-r2 */ background-position: -140px 0; }
73 .icon.clipboard   { /* no-r2 */ background-position: -160px 0; }
74 .icon.link        { /* no-r2 */ background-position: -180px 0; }
75 .icon.close       { /* no-r2 */ background-position: -200px 0; }
76 .close-wrap:hover .icon.close,
77 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
78 .icon.check       { /* no-r2 */ background-position: -220px 0; }
79 .icon.note        { /* no-r2 */ background-position: -240px 0; }
80 .icon.note.grey   { /* no-r2 */ background-position: -240px -20px; }
81 .icon.query       { /* no-r2 */ background-position: -260px 0; }
82
83 /* Rules for links */
84
85 a {
86   color: #24d;
87   text-decoration: none;
88   -webkit-appearance: none;
89   outline: 0;
90   &:hover {
91     text-decoration: underline;
92   }
93 }
94
95 /* General styles for tables */
96
97 table {
98   width: 100%;
99   margin-bottom: $lineheight;
100   th, td {
101     text-align: left;
102     padding: $lineheight/4;
103     line-height: $lineheight;
104   }
105   th {
106     font-weight: 600;
107     vertical-align: top;
108   }
109   td {
110     vertical-align: middle;
111   }
112 }
113
114 /* Utility for de-emphasizing content */
115
116 .deemphasize {
117   color: $darkgrey;
118   a {
119     color: $blue;
120   }
121 }
122
123 /* Rules for the header */
124
125 #menu-icon {
126   display: none !important;
127   float: right;
128   background: image-url("menu-icon.png") no-repeat;
129   background-size: 30px 30px;
130   display: block;
131   width: 30px;
132   height: 30px;
133   margin: 14px 10px 0 0;
134   opacity: 0.6;
135 }
136
137 header {
138   height: $headerHeight;
139   position: relative;
140   z-index: 1001;
141   font-size: 14px;
142
143   h1, nav, nav > ul, nav > ul > li {
144     display: inline-block;
145   }
146
147   > * {
148     height: 100%;
149     padding: $lineheight/2;
150   }
151
152   h1, nav.primary {
153     float: left;
154   }
155
156   a, a:hover {
157     text-decoration: none;
158   }
159
160   img.logo {
161     width: 30px;
162     height: 30px;
163     margin-top: -2px;
164     vertical-align: middle;
165   }
166
167   h1 {
168     font-size: 18px;
169     font-weight: 600;
170     line-height: 1.2;
171     margin: 0;
172     padding-top: 15px;
173
174     a {
175       color: #000;
176     }
177
178     a:hover {
179       color: #000;
180     }
181   }
182
183   .btn {
184     font-size: 14px;
185   }
186 }
187
188
189 nav.primary {
190   .btn-outline-primary {
191     @include button-outline-variant($green, $white);
192   }
193 }
194
195 nav.secondary {
196   position: absolute;
197   right: 0;
198
199   .nav-link {
200     padding: 0.2rem;
201     color: $darkgrey;
202   }
203
204   > ul li.current a {
205     color: darken($darkgrey, 25%);
206   }
207
208   .login-menu {
209     .btn-outline-secondary {
210       @include button-outline-variant($darkgrey);
211     }
212   }
213
214   .user-menu {
215     .btn-outline-secondary {
216       @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
217       // @include button-outline-variant($grey, $grey, white, $grey);
218       border-color: $grey;
219     }
220   }
221
222   img.user_thumbnail_tiny {
223     border: 0;
224     border-radius: 3px;
225   }
226
227   #inboxanchor {
228     display: inline-block;
229     vertical-align: top;
230     height: 25px;
231     margin: 3px 0 3px 3px;
232     background-color: lighten($grey, 10%);
233     line-height: 20px;
234     border-radius: 2;
235   }
236
237   .dropdown-menu {
238     .count-number {
239       font-size: 14px;
240     }
241   }
242 }
243
244 #compact-secondary-nav {
245   display: none;
246 }
247
248 body.compact {
249   #compact-secondary-nav {
250     display: inline-block;
251   }
252   .compact-hide {
253     display: none;
254   }
255 }
256
257 /* Utility for styling notification numbers */
258
259 .count-number {
260   padding: 2px $lineheight/4;
261   border-radius: 2px;
262   background: lighten($green, 30%);
263   margin: 0 2px;
264   font-size: 11px;
265   color: #333;
266 }
267
268 /* Rules for the message shown in place of the map when javascript is disabled */
269
270 #noscript {
271   z-index: 20000000;
272   margin-left: 400px;
273   margin-top: 50px;
274 }
275
276 /* Rules for Leaflet maps */
277
278 .leaflet-control .control-button {
279   display: block;
280   height: 40px;
281   width: 40px;
282   background-color: #333;
283   background-color: rgba(0,0,0,.6);
284   border-radius: 4px 0 0 4px;
285   margin-bottom: 10px;
286   outline: none;
287
288   &:hover {
289     background-color: black;
290   }
291
292   &.disabled,
293   &.leaflet-disabled {
294     background-color: #333;
295     background-color: rgba(0,0,0,.5);
296     cursor: default;
297   }
298
299   &.active {
300     background-color: $vibrant-green;
301   }
302
303   .icon {
304     margin: 10px;
305   }
306 }
307
308 .leaflet-control .zoomin,
309 .control-layers .control-button {
310   margin-bottom: 0px;
311   border-radius: 4px 0 0 0;
312 }
313
314 .leaflet-control .zoomout,
315 .control-key .control-button {
316   margin-bottom: 0;
317   border-radius: 0;
318 }
319
320 .control-locate .control-button,
321 .control-share .control-button {
322   border-radius: 0 0 0 4px;
323 }
324
325 /* Rules for the sidebar and main map area */
326
327 .map-layout {
328   #content {
329     overflow: hidden;
330     position: absolute;
331     top: $headerHeight;
332     bottom: 0;
333     width: 100%;
334   }
335
336   #sidebar, #map {
337     position: relative;
338     height: 100%;
339     overflow-x: hidden;
340     overflow-y: auto;
341   }
342
343   #sidebar {
344     float: left;
345     width: $sidebarWidth;
346     background: #fff;
347
348     #sidebar_loader {
349       display: none;
350     }
351
352     > div {
353       position: relative;
354       float: left;
355       clear: both;
356       width: 100%;
357     }
358
359     h2 {
360       padding: $lineheight $lineheight $lineheight/2;
361       font-size: 1.5rem;
362     }
363
364     h3, h4 {
365       margin-top: $lineheight;
366       margin-bottom: $lineheight/2;
367       font-size: 1.25rem;
368     }
369
370     .close-wrap {
371       cursor: pointer;
372       position: absolute;
373       top: 0;
374       right: 0;
375       width: 60px;
376       height: 60px;
377
378       .icon.close {
379         pointer-events: none;
380         position: absolute;
381         right: 20px;
382         top: 20px;
383       }
384     }
385
386     .icon.close {
387       float: right;
388       cursor: pointer;
389     }
390
391     .flash {
392       padding: 15px;
393
394       picture {
395         margin-right: -25px;
396       }
397
398       div.message {
399         margin-left: 30px;
400       }
401     }
402   }
403
404   .overlay-sidebar #sidebar {
405     position: absolute;
406     z-index: 1000;
407     height: auto;
408     overflow: hidden;
409
410     #banner {
411       display: block;
412     }
413
414     .welcome {
415       display: none;
416
417       &.visible {
418         display: block;
419       }
420     }
421
422     #sidebar_content {
423       display: none;
424     }
425   }
426
427   .welcome {
428     display: none;
429     padding-bottom: 5px;
430
431     p {
432       padding: $lineheight/2 $lineheight $lineheight;
433       font-size: 110%;
434       font-weight: 300;
435     }
436
437     .button {
438       width: 50%;
439       float: left;
440       margin: 0;
441       border-radius: 0;
442       font-weight: normal;
443       padding: .6em;
444
445       &.learn-more {
446         border-right: 1px solid #fff;
447       }
448     }
449   }
450
451   #banner {
452     display: none;
453
454     img {
455       display: block;
456       width: $sidebarWidth;
457     }
458   }
459
460   #map {
461     height: 100%;
462     overflow: hidden;
463
464     &.query-active {
465       cursor: help;
466     }
467
468     &.query-disabled {
469       cursor: not-allowed;
470     }
471
472     .leaflet-marker-draggable {
473       cursor: move;
474     }
475   }
476
477   #map-ui {
478     display: none;
479     position: relative;
480     float: right;
481     width: 250px;
482     height: 100%;
483     background: white;
484     overflow: auto;
485
486     .section {
487       border-bottom: 1px solid $grey;
488       padding: 10px 20px;
489     }
490
491     a.close-button {
492       float: right;
493       padding:5px;
494       font-size:20px;
495       line-height:10px;
496       color:#222;
497       border:1px solid $grey;
498     }
499
500     .tooltip {
501       opacity: 1;
502       border: 1px solid $grey;
503       .tooltip-arrow {
504         border-top-color: $grey;
505       }
506     }
507   }
508 }
509
510 .layers-ui,
511 .share-ui {
512   li:last-child {
513     margin-bottom: 0;
514   }
515 }
516
517 .layers-ui {
518   .base-layers {
519     .leaflet-container {
520       width: 100%;
521       height: 50px;
522       cursor: pointer;
523     }
524
525     li  {
526       overflow: hidden;
527       border-radius: 3px;
528       border: 2px solid #fff;
529       margin-bottom: 8px;
530       position: relative;
531       transition: border-color 0.08s ease-in;
532
533       label {
534         position: absolute;
535         top: 0;
536         left: 0;
537         padding: 2px 6px;
538         border-bottom-right-radius: 3px;
539         cursor: pointer;
540         font-weight: 600;
541         font-size: 16px;
542         text-stroke: 2px #fff;
543         background: rgba(255,255,255,.9);
544         z-index: 1000;
545         input[type="radio"] {
546           display: none;
547         }
548       }
549
550       &.active { border-color: darken($green, 10%); }
551       &:hover {
552         border-color: $grey;
553         &.active { border-color: darken($green, 20%); }
554       }
555     }
556   }
557
558   .overlay-layers {
559     p {
560       font-size: 13px;
561       margin-bottom: 8px;
562     }
563     li.disabled { color: $darkgrey; }
564   }
565 }
566
567 .share-ui {
568   .share-tabs {
569     margin-bottom: 10px;
570
571     a {
572       color: #fff;
573       text-decoration: none;
574       background-color: $lightblue;
575       padding: 5px 10px;
576       border-right: 1px solid #fff;
577     }
578
579     a:first-child {
580       border-right: 1px solid #fff;
581       border-radius: 4px 0 0 4px;
582     }
583
584     a:last-child {
585       border-radius: 0 4px 4px 0;
586     }
587
588     a.active {
589       background-color: $blue;
590     }
591   }
592
593   .share-tab {
594     display: none;
595   }
596
597   .share-link {
598     input[type=text],
599     textarea {
600       width: 100%;
601       font-family: monospace;
602       font-size: small;
603       line-height: 1.3;
604     }
605   }
606
607   .share-image {
608     label {
609       margin-right: 10px;
610     }
611   }
612
613   #embed_html {
614     resize: vertical;
615   }
616
617   #mapnik_scale {
618     width: 100px;
619   }
620 }
621
622 .leaflet-top {
623   top: $lineheight/2 !important;
624   .leaflet-control {
625     margin-right: 0px !important;
626     margin-top: 0px !important;
627   }
628 }
629
630 .leaflet-popup-scrolled {
631   padding-right: $lineheight;
632   border-bottom: 0px !important;
633   border-top: 0px !important;
634 }
635
636 .leaflet-popup-content-wrapper {
637   border-radius: 4px !important;
638 }
639
640 /* Rules for attribution text under the main map shown on printouts */
641
642 #attribution {
643   display: none;
644
645   table {
646     width: 100%
647   }
648 }
649
650 .attribution_license,
651 .attribution_project {
652   text-align: left;
653 }
654
655 .attribution_notice {
656   text-align: center;
657 }
658
659 .donate-attr { color: darken($green, 10%) !important; }
660
661 /* Rules for the sidebar */
662
663 .sidebar_heading {
664   position: relative;
665   padding: $lineheight/2 $lineheight;
666   // background: $offwhite;
667   // border-bottom: 1px solid $grey;
668   > .close {
669     float: right;
670     margin-top: 2px;
671     cursor: pointer;
672   }
673 }
674
675 #browse_status {
676   p {
677     padding: $lineheight;
678   }
679
680   input {
681     display: block;
682     margin-left: auto;
683     margin-right: auto;
684   }
685 }
686
687 #sidebar {
688   #sidebar_loader,
689   .search_more {
690     width: 100%;
691     margin: $lineheight auto;
692   }
693
694   .loader,
695   .load_more {
696     text-align: center;
697     margin: auto;
698     width: 40px;
699     display: block;
700   }
701 }
702
703 /* Rules for the search and direction forms */
704
705 header .search_forms,
706 .directions_form {
707   display: none;
708 }
709
710 .search_form,
711 .directions_form {
712   position: relative;
713   padding: $lineheight/2;
714   background-color: $lightgrey;
715
716   .query_wrapper {
717     position: relative;
718     overflow: hidden;
719     border-radius: 2px 0 0 2px;
720   }
721
722   input[type=text] {
723     width: 100%;
724     height: 30px;
725     transition: 300ms linear;
726   }
727
728   input[type=text].overflow {
729     border-right: none;
730   }
731
732   input:focus {
733     outline: none;
734     box-shadow: 0px 0px 7px $vibrant-green;
735   }
736
737   input[type=submit].float {
738     float: right;
739     width: auto;
740     min-width: 0;
741     border-radius: 0 2px 2px 0;
742   }
743
744   input.error {
745     background-color: rgba($red, 0.4);
746   }
747
748   select {
749     /* this next line is to polyfill the vertical alignment of text within a select element,
750      * which is different between firefox and chrome. */
751     padding: 0.3em 0;
752   }
753
754   .query_options {
755     text-align: right;
756     font-size: 10px;
757     color: $blue;
758   }
759
760   .describe_location {
761     position: absolute;
762     top: 6px;
763     right: 6px;
764     font-size: 10px;
765     color: $blue;
766   }
767
768   .switch_link {
769     float: right;
770     width: auto;
771     min-width: 0;
772     margin-left: 6px;
773   }
774
775   img.button {
776     display: block;
777     width: 20px;
778     height: 20px;
779   }
780
781   span.force_width {
782     width: 100%;
783     padding-right: 25px;
784     display: block;
785   }
786
787   select.routing_engines {
788     min-height: 30px;
789     margin: 0px 0px 5px 25px;
790   }
791
792   input.routing_go {
793     min-width: 100px;
794     float: right;
795   }
796
797   div.header {
798     width: 100%;
799     height: 30px;
800   }
801
802   div.line {
803     width: 100%;
804     margin: 0px 0px 5px 0px;
805   }
806
807   div.loader_copy {
808     display: none;
809
810     img {
811       vertical-align: middle;
812     }
813   }
814
815   a.reverse_directions {
816     cursor: pointer;
817     margin: 0px 0px 5px 25px;
818   }
819 }
820
821 /* Rules for the map key which appears in the popout sidebar */
822
823 #mapkey {
824  .mapkey-table-key img {
825     display: block;
826     margin-left: auto;
827     margin-right: auto;
828   }
829   td {
830     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
831   }
832 }
833
834 /* Rules for search sidebar */
835
836 #sidebar .search_results_entry {
837   ul li {
838     cursor: pointer;
839     &.selected { background: $list-highlight; }
840   }
841
842   .search_more .loader {
843     display: none;
844     width: 100%;
845   }
846 }
847
848 .search_results_error {
849   color: #f00;
850   padding: 10px 20px;
851 }
852
853 /* Rules for routing */
854
855 #sidebar_content>table {
856     padding: 5px 20px 10px 15px;
857     width: 100%;
858     border-collapse: separate;
859 }
860
861 div.direction {
862   background-image: image-url('routing-sprite.png');
863   width: 20px;
864   height: 20px;
865   background-repeat: no-repeat;
866 }
867 @for $i from 0 through 25 {
868 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
869 }
870
871 p#routing_summary {
872     padding: 0 $lineheight $lineheight/4;
873 }
874
875 td.instruction, td.distance {
876     padding-top: $lineheight/5;
877     padding-bottom: $lineheight/5;
878     border-bottom: 1px solid $grey;
879 }
880 td.distance {
881     color: $darkgrey;
882     text-align: right;
883     font-size: x-small;
884 }
885 tr.turn {
886     cursor: pointer;
887 }
888 tr.turn:hover {
889     background: $list-highlight;
890 }
891 .routing_engines, #route_from, #route_to { margin-left: 25px; }
892 .routing_marker { width: 15px; position: absolute; cursor: move; }
893
894 /* Rules for entity history */
895
896 #sidebar_content {
897   .browse_details {
898     position: relative;
899     border-bottom: $keyline;
900   }
901 }
902
903 .browse_status {
904   display: none;
905 }
906
907 /* Rules for the history sidebar */
908
909 #sidebar .changesets {
910   li {
911     cursor: pointer;
912
913     &.selected { background: $list-highlight; }
914     /* color is derived from changeset bbox fillColor in history.js */
915   }
916
917   .comments {
918     float: right;
919     color: $darkgrey;
920   }
921
922   .comments-0 {
923     opacity: 0.5;
924   }
925
926   .changeset_more .loader {
927     display: none;
928     width: 100%;
929   }
930 }
931
932 /* Rules for the browse sidebar */
933
934 #sidebar_content {
935   .browse-section {
936     padding: $lineheight/2 $lineheight;
937     border-bottom: 1px solid $grey;
938
939     h4:first-child {
940       margin-top: 0;
941       word-wrap: break-word;
942     }
943   }
944
945   .browse-section:last-of-type {
946     border-bottom: none;
947   }
948
949   .paginate {
950     float: right;
951     padding: 1px 6px;
952     border: 1px solid $lightgrey;
953     border-radius: 3px;
954   }
955
956   .browse-field {
957     margin-bottom: 10px;
958
959     h4 {
960       padding: 5px 0 5px 10px;
961       font-size: 12px;
962       border: 1px solid $grey;
963       border-radius: 4px 4px 0 0;
964       background-color: $offwhite;
965     }
966
967     p {
968       padding: 7px 10px;
969       font-size: 12px;
970       background-color: #FFF;
971       border: 1px solid $grey;
972       border-top: 0;
973       border-radius: 0 0 4px 4px;
974     }
975   }
976
977   .browse-tag-list {
978     background-color: $offwhite;
979     border: 1px solid $grey;
980     border-radius: 3px;
981     table-layout: fixed;
982     border-collapse: separate;
983
984     th, td {
985       border-bottom: 1px solid $grey;
986     }
987
988     tr:last-child th, tr:last-child td {
989       border-bottom: 0;
990     }
991
992     .browse-tag-k,
993     .browse-tag-v {
994       width: 50%;
995       padding: 6px 10px;
996       word-wrap: break-word;
997       white-space: pre-wrap;
998     }
999
1000     .browse-tag-k {
1001       font-weight: 500;
1002       background-color: $offwhite;
1003     }
1004
1005     .browse-tag-v {
1006       border-left: 1px solid $grey;
1007       background-color: #fff;
1008     }
1009
1010     .colour-preview-box {
1011       float: right;
1012       width: 14px;
1013       height: 14px;
1014       margin: 4px 0px;
1015       border: 1px solid rgba(0, 0, 0, .1);
1016       // add color via inline css on element: background-color: <tag value>;
1017     }
1018   }
1019
1020   .warning {
1021     margin: 0 0 $lineheight/2 0;
1022     padding: 0 $lineheight/2;
1023   }
1024
1025   .note-comments li, .changeset-comments li {
1026     margin: $lineheight/2 0;
1027
1028     p {
1029       margin: 10px 6px 0 6px;
1030       line-height: 1.5;
1031     }
1032   }
1033
1034   .comments-header {
1035     float: left;
1036   }
1037
1038   .subscribe-buttons {
1039     float: left;
1040     margin: 18px 10px 10px;
1041     min-width: 80px;
1042   }
1043
1044   .subscribe-buttons input {
1045     font-size: 90%;
1046     line-height: 15px;
1047     min-height: 20px;
1048   }
1049
1050   span.action-button:hover {
1051     cursor: pointer;
1052     text-decoration: underline;
1053   }
1054
1055   .note-description {
1056     overflow: hidden;
1057     margin: 0 0 10px 10px;
1058   }
1059
1060   .query-intro p {
1061     padding: $lineheight $lineheight $lineheight/2;
1062   }
1063
1064   .query-results {
1065     display: none;
1066     padding-bottom: $lineheight/2;
1067
1068     h3 {
1069       padding: 0 $lineheight;
1070     }
1071
1072     ul {
1073       li {
1074         &.query-result {
1075           cursor: pointer;
1076         }
1077
1078         &.selected {
1079           background: $list-highlight;
1080         }
1081       }
1082     }
1083   }
1084 }
1085
1086 /* Rules for export sidebar */
1087
1088 .export_form {
1089   padding: $lineheight;
1090
1091   .export_area_inputs,
1092   .export_button {
1093     text-align: center;
1094   }
1095
1096   .export_area_inputs {
1097     margin-bottom: $lineheight/2;
1098     input[type="text"] {
1099       width: 80px;
1100       text-align: center;
1101       margin-bottom: 5px;
1102     }
1103   }
1104
1105   .export_boxy {
1106     background: $lightgrey;
1107     border: 1px solid $grey;
1108     border-radius: 3px;
1109
1110     #maxlat { margin-top: -1px; }
1111     #minlon {
1112       float: left;
1113       /* no-r2 */ margin-left: -1px;
1114     }
1115     #maxlon {
1116       float: right;
1117       /* no-r2 */ margin-right: -1px;
1118     }
1119     #minlat { margin-bottom: 0; }
1120   }
1121
1122   .export_bound {
1123     margin: $lineheight/4;
1124   }
1125
1126   .export_button {
1127     margin-top: $lineheight;
1128     margin-bottom: $lineheight;
1129   }
1130
1131   dl {
1132     padding-left: $lineheight/2;
1133     dd {
1134       margin-left: 0;
1135       margin-bottom: 10px;
1136     }
1137   }
1138 }
1139
1140 /* Rules for the routing sidebar */
1141
1142 #sidebar_content {
1143   #routing_credit {
1144     text-align: center;
1145     padding: 0.5em;
1146   }
1147 }
1148
1149 /* Rules for edit pages */
1150
1151 .site-edit {
1152   #content {
1153     position: absolute;
1154     top: $headerHeight;
1155     bottom: 0;
1156     width: 100%;
1157   }
1158
1159   #map {
1160     height: 100%;
1161     overflow: hidden;
1162   }
1163 }
1164
1165 /* Rules for non-map content pages */
1166
1167 .content-heading {
1168   background: $lightgrey;
1169 }
1170
1171 .content-body {
1172   h1, h2, h3, p, ul, ol {
1173     margin-bottom: $lineheight;
1174   }
1175
1176   h1, h2, h3 {
1177     margin-top: $lineheight/2;
1178   }
1179 }
1180
1181 .content-inner {
1182   position: relative;
1183   max-width: 900px;
1184   margin: auto;
1185   padding: $lineheight;
1186 }
1187
1188 /* Overrides for pages that use new layout conventions */
1189
1190 .users-new,
1191 .users-create,
1192 .users-terms,
1193 .users-confirm {
1194   .content-heading .content-inner {
1195     height: 200px;
1196   }
1197 }
1198
1199 .header-illustration {
1200   background-position: 0 0;
1201   background-repeat: no-repeat;
1202   position: absolute;
1203   height: 200px;
1204   width: 100%;
1205   left: 0;
1206   bottom: 0;
1207
1208   &.new-user-main {
1209     background-image: image-url("sign-up-illustration.png");
1210   }
1211
1212   &.confirm-main {
1213     background-image: image-url("confirm-illustration.png");
1214   }
1215
1216   &.new-user-terms {
1217     background-image: image-url("terms-illustration.png");
1218   }
1219
1220   &.new-user-arm {
1221     height: 110px;
1222     width: 130px;
1223     left: 260px;
1224     top: 160px;
1225     background-image: image-url("sign-up-illustration-arm.png");
1226     z-index: 100;
1227   }
1228 }
1229
1230 [dir=rtl] .header-illustration {
1231   transform: scaleX(-1);
1232 }
1233
1234 #content.maximised {
1235   top: 0;
1236   left: 0;
1237   right: 0;
1238   bottom: 0;
1239   border: 0;
1240   z-index: 2000;
1241 }
1242
1243 /* Rules for small maps in content areas */
1244
1245 .content_map {
1246   position: relative;
1247   width: 45%;
1248   height: 400px;
1249   border: 1px solid $grey;
1250   margin-bottom: $lineheight;
1251   float: right;
1252 }
1253
1254 /* Rules for the trace list shown by the traces tab etc */
1255
1256 #trace_list {
1257   border-width: 0px;
1258   text-align: right;
1259
1260   .trace_summary {
1261     font-size: 12px;
1262     color: gray;
1263   }
1264 }
1265
1266 /* Rules for the new trace form */
1267
1268 #new_trace {
1269   input[type=text] {
1270     width: 50%;
1271     width: calc(100% - 150px);
1272     max-width: 500px;
1273   }
1274 }
1275
1276 /* Rules for the edit trace form */
1277
1278 .edit_trace {
1279   .standard-form-row p {
1280     margin-bottom: 0px;
1281   }
1282
1283   input[type=text] {
1284     width: 50%;
1285     width: calc(100% - 150px);
1286     max-width: 500px;
1287   }
1288 }
1289
1290 /* Rules for the user profile page */
1291
1292 #userinformation {
1293
1294   min-height: 100px;
1295   .userinformation-inner {
1296     float: left;
1297   }
1298   h2 {
1299     margin-top: 0;
1300   }
1301   .user-description {
1302     width: 100%;
1303     clear: both;
1304   }
1305   .deemphasize {
1306     margin: 0;
1307   }
1308 }
1309
1310 .admin-user-info small {
1311   margin-bottom: $lineheight/2;
1312   display: inline;
1313   margin-right: $lineheight;
1314 }
1315
1316 .activity-block {
1317   clear: left;
1318   border-bottom: 1px solid $grey;
1319   padding-bottom: $lineheight;
1320   float: left;
1321   h3 {
1322     margin-bottom: $lineheight/2;
1323   }
1324 }
1325
1326 .contact-activity {
1327   margin-top: $lineheight;
1328   width: 100%;
1329 }
1330
1331 .activity-details p {
1332   margin-left: 70px;
1333   margin-bottom: 0;
1334 }
1335
1336 .users-show {
1337   // Silly exception; remove when user page is redesigned.
1338   .content-inner {
1339     max-width: none;
1340   }
1341   p#no_home_location {
1342     margin: $lineheight;
1343   }
1344   .user_thumbnail {
1345     margin-top: $lineheight/4;
1346     float: left;
1347   }
1348 }
1349
1350 /* Rules for the user map */
1351
1352 .content_map .leaflet-popup-content {
1353   margin: $lineheight/2;
1354   min-height: 50px;
1355 }
1356
1357 /* Rules for user popups on maps */
1358
1359 .user_popup {
1360   min-width: 200px;
1361   p {
1362     padding: 0 0 5px 0;
1363     margin-top: 0 0 0 60px;
1364     font-size: 12px;
1365   }
1366   img.user_thumbnail {
1367     float: left;
1368     margin: 0 $lineheight/2 0 0;
1369   }
1370 }
1371
1372 /* Rules for the user list */
1373
1374 #user_list {
1375   width: 100%;
1376
1377   tr {
1378     vertical-align: middle;
1379   }
1380
1381   p {
1382     margin-top: 0px;
1383     margin-bottom: 0px;
1384   }
1385 }
1386
1387 #user_list_actions {
1388   float: right;
1389   margin-top: $lineheight/2;
1390 }
1391
1392 /* Rules for the diary list page */
1393
1394 .diary_post {
1395   position: relative;
1396   padding-top: $lineheight;
1397   padding-bottom: $lineheight/2;
1398   border-top: 1px solid $grey;
1399
1400   &:first-of-type {
1401     margin-top: $lineheight/2;
1402   }
1403
1404   &.deemphasize {
1405     background-color: #fee;
1406   }
1407
1408   .post_heading {
1409     margin-bottom: $lineheight;
1410
1411     h2 {
1412       margin-top: 0;
1413       margin-bottom: $lineheight/2;
1414     }
1415   }
1416
1417   img.user_thumbnail {
1418     float: left;
1419   }
1420
1421   small.deemphasize {
1422     float: left;
1423     display: block;
1424   }
1425 }
1426
1427 .pagination {
1428   padding-top: $lineheight;
1429 }
1430
1431 /* Rules for the diary entry page */
1432
1433 .diary_entries {
1434   #map {
1435     position: relative;
1436     width: 90%;
1437     height: 400px;
1438     border: 1px solid $grey;
1439     display: none;
1440     margin-bottom: $lineheight;
1441   }
1442   #newcomment {
1443     border-top: 1px solid $grey;
1444     padding-top: $lineheight;
1445     margin-top: $lineheight/2;
1446   }
1447   .comments {
1448     max-width: 740px;
1449   }
1450   .diary-comment {
1451     border-top: 1px dashed $grey;
1452     padding-top: $lineheight/2;
1453     padding-bottom: $lineheight/2;
1454     &:first-child {
1455       margin-top: $lineheight/2;
1456       padding-top: $lineheight;
1457       border-top: 1px solid $grey;
1458     }
1459     &.deemphasize {
1460       background-color: #fee;
1461     }
1462     p {
1463       margin-bottom: $lineheight/2;
1464     }
1465     .comment-heading {
1466       margin-bottom: 0;
1467       margin-top: 0;
1468     }
1469   }
1470 }
1471
1472 .diary_entries-show img.user_thumbnail {
1473   float: left;
1474 }
1475
1476
1477 .diary-subscribe-buttons {
1478   position:relative;
1479   top: -30px;
1480   left: 130px;
1481 }
1482
1483 /* Rules for the log in page */
1484
1485 #login_auth_buttons {
1486   margin-bottom: 0;
1487 }
1488
1489 #login_auth_buttons li {
1490   float: left;
1491   padding: $lineheight/4 $lineheight/2;
1492 }
1493
1494 /* Rules for the account confirmation page */
1495
1496 .users-terms {
1497   .legale {
1498     border: 1px solid $grey;
1499     padding: $lineheight;
1500     margin-bottom: $lineheight;
1501     overflow: auto;
1502     height: 20em;
1503
1504     li {
1505       list-style: inherit;
1506     }
1507
1508     ol ol {
1509       list-style-type: lower-alpha;
1510     }
1511   }
1512
1513   #decline {
1514     background: $lightblue;
1515     &:hover {
1516       background: darken($lightblue, $hovercolor);
1517     }
1518   }
1519 }
1520
1521 /* Rules for the account settings page */
1522
1523 #accountForm .user_map {
1524   position: relative;
1525   width: 500px;
1526   height: 400px;
1527   border: 1px solid $grey;
1528 }
1529
1530 #accountForm .user_image {
1531   margin-bottom: 0;
1532 }
1533
1534 #accountForm #user_image {
1535   margin-left: 20px;
1536 }
1537
1538 #accountForm ul.accountImage-options {
1539   margin-left: 120px;
1540 }
1541
1542 .nohome .location {
1543   display: none;
1544 }
1545
1546 #homerow .message {
1547   display: none;
1548 }
1549
1550 .nohome .message {
1551   display: inline !important;
1552 }
1553
1554 .content_map.settings_map {
1555   width: 50%;
1556   float: none;
1557 }
1558
1559 /* Rules for the oauth settings page */
1560
1561 .oauth_clients .buttons .oauth-edit {
1562   border-radius: 2px 0 0 2px;
1563 }
1564
1565 .oauth_clients .buttons .oauth-delete {
1566   border-radius: 0 2px 2px 0;
1567 }
1568
1569 /* Rules for the oauth authorization page */
1570
1571 .oauth-authorize ul {
1572   list-style: none;
1573 }
1574
1575 /* Rules for messages pages */
1576
1577 .messages {
1578   width: 100%;
1579   border: 1px solid $grey;
1580
1581   input[type="submit"] {
1582     margin: auto;
1583   }
1584   tbody tr {
1585     border-top: 1px solid $grey;
1586   }
1587
1588   .inbox-row {
1589     background: $offwhite;
1590   }
1591
1592   .inbox-row-unread {
1593     background:#CBEEA7;
1594   }
1595
1596   .right {
1597     float: right;
1598   }
1599
1600   tr td,
1601   tr th {
1602     padding: $lineheight/4;
1603   }
1604   p:last-child,
1605   h2:last-child,
1606   h3:last-child,
1607   ol:last-child,
1608   ul:last-child {
1609     margin-bottom:0;
1610   }
1611   tr td {
1612     height: 30px;
1613     border-right: 1px solid $lightgrey;
1614   }
1615 }
1616
1617 .inbox-row .inbox-mark-read {
1618   display: none;
1619 }
1620
1621 .info-line {
1622   margin-bottom: $lineheight;
1623   padding: $lineheight/4 0px 4px 0px;
1624   border-bottom: 1px solid $grey;
1625
1626   form, form div {
1627     display: inline;
1628   }
1629 }
1630
1631 .info-line .user_thumbnail_tiny {
1632   vertical-align: middle;
1633 }
1634
1635 .inbox-sent {
1636   white-space: nowrap;
1637 }
1638
1639 .inbox-mark-unread,
1640 .inbox-mark-read,
1641 .inbox-delete {
1642   width: 1%;
1643 }
1644
1645 .inbox-row-unread .inbox-mark-unread {
1646   display: none;
1647 }
1648
1649 .messages-show .message-buttons {
1650   margin-top: $lineheight;
1651   margin-bottom: $lineheight * 1.5;
1652   padding-top: $lineheight;
1653   border-top: 1px solid $lightgrey;
1654 }
1655
1656 .messages-show .buttons .mark-unread-button {
1657   border-radius: 0;
1658 }
1659
1660 /* Rules for "flash" notice boxes shown at the top of the content area */
1661
1662 .flash {
1663   padding: $lineheight;
1664
1665   &.error {
1666     background-color: #ff7070;
1667   }
1668
1669   &.warning {
1670     background-color: #ffe0cc;
1671   }
1672
1673   &.notice {
1674     background-color: #CBEEA7;
1675   }
1676
1677   div.message {
1678     display: inline-block;
1679     margin-left: $lineheight / 2;
1680     vertical-align: middle;
1681
1682     p {
1683       margin-top: $lineheight * 0.5;
1684       margin-bottom: $lineheight * 0.5;
1685
1686       &:first-child {
1687         margin-top: 0px;
1688       }
1689
1690       &:last-child {
1691         margin-bottom: 0px;
1692       }
1693     }
1694   }
1695 }
1696
1697 /* Rules for highlighting fields with rails validation errors */
1698
1699 .formError {
1700   display: inline-block;
1701   padding: 5px 10px;
1702   margin-top: 5px;
1703   border-radius: 4px;
1704   font-size: 12px;
1705   color: #fff;
1706   background-color: #ff7070;
1707 }
1708
1709 /* Rules for rails validation error boxes */
1710
1711 #errorExplanation {
1712   width: 400px;
1713   border: 2px solid #ff7070;
1714   padding: 0 $lineheight/2;
1715   margin-bottom: $lineheight;
1716   background-color: #f0f0f0;
1717
1718   h2 {
1719     margin: 0 -10px 10px -10px;
1720     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1721     font-weight: bold;
1722     font-size: 12px;
1723     background-color: #c00;
1724     color: #fff;
1725     text-align: left;
1726   }
1727
1728   p {
1729     color: #333;
1730     margin-bottom: 0px;
1731     padding: $lineheight/4;
1732   }
1733 }
1734
1735 /* Rules for forms */
1736
1737 .standard-form {
1738   fieldset {
1739     margin-bottom: $lineheight;
1740   }
1741   label.standard-label {
1742     display: block;
1743     margin-bottom: $lineheight/4;
1744     font-size: $typeheight;
1745     font-weight: bold;
1746     line-height: 1.5;
1747   }
1748   label.standard-label.secondary {
1749     display: inline-block;
1750     font-weight: normal;
1751   }
1752   .form-help {
1753     font-weight: normal;
1754   }
1755   .form-column {
1756     float: left;
1757     margin-right: 20px;
1758   }
1759   .form-divider {
1760     margin-top: $lineheight;
1761     padding-top: $lineheight;
1762     border-top: 1px solid $lightgrey;
1763   }
1764   .horizontal-list .standard-form-row {
1765     float: left;
1766     padding-right: 10px;
1767   }
1768   .standard-form-row {
1769     margin-bottom: $lineheight/2;
1770   }
1771   .form-list {
1772     margin-bottom: 0;
1773   }
1774   .form-list li {
1775     margin-bottom: 5px;
1776     list-style-type: none;
1777   }
1778   input[type="checkbox"],
1779   input[type="radio"] {
1780     float: left;
1781     margin-top: 5px;
1782   }
1783 }
1784
1785 #remember_me_openid {
1786   display: block;
1787 }
1788
1789 select {
1790   padding: 2px;
1791 }
1792
1793 input[type="checkbox"],
1794 input[type="radio"] {
1795     margin-right: 5px;
1796 }
1797
1798 input[type="text"],
1799 input[type="email"],
1800 input[type="url"],
1801 input[type="password"],
1802 textarea {
1803   color: #222;
1804   background-color: #fff;
1805   border: 1px solid $grey;
1806   border-radius: 3px;
1807   padding: 2px 5px;
1808   margin: 0;
1809   width: 200px;
1810
1811   &.field_with_errors {
1812     border: 2px solid #ff7070;
1813   }
1814 }
1815
1816 textarea {
1817   padding: 5px;
1818   width: 100%;
1819   min-height: 50px;
1820   resize: vertical;
1821 }
1822
1823 /* Rules for user images */
1824
1825 img.user_image {
1826   max-width: 100px;
1827   max-height: 100px;
1828   border: 1px solid $grey;
1829   margin-bottom: $lineheight;
1830   float: left;
1831   margin-right: $lineheight;
1832 }
1833
1834 img.user_thumbnail {
1835   max-width: 50px;
1836   max-height: 50px;
1837   border: 1px solid $grey;
1838   margin-right: $lineheight;
1839 }
1840
1841 img.user_thumbnail_tiny {
1842   width: auto;
1843   height: auto;
1844   max-width: 25px;
1845   max-height: 25px;
1846   border: 1px solid $grey;
1847 }
1848
1849 /* Rules for geo microformats */
1850
1851 abbr.geo {
1852   border-bottom: none;
1853 }
1854
1855 /* General styles for action lists / subnavs / pager navs */
1856
1857 ul.secondary-actions {
1858   font-style: normal;
1859   margin-bottom: 0;
1860   margin-left: 0;
1861   padding: 0;
1862   &.pager {
1863     display: inline-block;
1864     margin-right: 60px;
1865   }
1866   > li {
1867     display: block;
1868     float: left;
1869     list-style: none;
1870     border-left: 1px solid $grey;
1871     padding-left: $lineheight/2;
1872     margin-right: $lineheight/2;
1873     &:first-child {
1874       border-left: 0;
1875       padding-left: 0;
1876     }
1877     &:last-child {
1878       margin-right: 0px;
1879     }
1880   }
1881 }
1882
1883 div.secondary-actions {
1884   padding: 10px;
1885   text-align: center;
1886 }
1887
1888 /* Utility for managing inner content areas */
1889
1890 .inner22 { padding: $lineheight;}
1891
1892 .inner12 { padding: $lineheight/2 $lineheight;}
1893
1894 .inner11 { padding: $lineheight/2;}
1895
1896 .inner20 { padding: $lineheight 0;}
1897
1898 .inner02 { padding: 0 $lineheight;}
1899
1900 /* Utility for general button styles */
1901
1902 input[type="button"],
1903 input[type="submit"],
1904 input[type="reset"],
1905 a.button {
1906   cursor: pointer;
1907   border: 0;
1908   display: inline-block;
1909   padding: $lineheight/4 $lineheight/2;
1910   min-height: 20px + $lineheight/2;
1911   min-width: 120px;
1912   margin: 0 0 $lineheight/2 0;
1913   color: white;
1914   background: $blue;
1915   text-align: center;
1916   border-radius: 2px;
1917   &:hover {
1918     background: darken($blue, $hovercolor);
1919     text-decoration: none;
1920   }
1921   &.deemphasize {
1922     background: $lightblue;
1923     &:hover {
1924       background: darken($lightblue, $hovercolor);
1925     }
1926   }
1927   &:disabled {
1928     background: $lightgrey;
1929     &:hover {
1930       background: $lightgrey;
1931     }
1932   }
1933   &:last-child {
1934     margin-bottom: 0;
1935   }
1936 }
1937
1938 input[type="button"],
1939 input[type="submit"],
1940 input[type="reset"] {
1941   line-height: normal;
1942 }
1943
1944 a.button {
1945   line-height: 20px;
1946 }
1947
1948 .buttons {
1949   min-width: 200px;
1950   input[type="submit"],
1951   input[type="button"],
1952   input[type="reset"],
1953   .button,
1954   .button_to {
1955     box-sizing: border-box;
1956     float: left;
1957     border-radius: 0;
1958     margin:0;
1959     min-width: 75px;
1960     max-width: 180px;
1961     border-right:1px solid white;
1962     text-overflow: ellipsis;
1963     white-space: nowrap;
1964     overflow: hidden;
1965   }
1966   input:first-child,
1967   .button:first-child,
1968   .button_to:first-child {
1969     border-radius:2px 0 0 2px;
1970   }
1971   input:last-child,
1972   .button:last-child,
1973   .button_to:last-child {
1974     border-radius:0 2px 2px 0;
1975     border-right-width: 0;
1976   }
1977   input:only-child,
1978   .button:only-child,
1979   .button_to:only-child,
1980   *[value="Hide"] + input:last-child,
1981   *[value="Hide"] + .button:last-child,
1982   *[value="Hide"] + .button_to:last-child {
1983     border-radius:2px;
1984     border-right-width: 0;
1985   }
1986     /* if a 3-button set has a hidden middle button */
1987   *[value="Hide"] + input:nth-child(3),
1988   *[value="Hide"] + .button:nth-child(3),
1989   *[value="Hide"] + .button_to:nth-child(3) {
1990     border-radius:0 2px 2px 0;
1991     border-right-width: 0;
1992   }
1993   /* if a 3-button set starts with a hidden button */
1994   *[value="Hide"] + input:nth-child(2):not(:last-child),
1995   *[value="Hide"] + .button:nth-child(2):not(:last-child),
1996   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1997     border-radius:2px 0 0 2px;
1998     border-right-width: 1px;
1999   }
2000 }
2001
2002 /* Rules for doing distinct colour of alternate table rows */
2003
2004 .table0,
2005 .item0 {
2006   background: $offwhite;
2007 }
2008
2009 .table1,
2010 .item1 {
2011   background: #fff;
2012 }
2013
2014 /* Rules for OpenID logo */
2015
2016 .openid_logo {
2017   vertical-align: text-bottom;
2018   border: 0;
2019 }
2020
2021 /* Rules for rich text */
2022
2023 .richtext,
2024 .prose {
2025   code {
2026     font-size: 13px;
2027     background: $lightgrey;
2028     padding: 2px 3px;
2029   }
2030
2031   pre {
2032     font-size: 13px;
2033     background: $lightgrey;
2034     padding: 2px 3px;
2035     white-space: pre-wrap;
2036
2037     code {
2038       padding: 0;
2039     }
2040   }
2041
2042   img {
2043     padding: $lineheight;
2044     background-color: $offwhite;
2045     display: block;
2046     max-width: 100%;
2047     margin: auto;
2048   }
2049
2050   blockquote {
2051     border-left: $lineheight solid $offwhite;
2052     padding-left: $lineheight;
2053     margin: 0;
2054     color: $darkgrey;
2055   }
2056 }
2057
2058 .diary_post .richtext {
2059     margin-top: $lineheight;
2060   }
2061
2062 .comments .richtext {
2063   margin-left: 70px;
2064   margin-top: 0;
2065 }
2066
2067 /* Rules for rich text editors */
2068
2069 input.richtext_title[type="text"] {
2070   width: 50%;
2071   width: calc(100% - 235px);
2072
2073   @media only screen and (max-width:768px) {
2074     width: 100%;
2075   }
2076 }
2077
2078 .richtext_container {
2079   margin-bottom: $lineheight;
2080
2081   .richtext_content {
2082     width: 50%;
2083     width: calc(100% - 235px);
2084     display: inline-block;
2085     vertical-align: top;
2086
2087     @media only screen and (max-width:768px) {
2088       width: 100%;
2089     }
2090
2091     .richtext_preview {
2092       display: inline-block;
2093       padding: $lineheight;
2094       background-color: $offwhite;
2095       overflow-x: auto;
2096
2097       &.loading {
2098         background-image: image-url("loading.gif");
2099         background-repeat: no-repeat;
2100         background-position: center;
2101       }
2102
2103       > :first-child {
2104         margin-top: 0px;
2105       }
2106     }
2107   }
2108
2109   .richtext_help {
2110     display: inline-block;
2111     vertical-align: top;
2112     margin-left: 15px;
2113     background-color: $offwhite;
2114     padding: $lineheight/2;
2115     width: 220px;
2116
2117     ul {
2118       margin-bottom: 0;
2119     }
2120
2121     h4.heading, li {
2122       border-bottom: 1px solid $grey;
2123       margin-bottom: $lineheight/4;
2124       padding-bottom: $lineheight/4;
2125     }
2126
2127     li h4, li span, li p {
2128       display: inline-block;
2129       vertical-align: top;
2130       font-size: 11px;
2131     }
2132
2133     li h4 {
2134       width: 40%;
2135       margin: 0;
2136     }
2137
2138     li span, li p {
2139       width: 50%;
2140       margin-left: $lineheight/2;
2141       margin-bottom: $lineheight/4;
2142       white-space: nowrap;
2143     }
2144   }
2145 }
2146
2147 /* Rules for the user notes list */
2148
2149 .note_list {
2150   tr.creator {
2151     background-color: $lightgrey;
2152   }
2153
2154   td {
2155     padding: 3px;
2156   }
2157
2158   p {
2159     margin-bottom: 0px;
2160   }
2161 }
2162
2163 /* Rules for the iD editor */
2164
2165 .id-embed {
2166   width: 100%;
2167   height: 100%;
2168 }
2169
2170 /* Rules for the "Welcome" page */
2171 .site-welcome, .site-fixthemap {
2172   .center {
2173     text-align: center;
2174     .sprite {
2175       float: none;
2176       margin: auto;
2177     }
2178   }
2179
2180   .sprite {
2181     background-image: image-url("welcome-sprite.png");
2182     background-size: 500px 250px;
2183     display: block;
2184     float: left;
2185   }
2186
2187   .icon-list {
2188     padding-bottom: 20px;
2189     div {
2190       margin-bottom: 10px;
2191       p {
2192         padding-top: 10px;
2193       }
2194     }
2195   }
2196   .sprite.small {
2197     width: 50px;
2198     height: 50px;
2199   }
2200
2201   .sprite.x {
2202     /* no-r2 */ background-position: -50px 0;
2203   }
2204
2205   .sprite.term {
2206     margin-right: 10px;
2207     vertical-align: middle;
2208   }
2209
2210   .sprite.node {
2211     /* no-r2 */ background-position: -100px 0;
2212   }
2213
2214   .sprite.way {
2215     /* no-r2 */ background-position: -150px 0;
2216   }
2217
2218   .sprite.tag {
2219     /* no-r2 */ background-position: -200px 0;
2220   }
2221
2222   .sprite.editor {
2223     /* no-r2 */ background-position: -250px 0;
2224   }
2225
2226   .sprite.question {
2227     /* no-r2 */ background-position: -300px 0;
2228   }
2229
2230   .sprite.rules {
2231     /* no-r2 */ background-position: -350px 0;
2232   }
2233
2234   .start-mapping {
2235     margin: auto;
2236     cursor: pointer;
2237     border: none;
2238     padding: 20px 40px;
2239     font-size: 30px;
2240     text-decoration: none;
2241   }
2242
2243   .icon.note {
2244     background-color: #333;
2245     border-radius: 4px;
2246   }
2247 }
2248
2249 .site-about #content {
2250   background-color: $lightgrey;
2251   background-position: 50% 50%;
2252   background-repeat: no-repeat;
2253   background-size: cover;
2254   background-attachment: fixed;
2255
2256
2257   .content-inner {
2258     position: relative;
2259     color: #333;
2260     min-width: 320px;
2261     max-width: 640px;
2262   }
2263
2264   .text {
2265     background: white;
2266     padding: 40px;
2267   }
2268
2269   .attr {
2270     position: relative;
2271     padding: 170px 40px 20px;
2272     background: #333;
2273     background: rgba(0, 0, 0, .8);
2274     margin-bottom: 0;
2275     margin-top: -20px;
2276
2277     h1 {
2278       display: block;
2279       color: white;
2280       font-weight: 300;
2281       font-size: 34px;
2282       span {
2283         color: $vibrant-green;
2284       }
2285     }
2286
2287     .user-image {
2288       position: absolute;
2289       top: 0px;
2290       right: 240px;
2291       left: 0px;
2292       height: 150px;
2293       background-position: 0 50%;
2294       background-repeat: no-repeat;
2295       background-image: image-url('about/osm.png');
2296       background-size: cover;
2297       background-color: $vibrant-green;
2298     }
2299
2300     .byosm {
2301       position: absolute;
2302       top: 0px;
2303       right: 0px;
2304       z-index: 1;
2305       width: 240px;
2306       height: 150px;
2307       padding: 20px 20px 20px 40px;
2308       font: 500 20px/24px Helvetica, Arial, sans-serif;
2309       white-space: nowrap;
2310       color: #fff;
2311       background: $vibrant-green;
2312     }
2313
2314     .byosm span {
2315       display: inline-block;
2316       width: 20px;
2317       margin-left: -20px;
2318     }
2319   }
2320
2321   .icon {
2322     width: 30px;
2323     height: 30px;
2324     margin-right: 10px;
2325     vertical-align: middle;
2326     background: 40px 40px image-url('about/sprite.png') no-repeat;
2327
2328     &.local {
2329       /* no-r2 */
2330       background-position: 0px 0px;
2331     }
2332     &.community {
2333       /* no-r2 */
2334       background-position: 0px -40px;
2335     }
2336     &.open {
2337       /* no-r2 */
2338       background-position: 0px -80px;
2339     }
2340     &.partners {
2341       /* no-r2 */
2342       background-position: 0px -120px;
2343     }
2344     &.infringement {
2345       /* no-r2 */
2346       background-position: 0px -160px;
2347     }
2348     &.legal {
2349       /* no-r2 */
2350       background-position: -45px -160px;
2351     }
2352   }
2353 }
2354
2355 @import 'browse';
2356
2357 @media only screen and (max-width:960px) {
2358   .header-illustration.new-user-arm {
2359     display: none;
2360   }
2361 }
2362
2363 .read-reports {
2364   background: $lightgrey;
2365   opacity: 0.7;
2366 }
2367
2368 .issues-list {
2369   td:nth-child(2) {
2370     white-space: nowrap;
2371   }
2372 }