]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Tidy up changeset comment code
[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, .changeset-comments li {
1107     margin: $lineheight/2 0;
1108
1109     p {
1110       margin-left: 10px;
1111     }
1112   }
1113
1114   .comments-header {
1115     float: left;
1116   }
1117
1118   .subscribe-buttons {
1119     float: left;
1120     margin: 18px 10px 10px;
1121     min-width: 80px;
1122   }
1123
1124   .subscribe-buttons input {
1125     font-size: 90%;
1126     line-height: 15px;
1127     min-height: 20px;
1128   }
1129
1130   span.action-button:hover {
1131     cursor: pointer;
1132     text-decoration: underline;
1133   }
1134
1135   .note-description {
1136     overflow: hidden;
1137     margin: 0 0 10px 10px;
1138   }
1139 }
1140
1141 /* Rules for export sidebar */
1142
1143 .export_form {
1144   padding: $lineheight;
1145
1146   .export_area_inputs,
1147   .export_button {
1148     text-align: center;
1149   }
1150
1151   .export_area_inputs {
1152     margin-bottom: $lineheight/2;
1153     input[type="text"] {
1154       width: 80px;
1155       text-align: center;
1156       margin-bottom: 5px;
1157     }
1158   }
1159
1160   .export_boxy {
1161     background: #eee;
1162     border: 1px solid #ccc;
1163     border-radius: 3px;
1164
1165     #maxlat { margin-top: -1px; }
1166     #minlon {
1167       float: left;
1168       margin-left: -1px;
1169     }
1170     #maxlon {
1171       float: right;
1172       margin-right: -1px;
1173     }
1174     #minlat { margin-bottom: 0; }
1175   }
1176
1177   .export_bound {
1178     margin: $lineheight/4;
1179   }
1180
1181   .export_button {
1182     margin-top: $lineheight;
1183     margin-bottom: $lineheight;
1184   }
1185
1186   dl {
1187     padding-left: $lineheight/2;
1188     dd {
1189       margin-left: 0;
1190       margin-bottom: 10px;
1191     }
1192   }
1193 }
1194
1195 /* Rules for edit pages */
1196
1197 .site-edit {
1198   #content {
1199     position: absolute;
1200     top: $headerHeight;
1201     bottom: 0;
1202     width: 100%;
1203   }
1204
1205   #map {
1206     height: 100%;
1207     overflow: hidden;
1208   }
1209 }
1210
1211 /* Rules for non-map content pages */
1212
1213 .content-heading {
1214   background: $lightgrey;
1215   
1216   h1 { font-size: 22px; }
1217 }
1218
1219 .content-body {
1220   h1, h2, h3, p, ul, ol {
1221     margin-bottom: $lineheight;
1222   }
1223
1224   h1, h2, h3 {
1225     margin-top: $lineheight/2;
1226   }
1227 }
1228
1229 .content-inner {
1230   position: relative;
1231   max-width: 900px;
1232   margin: auto;
1233   padding: $lineheight;
1234 }
1235
1236 /* Overrides for pages that use new layout conventions */
1237
1238 .user-new,
1239 .user-create,
1240 .user-terms {
1241   .content-body .content-inner {
1242     padding: 0;
1243   }
1244 }
1245
1246 .user-new,
1247 .user-create,
1248 .user-terms,
1249 .user-confirm {
1250   .content-heading .content-inner {
1251     height: 200px;
1252   }
1253 }
1254
1255 .header-illustration {
1256   background-position: 0 0;
1257   background-repeat: no-repeat;
1258   position: absolute;
1259   height: 200px;
1260   width: 100%;
1261   left: 0;
1262   bottom: 0;
1263
1264   &.new-user-main {
1265     background-image: image-url("sign-up-illustration.png");
1266   }
1267
1268   &.confirm-main {
1269     background-image: image-url("confirm-illustration.png");
1270   }
1271
1272   &.new-user-terms {
1273     background-image: image-url("terms-illustration.png");
1274   }
1275
1276   &.new-user-arm {
1277     height: 110px;
1278     width: 130px;
1279     left: 260px;
1280     top: 160px;
1281     background-image: image-url("sign-up-illustration-arm.png");
1282     z-index: 100;
1283   }
1284 }
1285
1286 #content.maximised {
1287   top: 0;
1288   left: 0;
1289   right: 0;
1290   bottom: 0;
1291   border: 0;
1292   z-index: 2000;
1293 }
1294
1295 /* Rules for small maps in content areas */
1296
1297 .content_map {
1298   position: relative;
1299   width: 45%;
1300   height: 400px;
1301   border: 1px solid #ccc;
1302   margin-bottom: $lineheight;
1303   float: right;
1304 }
1305
1306 /* Rules for the trace list shown by the traces tab etc */
1307
1308 #trace_list {
1309   font-size: $lineheight/2;
1310   border-width: 0px;
1311   text-align: right;
1312
1313   .trace_summary {
1314     font-size: 12px;
1315     color: gray;
1316   }
1317
1318   .trace_pending {
1319     color: red;
1320   }
1321
1322   .trace_public {
1323     color: green;
1324   }
1325
1326   .trace_identifiable {
1327     color: green;
1328   }
1329
1330   .trace_trackable {
1331     color: red;
1332   }
1333
1334   .trace_private {
1335     color: red;
1336   }
1337 }
1338
1339 /* Rules for the new trace form */
1340
1341 #new_trace {
1342   input[type=text] {
1343     width: 50%;
1344     width: calc(100% - 150px);
1345     max-width: 500px;
1346   }
1347 }
1348
1349 /* Rules for the edit trace form */
1350
1351 .edit_trace {
1352   .form-row p {
1353     margin-bottom: 0px;
1354   }
1355
1356   input[type=text] {
1357     width: 50%;
1358     width: calc(100% - 150px);
1359     max-width: 500px;
1360   }
1361 }
1362
1363 /* Rules for the user profile page */
1364
1365 #userinformation {
1366
1367   min-height: 100px;
1368   .userinformation-inner {
1369     float: left;
1370   }
1371   h2 {
1372     margin-top: 0;
1373   }
1374   .user-description {
1375     width: 100%;
1376     clear: both;
1377   }
1378   .deemphasize {
1379     margin: 0;
1380   }
1381 }
1382
1383 .admin-user-info small {
1384   margin-bottom: $lineheight/2;
1385   display: inline;
1386   margin-right: $lineheight;
1387 }
1388
1389 .activity-block {
1390   clear: left;
1391   border-bottom: 1px solid #ccc;
1392   padding-bottom: $lineheight;
1393   float: left;
1394   h3 {
1395     margin-bottom: $lineheight/2;
1396   }
1397 }
1398
1399 .contact-activity {
1400   margin-top: $lineheight;
1401   width: 100%;
1402 }
1403
1404 .activity-details p {
1405   margin-left: 70px;
1406   margin-bottom: 0;
1407 }
1408
1409 #friends-container .contact-activity ul {
1410   margin-left: 70px;
1411 }
1412
1413 .user-view {
1414   // Silly exception; remove when user page is redesigned.
1415   .content-inner {
1416     max-width: none;
1417   }
1418   p#no_home_location {
1419     margin: $lineheight;
1420   }
1421   .user_thumbnail {
1422     margin-top: $lineheight/4;
1423     float: left;
1424   }
1425 }
1426
1427 /* Rules for the user map */
1428
1429 .content_map .leaflet-popup-content {
1430   margin: $lineheight/2;
1431   min-height: 50px;
1432 }
1433
1434 /* Rules for user popups on maps */
1435
1436 .user_popup {
1437   min-width: 200px;
1438   p {
1439     padding: 0 0 5px 0;
1440     margin-top: 0 0 0 60px;
1441     font-size: 12px;
1442   }
1443   img.user_thumbnail {
1444     float: left;
1445     margin: 0 $lineheight/2 0 0;
1446   }
1447 }
1448
1449 /* Rules for the user list */
1450
1451 #user_list {
1452   font-size: $lineheight/2;
1453   width: 100%;
1454
1455   tr {
1456     vertical-align: middle;
1457   }
1458
1459   p {
1460     margin-top: 0px;
1461     margin-bottom: 0px;
1462   }
1463 }
1464
1465 #user_list_actions {
1466   float: right;
1467   margin-top: $lineheight/2;
1468 }
1469
1470 /* Rules for the diary list page */
1471
1472 .diary_post {
1473   position: relative;
1474   margin-top: $lineheight/2;
1475   padding-top: $lineheight;
1476   border-top: 1px solid #ccc;
1477
1478   .post_heading {
1479     margin-bottom: $lineheight;
1480
1481     h2 {
1482       margin-top: 0;
1483       margin-bottom: $lineheight/2;
1484       font-size: 24px;
1485     }
1486   }
1487
1488   img.user_thumbnail {
1489     float: left;
1490   }
1491
1492   small.deemphasize {
1493     float: left;
1494     display: block;
1495   }
1496
1497   ul.secondary-actions {
1498     display: inline-block;
1499   }
1500 }
1501
1502 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1503   display: inline;
1504 }
1505
1506 /* Rules for the diary entry page */
1507
1508 .diary_entry {
1509   #map {
1510     position: relative;
1511     width: 90%;
1512     height: 400px;
1513     border: 1px solid #ccc;
1514     display: none;
1515     margin-bottom: $lineheight;
1516   }
1517   #newcomment {
1518     border-top: 1px solid #ccc;
1519     padding-top: $lineheight;
1520     margin-top: $lineheight/2;
1521   }
1522   .comments {
1523     max-width: 740px;
1524   }
1525   .diary-comment {
1526     margin-top: $lineheight/2;
1527     border-top: 1px dashed #ccc;
1528     padding-top: $lineheight/2;
1529     &:first-child {
1530       margin-top: $lineheight;
1531       padding-top: $lineheight;
1532       border-top: 1px solid #ccc;
1533     }
1534     p {
1535       margin-bottom: $lineheight/2;
1536     }
1537     .comment-heading {
1538       margin-bottom: 0;
1539       margin-top: 0;
1540     }
1541   }
1542 }
1543
1544 .diary_entry-view img.user_thumbnail {
1545   float: left;
1546 }
1547
1548 /* Rules for the log in page */
1549
1550 #login_openid_buttons {
1551   margin-bottom: 0;
1552 }
1553
1554 #login_openid_buttons li {
1555   float: left;
1556   padding: $lineheight/4 $lineheight/2;
1557 }
1558
1559 /* Rules for the account confirmation page */
1560
1561 .user-terms {
1562   .legale {
1563     border: 1px solid #ccc;
1564     padding: $lineheight;
1565     margin-bottom: $lineheight;
1566     overflow: auto;
1567     height: 20em;
1568   }
1569
1570   #decline {
1571     background: $lightblue;
1572     &:hover {
1573       background: darken($lightblue, $hovercolor);
1574     }
1575   }
1576 }
1577
1578 /* Rules for the account settings page */
1579
1580 #accountForm .user_map {
1581   position: relative;
1582   width: 500px;
1583   height: 400px;
1584   border: 1px solid #ccc;
1585 }
1586
1587 #accountForm .user_image {
1588   margin-bottom: 0;
1589 }
1590
1591 #accountForm #user_image {
1592   margin-left: 20px;
1593 }
1594
1595 #accountForm ul.accountImage-options {
1596   margin-left: 120px;
1597 }
1598
1599 .nohome .location {
1600   display: none;
1601 }
1602
1603 #homerow .message {
1604   display: none;
1605 }
1606
1607 .nohome .message {
1608   display: inline !important;
1609 }
1610
1611 .content_map.settings_map {
1612   width: 50%;
1613   float: none;
1614 }
1615
1616 /* Rules for the oauth settings page */
1617
1618 .oauth_clients .buttons .oauth-edit {
1619   border-radius: 2px 0 0 2px;
1620 }
1621
1622 .oauth_clients .buttons .oauth-delete {
1623   border-radius: 0 2px 2px 0;
1624 }
1625
1626 /* Rules for messages pages */
1627
1628 .messages {
1629   width: 100%;
1630   border: 1px solid #ddd;
1631
1632   input[type="submit"] {
1633     margin: auto;
1634   }
1635   tbody tr {
1636     border-top: 1px solid #ccc;
1637   }
1638
1639   .inbox-row {
1640     background: #f8f8ff;
1641   }
1642
1643   .inbox-row-unread {
1644     background:#CBEEA7;
1645   }
1646
1647   .right {
1648     float: right;
1649   }
1650
1651   tr td,
1652   tr th {
1653     padding: $lineheight/4;
1654   }
1655   p:last-child,
1656   h2:last-child,
1657   h3:last-child,
1658   ol:last-child,
1659   ul:last-child {
1660     margin-bottom:0;
1661   }
1662   tr td {
1663     height: 30px;
1664     border-right: 1px solid $lightgrey;
1665   }
1666 }
1667
1668 .inbox-row .inbox-mark-read {
1669   display: none;
1670 }
1671
1672 .info-line {
1673   margin-bottom: $lineheight;
1674   padding: $lineheight/4 0px 4px 0px;
1675   border-bottom: 1px solid #ccc;
1676
1677   form, form div {
1678     display: inline;
1679   }
1680 }
1681
1682 .info-line .user_thumbnail_tiny {
1683   vertical-align: middle;
1684 }
1685
1686 .inbox-sent {
1687   white-space: nowrap;
1688 }
1689
1690 .inbox-mark-unread,
1691 .inbox-mark-read,
1692 .inbox-delete {
1693   width: 1%;
1694 }
1695
1696 .inbox-row-unread .inbox-mark-unread {
1697   display: none;
1698 }
1699
1700 .message-read .message-buttons {
1701   margin-top: $lineheight;
1702   margin-bottom: $lineheight * 1.5;
1703   padding-top: $lineheight;
1704   border-top: 1px solid $lightgrey;
1705 }
1706
1707 .message-read .buttons .mark-unread-button {
1708   border-radius: 0;
1709 }
1710
1711 /* Rules for "flash" notice boxes shown at the top of the content area */
1712
1713 .error {
1714   padding: $lineheight;
1715   background-color: #ff7070;
1716 }
1717
1718 .warning {
1719   padding: $lineheight;
1720   background-color: #ffe0cc;
1721 }
1722
1723 .notice {
1724   padding: $lineheight;
1725   background-color: #CBEEA7;
1726 }
1727
1728 /* Rules for highlighting fields with rails validation errors */
1729
1730 .formError {
1731   display: inline-block;
1732   padding: 5px 10px;
1733   margin-top: 5px;
1734   border-radius: 4px;
1735   font-size: 12px;
1736   color: #fff;
1737   background-color: #ff7070;
1738 }
1739
1740 /* Rules for rails validation error boxes */
1741
1742 #errorExplanation {
1743   width: 400px;
1744   border: 2px solid #ff7070;
1745   padding: 0 $lineheight/2;
1746   margin-bottom: $lineheight;
1747   background-color: #f0f0f0;
1748
1749   h2 {
1750     margin: 0 -10px 10px -10px;
1751     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1752     font-weight: bold;
1753     font-size: 12px;
1754     background-color: #c00;
1755     color: #fff;
1756     text-align: left;
1757   }
1758
1759   p {
1760     color: #333;
1761     margin-bottom: 0px;
1762     padding: $lineheight/4;
1763   }
1764
1765   ul {
1766     padding-left: $lineheight;
1767
1768     li {
1769       font-size: 12px;
1770       list-style: disc;
1771     }
1772   }
1773 }
1774
1775 /* Rules for forms */
1776
1777 .standard-form {
1778   fieldset {
1779     margin-bottom: $lineheight;
1780   }
1781   label.standard-label {
1782     display: block;
1783     margin-bottom: $lineheight/4;
1784     font-size: $typeheight;
1785     font-weight: bold;
1786     line-height: 1.5;
1787   }
1788   label.standard-label.secondary {
1789     display: inline-block;
1790     font-weight: normal;
1791   }
1792   .form-help {
1793     font-weight: normal;
1794   }
1795   .form-column {
1796     float: left;
1797     margin-right: 20px;
1798   }
1799   .form-divider {
1800     margin-top: $lineheight;
1801     padding-top: $lineheight;
1802     border-top: 1px solid $lightgrey;
1803   }
1804   .horizontal-list .form-row { 
1805     float: left;
1806     padding-right: 10px;
1807   }
1808   .form-row {
1809     margin-bottom: $lineheight/2;
1810   }
1811   .form-list {
1812     margin-bottom: 0;
1813   }
1814   .form-list li {
1815     margin-bottom: 5px;
1816    }
1817   input[type="checkbox"],
1818   input[type="radio"] {
1819     float: left;
1820     margin-top: 5px;
1821   }
1822 }
1823
1824 #remember_me_openid {
1825   display: block;
1826 }
1827
1828 input[type="checkbox"],
1829 input[type="radio"] {
1830     margin-right: 5px;
1831 }
1832
1833 input[type="text"],
1834 input[type="email"],
1835 input[type="url"],
1836 input[type="password"],
1837 textarea {
1838   border: 1px solid #ccc;
1839   padding: 2px 5px;
1840   margin: 0;
1841   width: 200px;
1842
1843   &.field_with_errors {
1844     border: 2px solid #ff7070;
1845   }
1846 }
1847
1848 textarea {
1849   padding: 5px;
1850   width: 100%;
1851 }
1852
1853 /* Rules for user images */
1854
1855 img.user_image {
1856   max-width: 100px;
1857   max-height: 100px;
1858   border: 1px solid #ccc;
1859   margin-bottom: $lineheight;
1860   float: left;
1861   margin-right: $lineheight;
1862 }
1863
1864 img.user_thumbnail {
1865   max-width: 50px;
1866   max-height: 50px;
1867   border: 1px solid #ccc;
1868   margin-right: $lineheight;
1869 }
1870
1871 img.user_thumbnail_tiny {
1872   width: auto;
1873   height: auto;
1874   max-width: 25px;
1875   max-height: 25px;
1876   border: 1px solid #ccc;
1877 }
1878
1879 /* Rules for geo microformats */
1880
1881 abbr.geo {
1882   border-bottom: none;
1883 }
1884
1885 /* Rules for RSS buttons */
1886
1887 .rsssmall {
1888   position: relative;
1889   top: 3px;
1890 }
1891
1892 /* General styles for action lists / subnavs / pager navs */
1893
1894 ul.secondary-actions {
1895   font-style: normal;
1896   margin-bottom: 0;
1897   margin-left: 0;
1898   &.pager {
1899     display: inline-block;
1900     margin-right: 60px;
1901   }
1902   > li {
1903     display: block;
1904     float: left;
1905     list-style: none;
1906     border-left: 1px solid #ccc;
1907     padding-left: $lineheight/2;
1908     margin-right: $lineheight/2;
1909     &:first-child {
1910       border-left: 0;
1911       padding-left: 0;
1912     }
1913     &:last-child {
1914       margin-right: 0px;
1915     }
1916   }
1917 }
1918
1919 div.secondary-actions {
1920   padding: 10px;
1921   text-align: center;
1922 }
1923
1924 /* Utility for managing inner content areas */
1925
1926 .inner22 { padding: $lineheight;}
1927
1928 .inner12 { padding: $lineheight/2 $lineheight;}
1929
1930 .inner11 { padding: $lineheight/2;}
1931
1932 .inner20 { padding: $lineheight 0;}
1933
1934 .inner02 { padding: 0 $lineheight;}
1935
1936 /* Utility for general button styles */
1937
1938 input[type="button"],
1939 input[type="submit"],
1940 input[type="reset"],
1941 a.button {
1942   cursor: pointer;
1943   border: 0;
1944   display: inline-block;
1945   padding: $lineheight/4 $lineheight/2;
1946   min-height: 20px + $lineheight/2;
1947   min-width: 120px;
1948   margin: 0 0 $lineheight/2 0;
1949   color: white;
1950   background: $blue;
1951   text-align: center;
1952   border-radius: 2px;
1953   &:hover {
1954     background: darken($blue, $hovercolor);
1955     text-decoration: none;
1956   }
1957   &.deemphasize {
1958     background: $lightblue;
1959     &:hover {
1960       background: darken($lightblue, $hovercolor);
1961     }
1962   }
1963   &:disabled {
1964     background: $lightgrey;
1965     &:hover {
1966       background: $lightgrey;
1967     }
1968   }
1969   &:last-child {
1970     margin-bottom: 0;
1971   }
1972 }
1973
1974 input[type="button"],
1975 input[type="submit"],
1976 input[type="reset"] {
1977   line-height: normal;
1978 }
1979
1980 a.button {
1981   line-height: 20px;
1982 }
1983
1984 .buttons {
1985   min-width: 200px;
1986   input[type="submit"],
1987   input[type="button"],
1988   input[type="reset"],
1989   .button {
1990     box-sizing: border-box;
1991     float: left;
1992     border-radius: 0;
1993     margin:0;
1994     min-width: 75px;
1995     max-width: 180px;
1996     border-right:1px solid white;
1997     text-overflow: ellipsis;
1998     white-space: nowrap;
1999     overflow: hidden;
2000   }
2001   input:first-child,
2002   .button:first-child {
2003     border-radius:2px 0 0 2px;
2004   }
2005   input:last-child,
2006   .button:last-child {
2007     border-radius:0 2px 2px 0;
2008     border-right-width: 0;
2009   }
2010   input:only-child,
2011   .button:only-child,
2012   *[value="Hide"] + input:last-child,
2013   *[value="Hide"] + .button:last-child {
2014     border-radius:2px;
2015     border-right-width: 0;
2016   }
2017     /* if a 3-button set has a hidden middle button */
2018   *[value="Hide"] + input:nth-child(3),
2019   *[value="Hide"] + .button:nth-child(3) {
2020     border-radius:0 2px 2px 0;
2021     border-right-width: 0;
2022   }
2023   /* if a 3-button set starts with a hidden button */
2024   *[value="Hide"] + input:nth-child(2):not(:last-child),
2025   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
2026     border-radius:2px 0 0 2px;
2027     border-right-width: 1px;
2028   }
2029 }
2030
2031 /* Rules for doing distinct colour of alternate table rows */
2032
2033 .table0,
2034 .item0 {
2035   background: $offwhite;
2036 }
2037
2038 .table1,
2039 .item1 {
2040   background: #fff;
2041 }
2042
2043 /* Rules for OpenID logo */
2044
2045 .openid_logo {
2046   vertical-align: text-bottom;
2047   border: 0;
2048 }
2049
2050 /* Rules for rich text */
2051
2052 .richtext,
2053 .prose {
2054   h1, h2 {
2055     padding-bottom: $lineheight/2;
2056     border-bottom: 1px dashed #cccccc;
2057     margin-bottom: $lineheight/2;
2058   }
2059
2060   h1 {
2061     font-size: 24px;
2062   }
2063
2064   h2 {
2065     font-size: 18px;
2066   }
2067
2068   h3 {
2069     font-size: $typeheight;
2070   }
2071
2072   code {
2073     font-size: 13px;
2074     background: #e8e8e8;
2075     padding: 2px 3px;
2076   }
2077
2078   pre {
2079     font-size: 13px;
2080     background: #e8e8e8;
2081     padding: 2px 3px;
2082
2083     code {
2084       padding: 0;
2085     }
2086   }
2087
2088   img {
2089     padding: $lineheight;
2090     background-color: $offwhite;
2091     display: block;
2092     max-width: 100%;
2093     margin: auto;
2094   }
2095
2096   blockquote {
2097     border-left: $lineheight solid $offwhite;
2098     padding-left: $lineheight;
2099     margin: 0;
2100     color: #7E7E7E;
2101   }
2102
2103   ul, ol {
2104     padding-left: $lineheight;
2105     margin-bottom: $lineheight;
2106     margin-left: $lineheight;
2107   }
2108
2109   ul li {
2110     list-style: disc;
2111   }
2112
2113   ol li {
2114     list-style: decimal;
2115   }
2116 }
2117
2118 .diary_post .richtext {
2119     margin-top: $lineheight;
2120   }
2121
2122 .comments .richtext {
2123   margin-left: 70px;
2124   margin-top: 0;
2125 }
2126
2127 /* Rules for rich text editors */
2128
2129 input.richtext_title[type="text"] {
2130   width: 50%;
2131   width: calc(100% - 235px);
2132
2133   @media only screen and (max-width:768px) {
2134     width: 100%;
2135   }
2136 }
2137
2138 .richtext_container {
2139   margin-bottom: $lineheight;
2140
2141   .richtext_content {
2142     width: 50%;
2143     width: calc(100% - 235px);
2144     display: inline-block;
2145     vertical-align: top;
2146
2147     @media only screen and (max-width:768px) {
2148       width: 100%;
2149     }
2150
2151     .richtext_preview {
2152       display: inline-block;
2153       padding: $lineheight;
2154       background-color: $offwhite;
2155       overflow-x: auto;
2156
2157       &.loading {
2158         background-image: image-url("loading.gif");
2159         background-repeat: no-repeat;
2160         background-position: center;
2161       }
2162
2163       > :first-child {
2164         margin-top: 0px;
2165       }
2166     }
2167   }
2168
2169   .richtext_help {
2170     display: inline-block;
2171     vertical-align: top;
2172     margin-left: 15px;
2173     background-color: #f8f8ff;
2174     padding: $lineheight/2;
2175     width: 220px;
2176
2177     ul {
2178       margin-bottom: 0;
2179     }
2180
2181     h4.heading, li {
2182       border-bottom: 1px solid #ccc;
2183       margin-bottom: $lineheight/4;
2184       padding-bottom: $lineheight/4;
2185     }
2186
2187     li h4, li span, li p {
2188       display: inline-block;
2189       vertical-align: top;
2190       font-size: 11px;
2191     }
2192
2193     li h4 {
2194       width: 40%;
2195       margin: 0;
2196     }
2197
2198     li span, li p {
2199       width: 50%;
2200       margin-left: $lineheight/2;
2201       margin-bottom: $lineheight/4;
2202       white-space: nowrap;
2203     }
2204   }
2205 }
2206
2207 /* Rules for the user notes list */
2208
2209 .note_list {
2210   tr.creator {
2211     background-color: #eeeeee;
2212   }
2213
2214   td {
2215     padding: 3px;
2216   }
2217
2218   p {
2219     margin-bottom: 0px;
2220   }
2221 }
2222
2223 /* Rules for the iD editor */
2224
2225 .id-embed {
2226   width: 100%;
2227   height: 100%;
2228 }
2229
2230 /* Rules for dropdown menus */
2231
2232 .dropdown {
2233   position: relative;
2234 }
2235
2236 .dropdown-toggle {
2237   *margin-bottom: -3px;
2238 }
2239
2240 .dropdown-toggle:active,
2241 .open .dropdown-toggle {
2242   outline: 0;
2243 }
2244
2245 .caret {
2246   display: inline-block;
2247   width: 0;
2248   height: 0;
2249   vertical-align: top;
2250   border-top: 4px solid #000000;
2251   border-right: 4px solid transparent;
2252   border-left: 4px solid transparent;
2253   content: "";
2254 }
2255
2256 .dropdown .caret {
2257   margin-top: 8px;
2258   margin-left: 2px;
2259 }
2260
2261 .dropdown-menu {
2262   position: absolute;
2263   top: 100%;
2264   left: -1px;
2265   z-index: 1000;
2266   display: none;
2267   float: left;
2268   min-width: 160px;
2269   padding: 5px 0;
2270   margin: 0;
2271   list-style: none;
2272   background-color: #ffffff;
2273   border: 1px solid #ccc;
2274   border-radius: 0 3px 3px;
2275   *border-right-width: 2px;
2276   *border-bottom-width: 2px;
2277   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2278   background-clip: padding-box;
2279 }
2280
2281 .dropdown-menu.pull-right {
2282   right: 0;
2283   left: auto;
2284 }
2285
2286 .dropdown-menu .divider {
2287   *width: 100%;
2288   height: 1px;
2289   margin: 9px 1px;
2290   *margin: -5px 0 5px;
2291   overflow: hidden;
2292   background-color: #e5e5e5;
2293   border-bottom: 1px solid #ffffff;
2294 }
2295
2296 .dropdown-menu > li > a {
2297   display: block;
2298   padding: 3px 10px;
2299   clear: both;
2300   font-weight: normal;
2301   line-height: 20px;
2302   color: #333333;
2303   white-space: nowrap;
2304 }
2305
2306 .dropdown-menu > li > a:hover,
2307 .dropdown-menu > li > a:focus,
2308 .dropdown-submenu:hover > a,
2309 .dropdown-submenu:focus > a {
2310   color: #ffffff;
2311   text-decoration: none;
2312   background-color: $green;
2313 }
2314
2315 .dropdown-menu > .active > a,
2316 .dropdown-menu > .active > a:hover,
2317 .dropdown-menu > .active > a:focus {
2318   color: #ffffff;
2319   text-decoration: none;
2320   background-color: $green;
2321   outline: 0;
2322 }
2323
2324 .dropdown-menu > .disabled > a,
2325 .dropdown-menu > .disabled > a:hover,
2326 .dropdown-menu > .disabled > a:focus {
2327   color: #999999;
2328 }
2329
2330 .dropdown-menu > .disabled > a:hover,
2331 .dropdown-menu > .disabled > a:focus {
2332   text-decoration: none;
2333   cursor: default;
2334   background-color: transparent;
2335   background-image: none;
2336 }
2337
2338 .open {
2339   *z-index: 1000;
2340 }
2341
2342 .open > .dropdown-menu {
2343   display: block;
2344 }
2345
2346 .dropdown-backdrop {
2347   position: fixed;
2348   top: 0;
2349   right: 0;
2350   bottom: 0;
2351   left: 0;
2352   z-index: 990;
2353 }
2354
2355 /* Rules for the "Welcome" page */
2356 .site-welcome, .site-fixthemap {
2357   .center {
2358     text-align: center;
2359     .sprite { 
2360       float: none;
2361       margin: auto;
2362     }
2363   }
2364
2365   .sprite {
2366     background-image: image-url("welcome-sprite.png");
2367     background-size: 500px 250px;
2368     display: block;
2369     float: left;
2370   }
2371
2372   .icon-list { 
2373     padding-bottom: 20px;
2374     div {
2375       margin-bottom: 10px;
2376       p {
2377         padding-top: 10px;
2378       }
2379     }
2380   }
2381   .sprite.small {
2382     width: 50px;
2383     height: 50px;
2384   }
2385
2386   .sprite.x {
2387     background-position: -50px 0;
2388   }
2389
2390   .sprite.term {
2391     margin-right: 10px;
2392     vertical-align: middle;
2393   }
2394
2395   .sprite.node {
2396     background-position: -100px 0;
2397   }
2398
2399   .sprite.way {
2400     background-position: -150px 0;
2401   }
2402
2403   .sprite.tag {
2404     background-position: -200px 0;
2405   }
2406
2407   .sprite.editor {
2408     background-position: -250px 0;
2409   }
2410
2411   .sprite.question {
2412     background-position: -300px 0;
2413   }
2414
2415   .start-mapping {
2416     margin: auto;
2417     cursor: pointer;
2418     border: none;
2419     padding: 20px 40px;
2420     font-size: 30px;
2421     text-decoration: none;
2422   }
2423
2424   .note-box {
2425     margin-top: 20px;
2426     background-color: $offwhite;
2427   }
2428
2429   .icon.note {
2430     background-color: #333;
2431     border-radius: 4px;
2432   }
2433 }
2434
2435 .site-about #content {
2436   //background-color: #000;
2437   background-color: #eee;
2438   background-position: 50% 50%;
2439   background-repeat: no-repeat;
2440   background-size: cover;
2441   background-attachment: fixed;
2442
2443   .caption {
2444     max-width: 200px;
2445     font: 13px/20px Helvetica, Arial, sans-serif;
2446     position: fixed;
2447     text-align: right;
2448     right: 20px;
2449     bottom: 60px;
2450     text-shadow: #000 0px 1px 5px;
2451     color: #eee;
2452     opacity: 0.8;
2453     display: none;
2454   }
2455
2456   .caption a {
2457     color: white;
2458     white-space: nowrap;
2459     text-decoration: none;
2460   }
2461
2462   a.next {
2463     display: block;
2464     position: fixed;
2465     right: 10px;
2466     bottom: 10px;
2467     width: 40px;
2468     height: 40px;
2469     border-radius: 5px;
2470     text-indent: -9999px;
2471     overflow: hidden;
2472     background: image-url('about/sprite.png') -120px 0px no-repeat;
2473     background-color: #000;
2474     background-color: rgba(0, 0, 0, 0.5);
2475   }
2476
2477   .content-inner {
2478     position: relative;
2479     color: #333;
2480     min-width: 320px;
2481     max-width: 640px;
2482
2483     .section {
2484       margin-bottom: 30px;
2485     }
2486
2487     .section:last-child {
2488       margin-bottom: 0;
2489     }
2490   }
2491
2492   .text {
2493     background: white;
2494     padding: 40px;
2495   }
2496
2497   .attr {
2498     position: relative;
2499     padding: 170px 40px 20px;
2500     background: #333;
2501     background: rgba(0, 0, 0, .8);
2502     margin-bottom: 0;
2503     margin-top: -20px;
2504
2505     h1 {
2506       display: block;
2507       color: white;
2508       font-weight: 300;
2509       font-size: 34px;
2510       span {
2511         color: #76c551;
2512       }
2513     }
2514
2515     .user-image {
2516       position: absolute;
2517       top: 0px;
2518       right: 240px;
2519       left: 0px;
2520       height: 150px;
2521       background-position: 0 50%;
2522       background-repeat: no-repeat;
2523       background-image: image-url('about/osm.png');
2524       background-size: cover;
2525       background-color: #76c551;
2526     }
2527
2528     .byosm {
2529       position: absolute;
2530       top: 0px;
2531       right: 0px;
2532       z-index: 1;
2533       width: 240px;
2534       height: 150px;
2535       padding: 20px 20px 20px 40px;
2536       font: 500 20px/24px Helvetica, Arial, sans-serif;
2537       white-space: nowrap;
2538       color: #fff;
2539       background: #76c551;
2540     }
2541
2542     .byosm span {
2543       display: inline-block;
2544       width: 20px;
2545       margin-left: -20px;
2546     }
2547   }
2548
2549   h2 {
2550     margin-bottom: 10px;
2551   }
2552
2553   .icon {
2554     width: 30px;
2555     height: 30px;
2556     margin-right: 10px;
2557     vertical-align: middle;
2558     background: 40px 40px image-url('about/sprite.png') no-repeat;
2559
2560     &.local        { background-position: 0px    0px; }
2561     &.community    { background-position: 0px  -40px; }
2562     &.open         { background-position: 0px  -80px; }
2563     &.partners     { background-position: 0px -120px; }
2564     &.infringement { background-position: 0px -160px; }
2565   }
2566 }
2567
2568 #sidebar #sotm {
2569   padding: 10px;
2570   min-height: 120px;
2571
2572   img {
2573     float: left;
2574     width: 100px;
2575     height: 100px;
2576   }
2577
2578   h2 {
2579     margin-left: 100px;
2580     padding: 7px 10px 6px 15px;
2581   }
2582
2583   p {
2584     margin-left: 100px;
2585     padding: 6px 10px 7px 15px;
2586   }
2587
2588   a {
2589     color: $darkgrey;
2590   }
2591
2592   :hover {
2593     text-decoration: none;
2594     color: darken($darkgrey, 25%);
2595   }
2596 }
2597
2598 @import 'browse';
2599
2600 @media only screen and (max-width:960px) {
2601   .header-illustration.new-user-arm {
2602     display: none;
2603   }
2604 }
2605