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