]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Simplify close icon for routing panel and fix validation error
[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
788 .attribution_license,
789 .attribution_project {
790   text-align: left;
791 }
792
793 .attribution_notice {
794   text-align: center;
795 }
796
797 .donate-attr { color: darken($green, 10%) !important; }
798
799 /* Rules for the sidebar */
800
801 .sidebar_heading {
802   position: relative;
803   padding: $lineheight/2 $lineheight;
804   // background: $offwhite;
805   // border-bottom: 1px solid #ccc;
806   > .close { 
807     float: right;
808     margin-top: 2px;
809     cursor: pointer; 
810   }
811 }
812
813 #browse_status {
814   p {
815     padding: $lineheight;
816   }
817
818   input {
819     display: block;
820     margin-left: auto;
821     margin-right: auto;
822   }
823 }
824
825 #sidebar {
826   #sidebar_loader,
827   .loader,
828   .load_more {
829     text-align: center;
830     margin: $lineheight auto;
831     width: 40px;
832     display: block;
833   }
834 }
835
836 /* Rules for the search and direction forms */
837
838 header .search_forms,
839 .directions_form {
840   display: none;
841 }
842
843 .search_form,
844 .directions_form {
845   position: relative;
846   padding: $lineheight/2;
847   background-color: $lightgrey;
848
849   .query_wrapper {
850     position: relative;
851     overflow: hidden;
852     border-radius: 2px 0 0 2px;
853   }
854
855   input[type=text] {
856     width: 100%;
857     height: 30px;
858     transition: 300ms linear;
859   }
860
861   input[type=text].overflow {
862     border-right: none;
863   }
864
865   input:focus {
866     outline: none;
867     box-shadow: 0px 0px 7px #9ED485;
868   }
869
870   input[type=submit].float {
871     float: right;
872     width: auto;
873     min-width: 0;
874     border-radius: 0 2px 2px 0;
875   }
876
877   select {
878     /* this next line is to polyfill the vertical alignment of text within a select element,
879      * which is different between firefox and chrome. */
880     padding: 0.3em 0;
881   }
882
883   .query_options {
884     text-align: right;
885     font-size: 10px;
886     color: $blue;
887   }
888
889   .describe_location {
890     position: absolute;
891     top: 6px;
892     right: 6px;
893     font-size: 10px;
894     color: $blue;
895   }
896
897   .switch_link {
898     float: right;
899     width: auto;
900     min-width: 0;
901     margin-left: 6px;
902   }
903
904   img.button {
905     display: block;
906   }
907
908   span.force_width {
909     width: 100%;
910     padding-right: 25px;
911     display: block;
912   }
913
914   select.routing_engines {
915     min-height: 30px;
916     margin: 0px 0px 5px 25px;
917   }
918
919   input.routing_go {
920     min-width: 100px;
921     float: right;
922   }
923
924   div.line {
925     width: 100%;
926     margin: 0px 0px 5px 0px;
927   }
928 }
929
930 /* Rules for the map key which appears in the popout sidebar */
931
932 #mapkey {
933  .mapkey-table-key img {
934     display: block;
935     margin-left: auto;
936     margin-right: auto;
937   }
938   td {
939     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
940   }
941 }
942
943 /* Rules for search sidebar */
944
945 .search_results_entry {
946   ul li {
947     border-bottom: $keyline;
948     cursor: pointer;
949     &:first-child { border-top: $keyline; }
950     &.selected { background: $list-highlight; }
951   }
952
953   .search_details {
954     display: block;
955     float: right;
956     text-align: right;
957     margin-top: 0.2em;
958     margin-left: 0.5em;
959   }
960 }
961
962 .search_results_error {
963   color: #f00;
964 }
965
966 /* Rules for routing */
967
968 #sidebar_content>table {
969     padding: 5px 20px 10px 15px;
970     width: 100%;
971     border-collapse: separate;
972 }
973
974 div.direction {
975   background-image: image-url('routing-sprite.png');
976   width: 20px;
977   height: 20px;
978   background-repeat: no-repeat;
979 }
980 @for $i from 1 through 17 {
981 div.direction.i#{$i} { background-position: #{($i)*-20+20}px 0px; }
982 }
983
984 p#routing_summary {
985     padding: 0 $lineheight $lineheight/4;
986 }
987
988 td.instruction, td.distance {
989     padding-top: $lineheight/5;
990     padding-bottom: $lineheight/5;
991     border-bottom: 1px solid #DDD;
992 }
993 td.distance {
994     color: #BBB;
995     text-align: right;
996     font-size: x-small;
997 }
998 tr.turn {
999     cursor: pointer;
1000 }
1001 tr.turn:hover {
1002     background: $list-highlight;
1003 }
1004 .routing_engines, #route_from, #route_to { margin-left: 25px; }
1005 .routing_marker { width: 15px; position: absolute; cursor: move; }
1006
1007 /* Rules for entity history */
1008
1009 #sidebar_content {
1010   .browse_details {
1011     position: relative;
1012     border-bottom: $keyline;
1013   }
1014 }
1015
1016 .browse_status {
1017   display: none;
1018 }
1019
1020 /* Rules for the history sidebar */
1021
1022 #sidebar .changesets {
1023   li {
1024     padding: 15px 20px;
1025     border-bottom: 1px solid #ddd;
1026     cursor: pointer;
1027
1028     &.selected { background: $list-highlight; }
1029     /* color is derived from changeset bbox fillColor in history.js */
1030   }
1031
1032   h4 {
1033     margin: 0;
1034     a {
1035       color: #000;
1036     }
1037   }
1038 }
1039
1040 /* Rules for the browse sidebar */
1041
1042 #sidebar_content {
1043   .browse-section {
1044     padding: $lineheight/2 $lineheight;
1045     border-bottom: 1px solid #ddd;
1046
1047     h4:first-child {
1048       margin-top: 0;
1049       word-wrap: break-word;
1050     }
1051   }
1052
1053   .browse-section:last-of-type {
1054     border-bottom: none;
1055   }
1056
1057   .paginate {
1058     float: right;
1059     padding: 1px 6px;
1060     border: 1px solid #eee;
1061     border-radius: 3px;
1062   }
1063
1064   .paginate ul {
1065     padding-left: 20px;
1066   }
1067
1068   .browse-field {
1069     margin-bottom: 10px;
1070
1071     h4 {
1072       padding: 5px 0 5px 10px;
1073       font-size: 12px;
1074       border: 1px solid #CCC;
1075       border-radius: 4px 4px 0 0;
1076       background-color: #F6F6F6;
1077     }
1078
1079     p {
1080       padding: 7px 10px;
1081       font-size: 12px;
1082       background-color: #FFF;
1083       border: 1px solid #CCC;
1084       border-top: 0;
1085       border-radius: 0 0 4px 4px;
1086     }
1087   }
1088
1089   .browse-tag-list {
1090     background-color: #F6F6F6;
1091     border: 1px solid #ddd;
1092     border-radius: 3px;
1093     font-size: 12px;
1094     table-layout: fixed;
1095     border-collapse: separate;
1096
1097     th, td {
1098       border-bottom: 1px solid #ddd;
1099     }
1100
1101     tr:last-child th, tr:last-child td {
1102       border-bottom: 0;
1103     }
1104
1105     .browse-tag-k,
1106     .browse-tag-v {
1107       width: 50%;
1108       padding: 6px 10px;
1109       word-wrap: break-word;
1110     }
1111
1112     .browse-tag-k {
1113       font-weight: 500;
1114       background-color: #F6F6F6;
1115     }
1116
1117     .browse-tag-v {
1118       border-left: 1px solid #ddd;
1119       background-color: #fff;
1120     }
1121   }
1122
1123   .warning {
1124     margin: $lineheight/2 0;
1125     padding: $lineheight/2;
1126     font-size: 90%;
1127   }
1128
1129   .note-comments li, .changeset-comments li {
1130     margin: $lineheight/2 0;
1131
1132     p {
1133       margin-left: 10px;
1134     }
1135   }
1136
1137   .comments-header {
1138     float: left;
1139   }
1140
1141   .subscribe-buttons {
1142     float: left;
1143     margin: 18px 10px 10px;
1144     min-width: 80px;
1145   }
1146
1147   .subscribe-buttons input {
1148     font-size: 90%;
1149     line-height: 15px;
1150     min-height: 20px;
1151   }
1152
1153   span.action-button:hover {
1154     cursor: pointer;
1155     text-decoration: underline;
1156   }
1157
1158   .note-description {
1159     overflow: hidden;
1160     margin: 0 0 10px 10px;
1161   }
1162
1163   .query-intro p {
1164     padding: $lineheight $lineheight $lineheight/2;
1165   }
1166
1167   .query-results {
1168     display: none;
1169
1170     h3 {
1171       padding: $lineheight $lineheight $lineheight/2;
1172       margin: 0;
1173     }
1174
1175     ul {
1176       li {
1177         padding: 15px 20px;
1178         border-bottom: 1px solid #ddd;
1179
1180         &.query-result {
1181           cursor: pointer;
1182         }
1183
1184         &.selected {
1185           background: $list-highlight;
1186         }
1187       }
1188     }
1189   }
1190 }
1191
1192 /* Rules for export sidebar */
1193
1194 .export_form {
1195   padding: $lineheight;
1196
1197   .export_area_inputs,
1198   .export_button {
1199     text-align: center;
1200   }
1201
1202   .export_area_inputs {
1203     margin-bottom: $lineheight/2;
1204     input[type="text"] {
1205       width: 80px;
1206       text-align: center;
1207       margin-bottom: 5px;
1208     }
1209   }
1210
1211   .export_boxy {
1212     background: #eee;
1213     border: 1px solid #ccc;
1214     border-radius: 3px;
1215
1216     #maxlat { margin-top: -1px; }
1217     #minlon {
1218       float: left;
1219       margin-left: -1px;
1220     }
1221     #maxlon {
1222       float: right;
1223       margin-right: -1px;
1224     }
1225     #minlat { margin-bottom: 0; }
1226   }
1227
1228   .export_bound {
1229     margin: $lineheight/4;
1230   }
1231
1232   .export_button {
1233     margin-top: $lineheight;
1234     margin-bottom: $lineheight;
1235   }
1236
1237   dl {
1238     padding-left: $lineheight/2;
1239     dd {
1240       margin-left: 0;
1241       margin-bottom: 10px;
1242     }
1243   }
1244 }
1245
1246 /* Rules for the routing sidebar */
1247
1248 #sidebar_content {
1249   #routing_credit {
1250     text-align: center;
1251     padding: 0.5em;
1252   }
1253 }
1254
1255 /* Rules for edit pages */
1256
1257 .site-edit {
1258   #content {
1259     position: absolute;
1260     top: $headerHeight;
1261     bottom: 0;
1262     width: 100%;
1263   }
1264
1265   #map {
1266     height: 100%;
1267     overflow: hidden;
1268   }
1269 }
1270
1271 /* Rules for non-map content pages */
1272
1273 .content-heading {
1274   background: $lightgrey;
1275   
1276   h1 { font-size: 22px; }
1277 }
1278
1279 .content-body {
1280   h1, h2, h3, p, ul, ol {
1281     margin-bottom: $lineheight;
1282   }
1283
1284   h1, h2, h3 {
1285     margin-top: $lineheight/2;
1286   }
1287 }
1288
1289 .content-inner {
1290   position: relative;
1291   max-width: 900px;
1292   margin: auto;
1293   padding: $lineheight;
1294 }
1295
1296 /* Overrides for pages that use new layout conventions */
1297
1298 .user-new,
1299 .user-create,
1300 .user-terms {
1301   .content-body .content-inner {
1302     padding: 0;
1303   }
1304 }
1305
1306 .user-new,
1307 .user-create,
1308 .user-terms,
1309 .user-confirm {
1310   .content-heading .content-inner {
1311     height: 200px;
1312   }
1313 }
1314
1315 .header-illustration {
1316   background-position: 0 0;
1317   background-repeat: no-repeat;
1318   position: absolute;
1319   height: 200px;
1320   width: 100%;
1321   left: 0;
1322   bottom: 0;
1323
1324   &.new-user-main {
1325     background-image: image-url("sign-up-illustration.png");
1326   }
1327
1328   &.confirm-main {
1329     background-image: image-url("confirm-illustration.png");
1330   }
1331
1332   &.new-user-terms {
1333     background-image: image-url("terms-illustration.png");
1334   }
1335
1336   &.new-user-arm {
1337     height: 110px;
1338     width: 130px;
1339     left: 260px;
1340     top: 160px;
1341     background-image: image-url("sign-up-illustration-arm.png");
1342     z-index: 100;
1343   }
1344 }
1345
1346 #content.maximised {
1347   top: 0;
1348   left: 0;
1349   right: 0;
1350   bottom: 0;
1351   border: 0;
1352   z-index: 2000;
1353 }
1354
1355 /* Rules for small maps in content areas */
1356
1357 .content_map {
1358   position: relative;
1359   width: 45%;
1360   height: 400px;
1361   border: 1px solid #ccc;
1362   margin-bottom: $lineheight;
1363   float: right;
1364 }
1365
1366 /* Rules for the trace list shown by the traces tab etc */
1367
1368 #trace_list {
1369   font-size: $lineheight/2;
1370   border-width: 0px;
1371   text-align: right;
1372
1373   .trace_summary {
1374     font-size: 12px;
1375     color: gray;
1376   }
1377
1378   .trace_pending {
1379     color: red;
1380   }
1381
1382   .trace_public {
1383     color: green;
1384   }
1385
1386   .trace_identifiable {
1387     color: green;
1388   }
1389
1390   .trace_trackable {
1391     color: red;
1392   }
1393
1394   .trace_private {
1395     color: red;
1396   }
1397 }
1398
1399 /* Rules for the new trace form */
1400
1401 #new_trace {
1402   input[type=text] {
1403     width: 50%;
1404     width: calc(100% - 150px);
1405     max-width: 500px;
1406   }
1407 }
1408
1409 /* Rules for the edit trace form */
1410
1411 .edit_trace {
1412   .form-row p {
1413     margin-bottom: 0px;
1414   }
1415
1416   input[type=text] {
1417     width: 50%;
1418     width: calc(100% - 150px);
1419     max-width: 500px;
1420   }
1421 }
1422
1423 /* Rules for the user profile page */
1424
1425 #userinformation {
1426
1427   min-height: 100px;
1428   .userinformation-inner {
1429     float: left;
1430   }
1431   h2 {
1432     margin-top: 0;
1433   }
1434   .user-description {
1435     width: 100%;
1436     clear: both;
1437   }
1438   .deemphasize {
1439     margin: 0;
1440   }
1441 }
1442
1443 .admin-user-info small {
1444   margin-bottom: $lineheight/2;
1445   display: inline;
1446   margin-right: $lineheight;
1447 }
1448
1449 .activity-block {
1450   clear: left;
1451   border-bottom: 1px solid #ccc;
1452   padding-bottom: $lineheight;
1453   float: left;
1454   h3 {
1455     margin-bottom: $lineheight/2;
1456   }
1457 }
1458
1459 .contact-activity {
1460   margin-top: $lineheight;
1461   width: 100%;
1462 }
1463
1464 .activity-details p {
1465   margin-left: 70px;
1466   margin-bottom: 0;
1467 }
1468
1469 #friends-container .contact-activity ul {
1470   margin-left: 70px;
1471 }
1472
1473 .user-view {
1474   // Silly exception; remove when user page is redesigned.
1475   .content-inner {
1476     max-width: none;
1477   }
1478   p#no_home_location {
1479     margin: $lineheight;
1480   }
1481   .user_thumbnail {
1482     margin-top: $lineheight/4;
1483     float: left;
1484   }
1485 }
1486
1487 /* Rules for the user map */
1488
1489 .content_map .leaflet-popup-content {
1490   margin: $lineheight/2;
1491   min-height: 50px;
1492 }
1493
1494 /* Rules for user popups on maps */
1495
1496 .user_popup {
1497   min-width: 200px;
1498   p {
1499     padding: 0 0 5px 0;
1500     margin-top: 0 0 0 60px;
1501     font-size: 12px;
1502   }
1503   img.user_thumbnail {
1504     float: left;
1505     margin: 0 $lineheight/2 0 0;
1506   }
1507 }
1508
1509 /* Rules for the user list */
1510
1511 #user_list {
1512   font-size: $lineheight/2;
1513   width: 100%;
1514
1515   tr {
1516     vertical-align: middle;
1517   }
1518
1519   p {
1520     margin-top: 0px;
1521     margin-bottom: 0px;
1522   }
1523 }
1524
1525 #user_list_actions {
1526   float: right;
1527   margin-top: $lineheight/2;
1528 }
1529
1530 /* Rules for the diary list page */
1531
1532 .diary_post {
1533   position: relative;
1534   margin-top: $lineheight/2;
1535   padding-top: $lineheight;
1536   border-top: 1px solid #ccc;
1537
1538   .post_heading {
1539     margin-bottom: $lineheight;
1540
1541     h2 {
1542       margin-top: 0;
1543       margin-bottom: $lineheight/2;
1544       font-size: 24px;
1545     }
1546   }
1547
1548   img.user_thumbnail {
1549     float: left;
1550   }
1551
1552   small.deemphasize {
1553     float: left;
1554     display: block;
1555   }
1556
1557   ul.secondary-actions {
1558     display: inline-block;
1559   }
1560 }
1561
1562 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1563   display: inline;
1564 }
1565
1566 /* Rules for the diary entry page */
1567
1568 .diary_entry {
1569   #map {
1570     position: relative;
1571     width: 90%;
1572     height: 400px;
1573     border: 1px solid #ccc;
1574     display: none;
1575     margin-bottom: $lineheight;
1576   }
1577   #newcomment {
1578     border-top: 1px solid #ccc;
1579     padding-top: $lineheight;
1580     margin-top: $lineheight/2;
1581   }
1582   .comments {
1583     max-width: 740px;
1584   }
1585   .diary-comment {
1586     margin-top: $lineheight/2;
1587     border-top: 1px dashed #ccc;
1588     padding-top: $lineheight/2;
1589     &:first-child {
1590       margin-top: $lineheight;
1591       padding-top: $lineheight;
1592       border-top: 1px solid #ccc;
1593     }
1594     p {
1595       margin-bottom: $lineheight/2;
1596     }
1597     .comment-heading {
1598       margin-bottom: 0;
1599       margin-top: 0;
1600     }
1601   }
1602 }
1603
1604 .diary_entry-view img.user_thumbnail {
1605   float: left;
1606 }
1607
1608 /* Rules for the log in page */
1609
1610 #login_auth_buttons {
1611   margin-bottom: 0;
1612 }
1613
1614 #login_auth_buttons li {
1615   float: left;
1616   padding: $lineheight/4 $lineheight/2;
1617 }
1618
1619 /* Rules for the account confirmation page */
1620
1621 .user-terms {
1622   .legale {
1623     border: 1px solid #ccc;
1624     padding: $lineheight;
1625     margin-bottom: $lineheight;
1626     overflow: auto;
1627     height: 20em;
1628   }
1629
1630   #decline {
1631     background: $lightblue;
1632     &:hover {
1633       background: darken($lightblue, $hovercolor);
1634     }
1635   }
1636 }
1637
1638 /* Rules for the account settings page */
1639
1640 #accountForm .user_map {
1641   position: relative;
1642   width: 500px;
1643   height: 400px;
1644   border: 1px solid #ccc;
1645 }
1646
1647 #accountForm .user_image {
1648   margin-bottom: 0;
1649 }
1650
1651 #accountForm #user_image {
1652   margin-left: 20px;
1653 }
1654
1655 #accountForm ul.accountImage-options {
1656   margin-left: 120px;
1657 }
1658
1659 .nohome .location {
1660   display: none;
1661 }
1662
1663 #homerow .message {
1664   display: none;
1665 }
1666
1667 .nohome .message {
1668   display: inline !important;
1669 }
1670
1671 .content_map.settings_map {
1672   width: 50%;
1673   float: none;
1674 }
1675
1676 /* Rules for the oauth settings page */
1677
1678 .oauth_clients .buttons .oauth-edit {
1679   border-radius: 2px 0 0 2px;
1680 }
1681
1682 .oauth_clients .buttons .oauth-delete {
1683   border-radius: 0 2px 2px 0;
1684 }
1685
1686 /* Rules for messages pages */
1687
1688 .messages {
1689   width: 100%;
1690   border: 1px solid #ddd;
1691
1692   input[type="submit"] {
1693     margin: auto;
1694   }
1695   tbody tr {
1696     border-top: 1px solid #ccc;
1697   }
1698
1699   .inbox-row {
1700     background: #f8f8ff;
1701   }
1702
1703   .inbox-row-unread {
1704     background:#CBEEA7;
1705   }
1706
1707   .right {
1708     float: right;
1709   }
1710
1711   tr td,
1712   tr th {
1713     padding: $lineheight/4;
1714   }
1715   p:last-child,
1716   h2:last-child,
1717   h3:last-child,
1718   ol:last-child,
1719   ul:last-child {
1720     margin-bottom:0;
1721   }
1722   tr td {
1723     height: 30px;
1724     border-right: 1px solid $lightgrey;
1725   }
1726 }
1727
1728 .inbox-row .inbox-mark-read {
1729   display: none;
1730 }
1731
1732 .info-line {
1733   margin-bottom: $lineheight;
1734   padding: $lineheight/4 0px 4px 0px;
1735   border-bottom: 1px solid #ccc;
1736
1737   form, form div {
1738     display: inline;
1739   }
1740 }
1741
1742 .info-line .user_thumbnail_tiny {
1743   vertical-align: middle;
1744 }
1745
1746 .inbox-sent {
1747   white-space: nowrap;
1748 }
1749
1750 .inbox-mark-unread,
1751 .inbox-mark-read,
1752 .inbox-delete {
1753   width: 1%;
1754 }
1755
1756 .inbox-row-unread .inbox-mark-unread {
1757   display: none;
1758 }
1759
1760 .message-read .message-buttons {
1761   margin-top: $lineheight;
1762   margin-bottom: $lineheight * 1.5;
1763   padding-top: $lineheight;
1764   border-top: 1px solid $lightgrey;
1765 }
1766
1767 .message-read .buttons .mark-unread-button {
1768   border-radius: 0;
1769 }
1770
1771 /* Rules for "flash" notice boxes shown at the top of the content area */
1772
1773 .flash {
1774   padding: $lineheight;
1775
1776   &.error {
1777     background-color: #ff7070;
1778   }
1779
1780   &.warning {
1781     background-color: #ffe0cc;
1782   }
1783
1784   &.notice {
1785     background-color: #CBEEA7;
1786   }
1787
1788   div.message {
1789     display: inline-block;
1790     margin-left: $lineheight / 2;
1791     vertical-align: middle;
1792   }
1793 }
1794
1795 /* Rules for highlighting fields with rails validation errors */
1796
1797 .formError {
1798   display: inline-block;
1799   padding: 5px 10px;
1800   margin-top: 5px;
1801   border-radius: 4px;
1802   font-size: 12px;
1803   color: #fff;
1804   background-color: #ff7070;
1805 }
1806
1807 /* Rules for rails validation error boxes */
1808
1809 #errorExplanation {
1810   width: 400px;
1811   border: 2px solid #ff7070;
1812   padding: 0 $lineheight/2;
1813   margin-bottom: $lineheight;
1814   background-color: #f0f0f0;
1815
1816   h2 {
1817     margin: 0 -10px 10px -10px;
1818     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1819     font-weight: bold;
1820     font-size: 12px;
1821     background-color: #c00;
1822     color: #fff;
1823     text-align: left;
1824   }
1825
1826   p {
1827     color: #333;
1828     margin-bottom: 0px;
1829     padding: $lineheight/4;
1830   }
1831
1832   ul {
1833     padding-left: $lineheight;
1834
1835     li {
1836       font-size: 12px;
1837       list-style: disc;
1838     }
1839   }
1840 }
1841
1842 /* Rules for forms */
1843
1844 .standard-form {
1845   fieldset {
1846     margin-bottom: $lineheight;
1847   }
1848   label.standard-label {
1849     display: block;
1850     margin-bottom: $lineheight/4;
1851     font-size: $typeheight;
1852     font-weight: bold;
1853     line-height: 1.5;
1854   }
1855   label.standard-label.secondary {
1856     display: inline-block;
1857     font-weight: normal;
1858   }
1859   .form-help {
1860     font-weight: normal;
1861   }
1862   .form-column {
1863     float: left;
1864     margin-right: 20px;
1865   }
1866   .form-divider {
1867     margin-top: $lineheight;
1868     padding-top: $lineheight;
1869     border-top: 1px solid $lightgrey;
1870   }
1871   .horizontal-list .form-row { 
1872     float: left;
1873     padding-right: 10px;
1874   }
1875   .form-row {
1876     margin-bottom: $lineheight/2;
1877   }
1878   .form-list {
1879     margin-bottom: 0;
1880   }
1881   .form-list li {
1882     margin-bottom: 5px;
1883    }
1884   input[type="checkbox"],
1885   input[type="radio"] {
1886     float: left;
1887     margin-top: 5px;
1888   }
1889 }
1890
1891 #remember_me_openid {
1892   display: block;
1893 }
1894
1895 select {
1896   padding: 2px;
1897 }
1898
1899 input[type="checkbox"],
1900 input[type="radio"] {
1901     margin-right: 5px;
1902 }
1903
1904 input[type="text"],
1905 input[type="email"],
1906 input[type="url"],
1907 input[type="password"],
1908 textarea {
1909   color: #222;
1910   background-color: #fff;
1911   border: 1px solid #ccc;
1912   padding: 2px 5px;
1913   margin: 0;
1914   width: 200px;
1915
1916   &.field_with_errors {
1917     border: 2px solid #ff7070;
1918   }
1919 }
1920
1921 textarea {
1922   padding: 5px;
1923   width: 100%;
1924 }
1925
1926 /* Rules for user images */
1927
1928 img.user_image {
1929   max-width: 100px;
1930   max-height: 100px;
1931   border: 1px solid #ccc;
1932   margin-bottom: $lineheight;
1933   float: left;
1934   margin-right: $lineheight;
1935 }
1936
1937 img.user_thumbnail {
1938   max-width: 50px;
1939   max-height: 50px;
1940   border: 1px solid #ccc;
1941   margin-right: $lineheight;
1942 }
1943
1944 img.user_thumbnail_tiny {
1945   width: auto;
1946   height: auto;
1947   max-width: 25px;
1948   max-height: 25px;
1949   border: 1px solid #ccc;
1950 }
1951
1952 /* Rules for geo microformats */
1953
1954 abbr.geo {
1955   border-bottom: none;
1956 }
1957
1958 /* Rules for RSS buttons */
1959
1960 .rsssmall {
1961   position: relative;
1962   top: 3px;
1963 }
1964
1965 /* General styles for action lists / subnavs / pager navs */
1966
1967 ul.secondary-actions {
1968   font-style: normal;
1969   margin-bottom: 0;
1970   margin-left: 0;
1971   &.pager {
1972     display: inline-block;
1973     margin-right: 60px;
1974   }
1975   > li {
1976     display: block;
1977     float: left;
1978     list-style: none;
1979     border-left: 1px solid #ccc;
1980     padding-left: $lineheight/2;
1981     margin-right: $lineheight/2;
1982     &:first-child {
1983       border-left: 0;
1984       padding-left: 0;
1985     }
1986     &:last-child {
1987       margin-right: 0px;
1988     }
1989   }
1990 }
1991
1992 div.secondary-actions {
1993   padding: 10px;
1994   text-align: center;
1995 }
1996
1997 /* Utility for managing inner content areas */
1998
1999 .inner22 { padding: $lineheight;}
2000
2001 .inner12 { padding: $lineheight/2 $lineheight;}
2002
2003 .inner11 { padding: $lineheight/2;}
2004
2005 .inner20 { padding: $lineheight 0;}
2006
2007 .inner02 { padding: 0 $lineheight;}
2008
2009 /* Utility for general button styles */
2010
2011 input[type="button"],
2012 input[type="submit"],
2013 input[type="reset"],
2014 a.button {
2015   cursor: pointer;
2016   border: 0;
2017   display: inline-block;
2018   padding: $lineheight/4 $lineheight/2;
2019   min-height: 20px + $lineheight/2;
2020   min-width: 120px;
2021   margin: 0 0 $lineheight/2 0;
2022   color: white;
2023   background: $blue;
2024   text-align: center;
2025   border-radius: 2px;
2026   &:hover {
2027     background: darken($blue, $hovercolor);
2028     text-decoration: none;
2029   }
2030   &.deemphasize {
2031     background: $lightblue;
2032     &:hover {
2033       background: darken($lightblue, $hovercolor);
2034     }
2035   }
2036   &:disabled {
2037     background: $lightgrey;
2038     &:hover {
2039       background: $lightgrey;
2040     }
2041   }
2042   &:last-child {
2043     margin-bottom: 0;
2044   }
2045 }
2046
2047 input[type="button"],
2048 input[type="submit"],
2049 input[type="reset"] {
2050   line-height: normal;
2051 }
2052
2053 a.button {
2054   line-height: 20px;
2055 }
2056
2057 .buttons {
2058   min-width: 200px;
2059   input[type="submit"],
2060   input[type="button"],
2061   input[type="reset"],
2062   .button,
2063   .button_to {
2064     box-sizing: border-box;
2065     float: left;
2066     border-radius: 0;
2067     margin:0;
2068     min-width: 75px;
2069     max-width: 180px;
2070     border-right:1px solid white;
2071     text-overflow: ellipsis;
2072     white-space: nowrap;
2073     overflow: hidden;
2074   }
2075   input:first-child,
2076   .button:first-child,
2077   .button_to:first-child {
2078     border-radius:2px 0 0 2px;
2079   }
2080   input:last-child,
2081   .button:last-child,
2082   .button_to:last-child {
2083     border-radius:0 2px 2px 0;
2084     border-right-width: 0;
2085   }
2086   input:only-child,
2087   .button:only-child,
2088   .button_to:only-child,
2089   *[value="Hide"] + input:last-child,
2090   *[value="Hide"] + .button:last-child,
2091   *[value="Hide"] + .button_to:last-child {
2092     border-radius:2px;
2093     border-right-width: 0;
2094   }
2095     /* if a 3-button set has a hidden middle button */
2096   *[value="Hide"] + input:nth-child(3),
2097   *[value="Hide"] + .button:nth-child(3),
2098   *[value="Hide"] + .button_to:nth-child(3) {
2099     border-radius:0 2px 2px 0;
2100     border-right-width: 0;
2101   }
2102   /* if a 3-button set starts with a hidden button */
2103   *[value="Hide"] + input:nth-child(2):not(:last-child),
2104   *[value="Hide"] + .button:nth-child(2):not(:last-child),
2105   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2106     border-radius:2px 0 0 2px;
2107     border-right-width: 1px;
2108   }
2109 }
2110
2111 /* Rules for doing distinct colour of alternate table rows */
2112
2113 .table0,
2114 .item0 {
2115   background: $offwhite;
2116 }
2117
2118 .table1,
2119 .item1 {
2120   background: #fff;
2121 }
2122
2123 /* Rules for OpenID logo */
2124
2125 .openid_logo {
2126   vertical-align: text-bottom;
2127   border: 0;
2128 }
2129
2130 /* Rules for rich text */
2131
2132 .richtext,
2133 .prose {
2134   h1, h2 {
2135     padding-bottom: $lineheight/2;
2136     border-bottom: 1px dashed #cccccc;
2137     margin-bottom: $lineheight/2;
2138   }
2139
2140   h1 {
2141     font-size: 24px;
2142   }
2143
2144   h2 {
2145     font-size: 18px;
2146   }
2147
2148   h3 {
2149     font-size: $typeheight;
2150   }
2151
2152   code {
2153     font-size: 13px;
2154     background: #e8e8e8;
2155     padding: 2px 3px;
2156   }
2157
2158   pre {
2159     font-size: 13px;
2160     background: #e8e8e8;
2161     padding: 2px 3px;
2162
2163     code {
2164       padding: 0;
2165     }
2166   }
2167
2168   img {
2169     padding: $lineheight;
2170     background-color: $offwhite;
2171     display: block;
2172     max-width: 100%;
2173     margin: auto;
2174   }
2175
2176   blockquote {
2177     border-left: $lineheight solid $offwhite;
2178     padding-left: $lineheight;
2179     margin: 0;
2180     color: #7E7E7E;
2181   }
2182
2183   ul, ol {
2184     padding-left: $lineheight;
2185     margin-bottom: $lineheight;
2186     margin-left: $lineheight;
2187   }
2188
2189   ul li {
2190     list-style: disc;
2191   }
2192
2193   ol li {
2194     list-style: decimal;
2195   }
2196 }
2197
2198 .diary_post .richtext {
2199     margin-top: $lineheight;
2200   }
2201
2202 .comments .richtext {
2203   margin-left: 70px;
2204   margin-top: 0;
2205 }
2206
2207 /* Rules for rich text editors */
2208
2209 input.richtext_title[type="text"] {
2210   width: 50%;
2211   width: calc(100% - 235px);
2212
2213   @media only screen and (max-width:768px) {
2214     width: 100%;
2215   }
2216 }
2217
2218 .richtext_container {
2219   margin-bottom: $lineheight;
2220
2221   .richtext_content {
2222     width: 50%;
2223     width: calc(100% - 235px);
2224     display: inline-block;
2225     vertical-align: top;
2226
2227     @media only screen and (max-width:768px) {
2228       width: 100%;
2229     }
2230
2231     .richtext_preview {
2232       display: inline-block;
2233       padding: $lineheight;
2234       background-color: $offwhite;
2235       overflow-x: auto;
2236
2237       &.loading {
2238         background-image: image-url("loading.gif");
2239         background-repeat: no-repeat;
2240         background-position: center;
2241       }
2242
2243       > :first-child {
2244         margin-top: 0px;
2245       }
2246     }
2247   }
2248
2249   .richtext_help {
2250     display: inline-block;
2251     vertical-align: top;
2252     margin-left: 15px;
2253     background-color: #f8f8ff;
2254     padding: $lineheight/2;
2255     width: 220px;
2256
2257     ul {
2258       margin-bottom: 0;
2259     }
2260
2261     h4.heading, li {
2262       border-bottom: 1px solid #ccc;
2263       margin-bottom: $lineheight/4;
2264       padding-bottom: $lineheight/4;
2265     }
2266
2267     li h4, li span, li p {
2268       display: inline-block;
2269       vertical-align: top;
2270       font-size: 11px;
2271     }
2272
2273     li h4 {
2274       width: 40%;
2275       margin: 0;
2276     }
2277
2278     li span, li p {
2279       width: 50%;
2280       margin-left: $lineheight/2;
2281       margin-bottom: $lineheight/4;
2282       white-space: nowrap;
2283     }
2284   }
2285 }
2286
2287 /* Rules for the user notes list */
2288
2289 .note_list {
2290   tr.creator {
2291     background-color: #eeeeee;
2292   }
2293
2294   td {
2295     padding: 3px;
2296   }
2297
2298   p {
2299     margin-bottom: 0px;
2300   }
2301 }
2302
2303 /* Rules for the iD editor */
2304
2305 .id-embed {
2306   width: 100%;
2307   height: 100%;
2308 }
2309
2310 /* Rules for dropdown menus */
2311
2312 .dropdown {
2313   position: relative;
2314 }
2315
2316 .dropdown-toggle {
2317   *margin-bottom: -3px;
2318 }
2319
2320 .dropdown-toggle:active,
2321 .open .dropdown-toggle {
2322   outline: 0;
2323 }
2324
2325 .caret {
2326   display: inline-block;
2327   width: 0;
2328   height: 0;
2329   vertical-align: top;
2330   border-top: 4px solid #000000;
2331   border-right: 4px solid transparent;
2332   border-left: 4px solid transparent;
2333   content: "";
2334 }
2335
2336 .dropdown .caret {
2337   margin-top: 8px;
2338   margin-left: 2px;
2339 }
2340
2341 .dropdown-menu {
2342   position: absolute;
2343   top: 100%;
2344   left: -1px;
2345   z-index: 1000;
2346   display: none;
2347   float: left;
2348   min-width: 160px;
2349   padding: 5px 0;
2350   margin: 0;
2351   list-style: none;
2352   background-color: #ffffff;
2353   border: 1px solid #ccc;
2354   border-radius: 0 3px 3px;
2355   *border-right-width: 2px;
2356   *border-bottom-width: 2px;
2357   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2358   background-clip: padding-box;
2359 }
2360
2361 .dropdown-menu.pull-right {
2362   right: 0;
2363   left: auto;
2364 }
2365
2366 .dropdown-menu .divider {
2367   *width: 100%;
2368   height: 1px;
2369   margin: 9px 1px;
2370   *margin: -5px 0 5px;
2371   overflow: hidden;
2372   background-color: #e5e5e5;
2373   border-bottom: 1px solid #ffffff;
2374 }
2375
2376 .dropdown-menu > li > a {
2377   display: block;
2378   padding: 3px 10px;
2379   clear: both;
2380   font-weight: normal;
2381   line-height: 20px;
2382   color: #333333;
2383   white-space: nowrap;
2384 }
2385
2386 .dropdown-menu > li > a:hover,
2387 .dropdown-menu > li > a:focus,
2388 .dropdown-submenu:hover > a,
2389 .dropdown-submenu:focus > a {
2390   color: #ffffff;
2391   text-decoration: none;
2392   background-color: $green;
2393 }
2394
2395 .dropdown-menu > .active > a,
2396 .dropdown-menu > .active > a:hover,
2397 .dropdown-menu > .active > a:focus {
2398   color: #ffffff;
2399   text-decoration: none;
2400   background-color: $green;
2401   outline: 0;
2402 }
2403
2404 .dropdown-menu > .disabled > a,
2405 .dropdown-menu > .disabled > a:hover,
2406 .dropdown-menu > .disabled > a:focus {
2407   color: #999999;
2408 }
2409
2410 .dropdown-menu > .disabled > a:hover,
2411 .dropdown-menu > .disabled > a:focus {
2412   text-decoration: none;
2413   cursor: default;
2414   background-color: transparent;
2415   background-image: none;
2416 }
2417
2418 .open {
2419   *z-index: 1000;
2420 }
2421
2422 .open > .dropdown-menu {
2423   display: block;
2424 }
2425
2426 .dropdown-backdrop {
2427   position: fixed;
2428   top: 0;
2429   right: 0;
2430   bottom: 0;
2431   left: 0;
2432   z-index: 990;
2433 }
2434
2435 /* Rules for the "Welcome" page */
2436 .site-welcome, .site-fixthemap {
2437   .center {
2438     text-align: center;
2439     .sprite { 
2440       float: none;
2441       margin: auto;
2442     }
2443   }
2444
2445   .sprite {
2446     background-image: image-url("welcome-sprite.png");
2447     background-size: 500px 250px;
2448     display: block;
2449     float: left;
2450   }
2451
2452   .icon-list { 
2453     padding-bottom: 20px;
2454     div {
2455       margin-bottom: 10px;
2456       p {
2457         padding-top: 10px;
2458       }
2459     }
2460   }
2461   .sprite.small {
2462     width: 50px;
2463     height: 50px;
2464   }
2465
2466   .sprite.x {
2467     background-position: -50px 0;
2468   }
2469
2470   .sprite.term {
2471     margin-right: 10px;
2472     vertical-align: middle;
2473   }
2474
2475   .sprite.node {
2476     background-position: -100px 0;
2477   }
2478
2479   .sprite.way {
2480     background-position: -150px 0;
2481   }
2482
2483   .sprite.tag {
2484     background-position: -200px 0;
2485   }
2486
2487   .sprite.editor {
2488     background-position: -250px 0;
2489   }
2490
2491   .sprite.question {
2492     background-position: -300px 0;
2493   }
2494
2495   .start-mapping {
2496     margin: auto;
2497     cursor: pointer;
2498     border: none;
2499     padding: 20px 40px;
2500     font-size: 30px;
2501     text-decoration: none;
2502   }
2503
2504   .note-box {
2505     margin-top: 20px;
2506     background-color: $offwhite;
2507   }
2508
2509   .icon.note {
2510     background-color: #333;
2511     border-radius: 4px;
2512   }
2513 }
2514
2515 .site-about #content {
2516   //background-color: #000;
2517   background-color: #eee;
2518   background-position: 50% 50%;
2519   background-repeat: no-repeat;
2520   background-size: cover;
2521   background-attachment: fixed;
2522
2523   .caption {
2524     max-width: 200px;
2525     font: 13px/20px Helvetica, Arial, sans-serif;
2526     position: fixed;
2527     text-align: right;
2528     right: 20px;
2529     bottom: 60px;
2530     text-shadow: #000 0px 1px 5px;
2531     color: #eee;
2532     opacity: 0.8;
2533     display: none;
2534   }
2535
2536   .caption a {
2537     color: white;
2538     white-space: nowrap;
2539     text-decoration: none;
2540   }
2541
2542   a.next {
2543     display: block;
2544     position: fixed;
2545     right: 10px;
2546     bottom: 10px;
2547     width: 40px;
2548     height: 40px;
2549     border-radius: 5px;
2550     text-indent: -9999px;
2551     overflow: hidden;
2552     background: image-url('about/sprite.png') -120px 0px no-repeat;
2553     background-color: #000;
2554     background-color: rgba(0, 0, 0, 0.5);
2555   }
2556
2557   .content-inner {
2558     position: relative;
2559     color: #333;
2560     min-width: 320px;
2561     max-width: 640px;
2562
2563     .section {
2564       margin-bottom: 30px;
2565     }
2566
2567     .section:last-child {
2568       margin-bottom: 0;
2569     }
2570   }
2571
2572   .text {
2573     background: white;
2574     padding: 40px;
2575   }
2576
2577   .attr {
2578     position: relative;
2579     padding: 170px 40px 20px;
2580     background: #333;
2581     background: rgba(0, 0, 0, .8);
2582     margin-bottom: 0;
2583     margin-top: -20px;
2584
2585     h1 {
2586       display: block;
2587       color: white;
2588       font-weight: 300;
2589       font-size: 34px;
2590       span {
2591         color: #76c551;
2592       }
2593     }
2594
2595     .user-image {
2596       position: absolute;
2597       top: 0px;
2598       right: 240px;
2599       left: 0px;
2600       height: 150px;
2601       background-position: 0 50%;
2602       background-repeat: no-repeat;
2603       background-image: image-url('about/osm.png');
2604       background-size: cover;
2605       background-color: #76c551;
2606     }
2607
2608     .byosm {
2609       position: absolute;
2610       top: 0px;
2611       right: 0px;
2612       z-index: 1;
2613       width: 240px;
2614       height: 150px;
2615       padding: 20px 20px 20px 40px;
2616       font: 500 20px/24px Helvetica, Arial, sans-serif;
2617       white-space: nowrap;
2618       color: #fff;
2619       background: #76c551;
2620     }
2621
2622     .byosm span {
2623       display: inline-block;
2624       width: 20px;
2625       margin-left: -20px;
2626     }
2627   }
2628
2629   h2 {
2630     margin-bottom: 10px;
2631   }
2632
2633   .icon {
2634     width: 30px;
2635     height: 30px;
2636     margin-right: 10px;
2637     vertical-align: middle;
2638     background: 40px 40px image-url('about/sprite.png') no-repeat;
2639
2640     &.local        { background-position: 0px    0px; }
2641     &.community    { background-position: 0px  -40px; }
2642     &.open         { background-position: 0px  -80px; }
2643     &.partners     { background-position: 0px -120px; }
2644     &.infringement { background-position: 0px -160px; }
2645   }
2646 }
2647
2648 @import 'browse';
2649
2650 @media only screen and (max-width:960px) {
2651   .header-illustration.new-user-arm {
2652     display: none;
2653   }
2654 }
2655