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