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