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