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