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