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