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