]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
fa61360897e6a7723287ff28c81c1e83b275c51f
[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     table-layout: fixed;
1073     border-collapse: separate;
1074
1075     th, td {
1076       border-bottom: 1px solid #ddd;
1077     }
1078
1079     tr:last-child th, tr:last-child td {
1080       border-bottom: 0;
1081     }
1082
1083     .browse-tag-k,
1084     .browse-tag-v {
1085       width: 50%;
1086       padding: 6px 10px;
1087       word-wrap: break-word;
1088     }
1089
1090     .browse-tag-k {
1091       font-weight: 500;
1092       background-color: #F6F6F6;
1093     }
1094
1095     .browse-tag-v {
1096       border-left: 1px solid #ddd;
1097       background-color: #fff;
1098     }
1099   }
1100
1101   .warning {
1102     margin: $lineheight/2 0;
1103     padding: $lineheight/2;
1104     font-size: 90%;
1105   }
1106
1107   .note-comments li {
1108     margin: $lineheight/2 0;
1109
1110     p {
1111       margin-left: 10px;
1112     }
1113   }
1114
1115   .note-description {
1116     overflow: hidden;
1117     margin: 0 0 10px 10px;
1118   }
1119 }
1120
1121 /* Rules for export sidebar */
1122
1123 .export_form {
1124   padding: $lineheight;
1125
1126   .export_area_inputs,
1127   .export_button {
1128     text-align: center;
1129   }
1130
1131   .export_area_inputs {
1132     margin-bottom: $lineheight/2;
1133     input[type="text"] {
1134       width: 80px;
1135       text-align: center;
1136       margin-bottom: 5px;
1137     }
1138   }
1139
1140   .export_boxy {
1141     background: #eee;
1142     border: 1px solid #ccc;
1143     border-radius: 3px;
1144
1145     #maxlat { margin-top: -1px; }
1146     #minlon {
1147       float: left;
1148       margin-left: -1px;
1149     }
1150     #maxlon {
1151       float: right;
1152       margin-right: -1px;
1153     }
1154     #minlat { margin-bottom: 0; }
1155   }
1156
1157   .export_bound {
1158     margin: $lineheight/4;
1159   }
1160
1161   .export_button {
1162     margin-top: $lineheight;
1163     margin-bottom: $lineheight;
1164   }
1165
1166   dl {
1167     padding-left: $lineheight/2;
1168     dd {
1169       margin-left: 0;
1170       margin-bottom: 10px;
1171     }
1172   }
1173 }
1174
1175 /* Rules for edit pages */
1176
1177 .site-edit {
1178   #content {
1179     position: absolute;
1180     top: $headerHeight;
1181     bottom: 0;
1182     width: 100%;
1183   }
1184
1185   #map {
1186     height: 100%;
1187     overflow: hidden;
1188   }
1189 }
1190
1191 /* Rules for non-map content pages */
1192
1193 .content-heading {
1194   background: $lightgrey;
1195   
1196   h1 { font-size: 22px; }
1197 }
1198
1199 .content-body {
1200   h1, h2, h3, p, ul, ol {
1201     margin-bottom: $lineheight;
1202   }
1203
1204   h1, h2, h3 {
1205     margin-top: $lineheight/2;
1206   }
1207 }
1208
1209 .content-inner {
1210   position: relative;
1211   max-width: 900px;
1212   margin: auto;
1213   padding: $lineheight;
1214 }
1215
1216 /* Overrides for pages that use new layout conventions */
1217
1218 .user-new,
1219 .user-create,
1220 .user-terms {
1221   .content-body .content-inner {
1222     padding: 0;
1223   }
1224 }
1225
1226 .user-new,
1227 .user-create,
1228 .user-terms,
1229 .user-confirm {
1230   .content-heading .content-inner {
1231     height: 200px;
1232   }
1233 }
1234
1235 .header-illustration {
1236   background-position: 0 0;
1237   background-repeat: no-repeat;
1238   position: absolute;
1239   height: 200px;
1240   width: 100%;
1241   left: 0;
1242   bottom: 0;
1243
1244   &.new-user-main {
1245     background-image: image-url("sign-up-illustration.png");
1246   }
1247
1248   &.confirm-main {
1249     background-image: image-url("confirm-illustration.png");
1250   }
1251
1252   &.new-user-terms {
1253     background-image: image-url("terms-illustration.png");
1254   }
1255
1256   &.new-user-arm {
1257     height: 110px;
1258     width: 130px;
1259     left: 260px;
1260     top: 160px;
1261     background-image: image-url("sign-up-illustration-arm.png");
1262     z-index: 100;
1263   }
1264 }
1265
1266 #content.maximised {
1267   top: 0;
1268   left: 0;
1269   right: 0;
1270   bottom: 0;
1271   border: 0;
1272   z-index: 2000;
1273 }
1274
1275 #slim_container {
1276   width: 100%;
1277 }
1278
1279 #slim_container_content {
1280   max-width: 50em;
1281   background-color: #FFFFFF;
1282   margin: $lineheight/2 auto;
1283   padding: 3px;
1284   border-radius: 25px;
1285   -moz-border-radius: 25px;
1286   border: 1px solid #e6e6e6;
1287 }
1288
1289 #slim_content {
1290   margin: $lineheight/2;
1291   margin-top: 95px;
1292   max-width: 50em;
1293
1294   .content-heading {
1295     margin-bottom: 15px;
1296   }
1297 }
1298
1299 #slim_header {
1300   margin: 30px $lineheight/2;
1301   position: absolute;
1302   top: 0px;
1303   margin-right: $lineheight/4;
1304   img {
1305     vertical-align: middle;
1306     margin-bottom: $lineheight/4;
1307     margin-right: $lineheight/4;
1308   }
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   padding-top: $lineheight;
1695   border-top: 1px solid $lightgrey;
1696 }
1697
1698 .message-read .buttons .mark-unread-button {
1699   border-radius: 0;
1700 }
1701
1702 /* Rules for "flash" notice boxes shown at the top of the content area */
1703
1704 .error {
1705   padding: $lineheight;
1706   background-color: #ff7070;
1707 }
1708
1709 .warning {
1710   padding: $lineheight;
1711   background-color: #ffe0cc;
1712 }
1713
1714 .notice {
1715   padding: $lineheight;
1716   background-color: #CBEEA7;
1717 }
1718
1719 /* Rules for highlighting fields with rails validation errors */
1720
1721 .field_with_errors {
1722   padding: 2px;
1723   background-color: #ff7070;
1724   display: inline-block;
1725 }
1726
1727 .formError {
1728   display: inline-block;
1729   padding: 5px 10px;
1730   margin-top: 5px;
1731   border-radius: 4px;
1732   font-size: 12px;
1733   color: #fff;
1734   background-color: #ff7070;
1735 }
1736
1737 /* Rules for rails validation error boxes */
1738
1739 #errorExplanation {
1740   width: 400px;
1741   border: 2px solid #ff7070;
1742   padding: 0 $lineheight/2;
1743   margin-bottom: $lineheight;
1744   background-color: #f0f0f0;
1745
1746   h2 {
1747     margin: 0 -10px 10px -10px;
1748     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1749     font-weight: bold;
1750     font-size: 12px;
1751     background-color: #c00;
1752     color: #fff;
1753     text-align: left;
1754   }
1755
1756   p {
1757     color: #333;
1758     margin-bottom: 0px;
1759     padding: $lineheight/4;
1760   }
1761
1762   ul {
1763     padding-left: $lineheight;
1764
1765     li {
1766       font-size: 12px;
1767       list-style: disc;
1768     }
1769   }
1770 }
1771
1772 /* Rules for forms */
1773
1774 .standard-form {
1775   fieldset {
1776     margin-bottom: $lineheight;
1777   }
1778   label.standard-label {
1779     display: block;
1780     margin-bottom: $lineheight/4;
1781     font-size: $typeheight;
1782     font-weight: bold;
1783     line-height: 1.5;
1784   }
1785   label.standard-label.secondary {
1786     display: inline-block;
1787     font-weight: normal;
1788   }
1789   .form-help {
1790     font-weight: normal;
1791   }
1792   .form-column {
1793     float: left;
1794     margin-right: 20px;
1795   }
1796   .form-divider {
1797     margin-top: $lineheight;
1798     padding-top: $lineheight;
1799     border-top: 1px solid $lightgrey;
1800   }
1801   .horizontal-list .form-row { 
1802     float: left;
1803     padding-right: 10px;
1804   }
1805   .form-row {
1806     margin-bottom: $lineheight/2;
1807   }
1808   .form-list {
1809     margin-bottom: 0;
1810   }
1811   .form-list li {
1812     margin-bottom: 5px;
1813    }
1814   input[type="checkbox"],
1815   input[type="radio"] {
1816     float: left;
1817     margin-top: 5px;
1818   }
1819 }
1820
1821 #remember_me_openid {
1822   display: block;
1823 }
1824
1825 input[type="checkbox"],
1826 input[type="radio"] {
1827     margin-right: 5px;
1828 }
1829
1830 input[type="text"],
1831 input[type="email"],
1832 input[type="url"],
1833 input[type="password"],
1834 textarea {
1835   border: 1px solid #ccc;
1836   padding: 2px 5px;
1837   margin: 0;
1838   width: 200px;
1839 }
1840
1841 textarea {
1842   padding: 5px;
1843   width: 100%;
1844 }
1845
1846 /* Rules for user images */
1847
1848 img.user_image {
1849   max-width: 100px;
1850   max-height: 100px;
1851   border: 1px solid #ccc;
1852   margin-bottom: $lineheight;
1853   float: left;
1854   margin-right: $lineheight;
1855 }
1856
1857 img.user_thumbnail {
1858   max-width: 50px;
1859   max-height: 50px;
1860   border: 1px solid #ccc;
1861   margin-right: $lineheight;
1862 }
1863
1864 img.user_thumbnail_tiny {
1865   max-width: 25px;
1866   max-height: 25px;
1867   border: 1px solid #ccc;
1868 }
1869
1870 /* Rules for geo microformats */
1871
1872 abbr.geo {
1873   border-bottom: none;
1874 }
1875
1876 /* Rules for RSS buttons */
1877
1878 .rsssmall {
1879   position: relative;
1880   top: 3px;
1881 }
1882
1883 /* General styles for action lists / subnavs / pager navs */
1884
1885 ul.secondary-actions {
1886   font-style: normal;
1887   margin-bottom: 0;
1888   margin-left: 0;
1889   &.pager {
1890     display: inline-block;
1891     margin-right: 60px;
1892   }
1893   > li {
1894     display: block;
1895     float: left;
1896     list-style: none;
1897     border-left: 1px solid #ccc;
1898     padding-left: $lineheight/2;
1899     margin-right: $lineheight/2;
1900     &:first-child {
1901       border-left: 0;
1902       padding-left: 0;
1903     }
1904     &:last-child {
1905       margin-right: 0px;
1906     }
1907   }
1908 }
1909
1910 div.secondary-actions {
1911   padding: 10px;
1912   text-align: center;
1913 }
1914
1915 /* Utility for managing inner content areas */
1916
1917 .inner22 { padding: $lineheight;}
1918
1919 .inner12 { padding: $lineheight/2 $lineheight;}
1920
1921 .inner11 { padding: $lineheight/2;}
1922
1923 .inner20 { padding: $lineheight 0;}
1924
1925 .inner02 { padding: 0 $lineheight;}
1926
1927 /* Utility for general button styles */
1928
1929 input[type="button"],
1930 input[type="submit"],
1931 input[type="reset"],
1932 a.button {
1933   cursor: pointer;
1934   border: 0;
1935   display: inline-block;
1936   line-height: 20px;
1937   padding: $lineheight/4 $lineheight/2;
1938   min-height: 20px + $lineheight/2;
1939   min-width: 120px;
1940   margin: 0 0 $lineheight/2 0;
1941   color: white;
1942   background: $blue;
1943   text-align: center;
1944   border-radius: 2px;
1945   -moz-border-radius: 2px;
1946   &:hover {
1947     background: darken($blue, $hovercolor);
1948     text-decoration: none;
1949   }
1950   &.deemphasize {
1951     background: $lightblue;
1952     &:hover {
1953       background: darken($lightblue, $hovercolor);
1954     }
1955   }
1956   &:disabled {
1957     background: $lightgrey;
1958     &:hover {
1959       background: $lightgrey;
1960     }
1961   }
1962   &:last-child {
1963     margin-bottom: 0;
1964   }
1965 }
1966
1967 .buttons {
1968   min-width: 200px;
1969   input[type="submit"],
1970   input[type="button"],
1971   input[type="reset"],
1972   .button {
1973     box-sizing: border-box;
1974     float: left;
1975     border-radius: 0;
1976     margin:0;
1977     min-width: 75px;
1978     max-width: 180px;
1979     border-right:1px solid white;
1980     text-overflow: ellipsis;
1981     white-space: nowrap;
1982     overflow: hidden;
1983   }
1984   input:first-child,
1985   .button:first-child {
1986     border-radius:2px 0 0 2px;
1987   }
1988   input:last-child,
1989   .button:last-child {
1990     border-radius:0 2px 2px 0;
1991     border-right-width: 0;
1992   }
1993   input:only-child,
1994   .button:only-child,
1995   *[value="Hide"] + input:last-child,
1996   *[value="Hide"] + .button:last-child {
1997     border-radius:2px;
1998     border-right-width: 0;
1999   }
2000     /* if a 3-button set has a hidden middle button */
2001   *[value="Hide"] + input:nth-child(3),
2002   *[value="Hide"] + .button:nth-child(3) {
2003     border-radius:0 2px 2px 0;
2004     border-right-width: 0;
2005   }
2006   /* if a 3-button set starts with a hidden button */
2007   *[value="Hide"] + input:nth-child(2):not(:last-child),
2008   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
2009     border-radius:2px 0 0 2px;
2010     border-right-width: 1px;
2011   }
2012 }
2013
2014 /* Rules for doing distinct colour of alternate table rows */
2015
2016 .table0,
2017 .item0 {
2018   background: $offwhite;
2019 }
2020
2021 .table1,
2022 .item1 {
2023   background: #fff;
2024 }
2025
2026 /* Rules for OpenID logo */
2027
2028 .openid_logo {
2029   vertical-align: text-bottom;
2030   border: 0;
2031 }
2032
2033 /* Rules for rich text */
2034
2035 .richtext,
2036 .prose {
2037   h1, h2 {
2038     padding-bottom: $lineheight/2;
2039     border-bottom: 1px dashed #cccccc;
2040     margin-bottom: $lineheight/2;
2041   }
2042
2043   h1 {
2044     font-size: 24px;
2045   }
2046
2047   h2 {
2048     font-size: 18px;
2049   }
2050
2051   h3 {
2052     font-size: $typeheight;
2053   }
2054
2055   code {
2056     font-size: 13px;
2057     background: #e8e8e8;
2058     padding: 2px 3px;
2059   }
2060
2061   pre {
2062     font-size: 13px;
2063     background: #e8e8e8;
2064     padding: 2px 3px;
2065
2066     code {
2067       padding: 0;
2068     }
2069   }
2070
2071   img {
2072     padding: $lineheight;
2073     background-color: $offwhite;
2074     display: block;
2075     max-width: 100%;
2076     margin: auto;
2077   }
2078
2079   blockquote {
2080     border-left: $lineheight solid $offwhite;
2081     padding-left: $lineheight;
2082     margin: 0;
2083     color: #7E7E7E;
2084   }
2085
2086   ul, ol {
2087     padding-left: $lineheight;
2088     margin-bottom: $lineheight;
2089     margin-left: $lineheight;
2090   }
2091
2092   ul li {
2093     list-style: disc;
2094   }
2095
2096   ol li {
2097     list-style: decimal;
2098   }
2099 }
2100
2101 .diary_post .richtext {
2102     margin-top: $lineheight;
2103   }
2104
2105 .comments .richtext {
2106   margin-left: 70px;
2107   margin-top: 0;
2108 }
2109
2110 /* Rules for rich text editors */
2111
2112 .richtext_container {
2113   margin-bottom: $lineheight;
2114
2115   .richtext_content {
2116     width: 50%;
2117     display: inline-block;
2118     vertical-align: top;
2119
2120     .richtext_preview {
2121       display: inline-block;
2122       padding: $lineheight;
2123       background-color: $offwhite;
2124       overflow-x: auto;
2125
2126       &.loading {
2127         background-image: image-url("loading.gif");
2128         background-repeat: no-repeat;
2129         background-position: center;
2130       }
2131
2132       > :first-child {
2133         margin-top: 0px;
2134       }
2135     }
2136   }
2137
2138   .richtext_help {
2139     display: inline-block;
2140     vertical-align: top;
2141     margin-left: 15px;
2142     background-color: #f8f8ff;
2143     padding: $lineheight/2;
2144     width: 220px;
2145
2146     ul {
2147       margin-bottom: 0;
2148     }
2149
2150     h4.heading, li {
2151       border-bottom: 1px solid #ccc;
2152       margin-bottom: $lineheight/4;
2153       padding-bottom: $lineheight/4;
2154     }
2155
2156     li h4, li span, li p {
2157       display: inline-block;
2158       vertical-align: top;
2159       font-size: 11px;
2160     }
2161
2162     li h4 {
2163       width: 40%;
2164       margin: 0;
2165     }
2166
2167     li span, li p {
2168       width: 50%;
2169       margin-left: $lineheight/2;
2170       margin-bottom: $lineheight/4;
2171       white-space: nowrap;
2172     }
2173   }
2174 }
2175
2176 /* Rules for the user notes list */
2177
2178 .note_list {
2179   tr.creator {
2180     background-color: #eeeeee;
2181   }
2182
2183   td {
2184     padding: 3px;
2185   }
2186
2187   p {
2188     margin-bottom: 0px;
2189   }
2190 }
2191
2192 /* Rules for the iD editor */
2193
2194 .id-embed {
2195   width: 100%;
2196   height: 100%;
2197 }
2198
2199 /* Rules for dropdown menus */
2200
2201 .dropdown {
2202   position: relative;
2203 }
2204
2205 .dropdown-toggle {
2206   *margin-bottom: -3px;
2207 }
2208
2209 .dropdown-toggle:active,
2210 .open .dropdown-toggle {
2211   outline: 0;
2212 }
2213
2214 .caret {
2215   display: inline-block;
2216   width: 0;
2217   height: 0;
2218   vertical-align: top;
2219   border-top: 4px solid #000000;
2220   border-right: 4px solid transparent;
2221   border-left: 4px solid transparent;
2222   content: "";
2223 }
2224
2225 .dropdown .caret {
2226   margin-top: 8px;
2227   margin-left: 2px;
2228 }
2229
2230 .dropdown-menu {
2231   position: absolute;
2232   top: 100%;
2233   left: -1px;
2234   z-index: 1000;
2235   display: none;
2236   float: left;
2237   min-width: 160px;
2238   padding: 5px 0;
2239   margin: 0;
2240   list-style: none;
2241   background-color: #ffffff;
2242   border: 1px solid #ccc;
2243   border-radius: 0 3px 3px;
2244   *border-right-width: 2px;
2245   *border-bottom-width: 2px;
2246   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2247      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2248           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2249   -webkit-background-clip: padding-box;
2250      -moz-background-clip: padding;
2251           background-clip: padding-box;
2252 }
2253
2254 .dropdown-menu.pull-right {
2255   right: 0;
2256   left: auto;
2257 }
2258
2259 .dropdown-menu .divider {
2260   *width: 100%;
2261   height: 1px;
2262   margin: 9px 1px;
2263   *margin: -5px 0 5px;
2264   overflow: hidden;
2265   background-color: #e5e5e5;
2266   border-bottom: 1px solid #ffffff;
2267 }
2268
2269 .dropdown-menu > li > a {
2270   display: block;
2271   padding: 3px 10px;
2272   clear: both;
2273   font-weight: normal;
2274   line-height: 20px;
2275   color: #333333;
2276   white-space: nowrap;
2277 }
2278
2279 .dropdown-menu > li > a:hover,
2280 .dropdown-menu > li > a:focus,
2281 .dropdown-submenu:hover > a,
2282 .dropdown-submenu:focus > a {
2283   color: #ffffff;
2284   text-decoration: none;
2285   background-color: $green;
2286 }
2287
2288 .dropdown-menu > .active > a,
2289 .dropdown-menu > .active > a:hover,
2290 .dropdown-menu > .active > a:focus {
2291   color: #ffffff;
2292   text-decoration: none;
2293   background-color: $green;
2294   outline: 0;
2295 }
2296
2297 .dropdown-menu > .disabled > a,
2298 .dropdown-menu > .disabled > a:hover,
2299 .dropdown-menu > .disabled > a:focus {
2300   color: #999999;
2301 }
2302
2303 .dropdown-menu > .disabled > a:hover,
2304 .dropdown-menu > .disabled > a:focus {
2305   text-decoration: none;
2306   cursor: default;
2307   background-color: transparent;
2308   background-image: none;
2309 }
2310
2311 .open {
2312   *z-index: 1000;
2313 }
2314
2315 .open > .dropdown-menu {
2316   display: block;
2317 }
2318
2319 .dropdown-backdrop {
2320   position: fixed;
2321   top: 0;
2322   right: 0;
2323   bottom: 0;
2324   left: 0;
2325   z-index: 990;
2326 }
2327
2328 /* Rules for the "Welcome" page */
2329 .site-welcome {
2330   .center {
2331     text-align: center;
2332     .sprite { 
2333       float: none;
2334       margin: auto;
2335     }
2336   }
2337
2338   .sprite {
2339     background-image: image-url("welcome-sprite.png");
2340     background-size: 500px 250px;
2341     display: block;
2342     float: left;
2343   }
2344
2345   .icon-list { 
2346     padding-bottom: 20px;
2347     div {
2348       margin-bottom: 10px;
2349       p {
2350         padding-top: 10px;
2351       }
2352     }
2353   }
2354   .sprite.small {
2355     width: 50px;
2356     height: 50px;
2357   }
2358
2359   .sprite.x {
2360     background-position: -50px 0;
2361   }
2362
2363   .sprite.term {
2364     margin-right: 10px;
2365     vertical-align: middle;
2366   }
2367
2368   .sprite.node {
2369     background-position: -100px 0;
2370   }
2371
2372   .sprite.way {
2373     background-position: -150px 0;
2374   }
2375
2376   .sprite.tag {
2377     background-position: -200px 0;
2378   }
2379
2380   .sprite.editor {
2381     background-position: -250px 0;
2382   }
2383
2384   .sprite.question {
2385     background-position: -300px 0;
2386   }
2387
2388   .start-mapping {
2389     margin: auto;
2390     cursor: pointer;
2391     border: none;
2392     padding: 20px 40px;
2393     font-size: 30px;
2394     text-decoration: none;
2395   }
2396
2397   .note-box {
2398     margin-top: 20px;
2399     background-color: $offwhite;
2400   }
2401
2402   .icon.note {
2403     background-color: #333;
2404     border-radius: 4px;
2405   }
2406 }
2407
2408 .site-about #content {
2409   //background-color: #000;
2410   background-color: #eee;
2411   background-position: 50% 50%;
2412   background-repeat: no-repeat;
2413   background-size: cover;
2414   background-attachment: fixed;
2415
2416   &.photo-0 { background-image: image-url('about/0.jpg'); .photo-0 { display: block; } }
2417   &.photo-1 { background-image: image-url('about/1.jpg'); .photo-1 { display: block; } }
2418   &.photo-2 { background-image: image-url('about/2.jpg'); .photo-2 { display: block; } }
2419   &.photo-3 { background-image: image-url('about/4.jpg'); .photo-3 { display: block; } }
2420   &.photo-4 { background-image: image-url('about/4.jpg'); .photo-4 { display: block; } }
2421   &.photo-5 { background-image: image-url('about/5.jpg'); .photo-5 { display: block; } }
2422
2423   .caption {
2424     max-width: 200px;
2425     font: 13px/20px Helvetica, Arial, sans-serif;
2426     position: fixed;
2427     text-align: right;
2428     right: 20px;
2429     bottom: 60px;
2430     text-shadow: #000 0px 1px 5px;
2431     color: #eee;
2432     opacity: 0.8;
2433     display: none;
2434   }
2435
2436   .caption a {
2437     color: white;
2438     white-space: nowrap;
2439     text-decoration: none;
2440   }
2441
2442   a.next {
2443     display: block;
2444     position: fixed;
2445     right: 10px;
2446     bottom: 10px;
2447     width: 40px;
2448     height: 40px;
2449     border-radius: 5px;
2450     text-indent: -9999px;
2451     overflow: hidden;
2452     background: image-url('about/sprite.png') -120px 0px no-repeat;
2453     background-color: #000;
2454     background-color: rgba(0, 0, 0, 0.5);
2455   }
2456
2457   .content-inner {
2458     position: relative;
2459     color: #333;
2460     min-width: 320px;
2461     max-width: 640px;
2462
2463     .section {
2464       margin-bottom: 30px;
2465     }
2466
2467     .section:last-child {
2468       margin-bottom: 0;
2469     }
2470   }
2471
2472   .text {
2473     background: white;
2474     padding: 40px;
2475   }
2476
2477   .attr {
2478     position: relative;
2479     padding: 170px 40px 20px;
2480     background: #333;
2481     background: rgba(0, 0, 0, .8);
2482     margin-bottom: 0;
2483     margin-top: -20px;
2484
2485     h1 {
2486       display: block;
2487       color: white;
2488       font-weight: 300;
2489       font-size: 34px;
2490       span {
2491         color: #76c551;
2492       }
2493     }
2494
2495     .user-image {
2496       position: absolute;
2497       top: 0px;
2498       right: 240px;
2499       left: 0px;
2500       height: 150px;
2501       background-position: 0 50%;
2502       background-repeat: no-repeat;
2503       background-image: image-url('about/osm.png');
2504       background-size: cover;
2505       background-color: #76c551;
2506     }
2507
2508     .byosm {
2509       position: absolute;
2510       top: 0px;
2511       right: 0px;
2512       z-index: 1;
2513       width: 240px;
2514       height: 150px;
2515       padding: 20px 20px 20px 40px;
2516       font: 500 20px/24px Helvetica, Arial, sans-serif;
2517       white-space: nowrap;
2518       color: #fff;
2519       background: #76c551;
2520     }
2521
2522     .byosm span {
2523       display: inline-block;
2524       width: 20px;
2525       margin-left: -20px;
2526     }
2527   }
2528
2529   h2 {
2530     margin-bottom: 10px;
2531   }
2532
2533   .icon {
2534     width: 30px;
2535     height: 30px;
2536     margin-right: 10px;
2537     vertical-align: middle;
2538     background: 40px 40px image-url('about/sprite.png') no-repeat;
2539
2540     &.local        { background-position: 0px    0px; }
2541     &.community    { background-position: 0px  -40px; }
2542     &.open         { background-position: 0px  -80px; }
2543     &.partners     { background-position: 0px -120px; }
2544     &.infringement { background-position: 0px -160px; }
2545   }
2546 }
2547
2548 @import 'browse';
2549
2550 @media only screen and (max-width:960px) {
2551   .header-illustration.new-user-arm {
2552     display: none;
2553   }
2554 }
2555