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