]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Merge pull request #1779 from stefanb/tag-colour-preview
[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     .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 #ddd;
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: #eee;
1334     border: 1px solid #ccc;
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 #ccc;
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 #ccc;
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 #ccc;
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 #ccc;
1720     display: none;
1721     margin-bottom: $lineheight;
1722   }
1723   #newcomment {
1724     border-top: 1px solid #ccc;
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 #ccc;
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 #ccc;
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 #ccc;
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 #ccc;
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 #ddd;
1861
1862   input[type="submit"] {
1863     margin: auto;
1864   }
1865   tbody tr {
1866     border-top: 1px solid #ccc;
1867   }
1868
1869   .inbox-row {
1870     background: #f8f8ff;
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 #ccc;
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 #ccc;
2095   padding: 2px 5px;
2096   margin: 0;
2097   width: 200px;
2098
2099   &.field_with_errors {
2100     border: 2px solid #ff7070;
2101   }
2102 }
2103
2104 textarea {
2105   padding: 5px;
2106   width: 100%;
2107 }
2108
2109 /* Rules for user images */
2110
2111 img.user_image {
2112   max-width: 100px;
2113   max-height: 100px;
2114   border: 1px solid #ccc;
2115   margin-bottom: $lineheight;
2116   float: left;
2117   margin-right: $lineheight;
2118 }
2119
2120 img.user_thumbnail {
2121   max-width: 50px;
2122   max-height: 50px;
2123   border: 1px solid #ccc;
2124   margin-right: $lineheight;
2125 }
2126
2127 img.user_thumbnail_tiny {
2128   width: auto;
2129   height: auto;
2130   max-width: 25px;
2131   max-height: 25px;
2132   border: 1px solid #ccc;
2133 }
2134
2135 /* Rules for geo microformats */
2136
2137 abbr.geo {
2138   border-bottom: none;
2139 }
2140
2141 /* Rules for RSS buttons */
2142
2143 .rsssmall {
2144   position: relative;
2145   top: 3px;
2146 }
2147
2148 /* General styles for action lists / subnavs / pager navs */
2149
2150 ul.secondary-actions {
2151   font-style: normal;
2152   margin-bottom: 0;
2153   margin-left: 0;
2154   &.pager {
2155     display: inline-block;
2156     margin-right: 60px;
2157   }
2158   > li {
2159     display: block;
2160     float: left;
2161     list-style: none;
2162     border-left: 1px solid #ccc;
2163     padding-left: $lineheight/2;
2164     margin-right: $lineheight/2;
2165     &:first-child {
2166       border-left: 0;
2167       padding-left: 0;
2168     }
2169     &:last-child {
2170       margin-right: 0px;
2171     }
2172   }
2173 }
2174
2175 div.secondary-actions {
2176   padding: 10px;
2177   text-align: center;
2178 }
2179
2180 /* Utility for managing inner content areas */
2181
2182 .inner22 { padding: $lineheight;}
2183
2184 .inner12 { padding: $lineheight/2 $lineheight;}
2185
2186 .inner11 { padding: $lineheight/2;}
2187
2188 .inner20 { padding: $lineheight 0;}
2189
2190 .inner02 { padding: 0 $lineheight;}
2191
2192 /* Utility for general button styles */
2193
2194 input[type="button"],
2195 input[type="submit"],
2196 input[type="reset"],
2197 a.button {
2198   cursor: pointer;
2199   border: 0;
2200   display: inline-block;
2201   padding: $lineheight/4 $lineheight/2;
2202   min-height: 20px + $lineheight/2;
2203   min-width: 120px;
2204   margin: 0 0 $lineheight/2 0;
2205   color: white;
2206   background: $blue;
2207   text-align: center;
2208   border-radius: 2px;
2209   &:hover {
2210     background: darken($blue, $hovercolor);
2211     text-decoration: none;
2212   }
2213   &.deemphasize {
2214     background: $lightblue;
2215     &:hover {
2216       background: darken($lightblue, $hovercolor);
2217     }
2218   }
2219   &:disabled {
2220     background: $lightgrey;
2221     &:hover {
2222       background: $lightgrey;
2223     }
2224   }
2225   &:last-child {
2226     margin-bottom: 0;
2227   }
2228 }
2229
2230 input[type="button"],
2231 input[type="submit"],
2232 input[type="reset"] {
2233   line-height: normal;
2234 }
2235
2236 a.button {
2237   line-height: 20px;
2238 }
2239
2240 .buttons {
2241   min-width: 200px;
2242   input[type="submit"],
2243   input[type="button"],
2244   input[type="reset"],
2245   .button,
2246   .button_to {
2247     box-sizing: border-box;
2248     float: left;
2249     border-radius: 0;
2250     margin:0;
2251     min-width: 75px;
2252     max-width: 180px;
2253     border-right:1px solid white;
2254     text-overflow: ellipsis;
2255     white-space: nowrap;
2256     overflow: hidden;
2257   }
2258   input:first-child,
2259   .button:first-child,
2260   .button_to:first-child {
2261     border-radius:2px 0 0 2px;
2262   }
2263   input:last-child,
2264   .button:last-child,
2265   .button_to:last-child {
2266     border-radius:0 2px 2px 0;
2267     border-right-width: 0;
2268   }
2269   input:only-child,
2270   .button:only-child,
2271   .button_to:only-child,
2272   *[value="Hide"] + input:last-child,
2273   *[value="Hide"] + .button:last-child,
2274   *[value="Hide"] + .button_to:last-child {
2275     border-radius:2px;
2276     border-right-width: 0;
2277   }
2278     /* if a 3-button set has a hidden middle button */
2279   *[value="Hide"] + input:nth-child(3),
2280   *[value="Hide"] + .button:nth-child(3),
2281   *[value="Hide"] + .button_to:nth-child(3) {
2282     border-radius:0 2px 2px 0;
2283     border-right-width: 0;
2284   }
2285   /* if a 3-button set starts with a hidden button */
2286   *[value="Hide"] + input:nth-child(2):not(:last-child),
2287   *[value="Hide"] + .button:nth-child(2):not(:last-child),
2288   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2289     border-radius:2px 0 0 2px;
2290     border-right-width: 1px;
2291   }
2292 }
2293
2294 /* Rules for doing distinct colour of alternate table rows */
2295
2296 .table0,
2297 .item0 {
2298   background: $offwhite;
2299 }
2300
2301 .table1,
2302 .item1 {
2303   background: #fff;
2304 }
2305
2306 /* Rules for OpenID logo */
2307
2308 .openid_logo {
2309   vertical-align: text-bottom;
2310   border: 0;
2311 }
2312
2313 /* Rules for rich text */
2314
2315 .richtext,
2316 .prose {
2317   h1, h2 {
2318     padding-bottom: $lineheight/2;
2319     border-bottom: 1px dashed #cccccc;
2320     margin-bottom: $lineheight/2;
2321   }
2322
2323   h1 {
2324     font-size: 24px;
2325   }
2326
2327   h2 {
2328     font-size: 18px;
2329   }
2330
2331   h3 {
2332     font-size: $typeheight;
2333   }
2334
2335   code {
2336     font-size: 13px;
2337     background: #e8e8e8;
2338     padding: 2px 3px;
2339   }
2340
2341   pre {
2342     font-size: 13px;
2343     background: #e8e8e8;
2344     padding: 2px 3px;
2345     white-space: pre-wrap;
2346
2347     code {
2348       padding: 0;
2349     }
2350   }
2351
2352   img {
2353     padding: $lineheight;
2354     background-color: $offwhite;
2355     display: block;
2356     max-width: 100%;
2357     margin: auto;
2358   }
2359
2360   blockquote {
2361     border-left: $lineheight solid $offwhite;
2362     padding-left: $lineheight;
2363     margin: 0;
2364     color: #7E7E7E;
2365   }
2366
2367   ul, ol {
2368     padding-left: $lineheight;
2369     margin-bottom: $lineheight;
2370     margin-left: $lineheight;
2371   }
2372
2373   ul > li {
2374     list-style: disc;
2375   }
2376
2377   ol > li {
2378     list-style: decimal;
2379   }
2380 }
2381
2382 .diary_post .richtext {
2383     margin-top: $lineheight;
2384   }
2385
2386 .comments .richtext {
2387   margin-left: 70px;
2388   margin-top: 0;
2389 }
2390
2391 /* Rules for rich text editors */
2392
2393 input.richtext_title[type="text"] {
2394   width: 50%;
2395   width: calc(100% - 235px);
2396
2397   @media only screen and (max-width:768px) {
2398     width: 100%;
2399   }
2400 }
2401
2402 .richtext_container {
2403   margin-bottom: $lineheight;
2404
2405   .richtext_content {
2406     width: 50%;
2407     width: calc(100% - 235px);
2408     display: inline-block;
2409     vertical-align: top;
2410
2411     @media only screen and (max-width:768px) {
2412       width: 100%;
2413     }
2414
2415     .richtext_preview {
2416       display: inline-block;
2417       padding: $lineheight;
2418       background-color: $offwhite;
2419       overflow-x: auto;
2420
2421       &.loading {
2422         background-image: image-url("loading.gif");
2423         background-repeat: no-repeat;
2424         background-position: center;
2425       }
2426
2427       > :first-child {
2428         margin-top: 0px;
2429       }
2430     }
2431   }
2432
2433   .richtext_help {
2434     display: inline-block;
2435     vertical-align: top;
2436     margin-left: 15px;
2437     background-color: #f8f8ff;
2438     padding: $lineheight/2;
2439     width: 220px;
2440
2441     ul {
2442       margin-bottom: 0;
2443     }
2444
2445     h4.heading, li {
2446       border-bottom: 1px solid #ccc;
2447       margin-bottom: $lineheight/4;
2448       padding-bottom: $lineheight/4;
2449     }
2450
2451     li h4, li span, li p {
2452       display: inline-block;
2453       vertical-align: top;
2454       font-size: 11px;
2455     }
2456
2457     li h4 {
2458       width: 40%;
2459       margin: 0;
2460     }
2461
2462     li span, li p {
2463       width: 50%;
2464       margin-left: $lineheight/2;
2465       margin-bottom: $lineheight/4;
2466       white-space: nowrap;
2467     }
2468   }
2469 }
2470
2471 /* Rules for the user notes list */
2472
2473 .note_list {
2474   tr.creator {
2475     background-color: #eeeeee;
2476   }
2477
2478   td {
2479     padding: 3px;
2480   }
2481
2482   p {
2483     margin-bottom: 0px;
2484   }
2485 }
2486
2487 /* Rules for the iD editor */
2488
2489 .id-embed {
2490   width: 100%;
2491   height: 100%;
2492 }
2493
2494 /* Rules for dropdown menus */
2495
2496 .dropdown {
2497   position: relative;
2498 }
2499
2500 .dropdown-toggle {
2501   *margin-bottom: -3px;
2502 }
2503
2504 .dropdown-toggle:active,
2505 .open .dropdown-toggle {
2506   outline: 0;
2507 }
2508
2509 .caret {
2510   display: inline-block;
2511   width: 0;
2512   height: 0;
2513   vertical-align: top;
2514   border-top: 4px solid #000000;
2515   border-right: 4px solid transparent;
2516   border-left: 4px solid transparent;
2517   content: "";
2518 }
2519
2520 .dropdown .caret {
2521   margin-top: 8px;
2522   margin-left: 2px;
2523 }
2524
2525 .dropdown-menu {
2526   position: absolute;
2527   top: 100%;
2528   left: -1px;
2529   z-index: 1000;
2530   display: none;
2531   float: left;
2532   min-width: 160px;
2533   padding: 5px 0;
2534   margin: 0;
2535   list-style: none;
2536   background-color: #ffffff;
2537   border: 1px solid #ccc;
2538   border-radius: 0 3px 3px;
2539   *border-right-width: 2px;
2540   *border-bottom-width: 2px;
2541   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2542   background-clip: padding-box;
2543 }
2544
2545 .dropdown-menu.pull-right {
2546   right: 0;
2547   left: auto;
2548 }
2549
2550 .dropdown-menu .divider {
2551   *width: 100%;
2552   height: 1px;
2553   margin: 9px 1px;
2554   *margin: -5px 0 5px;
2555   overflow: hidden;
2556   background-color: #e5e5e5;
2557   border-bottom: 1px solid #ffffff;
2558 }
2559
2560 .dropdown-menu > li > a {
2561   display: block;
2562   padding: 3px 10px;
2563   clear: both;
2564   font-weight: normal;
2565   line-height: 20px;
2566   color: #333333;
2567   white-space: nowrap;
2568 }
2569
2570 .dropdown-menu > li > a:hover,
2571 .dropdown-menu > li > a:focus,
2572 .dropdown-submenu:hover > a,
2573 .dropdown-submenu:focus > a {
2574   color: #ffffff;
2575   text-decoration: none;
2576   background-color: $green;
2577 }
2578
2579 .dropdown-menu > .active > a,
2580 .dropdown-menu > .active > a:hover,
2581 .dropdown-menu > .active > a:focus {
2582   color: #ffffff;
2583   text-decoration: none;
2584   background-color: $green;
2585   outline: 0;
2586 }
2587
2588 .dropdown-menu > .disabled > a,
2589 .dropdown-menu > .disabled > a:hover,
2590 .dropdown-menu > .disabled > a:focus {
2591   color: #999999;
2592 }
2593
2594 .dropdown-menu > .disabled > a:hover,
2595 .dropdown-menu > .disabled > a:focus {
2596   text-decoration: none;
2597   cursor: default;
2598   background-color: transparent;
2599   background-image: none;
2600 }
2601
2602 .open {
2603   *z-index: 1000;
2604 }
2605
2606 .open > .dropdown-menu {
2607   display: block;
2608 }
2609
2610 .dropdown-backdrop {
2611   position: fixed;
2612   top: 0;
2613   right: 0;
2614   bottom: 0;
2615   left: 0;
2616   z-index: 990;
2617 }
2618
2619 /* Rules for the "Welcome" page */
2620 .site-welcome, .site-fixthemap {
2621   .center {
2622     text-align: center;
2623     .sprite {
2624       float: none;
2625       margin: auto;
2626     }
2627   }
2628
2629   .sprite {
2630     background-image: image-url("welcome-sprite.png");
2631     background-size: 500px 250px;
2632     display: block;
2633     float: left;
2634   }
2635
2636   .icon-list {
2637     padding-bottom: 20px;
2638     div {
2639       margin-bottom: 10px;
2640       p {
2641         padding-top: 10px;
2642       }
2643     }
2644   }
2645   .sprite.small {
2646     width: 50px;
2647     height: 50px;
2648   }
2649
2650   .sprite.x {
2651     /* no-r2 */ background-position: -50px 0;
2652   }
2653
2654   .sprite.term {
2655     margin-right: 10px;
2656     vertical-align: middle;
2657   }
2658
2659   .sprite.node {
2660     /* no-r2 */ background-position: -100px 0;
2661   }
2662
2663   .sprite.way {
2664     /* no-r2 */ background-position: -150px 0;
2665   }
2666
2667   .sprite.tag {
2668     /* no-r2 */ background-position: -200px 0;
2669   }
2670
2671   .sprite.editor {
2672     /* no-r2 */ background-position: -250px 0;
2673   }
2674
2675   .sprite.question {
2676     /* no-r2 */ background-position: -300px 0;
2677   }
2678
2679   .sprite.rules {
2680     /* no-r2 */ background-position: -350px 0;
2681   }
2682
2683   .start-mapping {
2684     margin: auto;
2685     cursor: pointer;
2686     border: none;
2687     padding: 20px 40px;
2688     font-size: 30px;
2689     text-decoration: none;
2690   }
2691
2692   .note-box {
2693     margin-top: 20px;
2694     background-color: $offwhite;
2695   }
2696
2697   .icon.note {
2698     background-color: #333;
2699     border-radius: 4px;
2700   }
2701 }
2702
2703 .site-about #content {
2704   //background-color: #000;
2705   background-color: #eee;
2706   background-position: 50% 50%;
2707   background-repeat: no-repeat;
2708   background-size: cover;
2709   background-attachment: fixed;
2710
2711   .caption {
2712     max-width: 200px;
2713     font: 13px/20px Helvetica, Arial, sans-serif;
2714     position: fixed;
2715     text-align: right;
2716     right: 20px;
2717     bottom: 60px;
2718     text-shadow: #000 0px 1px 5px;
2719     color: #eee;
2720     opacity: 0.8;
2721     display: none;
2722   }
2723
2724   .caption a {
2725     color: white;
2726     white-space: nowrap;
2727     text-decoration: none;
2728   }
2729
2730   a.next {
2731     display: block;
2732     position: fixed;
2733     right: 10px;
2734     bottom: 10px;
2735     width: 40px;
2736     height: 40px;
2737     border-radius: 5px;
2738     text-indent: -9999px;
2739     overflow: hidden;
2740     background: image-url('about/sprite.png') -120px 0px no-repeat;
2741     background-color: #000;
2742     background-color: rgba(0, 0, 0, 0.5);
2743   }
2744
2745   .content-inner {
2746     position: relative;
2747     color: #333;
2748     min-width: 320px;
2749     max-width: 640px;
2750
2751     .section {
2752       margin-bottom: 30px;
2753     }
2754
2755     .section:last-child {
2756       margin-bottom: 0;
2757     }
2758   }
2759
2760   .text {
2761     background: white;
2762     padding: 40px;
2763   }
2764
2765   .attr {
2766     position: relative;
2767     padding: 170px 40px 20px;
2768     background: #333;
2769     background: rgba(0, 0, 0, .8);
2770     margin-bottom: 0;
2771     margin-top: -20px;
2772
2773     h1 {
2774       display: block;
2775       color: white;
2776       font-weight: 300;
2777       font-size: 34px;
2778       span {
2779         color: #76c551;
2780       }
2781     }
2782
2783     .user-image {
2784       position: absolute;
2785       top: 0px;
2786       right: 240px;
2787       left: 0px;
2788       height: 150px;
2789       background-position: 0 50%;
2790       background-repeat: no-repeat;
2791       background-image: image-url('about/osm.png');
2792       background-size: cover;
2793       background-color: #76c551;
2794     }
2795
2796     .byosm {
2797       position: absolute;
2798       top: 0px;
2799       right: 0px;
2800       z-index: 1;
2801       width: 240px;
2802       height: 150px;
2803       padding: 20px 20px 20px 40px;
2804       font: 500 20px/24px Helvetica, Arial, sans-serif;
2805       white-space: nowrap;
2806       color: #fff;
2807       background: #76c551;
2808     }
2809
2810     .byosm span {
2811       display: inline-block;
2812       width: 20px;
2813       margin-left: -20px;
2814     }
2815   }
2816
2817   h2 {
2818     margin-bottom: 10px;
2819   }
2820
2821   .icon {
2822     width: 30px;
2823     height: 30px;
2824     margin-right: 10px;
2825     vertical-align: middle;
2826     background: 40px 40px image-url('about/sprite.png') no-repeat;
2827
2828     &.local {
2829       /* no-r2 */
2830       background-position: 0px 0px;
2831     }
2832     &.community {
2833       /* no-r2 */
2834       background-position: 0px -40px;
2835     }
2836     &.open {
2837       /* no-r2 */
2838       background-position: 0px -80px;
2839     }
2840     &.partners {
2841       /* no-r2 */
2842       background-position: 0px -120px;
2843     }
2844     &.infringement {
2845       /* no-r2 */
2846       background-position: 0px -160px;
2847     }
2848     &.legal {
2849       /* no-r2 */
2850       background-position: -45px -160px;
2851     }
2852   }
2853 }
2854
2855 @import 'browse';
2856
2857 @media only screen and (max-width:960px) {
2858   .header-illustration.new-user-arm {
2859     display: none;
2860   }
2861 }
2862
2863 .read-reports {
2864   background: #eee;
2865   opacity: 0.7;
2866 }
2867
2868 .report-related-block {
2869   display:inline-block;
2870 }
2871
2872 .report-block {
2873   width:475px;
2874   float:left;
2875   margin-right:100px;
2876 }
2877
2878 .related-reports {
2879   width: 280px;
2880   float: right;
2881
2882   ul {
2883     padding-left: $lineheight;
2884     margin-bottom: 0;
2885
2886     li {
2887       list-style: disc;
2888     }
2889   }
2890 }
2891
2892 .issue-comments {
2893   width:475px;
2894 }
2895
2896 .issues-list {
2897   td:nth-child(2) {
2898     white-space: nowrap;
2899   }
2900 }
2901
2902 .report-disclaimer {
2903   background: #fff1f0;
2904   color: #d85030;
2905   border-color: rgba(216, 80, 48, 0.3);
2906   padding: 10px 20px;
2907   margin-bottom: $lineheight;
2908
2909   ul {
2910     padding-left: $lineheight;
2911     margin-bottom: 0;
2912
2913     li {
2914       list-style: disc;
2915     }
2916   }
2917 }