]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Use badges for the trace visibility labels
[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 trace view */
1500
1501 .trace-show {
1502   .geo {
1503     display: inline;
1504   }
1505 }
1506
1507 /* Rules for the new trace form */
1508
1509 #new_trace {
1510   input[type=text] {
1511     width: 50%;
1512     width: calc(100% - 150px);
1513     max-width: 500px;
1514   }
1515 }
1516
1517 /* Rules for the edit trace form */
1518
1519 .edit_trace {
1520   .form-row p {
1521     margin-bottom: 0px;
1522   }
1523
1524   input[type=text] {
1525     width: 50%;
1526     width: calc(100% - 150px);
1527     max-width: 500px;
1528   }
1529 }
1530
1531 /* Rules for the user profile page */
1532
1533 #userinformation {
1534
1535   min-height: 100px;
1536   .userinformation-inner {
1537     float: left;
1538   }
1539   h2 {
1540     margin-top: 0;
1541   }
1542   .user-description {
1543     width: 100%;
1544     clear: both;
1545   }
1546   .deemphasize {
1547     margin: 0;
1548   }
1549 }
1550
1551 .admin-user-info small {
1552   margin-bottom: $lineheight/2;
1553   display: inline;
1554   margin-right: $lineheight;
1555 }
1556
1557 .activity-block {
1558   clear: left;
1559   border-bottom: 1px solid $grey;
1560   padding-bottom: $lineheight;
1561   float: left;
1562   h3 {
1563     margin-bottom: $lineheight/2;
1564   }
1565 }
1566
1567 .contact-activity {
1568   margin-top: $lineheight;
1569   width: 100%;
1570 }
1571
1572 .activity-details p {
1573   margin-left: 70px;
1574   margin-bottom: 0;
1575 }
1576
1577 #friends-container .contact-activity ul {
1578   margin-left: 70px;
1579 }
1580
1581 .users-show {
1582   // Silly exception; remove when user page is redesigned.
1583   .content-inner {
1584     max-width: none;
1585   }
1586   p#no_home_location {
1587     margin: $lineheight;
1588   }
1589   .user_thumbnail {
1590     margin-top: $lineheight/4;
1591     float: left;
1592   }
1593 }
1594
1595 /* Rules for the user map */
1596
1597 .content_map .leaflet-popup-content {
1598   margin: $lineheight/2;
1599   min-height: 50px;
1600 }
1601
1602 /* Rules for user popups on maps */
1603
1604 .user_popup {
1605   min-width: 200px;
1606   p {
1607     padding: 0 0 5px 0;
1608     margin-top: 0 0 0 60px;
1609     font-size: 12px;
1610   }
1611   img.user_thumbnail {
1612     float: left;
1613     margin: 0 $lineheight/2 0 0;
1614   }
1615 }
1616
1617 /* Rules for the user list */
1618
1619 #user_list {
1620   width: 100%;
1621
1622   tr {
1623     vertical-align: middle;
1624   }
1625
1626   p {
1627     margin-top: 0px;
1628     margin-bottom: 0px;
1629   }
1630 }
1631
1632 #user_list_actions {
1633   float: right;
1634   margin-top: $lineheight/2;
1635 }
1636
1637 /* Rules for the diary list page */
1638
1639 .diary_post {
1640   position: relative;
1641   padding-top: $lineheight;
1642   padding-bottom: $lineheight/2;
1643   border-top: 1px solid $grey;
1644
1645   &:first-of-type {
1646     margin-top: $lineheight/2;
1647   }
1648
1649   &.deemphasize {
1650     background-color: #fee;
1651   }
1652
1653   .post_heading {
1654     margin-bottom: $lineheight;
1655
1656     h2 {
1657       margin-top: 0;
1658       margin-bottom: $lineheight/2;
1659       font-size: 24px;
1660     }
1661   }
1662
1663   img.user_thumbnail {
1664     float: left;
1665   }
1666
1667   small.deemphasize {
1668     float: left;
1669     display: block;
1670   }
1671 }
1672
1673 .pagination {
1674   padding-top: $lineheight;
1675 }
1676
1677 /* Rules for the diary entry page */
1678
1679 .diary_entries {
1680   #map {
1681     position: relative;
1682     width: 90%;
1683     height: 400px;
1684     border: 1px solid $grey;
1685     display: none;
1686     margin-bottom: $lineheight;
1687   }
1688   #newcomment {
1689     border-top: 1px solid $grey;
1690     padding-top: $lineheight;
1691     margin-top: $lineheight/2;
1692   }
1693   .comments {
1694     max-width: 740px;
1695   }
1696   .diary-comment {
1697     border-top: 1px dashed $grey;
1698     padding-top: $lineheight/2;
1699     padding-bottom: $lineheight/2;
1700     &:first-child {
1701       margin-top: $lineheight/2;
1702       padding-top: $lineheight;
1703       border-top: 1px solid $grey;
1704     }
1705     &.deemphasize {
1706       background-color: #fee;
1707     }
1708     p {
1709       margin-bottom: $lineheight/2;
1710     }
1711     .comment-heading {
1712       margin-bottom: 0;
1713       margin-top: 0;
1714     }
1715   }
1716 }
1717
1718 .diary_entries-show img.user_thumbnail {
1719   float: left;
1720 }
1721
1722
1723 .diary-subscribe-buttons {
1724   position:relative;
1725   top: -30px;
1726   left: 130px;
1727 }
1728
1729 /* Rules for the log in page */
1730
1731 #login_auth_buttons {
1732   margin-bottom: 0;
1733 }
1734
1735 #login_auth_buttons li {
1736   float: left;
1737   padding: $lineheight/4 $lineheight/2;
1738 }
1739
1740 /* Rules for the account confirmation page */
1741
1742 .users-terms {
1743   .legale {
1744     border: 1px solid $grey;
1745     padding: $lineheight;
1746     margin-bottom: $lineheight;
1747     overflow: auto;
1748     height: 20em;
1749
1750     li {
1751       list-style: inherit;
1752     }
1753
1754     ol ol {
1755       list-style-type: lower-alpha;
1756     }
1757   }
1758
1759   #decline {
1760     background: $lightblue;
1761     &:hover {
1762       background: darken($lightblue, $hovercolor);
1763     }
1764   }
1765 }
1766
1767 /* Rules for the account settings page */
1768
1769 #accountForm .user_map {
1770   position: relative;
1771   width: 500px;
1772   height: 400px;
1773   border: 1px solid $grey;
1774 }
1775
1776 #accountForm .user_image {
1777   margin-bottom: 0;
1778 }
1779
1780 #accountForm #user_image {
1781   margin-left: 20px;
1782 }
1783
1784 #accountForm ul.accountImage-options {
1785   margin-left: 120px;
1786 }
1787
1788 .nohome .location {
1789   display: none;
1790 }
1791
1792 #homerow .message {
1793   display: none;
1794 }
1795
1796 .nohome .message {
1797   display: inline !important;
1798 }
1799
1800 .content_map.settings_map {
1801   width: 50%;
1802   float: none;
1803 }
1804
1805 /* Rules for the oauth settings page */
1806
1807 .oauth_clients .buttons .oauth-edit {
1808   border-radius: 2px 0 0 2px;
1809 }
1810
1811 .oauth_clients .buttons .oauth-delete {
1812   border-radius: 0 2px 2px 0;
1813 }
1814
1815 /* Rules for the oauth authorization page */
1816
1817 .oauth-authorize ul {
1818   list-style: none;
1819 }
1820
1821 /* Rules for messages pages */
1822
1823 .messages {
1824   width: 100%;
1825   border: 1px solid $grey;
1826
1827   input[type="submit"] {
1828     margin: auto;
1829   }
1830   tbody tr {
1831     border-top: 1px solid $grey;
1832   }
1833
1834   .inbox-row {
1835     background: $offwhite;
1836   }
1837
1838   .inbox-row-unread {
1839     background:#CBEEA7;
1840   }
1841
1842   .right {
1843     float: right;
1844   }
1845
1846   tr td,
1847   tr th {
1848     padding: $lineheight/4;
1849   }
1850   p:last-child,
1851   h2:last-child,
1852   h3:last-child,
1853   ol:last-child,
1854   ul:last-child {
1855     margin-bottom:0;
1856   }
1857   tr td {
1858     height: 30px;
1859     border-right: 1px solid $lightgrey;
1860   }
1861 }
1862
1863 .inbox-row .inbox-mark-read {
1864   display: none;
1865 }
1866
1867 .info-line {
1868   margin-bottom: $lineheight;
1869   padding: $lineheight/4 0px 4px 0px;
1870   border-bottom: 1px solid $grey;
1871
1872   form, form div {
1873     display: inline;
1874   }
1875 }
1876
1877 .info-line .user_thumbnail_tiny {
1878   vertical-align: middle;
1879 }
1880
1881 .inbox-sent {
1882   white-space: nowrap;
1883 }
1884
1885 .inbox-mark-unread,
1886 .inbox-mark-read,
1887 .inbox-delete {
1888   width: 1%;
1889 }
1890
1891 .inbox-row-unread .inbox-mark-unread {
1892   display: none;
1893 }
1894
1895 .messages-show .message-buttons {
1896   margin-top: $lineheight;
1897   margin-bottom: $lineheight * 1.5;
1898   padding-top: $lineheight;
1899   border-top: 1px solid $lightgrey;
1900 }
1901
1902 .messages-show .buttons .mark-unread-button {
1903   border-radius: 0;
1904 }
1905
1906 /* Rules for "flash" notice boxes shown at the top of the content area */
1907
1908 .flash {
1909   padding: $lineheight;
1910
1911   &.error {
1912     background-color: #ff7070;
1913   }
1914
1915   &.warning {
1916     background-color: #ffe0cc;
1917   }
1918
1919   &.notice {
1920     background-color: #CBEEA7;
1921   }
1922
1923   div.message {
1924     display: inline-block;
1925     margin-left: $lineheight / 2;
1926     vertical-align: middle;
1927
1928     p {
1929       margin-top: $lineheight * 0.5;
1930       margin-bottom: $lineheight * 0.5;
1931
1932       &:first-child {
1933         margin-top: 0px;
1934       }
1935
1936       &:last-child {
1937         margin-bottom: 0px;
1938       }
1939     }
1940   }
1941 }
1942
1943 /* Rules for highlighting fields with rails validation errors */
1944
1945 .formError {
1946   display: inline-block;
1947   padding: 5px 10px;
1948   margin-top: 5px;
1949   border-radius: 4px;
1950   font-size: 12px;
1951   color: #fff;
1952   background-color: #ff7070;
1953 }
1954
1955 /* Rules for rails validation error boxes */
1956
1957 #errorExplanation {
1958   width: 400px;
1959   border: 2px solid #ff7070;
1960   padding: 0 $lineheight/2;
1961   margin-bottom: $lineheight;
1962   background-color: #f0f0f0;
1963
1964   h2 {
1965     margin: 0 -10px 10px -10px;
1966     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1967     font-weight: bold;
1968     font-size: 12px;
1969     background-color: #c00;
1970     color: #fff;
1971     text-align: left;
1972   }
1973
1974   p {
1975     color: #333;
1976     margin-bottom: 0px;
1977     padding: $lineheight/4;
1978   }
1979
1980   ul {
1981     padding-left: $lineheight;
1982
1983     li {
1984       font-size: 12px;
1985       list-style: disc;
1986     }
1987   }
1988 }
1989
1990 /* Rules for forms */
1991
1992 .standard-form {
1993   fieldset {
1994     margin-bottom: $lineheight;
1995   }
1996   label.standard-label {
1997     display: block;
1998     margin-bottom: $lineheight/4;
1999     font-size: $typeheight;
2000     font-weight: bold;
2001     line-height: 1.5;
2002   }
2003   label.standard-label.secondary {
2004     display: inline-block;
2005     font-weight: normal;
2006   }
2007   .form-help {
2008     font-weight: normal;
2009   }
2010   .form-column {
2011     float: left;
2012     margin-right: 20px;
2013   }
2014   .form-divider {
2015     margin-top: $lineheight;
2016     padding-top: $lineheight;
2017     border-top: 1px solid $lightgrey;
2018   }
2019   .horizontal-list .form-row {
2020     float: left;
2021     padding-right: 10px;
2022   }
2023   .form-row {
2024     margin-bottom: $lineheight/2;
2025   }
2026   .form-list {
2027     margin-bottom: 0;
2028   }
2029   .form-list li {
2030     margin-bottom: 5px;
2031    }
2032   input[type="checkbox"],
2033   input[type="radio"] {
2034     float: left;
2035     margin-top: 5px;
2036   }
2037 }
2038
2039 #remember_me_openid {
2040   display: block;
2041 }
2042
2043 select {
2044   padding: 2px;
2045 }
2046
2047 input[type="checkbox"],
2048 input[type="radio"] {
2049     margin-right: 5px;
2050 }
2051
2052 input[type="text"],
2053 input[type="email"],
2054 input[type="url"],
2055 input[type="password"],
2056 textarea {
2057   color: #222;
2058   background-color: #fff;
2059   border: 1px solid $grey;
2060   padding: 2px 5px;
2061   margin: 0;
2062   width: 200px;
2063
2064   &.field_with_errors {
2065     border: 2px solid #ff7070;
2066   }
2067 }
2068
2069 textarea {
2070   padding: 5px;
2071   width: 100%;
2072 }
2073
2074 /* Rules for user images */
2075
2076 img.user_image {
2077   max-width: 100px;
2078   max-height: 100px;
2079   border: 1px solid $grey;
2080   margin-bottom: $lineheight;
2081   float: left;
2082   margin-right: $lineheight;
2083 }
2084
2085 img.user_thumbnail {
2086   max-width: 50px;
2087   max-height: 50px;
2088   border: 1px solid $grey;
2089   margin-right: $lineheight;
2090 }
2091
2092 img.user_thumbnail_tiny {
2093   width: auto;
2094   height: auto;
2095   max-width: 25px;
2096   max-height: 25px;
2097   border: 1px solid $grey;
2098 }
2099
2100 /* Rules for geo microformats */
2101
2102 abbr.geo {
2103   border-bottom: none;
2104 }
2105
2106 /* Rules for RSS buttons */
2107
2108 .rsssmall {
2109   position: relative;
2110   top: 3px;
2111 }
2112
2113 /* General styles for action lists / subnavs / pager navs */
2114
2115 ul.secondary-actions {
2116   font-style: normal;
2117   margin-bottom: 0;
2118   margin-left: 0;
2119   &.pager {
2120     display: inline-block;
2121     margin-right: 60px;
2122   }
2123   > li {
2124     display: block;
2125     float: left;
2126     list-style: none;
2127     border-left: 1px solid $grey;
2128     padding-left: $lineheight/2;
2129     margin-right: $lineheight/2;
2130     &:first-child {
2131       border-left: 0;
2132       padding-left: 0;
2133     }
2134     &:last-child {
2135       margin-right: 0px;
2136     }
2137   }
2138 }
2139
2140 div.secondary-actions {
2141   padding: 10px;
2142   text-align: center;
2143 }
2144
2145 /* Utility for managing inner content areas */
2146
2147 .inner22 { padding: $lineheight;}
2148
2149 .inner12 { padding: $lineheight/2 $lineheight;}
2150
2151 .inner11 { padding: $lineheight/2;}
2152
2153 .inner20 { padding: $lineheight 0;}
2154
2155 .inner02 { padding: 0 $lineheight;}
2156
2157 /* Utility for general button styles */
2158
2159 input[type="button"],
2160 input[type="submit"],
2161 input[type="reset"],
2162 a.button {
2163   cursor: pointer;
2164   border: 0;
2165   display: inline-block;
2166   padding: $lineheight/4 $lineheight/2;
2167   min-height: 20px + $lineheight/2;
2168   min-width: 120px;
2169   margin: 0 0 $lineheight/2 0;
2170   color: white;
2171   background: $blue;
2172   text-align: center;
2173   border-radius: 2px;
2174   &:hover {
2175     background: darken($blue, $hovercolor);
2176     text-decoration: none;
2177   }
2178   &.deemphasize {
2179     background: $lightblue;
2180     &:hover {
2181       background: darken($lightblue, $hovercolor);
2182     }
2183   }
2184   &:disabled {
2185     background: $lightgrey;
2186     &:hover {
2187       background: $lightgrey;
2188     }
2189   }
2190   &:last-child {
2191     margin-bottom: 0;
2192   }
2193 }
2194
2195 input[type="button"],
2196 input[type="submit"],
2197 input[type="reset"] {
2198   line-height: normal;
2199 }
2200
2201 a.button {
2202   line-height: 20px;
2203 }
2204
2205 .buttons {
2206   min-width: 200px;
2207   input[type="submit"],
2208   input[type="button"],
2209   input[type="reset"],
2210   .button,
2211   .button_to {
2212     box-sizing: border-box;
2213     float: left;
2214     border-radius: 0;
2215     margin:0;
2216     min-width: 75px;
2217     max-width: 180px;
2218     border-right:1px solid white;
2219     text-overflow: ellipsis;
2220     white-space: nowrap;
2221     overflow: hidden;
2222   }
2223   input:first-child,
2224   .button:first-child,
2225   .button_to:first-child {
2226     border-radius:2px 0 0 2px;
2227   }
2228   input:last-child,
2229   .button:last-child,
2230   .button_to:last-child {
2231     border-radius:0 2px 2px 0;
2232     border-right-width: 0;
2233   }
2234   input:only-child,
2235   .button:only-child,
2236   .button_to:only-child,
2237   *[value="Hide"] + input:last-child,
2238   *[value="Hide"] + .button:last-child,
2239   *[value="Hide"] + .button_to:last-child {
2240     border-radius:2px;
2241     border-right-width: 0;
2242   }
2243     /* if a 3-button set has a hidden middle button */
2244   *[value="Hide"] + input:nth-child(3),
2245   *[value="Hide"] + .button:nth-child(3),
2246   *[value="Hide"] + .button_to:nth-child(3) {
2247     border-radius:0 2px 2px 0;
2248     border-right-width: 0;
2249   }
2250   /* if a 3-button set starts with a hidden button */
2251   *[value="Hide"] + input:nth-child(2):not(:last-child),
2252   *[value="Hide"] + .button:nth-child(2):not(:last-child),
2253   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2254     border-radius:2px 0 0 2px;
2255     border-right-width: 1px;
2256   }
2257 }
2258
2259 /* Rules for doing distinct colour of alternate table rows */
2260
2261 .table0,
2262 .item0 {
2263   background: $offwhite;
2264 }
2265
2266 .table1,
2267 .item1 {
2268   background: #fff;
2269 }
2270
2271 /* Rules for OpenID logo */
2272
2273 .openid_logo {
2274   vertical-align: text-bottom;
2275   border: 0;
2276 }
2277
2278 /* Rules for rich text */
2279
2280 .richtext,
2281 .prose {
2282   h1, h2 {
2283     padding-bottom: $lineheight/2;
2284     border-bottom: 1px dashed $grey;
2285     margin-bottom: $lineheight/2;
2286   }
2287
2288   h1 {
2289     font-size: 24px;
2290   }
2291
2292   h2 {
2293     font-size: 18px;
2294   }
2295
2296   h3 {
2297     font-size: $typeheight;
2298   }
2299
2300   code {
2301     font-size: 13px;
2302     background: $lightgrey;
2303     padding: 2px 3px;
2304   }
2305
2306   pre {
2307     font-size: 13px;
2308     background: $lightgrey;
2309     padding: 2px 3px;
2310     white-space: pre-wrap;
2311
2312     code {
2313       padding: 0;
2314     }
2315   }
2316
2317   img {
2318     padding: $lineheight;
2319     background-color: $offwhite;
2320     display: block;
2321     max-width: 100%;
2322     margin: auto;
2323   }
2324
2325   blockquote {
2326     border-left: $lineheight solid $offwhite;
2327     padding-left: $lineheight;
2328     margin: 0;
2329     color: $darkgrey;
2330   }
2331
2332   ul, ol {
2333     padding-left: $lineheight;
2334     margin-bottom: $lineheight;
2335     margin-left: $lineheight;
2336   }
2337
2338   ul > li {
2339     list-style: disc;
2340   }
2341
2342   ol > li {
2343     list-style: decimal;
2344   }
2345 }
2346
2347 .diary_post .richtext {
2348     margin-top: $lineheight;
2349   }
2350
2351 .comments .richtext {
2352   margin-left: 70px;
2353   margin-top: 0;
2354 }
2355
2356 /* Rules for rich text editors */
2357
2358 input.richtext_title[type="text"] {
2359   width: 50%;
2360   width: calc(100% - 235px);
2361
2362   @media only screen and (max-width:768px) {
2363     width: 100%;
2364   }
2365 }
2366
2367 .richtext_container {
2368   margin-bottom: $lineheight;
2369
2370   .richtext_content {
2371     width: 50%;
2372     width: calc(100% - 235px);
2373     display: inline-block;
2374     vertical-align: top;
2375
2376     @media only screen and (max-width:768px) {
2377       width: 100%;
2378     }
2379
2380     .richtext_preview {
2381       display: inline-block;
2382       padding: $lineheight;
2383       background-color: $offwhite;
2384       overflow-x: auto;
2385
2386       &.loading {
2387         background-image: image-url("loading.gif");
2388         background-repeat: no-repeat;
2389         background-position: center;
2390       }
2391
2392       > :first-child {
2393         margin-top: 0px;
2394       }
2395     }
2396   }
2397
2398   .richtext_help {
2399     display: inline-block;
2400     vertical-align: top;
2401     margin-left: 15px;
2402     background-color: $offwhite;
2403     padding: $lineheight/2;
2404     width: 220px;
2405
2406     ul {
2407       margin-bottom: 0;
2408     }
2409
2410     h4.heading, li {
2411       border-bottom: 1px solid $grey;
2412       margin-bottom: $lineheight/4;
2413       padding-bottom: $lineheight/4;
2414     }
2415
2416     li h4, li span, li p {
2417       display: inline-block;
2418       vertical-align: top;
2419       font-size: 11px;
2420     }
2421
2422     li h4 {
2423       width: 40%;
2424       margin: 0;
2425     }
2426
2427     li span, li p {
2428       width: 50%;
2429       margin-left: $lineheight/2;
2430       margin-bottom: $lineheight/4;
2431       white-space: nowrap;
2432     }
2433   }
2434 }
2435
2436 /* Rules for the user notes list */
2437
2438 .note_list {
2439   tr.creator {
2440     background-color: $lightgrey;
2441   }
2442
2443   td {
2444     padding: 3px;
2445   }
2446
2447   p {
2448     margin-bottom: 0px;
2449   }
2450 }
2451
2452 /* Rules for the iD editor */
2453
2454 .id-embed {
2455   width: 100%;
2456   height: 100%;
2457 }
2458
2459 /* Rules for dropdown menus */
2460
2461 .dropdown {
2462   position: relative;
2463 }
2464
2465 .dropdown-toggle {
2466   *margin-bottom: -3px;
2467 }
2468
2469 .dropdown-toggle:active,
2470 .open .dropdown-toggle {
2471   outline: 0;
2472 }
2473
2474 .caret {
2475   display: inline-block;
2476   width: 0;
2477   height: 0;
2478   vertical-align: top;
2479   border-top: 4px solid #000000;
2480   border-right: 4px solid transparent;
2481   border-left: 4px solid transparent;
2482   content: "";
2483 }
2484
2485 .dropdown .caret {
2486   margin-top: 8px;
2487   margin-left: 2px;
2488 }
2489
2490 .dropdown-menu {
2491   position: absolute;
2492   top: 100%;
2493   left: -1px;
2494   z-index: 1000;
2495   display: none;
2496   float: left;
2497   min-width: 160px;
2498   padding: 5px 0;
2499   margin: 0;
2500   list-style: none;
2501   background-color: #ffffff;
2502   border: 1px solid $grey;
2503   border-radius: 0 3px 3px;
2504   *border-right-width: 2px;
2505   *border-bottom-width: 2px;
2506   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2507   background-clip: padding-box;
2508 }
2509
2510 .dropdown-menu.pull-right {
2511   right: 0;
2512   left: auto;
2513 }
2514
2515 .dropdown-menu .divider {
2516   *width: 100%;
2517   height: 1px;
2518   margin: 9px 1px;
2519   *margin: -5px 0 5px;
2520   overflow: hidden;
2521   background-color: $lightgrey;
2522   border-bottom: 1px solid #ffffff;
2523 }
2524
2525 .dropdown-menu > li > a {
2526   display: block;
2527   padding: 3px 10px;
2528   clear: both;
2529   font-weight: normal;
2530   line-height: 20px;
2531   color: #333333;
2532   white-space: nowrap;
2533 }
2534
2535 .dropdown-menu > li > a:hover,
2536 .dropdown-menu > li > a:focus,
2537 .dropdown-submenu:hover > a,
2538 .dropdown-submenu:focus > a {
2539   color: #ffffff;
2540   text-decoration: none;
2541   background-color: $green;
2542 }
2543
2544 .dropdown-menu > .active > a,
2545 .dropdown-menu > .active > a:hover,
2546 .dropdown-menu > .active > a:focus {
2547   color: #ffffff;
2548   text-decoration: none;
2549   background-color: $green;
2550   outline: 0;
2551 }
2552
2553 .dropdown-menu > .disabled > a,
2554 .dropdown-menu > .disabled > a:hover,
2555 .dropdown-menu > .disabled > a:focus {
2556   color: $darkgrey;
2557 }
2558
2559 .dropdown-menu > .disabled > a:hover,
2560 .dropdown-menu > .disabled > a:focus {
2561   text-decoration: none;
2562   cursor: default;
2563   background-color: transparent;
2564   background-image: none;
2565 }
2566
2567 .open {
2568   *z-index: 1000;
2569 }
2570
2571 .open > .dropdown-menu {
2572   display: block;
2573 }
2574
2575 .dropdown-backdrop {
2576   position: fixed;
2577   top: 0;
2578   right: 0;
2579   bottom: 0;
2580   left: 0;
2581   z-index: 990;
2582 }
2583
2584 /* Rules for the "Welcome" page */
2585 .site-welcome, .site-fixthemap {
2586   .center {
2587     text-align: center;
2588     .sprite {
2589       float: none;
2590       margin: auto;
2591     }
2592   }
2593
2594   .sprite {
2595     background-image: image-url("welcome-sprite.png");
2596     background-size: 500px 250px;
2597     display: block;
2598     float: left;
2599   }
2600
2601   .icon-list {
2602     padding-bottom: 20px;
2603     div {
2604       margin-bottom: 10px;
2605       p {
2606         padding-top: 10px;
2607       }
2608     }
2609   }
2610   .sprite.small {
2611     width: 50px;
2612     height: 50px;
2613   }
2614
2615   .sprite.x {
2616     /* no-r2 */ background-position: -50px 0;
2617   }
2618
2619   .sprite.term {
2620     margin-right: 10px;
2621     vertical-align: middle;
2622   }
2623
2624   .sprite.node {
2625     /* no-r2 */ background-position: -100px 0;
2626   }
2627
2628   .sprite.way {
2629     /* no-r2 */ background-position: -150px 0;
2630   }
2631
2632   .sprite.tag {
2633     /* no-r2 */ background-position: -200px 0;
2634   }
2635
2636   .sprite.editor {
2637     /* no-r2 */ background-position: -250px 0;
2638   }
2639
2640   .sprite.question {
2641     /* no-r2 */ background-position: -300px 0;
2642   }
2643
2644   .sprite.rules {
2645     /* no-r2 */ background-position: -350px 0;
2646   }
2647
2648   .start-mapping {
2649     margin: auto;
2650     cursor: pointer;
2651     border: none;
2652     padding: 20px 40px;
2653     font-size: 30px;
2654     text-decoration: none;
2655   }
2656
2657   .note-box {
2658     margin-top: 20px;
2659     background-color: $offwhite;
2660   }
2661
2662   .icon.note {
2663     background-color: #333;
2664     border-radius: 4px;
2665   }
2666 }
2667
2668 .site-about #content {
2669   background-color: $lightgrey;
2670   background-position: 50% 50%;
2671   background-repeat: no-repeat;
2672   background-size: cover;
2673   background-attachment: fixed;
2674
2675   .caption {
2676     max-width: 200px;
2677     font: 13px/20px Helvetica, Arial, sans-serif;
2678     position: fixed;
2679     text-align: right;
2680     right: 20px;
2681     bottom: 60px;
2682     text-shadow: #000 0px 1px 5px;
2683     color: $lightgrey;
2684     opacity: 0.8;
2685     display: none;
2686   }
2687
2688   .caption a {
2689     color: white;
2690     white-space: nowrap;
2691     text-decoration: none;
2692   }
2693
2694   a.next {
2695     display: block;
2696     position: fixed;
2697     right: 10px;
2698     bottom: 10px;
2699     width: 40px;
2700     height: 40px;
2701     border-radius: 5px;
2702     text-indent: -9999px;
2703     overflow: hidden;
2704     background: image-url('about/sprite.png') -120px 0px no-repeat;
2705     background-color: #000;
2706     background-color: rgba(0, 0, 0, 0.5);
2707   }
2708
2709   .content-inner {
2710     position: relative;
2711     color: #333;
2712     min-width: 320px;
2713     max-width: 640px;
2714
2715     .section {
2716       margin-bottom: 30px;
2717     }
2718
2719     .section:last-child {
2720       margin-bottom: 0;
2721     }
2722   }
2723
2724   .text {
2725     background: white;
2726     padding: 40px;
2727   }
2728
2729   .attr {
2730     position: relative;
2731     padding: 170px 40px 20px;
2732     background: #333;
2733     background: rgba(0, 0, 0, .8);
2734     margin-bottom: 0;
2735     margin-top: -20px;
2736
2737     h1 {
2738       display: block;
2739       color: white;
2740       font-weight: 300;
2741       font-size: 34px;
2742       span {
2743         color: $vibrant-green;
2744       }
2745     }
2746
2747     .user-image {
2748       position: absolute;
2749       top: 0px;
2750       right: 240px;
2751       left: 0px;
2752       height: 150px;
2753       background-position: 0 50%;
2754       background-repeat: no-repeat;
2755       background-image: image-url('about/osm.png');
2756       background-size: cover;
2757       background-color: $vibrant-green;
2758     }
2759
2760     .byosm {
2761       position: absolute;
2762       top: 0px;
2763       right: 0px;
2764       z-index: 1;
2765       width: 240px;
2766       height: 150px;
2767       padding: 20px 20px 20px 40px;
2768       font: 500 20px/24px Helvetica, Arial, sans-serif;
2769       white-space: nowrap;
2770       color: #fff;
2771       background: $vibrant-green;
2772     }
2773
2774     .byosm span {
2775       display: inline-block;
2776       width: 20px;
2777       margin-left: -20px;
2778     }
2779   }
2780
2781   h2 {
2782     margin-bottom: 10px;
2783   }
2784
2785   .icon {
2786     width: 30px;
2787     height: 30px;
2788     margin-right: 10px;
2789     vertical-align: middle;
2790     background: 40px 40px image-url('about/sprite.png') no-repeat;
2791
2792     &.local {
2793       /* no-r2 */
2794       background-position: 0px 0px;
2795     }
2796     &.community {
2797       /* no-r2 */
2798       background-position: 0px -40px;
2799     }
2800     &.open {
2801       /* no-r2 */
2802       background-position: 0px -80px;
2803     }
2804     &.partners {
2805       /* no-r2 */
2806       background-position: 0px -120px;
2807     }
2808     &.infringement {
2809       /* no-r2 */
2810       background-position: 0px -160px;
2811     }
2812     &.legal {
2813       /* no-r2 */
2814       background-position: -45px -160px;
2815     }
2816   }
2817 }
2818
2819 @import 'browse';
2820
2821 @media only screen and (max-width:960px) {
2822   .header-illustration.new-user-arm {
2823     display: none;
2824   }
2825 }
2826
2827 .read-reports {
2828   background: $lightgrey;
2829   opacity: 0.7;
2830 }
2831
2832 .report-related-block {
2833   display:inline-block;
2834 }
2835
2836 .report-block {
2837   width:475px;
2838   float:left;
2839   margin-right:100px;
2840 }
2841
2842 .related-reports {
2843   width: 280px;
2844   float: right;
2845
2846   ul {
2847     padding-left: $lineheight;
2848     margin-bottom: 0;
2849
2850     li {
2851       list-style: disc;
2852     }
2853   }
2854 }
2855
2856 .issue-comments {
2857   width:475px;
2858 }
2859
2860 .issues-list {
2861   td:nth-child(2) {
2862     white-space: nowrap;
2863   }
2864 }
2865
2866 .report-disclaimer {
2867   background: #fff1f0;
2868   color: #d85030;
2869   border-color: rgba(216, 80, 48, 0.3);
2870   padding: 10px 20px;
2871   margin-bottom: $lineheight;
2872
2873   ul {
2874     padding-left: $lineheight;
2875     margin-bottom: 0;
2876
2877     li {
2878       list-style: disc;
2879     }
2880   }
2881 }