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