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