]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Tweak the dropdown menu hover and active colours
[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 }
906
907 div.direction {
908   background-image: image-url('routing-sprite.png');
909   width: 20px;
910   height: 20px;
911   background-repeat: no-repeat;
912 }
913 @for $i from 0 through 25 {
914 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
915 }
916
917 p#routing_summary {
918     padding: 0 $lineheight $lineheight/4;
919 }
920
921 td.instruction, td.distance {
922     padding-top: $lineheight/5;
923     padding-bottom: $lineheight/5;
924     border-bottom: 1px solid $grey;
925 }
926 td.distance {
927     color: $darkgrey;
928     text-align: right;
929     font-size: x-small;
930 }
931 tr.turn {
932     cursor: pointer;
933 }
934 tr.turn:hover {
935     background: $list-highlight;
936 }
937 .routing_engines, #route_from, #route_to { margin-left: 25px; }
938 .routing_marker { width: 15px; position: absolute; cursor: move; }
939
940 /* Rules for entity history */
941
942 #sidebar_content {
943   .browse_details {
944     position: relative;
945     border-bottom: $keyline;
946   }
947 }
948
949 .browse_status {
950   display: none;
951 }
952
953 /* Rules for the history sidebar */
954
955 #sidebar .changesets {
956   li {
957     cursor: pointer;
958
959     &.selected { background: $list-highlight; }
960     /* color is derived from changeset bbox fillColor in history.js */
961   }
962
963   .comments {
964     float: right;
965     color: $darkgrey;
966   }
967
968   .comments-0 {
969     opacity: 0.5;
970   }
971
972   .changeset_more .loader {
973     display: none;
974     width: 100%;
975   }
976 }
977
978 /* Rules for the browse sidebar */
979
980 #sidebar_content {
981   .browse-section {
982     padding: $lineheight/2 $lineheight;
983     border-bottom: 1px solid $grey;
984
985     h4:first-child {
986       margin-top: 0;
987       word-wrap: break-word;
988     }
989   }
990
991   .browse-section:last-of-type {
992     border-bottom: none;
993   }
994
995   .paginate {
996     float: right;
997     padding: 1px 6px;
998     border: 1px solid $lightgrey;
999     border-radius: 3px;
1000   }
1001
1002   .browse-field {
1003     margin-bottom: 10px;
1004
1005     h4 {
1006       padding: 5px 0 5px 10px;
1007       font-size: 12px;
1008       border: 1px solid $grey;
1009       border-radius: 4px 4px 0 0;
1010       background-color: $offwhite;
1011     }
1012
1013     p {
1014       padding: 7px 10px;
1015       font-size: 12px;
1016       background-color: #FFF;
1017       border: 1px solid $grey;
1018       border-top: 0;
1019       border-radius: 0 0 4px 4px;
1020     }
1021   }
1022
1023   .browse-tag-list {
1024     background-color: $offwhite;
1025     border: 1px solid $grey;
1026     border-radius: 3px;
1027     table-layout: fixed;
1028     border-collapse: separate;
1029
1030     th, td {
1031       border-bottom: 1px solid $grey;
1032     }
1033
1034     tr:last-child th, tr:last-child td {
1035       border-bottom: 0;
1036     }
1037
1038     .browse-tag-k,
1039     .browse-tag-v {
1040       width: 50%;
1041       padding: 6px 10px;
1042       word-wrap: break-word;
1043       white-space: pre-wrap;
1044     }
1045
1046     .browse-tag-k {
1047       font-weight: 500;
1048       background-color: $offwhite;
1049     }
1050
1051     .browse-tag-v {
1052       border-left: 1px solid $grey;
1053       background-color: #fff;
1054     }
1055
1056     .colour-preview-box {
1057       float: right;
1058       width: 14px;
1059       height: 14px;
1060       margin: 4px 0px;
1061       border: 1px solid rgba(0, 0, 0, .1);
1062       // add color via inline css on element: background-color: <tag value>;
1063     }
1064   }
1065
1066   .warning {
1067     margin: 0 0 $lineheight/2 0;
1068     padding: 0 $lineheight/2;
1069   }
1070
1071   .note-comments li, .changeset-comments li {
1072     margin: $lineheight/2 0;
1073
1074     p {
1075       margin: 10px 6px 0 6px;
1076       line-height: 1.5;
1077     }
1078   }
1079
1080   .comments-header {
1081     float: left;
1082   }
1083
1084   .subscribe-buttons {
1085     float: left;
1086     margin: 18px 10px 10px;
1087     min-width: 80px;
1088   }
1089
1090   .subscribe-buttons input {
1091     font-size: 90%;
1092     line-height: 15px;
1093     min-height: 20px;
1094   }
1095
1096   span.action-button:hover {
1097     cursor: pointer;
1098     text-decoration: underline;
1099   }
1100
1101   .note-description {
1102     overflow: hidden;
1103     margin: 0 0 10px 10px;
1104   }
1105
1106   .query-intro p {
1107     padding: $lineheight $lineheight $lineheight/2;
1108   }
1109
1110   .query-results {
1111     display: none;
1112     padding-bottom: $lineheight/2;
1113
1114     h3 {
1115       padding: 0 $lineheight;
1116     }
1117
1118     ul {
1119       li {
1120         &.query-result {
1121           cursor: pointer;
1122         }
1123
1124         &.selected {
1125           background: $list-highlight;
1126         }
1127       }
1128     }
1129   }
1130 }
1131
1132 /* Rules for export sidebar */
1133
1134 .export_form {
1135   padding: $lineheight;
1136
1137   .export_area_inputs,
1138   .export_button {
1139     text-align: center;
1140   }
1141
1142   .export_area_inputs {
1143     margin-bottom: $lineheight/2;
1144     input[type="text"] {
1145       width: 80px;
1146       text-align: center;
1147       margin-bottom: 5px;
1148     }
1149   }
1150
1151   .export_boxy {
1152     background: $lightgrey;
1153     border: 1px solid $grey;
1154     border-radius: 3px;
1155
1156     #maxlat { margin-top: -1px; }
1157     #minlon {
1158       float: left;
1159       /* no-r2 */ margin-left: -1px;
1160     }
1161     #maxlon {
1162       float: right;
1163       /* no-r2 */ margin-right: -1px;
1164     }
1165     #minlat { margin-bottom: 0; }
1166   }
1167
1168   .export_bound {
1169     margin: $lineheight/4;
1170   }
1171
1172   .export_button {
1173     margin-top: $lineheight;
1174     margin-bottom: $lineheight;
1175   }
1176
1177   dl {
1178     padding-left: $lineheight/2;
1179     dd {
1180       margin-left: 0;
1181       margin-bottom: 10px;
1182     }
1183   }
1184 }
1185
1186 /* Rules for the routing sidebar */
1187
1188 #sidebar_content {
1189   #routing_credit {
1190     text-align: center;
1191     padding: 0.5em;
1192   }
1193 }
1194
1195 /* Rules for edit pages */
1196
1197 .site-edit {
1198   #content {
1199     position: absolute;
1200     top: $headerHeight;
1201     bottom: 0;
1202     width: 100%;
1203   }
1204
1205   #map {
1206     height: 100%;
1207     overflow: hidden;
1208   }
1209 }
1210
1211 /* Rules for non-map content pages */
1212
1213 .content-heading {
1214   background: $lightgrey;
1215 }
1216
1217 .content-body {
1218   h1, h2, h3, p, ul, ol {
1219     margin-bottom: $lineheight;
1220   }
1221
1222   h1, h2, h3 {
1223     margin-top: $lineheight/2;
1224   }
1225 }
1226
1227 .content-inner {
1228   position: relative;
1229   max-width: 900px;
1230   margin: auto;
1231   padding: $lineheight;
1232 }
1233
1234 /* Overrides for pages that use new layout conventions */
1235
1236 .users-new,
1237 .users-create,
1238 .users-terms,
1239 .users-confirm {
1240   .content-heading .content-inner {
1241     height: 200px;
1242   }
1243 }
1244
1245 .header-illustration {
1246   background-position: 0 0;
1247   background-repeat: no-repeat;
1248   position: absolute;
1249   height: 200px;
1250   width: 100%;
1251   left: 0;
1252   bottom: 0;
1253
1254   &.new-user-main {
1255     background-image: image-url("sign-up-illustration.png");
1256   }
1257
1258   &.confirm-main {
1259     background-image: image-url("confirm-illustration.png");
1260   }
1261
1262   &.new-user-terms {
1263     background-image: image-url("terms-illustration.png");
1264   }
1265
1266   &.new-user-arm {
1267     height: 110px;
1268     width: 130px;
1269     left: 260px;
1270     top: 160px;
1271     background-image: image-url("sign-up-illustration-arm.png");
1272     z-index: 100;
1273   }
1274 }
1275
1276 [dir=rtl] .header-illustration {
1277   transform: scaleX(-1);
1278 }
1279
1280 #content.maximised {
1281   top: 0;
1282   left: 0;
1283   right: 0;
1284   bottom: 0;
1285   border: 0;
1286   z-index: 2000;
1287 }
1288
1289 /* Rules for small maps in content areas */
1290
1291 .content_map {
1292   position: relative;
1293   width: 45%;
1294   height: 400px;
1295   border: 1px solid $grey;
1296   margin-bottom: $lineheight;
1297   float: right;
1298 }
1299
1300 /* Rules for the trace list shown by the traces tab etc */
1301
1302 #trace_list {
1303   border-width: 0px;
1304   text-align: right;
1305
1306   .trace_summary {
1307     font-size: 12px;
1308     color: gray;
1309   }
1310 }
1311
1312 /* Rules for the new trace form */
1313
1314 #new_trace {
1315   input[type=text] {
1316     width: 50%;
1317     width: calc(100% - 150px);
1318     max-width: 500px;
1319   }
1320 }
1321
1322 /* Rules for the edit trace form */
1323
1324 .edit_trace {
1325   .standard-form-row p {
1326     margin-bottom: 0px;
1327   }
1328
1329   input[type=text] {
1330     width: 50%;
1331     width: calc(100% - 150px);
1332     max-width: 500px;
1333   }
1334 }
1335
1336 /* Rules for the user profile page */
1337
1338 #userinformation {
1339
1340   min-height: 100px;
1341   .userinformation-inner {
1342     float: left;
1343   }
1344   h2 {
1345     margin-top: 0;
1346   }
1347   .user-description {
1348     width: 100%;
1349     clear: both;
1350   }
1351   .deemphasize {
1352     margin: 0;
1353   }
1354 }
1355
1356 .admin-user-info small {
1357   margin-bottom: $lineheight/2;
1358   display: inline;
1359   margin-right: $lineheight;
1360 }
1361
1362 .activity-block {
1363   clear: left;
1364   border-bottom: 1px solid $grey;
1365   padding-bottom: $lineheight;
1366   float: left;
1367   h3 {
1368     margin-bottom: $lineheight/2;
1369   }
1370 }
1371
1372 .contact-activity {
1373   margin-top: $lineheight;
1374   width: 100%;
1375 }
1376
1377 .activity-details p {
1378   margin-left: 70px;
1379   margin-bottom: 0;
1380 }
1381
1382 .users-show {
1383   // Silly exception; remove when user page is redesigned.
1384   .content-inner {
1385     max-width: none;
1386   }
1387   p#no_home_location {
1388     margin: $lineheight;
1389   }
1390   .user_thumbnail {
1391     margin-top: $lineheight/4;
1392     float: left;
1393   }
1394 }
1395
1396 /* Rules for the user map */
1397
1398 .content_map .leaflet-popup-content {
1399   margin: $lineheight/2;
1400   min-height: 50px;
1401 }
1402
1403 /* Rules for user popups on maps */
1404
1405 .user_popup {
1406   min-width: 200px;
1407   p {
1408     padding: 0 0 5px 0;
1409     margin-top: 0 0 0 60px;
1410     font-size: 12px;
1411   }
1412   img.user_thumbnail {
1413     float: left;
1414     margin: 0 $lineheight/2 0 0;
1415   }
1416 }
1417
1418 /* Rules for the user list */
1419
1420 #user_list {
1421   width: 100%;
1422
1423   tr {
1424     vertical-align: middle;
1425   }
1426
1427   p {
1428     margin-top: 0px;
1429     margin-bottom: 0px;
1430   }
1431 }
1432
1433 #user_list_actions {
1434   float: right;
1435   margin-top: $lineheight/2;
1436 }
1437
1438 /* Rules for the diary list page */
1439
1440 .diary_post {
1441   position: relative;
1442   padding-top: $lineheight;
1443   padding-bottom: $lineheight/2;
1444   border-top: 1px solid $grey;
1445
1446   &:first-of-type {
1447     margin-top: $lineheight/2;
1448   }
1449
1450   &.deemphasize {
1451     background-color: #fee;
1452   }
1453
1454   .post_heading {
1455     margin-bottom: $lineheight;
1456
1457     h2 {
1458       margin-top: 0;
1459       margin-bottom: $lineheight/2;
1460     }
1461   }
1462
1463   img.user_thumbnail {
1464     float: left;
1465   }
1466
1467   small.deemphasize {
1468     float: left;
1469     display: block;
1470   }
1471 }
1472
1473 .pagination {
1474   padding-top: $lineheight;
1475 }
1476
1477 /* Rules for the diary entry page */
1478
1479 .diary_entries {
1480   #map {
1481     position: relative;
1482     width: 90%;
1483     height: 400px;
1484     border: 1px solid $grey;
1485     display: none;
1486     margin-bottom: $lineheight;
1487   }
1488   #newcomment {
1489     border-top: 1px solid $grey;
1490     padding-top: $lineheight;
1491     margin-top: $lineheight/2;
1492   }
1493   .comments {
1494     max-width: 740px;
1495   }
1496   .diary-comment {
1497     border-top: 1px dashed $grey;
1498     padding-top: $lineheight/2;
1499     padding-bottom: $lineheight/2;
1500     &:first-child {
1501       margin-top: $lineheight/2;
1502       padding-top: $lineheight;
1503       border-top: 1px solid $grey;
1504     }
1505     &.deemphasize {
1506       background-color: #fee;
1507     }
1508     p {
1509       margin-bottom: $lineheight/2;
1510     }
1511     .comment-heading {
1512       margin-bottom: 0;
1513       margin-top: 0;
1514     }
1515   }
1516 }
1517
1518 .diary_entries-show img.user_thumbnail {
1519   float: left;
1520 }
1521
1522
1523 .diary-subscribe-buttons {
1524   position:relative;
1525   top: -30px;
1526   left: 130px;
1527 }
1528
1529 /* Rules for the log in page */
1530
1531 #login_auth_buttons {
1532   margin-bottom: 0;
1533 }
1534
1535 #login_auth_buttons li {
1536   float: left;
1537   padding: $lineheight/4 $lineheight/2;
1538 }
1539
1540 /* Rules for the account confirmation page */
1541
1542 .users-terms {
1543   .legale {
1544     border: 1px solid $grey;
1545     padding: $lineheight;
1546     margin-bottom: $lineheight;
1547     overflow: auto;
1548     height: 20em;
1549
1550     li {
1551       list-style: inherit;
1552     }
1553
1554     ol ol {
1555       list-style-type: lower-alpha;
1556     }
1557   }
1558
1559   #decline {
1560     background: $lightblue;
1561     &:hover {
1562       background: darken($lightblue, $hovercolor);
1563     }
1564   }
1565 }
1566
1567 /* Rules for the account settings page */
1568
1569 #accountForm .user_map {
1570   position: relative;
1571   width: 500px;
1572   height: 400px;
1573   border: 1px solid $grey;
1574 }
1575
1576 #accountForm .user_image {
1577   margin-bottom: 0;
1578 }
1579
1580 #accountForm #user_image {
1581   margin-left: 20px;
1582 }
1583
1584 #accountForm ul.accountImage-options {
1585   margin-left: 120px;
1586 }
1587
1588 .nohome .location {
1589   display: none;
1590 }
1591
1592 #homerow .message {
1593   display: none;
1594 }
1595
1596 .nohome .message {
1597   display: inline !important;
1598 }
1599
1600 .content_map.settings_map {
1601   width: 50%;
1602   float: none;
1603 }
1604
1605 /* Rules for the oauth settings page */
1606
1607 .oauth_clients .buttons .oauth-edit {
1608   border-radius: 2px 0 0 2px;
1609 }
1610
1611 .oauth_clients .buttons .oauth-delete {
1612   border-radius: 0 2px 2px 0;
1613 }
1614
1615 /* Rules for the oauth authorization page */
1616
1617 .oauth-authorize ul {
1618   list-style: none;
1619 }
1620
1621 /* Rules for messages pages */
1622
1623 .messages {
1624   width: 100%;
1625   border: 1px solid $grey;
1626
1627   input[type="submit"] {
1628     margin: auto;
1629   }
1630   tbody tr {
1631     border-top: 1px solid $grey;
1632   }
1633
1634   .inbox-row {
1635     background: $offwhite;
1636   }
1637
1638   .inbox-row-unread {
1639     background:#CBEEA7;
1640   }
1641
1642   .right {
1643     float: right;
1644   }
1645
1646   tr td,
1647   tr th {
1648     padding: $lineheight/4;
1649   }
1650   p:last-child,
1651   h2:last-child,
1652   h3:last-child,
1653   ol:last-child,
1654   ul:last-child {
1655     margin-bottom:0;
1656   }
1657   tr td {
1658     height: 30px;
1659     border-right: 1px solid $lightgrey;
1660   }
1661 }
1662
1663 .inbox-row .inbox-mark-read {
1664   display: none;
1665 }
1666
1667 .info-line {
1668   margin-bottom: $lineheight;
1669   padding: $lineheight/4 0px 4px 0px;
1670   border-bottom: 1px solid $grey;
1671
1672   form, form div {
1673     display: inline;
1674   }
1675 }
1676
1677 .info-line .user_thumbnail_tiny {
1678   vertical-align: middle;
1679 }
1680
1681 .inbox-sent {
1682   white-space: nowrap;
1683 }
1684
1685 .inbox-mark-unread,
1686 .inbox-mark-read,
1687 .inbox-delete {
1688   width: 1%;
1689 }
1690
1691 .inbox-row-unread .inbox-mark-unread {
1692   display: none;
1693 }
1694
1695 .messages-show .message-buttons {
1696   margin-top: $lineheight;
1697   margin-bottom: $lineheight * 1.5;
1698   padding-top: $lineheight;
1699   border-top: 1px solid $lightgrey;
1700 }
1701
1702 .messages-show .buttons .mark-unread-button {
1703   border-radius: 0;
1704 }
1705
1706 /* Rules for "flash" notice boxes shown at the top of the content area */
1707
1708 .flash {
1709   padding: $lineheight;
1710
1711   &.error {
1712     background-color: #ff7070;
1713   }
1714
1715   &.warning {
1716     background-color: #ffe0cc;
1717   }
1718
1719   &.notice {
1720     background-color: #CBEEA7;
1721   }
1722
1723   div.message {
1724     display: inline-block;
1725     margin-left: $lineheight / 2;
1726     vertical-align: middle;
1727
1728     p {
1729       margin-top: $lineheight * 0.5;
1730       margin-bottom: $lineheight * 0.5;
1731
1732       &:first-child {
1733         margin-top: 0px;
1734       }
1735
1736       &:last-child {
1737         margin-bottom: 0px;
1738       }
1739     }
1740   }
1741 }
1742
1743 /* Rules for highlighting fields with rails validation errors */
1744
1745 .formError {
1746   display: inline-block;
1747   padding: 5px 10px;
1748   margin-top: 5px;
1749   border-radius: 4px;
1750   font-size: 12px;
1751   color: #fff;
1752   background-color: #ff7070;
1753 }
1754
1755 /* Rules for rails validation error boxes */
1756
1757 #errorExplanation {
1758   width: 400px;
1759   border: 2px solid #ff7070;
1760   padding: 0 $lineheight/2;
1761   margin-bottom: $lineheight;
1762   background-color: #f0f0f0;
1763
1764   h2 {
1765     margin: 0 -10px 10px -10px;
1766     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1767     font-weight: bold;
1768     font-size: 12px;
1769     background-color: #c00;
1770     color: #fff;
1771     text-align: left;
1772   }
1773
1774   p {
1775     color: #333;
1776     margin-bottom: 0px;
1777     padding: $lineheight/4;
1778   }
1779 }
1780
1781 /* Rules for forms */
1782
1783 .standard-form {
1784   fieldset {
1785     margin-bottom: $lineheight;
1786   }
1787   label.standard-label {
1788     display: block;
1789     margin-bottom: $lineheight/4;
1790     font-size: $typeheight;
1791     font-weight: bold;
1792     line-height: 1.5;
1793   }
1794   label.standard-label.secondary {
1795     display: inline-block;
1796     font-weight: normal;
1797   }
1798   .form-help {
1799     font-weight: normal;
1800   }
1801   .form-column {
1802     float: left;
1803     margin-right: 20px;
1804   }
1805   .form-divider {
1806     margin-top: $lineheight;
1807     padding-top: $lineheight;
1808     border-top: 1px solid $lightgrey;
1809   }
1810   .horizontal-list .standard-form-row {
1811     float: left;
1812     padding-right: 10px;
1813   }
1814   .standard-form-row {
1815     margin-bottom: $lineheight/2;
1816   }
1817   .form-list {
1818     margin-bottom: 0;
1819   }
1820   .form-list li {
1821     margin-bottom: 5px;
1822     list-style-type: none;
1823   }
1824   input[type="checkbox"],
1825   input[type="radio"] {
1826     float: left;
1827     margin-top: 5px;
1828   }
1829 }
1830
1831 #remember_me_openid {
1832   display: block;
1833 }
1834
1835 select {
1836   padding: 2px;
1837 }
1838
1839 input[type="checkbox"],
1840 input[type="radio"] {
1841     margin-right: 5px;
1842 }
1843
1844 input[type="text"],
1845 input[type="email"],
1846 input[type="url"],
1847 input[type="password"],
1848 textarea {
1849   color: #222;
1850   background-color: #fff;
1851   border: 1px solid $grey;
1852   border-radius: 3px;
1853   padding: 2px 5px;
1854   margin: 0;
1855   width: 200px;
1856
1857   &.field_with_errors {
1858     border: 2px solid #ff7070;
1859   }
1860 }
1861
1862 textarea {
1863   padding: 5px;
1864   width: 100%;
1865   min-height: 50px;
1866   resize: vertical;
1867 }
1868
1869 /* Rules for user images */
1870
1871 img.user_image {
1872   max-width: 100px;
1873   max-height: 100px;
1874   border: 1px solid $grey;
1875   margin-bottom: $lineheight;
1876   float: left;
1877   margin-right: $lineheight;
1878 }
1879
1880 img.user_thumbnail {
1881   max-width: 50px;
1882   max-height: 50px;
1883   border: 1px solid $grey;
1884   margin-right: $lineheight;
1885 }
1886
1887 img.user_thumbnail_tiny {
1888   width: auto;
1889   height: auto;
1890   max-width: 25px;
1891   max-height: 25px;
1892   border: 1px solid $grey;
1893 }
1894
1895 /* Rules for geo microformats */
1896
1897 abbr.geo {
1898   border-bottom: none;
1899 }
1900
1901 /* General styles for action lists / subnavs / pager navs */
1902
1903 ul.secondary-actions {
1904   font-style: normal;
1905   margin-bottom: 0;
1906   margin-left: 0;
1907   padding: 0;
1908   &.pager {
1909     display: inline-block;
1910     margin-right: 60px;
1911   }
1912   > li {
1913     display: block;
1914     float: left;
1915     list-style: none;
1916     border-left: 1px solid $grey;
1917     padding-left: $lineheight/2;
1918     margin-right: $lineheight/2;
1919     &:first-child {
1920       border-left: 0;
1921       padding-left: 0;
1922     }
1923     &:last-child {
1924       margin-right: 0px;
1925     }
1926   }
1927 }
1928
1929 div.secondary-actions {
1930   padding: 10px;
1931   text-align: center;
1932 }
1933
1934 /* Utility for managing inner content areas */
1935
1936 .inner22 { padding: $lineheight;}
1937
1938 .inner12 { padding: $lineheight/2 $lineheight;}
1939
1940 .inner11 { padding: $lineheight/2;}
1941
1942 .inner20 { padding: $lineheight 0;}
1943
1944 .inner02 { padding: 0 $lineheight;}
1945
1946 /* Utility for general button styles */
1947
1948 input[type="button"],
1949 input[type="submit"],
1950 input[type="reset"],
1951 a.button {
1952   cursor: pointer;
1953   border: 0;
1954   display: inline-block;
1955   padding: $lineheight/4 $lineheight/2;
1956   min-height: 20px + $lineheight/2;
1957   min-width: 120px;
1958   margin: 0 0 $lineheight/2 0;
1959   color: white;
1960   background: $blue;
1961   text-align: center;
1962   border-radius: 2px;
1963   &:hover {
1964     background: darken($blue, $hovercolor);
1965     text-decoration: none;
1966   }
1967   &.deemphasize {
1968     background: $lightblue;
1969     &:hover {
1970       background: darken($lightblue, $hovercolor);
1971     }
1972   }
1973   &:disabled {
1974     background: $lightgrey;
1975     &:hover {
1976       background: $lightgrey;
1977     }
1978   }
1979   &:last-child {
1980     margin-bottom: 0;
1981   }
1982 }
1983
1984 input[type="button"],
1985 input[type="submit"],
1986 input[type="reset"] {
1987   line-height: normal;
1988 }
1989
1990 a.button {
1991   line-height: 20px;
1992 }
1993
1994 .buttons {
1995   min-width: 200px;
1996   input[type="submit"],
1997   input[type="button"],
1998   input[type="reset"],
1999   .button,
2000   .button_to {
2001     box-sizing: border-box;
2002     float: left;
2003     border-radius: 0;
2004     margin:0;
2005     min-width: 75px;
2006     max-width: 180px;
2007     border-right:1px solid white;
2008     text-overflow: ellipsis;
2009     white-space: nowrap;
2010     overflow: hidden;
2011   }
2012   input:first-child,
2013   .button:first-child,
2014   .button_to:first-child {
2015     border-radius:2px 0 0 2px;
2016   }
2017   input:last-child,
2018   .button:last-child,
2019   .button_to:last-child {
2020     border-radius:0 2px 2px 0;
2021     border-right-width: 0;
2022   }
2023   input:only-child,
2024   .button:only-child,
2025   .button_to:only-child,
2026   *[value="Hide"] + input:last-child,
2027   *[value="Hide"] + .button:last-child,
2028   *[value="Hide"] + .button_to:last-child {
2029     border-radius:2px;
2030     border-right-width: 0;
2031   }
2032     /* if a 3-button set has a hidden middle button */
2033   *[value="Hide"] + input:nth-child(3),
2034   *[value="Hide"] + .button:nth-child(3),
2035   *[value="Hide"] + .button_to:nth-child(3) {
2036     border-radius:0 2px 2px 0;
2037     border-right-width: 0;
2038   }
2039   /* if a 3-button set starts with a hidden button */
2040   *[value="Hide"] + input:nth-child(2):not(:last-child),
2041   *[value="Hide"] + .button:nth-child(2):not(:last-child),
2042   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2043     border-radius:2px 0 0 2px;
2044     border-right-width: 1px;
2045   }
2046 }
2047
2048 /* Rules for doing distinct colour of alternate table rows */
2049
2050 .table0,
2051 .item0 {
2052   background: $offwhite;
2053 }
2054
2055 .table1,
2056 .item1 {
2057   background: #fff;
2058 }
2059
2060 /* Rules for OpenID logo */
2061
2062 .openid_logo {
2063   vertical-align: text-bottom;
2064   border: 0;
2065 }
2066
2067 /* Rules for rich text */
2068
2069 .richtext,
2070 .prose {
2071   code {
2072     font-size: 13px;
2073     background: $lightgrey;
2074     padding: 2px 3px;
2075   }
2076
2077   pre {
2078     font-size: 13px;
2079     background: $lightgrey;
2080     padding: 2px 3px;
2081     white-space: pre-wrap;
2082
2083     code {
2084       padding: 0;
2085     }
2086   }
2087
2088   img {
2089     padding: $lineheight;
2090     background-color: $offwhite;
2091     display: block;
2092     max-width: 100%;
2093     margin: auto;
2094   }
2095
2096   blockquote {
2097     border-left: $lineheight solid $offwhite;
2098     padding-left: $lineheight;
2099     margin: 0;
2100     color: $darkgrey;
2101   }
2102 }
2103
2104 .diary_post .richtext {
2105     margin-top: $lineheight;
2106   }
2107
2108 .comments .richtext {
2109   margin-left: 70px;
2110   margin-top: 0;
2111 }
2112
2113 /* Rules for rich text editors */
2114
2115 input.richtext_title[type="text"] {
2116   width: 50%;
2117   width: calc(100% - 235px);
2118
2119   @media only screen and (max-width:768px) {
2120     width: 100%;
2121   }
2122 }
2123
2124 .richtext_container {
2125   margin-bottom: $lineheight;
2126
2127   .richtext_content {
2128     width: 50%;
2129     width: calc(100% - 235px);
2130     display: inline-block;
2131     vertical-align: top;
2132
2133     @media only screen and (max-width:768px) {
2134       width: 100%;
2135     }
2136
2137     .richtext_preview {
2138       display: inline-block;
2139       padding: $lineheight;
2140       background-color: $offwhite;
2141       overflow-x: auto;
2142
2143       &.loading {
2144         background-image: image-url("loading.gif");
2145         background-repeat: no-repeat;
2146         background-position: center;
2147       }
2148
2149       > :first-child {
2150         margin-top: 0px;
2151       }
2152     }
2153   }
2154
2155   .richtext_help {
2156     display: inline-block;
2157     vertical-align: top;
2158     margin-left: 15px;
2159     background-color: $offwhite;
2160     padding: $lineheight/2;
2161     width: 220px;
2162
2163     ul {
2164       margin-bottom: 0;
2165     }
2166
2167     h4.heading, li {
2168       border-bottom: 1px solid $grey;
2169       margin-bottom: $lineheight/4;
2170       padding-bottom: $lineheight/4;
2171     }
2172
2173     li h4, li span, li p {
2174       display: inline-block;
2175       vertical-align: top;
2176       font-size: 11px;
2177     }
2178
2179     li h4 {
2180       width: 40%;
2181       margin: 0;
2182     }
2183
2184     li span, li p {
2185       width: 50%;
2186       margin-left: $lineheight/2;
2187       margin-bottom: $lineheight/4;
2188       white-space: nowrap;
2189     }
2190   }
2191 }
2192
2193 /* Rules for the user notes list */
2194
2195 .note_list {
2196   tr.creator {
2197     background-color: $lightgrey;
2198   }
2199
2200   td {
2201     padding: 3px;
2202   }
2203
2204   p {
2205     margin-bottom: 0px;
2206   }
2207 }
2208
2209 /* Rules for the iD editor */
2210
2211 .id-embed {
2212   width: 100%;
2213   height: 100%;
2214 }
2215
2216 /* Rules for the "Welcome" page */
2217 .site-welcome, .site-fixthemap {
2218   .center {
2219     text-align: center;
2220     .sprite {
2221       float: none;
2222       margin: auto;
2223     }
2224   }
2225
2226   .sprite {
2227     background-image: image-url("welcome-sprite.png");
2228     background-size: 500px 250px;
2229     display: block;
2230     float: left;
2231   }
2232
2233   .icon-list {
2234     padding-bottom: 20px;
2235     div {
2236       margin-bottom: 10px;
2237       p {
2238         padding-top: 10px;
2239       }
2240     }
2241   }
2242   .sprite.small {
2243     width: 50px;
2244     height: 50px;
2245   }
2246
2247   .sprite.x {
2248     /* no-r2 */ background-position: -50px 0;
2249   }
2250
2251   .sprite.term {
2252     margin-right: 10px;
2253     vertical-align: middle;
2254   }
2255
2256   .sprite.node {
2257     /* no-r2 */ background-position: -100px 0;
2258   }
2259
2260   .sprite.way {
2261     /* no-r2 */ background-position: -150px 0;
2262   }
2263
2264   .sprite.tag {
2265     /* no-r2 */ background-position: -200px 0;
2266   }
2267
2268   .sprite.editor {
2269     /* no-r2 */ background-position: -250px 0;
2270   }
2271
2272   .sprite.question {
2273     /* no-r2 */ background-position: -300px 0;
2274   }
2275
2276   .sprite.rules {
2277     /* no-r2 */ background-position: -350px 0;
2278   }
2279
2280   .start-mapping {
2281     margin: auto;
2282     cursor: pointer;
2283     border: none;
2284     padding: 20px 40px;
2285     font-size: 30px;
2286     text-decoration: none;
2287   }
2288
2289   .icon.note {
2290     background-color: #333;
2291     border-radius: 4px;
2292   }
2293 }
2294
2295 .site-about #content {
2296   background-color: $lightgrey;
2297   background-position: 50% 50%;
2298   background-repeat: no-repeat;
2299   background-size: cover;
2300   background-attachment: fixed;
2301
2302
2303   .content-inner {
2304     position: relative;
2305     color: #333;
2306     min-width: 320px;
2307     max-width: 640px;
2308   }
2309
2310   .text {
2311     background: white;
2312     padding: 40px;
2313   }
2314
2315   .attr {
2316     position: relative;
2317     padding: 170px 40px 20px;
2318     background: #333;
2319     background: rgba(0, 0, 0, .8);
2320     margin-bottom: 0;
2321     margin-top: -20px;
2322
2323     h1 {
2324       display: block;
2325       color: white;
2326       font-weight: 300;
2327       font-size: 34px;
2328       span {
2329         color: $vibrant-green;
2330       }
2331     }
2332
2333     .user-image {
2334       position: absolute;
2335       top: 0px;
2336       right: 240px;
2337       left: 0px;
2338       height: 150px;
2339       background-position: 0 50%;
2340       background-repeat: no-repeat;
2341       background-image: image-url('about/osm.png');
2342       background-size: cover;
2343       background-color: $vibrant-green;
2344     }
2345
2346     .byosm {
2347       position: absolute;
2348       top: 0px;
2349       right: 0px;
2350       z-index: 1;
2351       width: 240px;
2352       height: 150px;
2353       padding: 20px 20px 20px 40px;
2354       font: 500 20px/24px Helvetica, Arial, sans-serif;
2355       white-space: nowrap;
2356       color: #fff;
2357       background: $vibrant-green;
2358     }
2359
2360     .byosm span {
2361       display: inline-block;
2362       width: 20px;
2363       margin-left: -20px;
2364     }
2365   }
2366
2367   .icon {
2368     width: 30px;
2369     height: 30px;
2370     margin-right: 10px;
2371     vertical-align: middle;
2372     background: 40px 40px image-url('about/sprite.png') no-repeat;
2373
2374     &.local {
2375       /* no-r2 */
2376       background-position: 0px 0px;
2377     }
2378     &.community {
2379       /* no-r2 */
2380       background-position: 0px -40px;
2381     }
2382     &.open {
2383       /* no-r2 */
2384       background-position: 0px -80px;
2385     }
2386     &.partners {
2387       /* no-r2 */
2388       background-position: 0px -120px;
2389     }
2390     &.infringement {
2391       /* no-r2 */
2392       background-position: 0px -160px;
2393     }
2394     &.legal {
2395       /* no-r2 */
2396       background-position: -45px -160px;
2397     }
2398   }
2399 }
2400
2401 @import 'browse';
2402
2403 @media only screen and (max-width:960px) {
2404   .header-illustration.new-user-arm {
2405     display: none;
2406   }
2407 }
2408
2409 .read-reports {
2410   background: $lightgrey;
2411   opacity: 0.7;
2412 }
2413
2414 .issues-list {
2415   td:nth-child(2) {
2416     white-space: nowrap;
2417   }
2418 }