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