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