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