]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
313c535623d9593fc33282a72d690a7b18f675fb
[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   height: 100%;
119 }
120
121 body.slim {
122   background-color: #f0f0f0;
123 }
124
125 h1, h2, h3 {
126   font-weight: 500;
127   line-height: 1.2;
128 }
129
130 h4, h5 { font-weight: 500; }
131
132 h1 {
133   font-size: 18px;
134 }
135
136 h2, h3 {
137   font-size: 16px;
138 }
139
140 p > img {
141   width: auto;
142   max-width: 100%;
143 }
144
145 small, aside {
146   font-size: 12px;
147 }
148
149 #container { position: relative; }
150
151 .column-1 {
152   width: 50%;
153   margin: 0 0 $lineheight/2 0;
154 }
155
156 .small_icon {
157   vertical-align: middle;
158   margin-right: $lineheight/4;
159 }
160
161 .red { color: $red; }
162
163 /* Rules for icons */
164
165 .icon {
166   display:inline-block;
167   vertical-align:top;
168   width:20px;
169   height:20px;
170   background:transparent image-url("sprite.png") no-repeat 0 0;
171   text-indent:-9999px;
172   overflow:hidden;
173 }
174
175 .icon.search      { background-position: 0 0; }
176 .icon.donate      { background-position: -20px 0; }
177 .icon.zoomin      { background-position: -40px 0; }
178 .icon.zoomout     { background-position: -60px 0; }
179 .icon.geolocate   { background-position: -80px 0; }
180 .active .icon.geolocate   { background-position: -80px -20px; }
181 .icon.layers      { background-position: -100px 0; }
182 .icon.key         { background-position: -120px 0; }
183 .icon.share       { background-position: -140px 0; }
184 .icon.clipboard   { background-position: -160px 0; }
185 .icon.link        { background-position: -180px 0; }
186 .icon.close       { background-position: -200px 0; }
187 .icon.close:hover { background-position: -200px -20px; }
188 .icon.check       { background-position: -220px 0; }
189 .icon.note        { background-position: -240px 0; }
190 .icon.gear        { background-position: -260px 0; }
191
192 /* Rules for links */
193
194 a {
195   color: #00f;
196   text-decoration: none;
197   -webkit-appearance: none;
198   outline: 0;
199   &:hover {
200     text-decoration: underline;
201   }
202 }
203
204 /* Rules for horizontal lines */
205
206 hr {
207   border: none;
208   background-color: #ccc;
209   color: #ccc;
210   height: 1px;
211 }
212
213 /* General styles for tables */
214
215 table {
216   width: 100%;
217   margin-bottom: $lineheight;
218   th, td {
219     text-align: left;
220     padding: $lineheight/4;
221     line-height: $lineheight;
222   }
223   th {
224     font-weight: 500;
225     vertical-align: top;
226   }
227   td {
228     vertical-align: middle;
229   }
230 }
231
232 /* Utility for de-emphasizing content */
233
234 .deemphasize {
235   color: #999;
236   a {
237     color: $blue;
238   }
239 }
240
241 /* Rules for the header */
242
243 #menu-icon { 
244   display: none !important;
245   float: right;
246   background: image-url("menu-icon.png") no-repeat;
247   background-size: 30px 30px;
248   display: block;
249   width: 30px;
250   height: 30px;
251   margin: 14px 10px 0 0;
252   opacity: 0.6;
253 }
254
255 header {
256   height: $headerHeight;
257   position: relative;
258   z-index: 1001;
259   font-size: 13px;
260
261   h1, nav, nav > ul, nav > ul > li, .dropdown {
262     display: inline-block;
263   }
264
265   > * {
266     height: 100%;
267     padding: $lineheight/2 $lineheight;
268   }
269
270   h1, nav.primary {
271     float: left;
272   }
273
274   a, a:hover {
275     text-decoration: none;
276   }
277
278   img.logo {
279     width: 30px;
280     height: 30px;
281     margin-top: -4px;
282     vertical-align: middle;
283   }
284
285   h1 {
286     margin: 0;
287     padding: ($lineheight - 3) $lineheight ($lineheight + 3);
288
289     a {
290       color: #000;
291     }
292   }
293 }
294
295 nav.primary {
296   > ul {
297     $border: 1px solid $green;
298
299     border: $border;
300     border-radius: $border-radius;
301
302     > li {
303       border-right: $border;
304       float: left;
305       &:last-child { 
306         border-right: 0;
307       }
308       > a:hover { background: lighten($green, 30%); }
309       &.current > a:hover { background: $green; }
310       &.disabled > a:hover { background: lighten($green, 38%); }
311       &.dropdown {
312         > a.tab { border-right: 1px solid lighten($green, 30%); }
313         &.current > a.tab { border-right: 1px solid lighten($green, 10%); }
314       }
315     }
316   }
317
318   a.tab,
319   .dropdown-toggle {
320     display: inline-block;
321     font-weight: 500;
322     color: $green;
323     padding: 5px 15px;
324   }
325
326   .dropdown-toggle {
327     padding: 5px 6px;
328   }
329
330   .caret {
331     border-top-color: $green;
332     margin-top: 10px;
333   }
334
335   .disabled a {
336     color: #ccc;
337     cursor: default;
338
339     .caret {
340       border-top-color: #ccc;
341     }
342   }
343
344   > ul li.current {
345     background-color: $green;
346
347     .tab {
348       color: #fff;
349     }
350
351     .caret {
352       border-top-color: #fff;
353     }
354   }
355 }
356
357 nav.secondary {
358   position: absolute;
359   right: 0;
360
361   > ul {
362     vertical-align: middle;
363     a, .dropdown-toggle {
364       display: inline-block;
365       text-decoration: none;
366       color: $darkgrey;
367       padding: 5px;
368
369       &:hover { color: darken($darkgrey, 10%); }
370     }
371   }
372
373   > ul li.current a {
374     color: darken($darkgrey, 25%);
375   }
376
377   .user-menu {
378     $border: 1px solid $grey;
379
380     font-weight: 500;
381     border: $border;
382     border-radius: $border-radius;
383     margin-left: 10px;
384
385     > li {
386       border-right: $border;
387       float: left;
388       &:last-child { 
389         border-right: 0;
390
391         > a {
392           border-radius: 0 $border-radius $border-radius 0;
393         } 
394       }
395       &:first-child > a { border-radius: $border-radius 0 0 $border-radius; }
396       &:hover a { background: lighten($darkgrey, 30%); }
397     }
398
399     a {
400       padding: 5px 15px;
401
402     }
403
404     &.logged-in > a {
405       padding: 0;
406       > .user-button {
407         padding: 5px 10px 5px 6px;
408         display: inline-block;
409         color: $darkgrey;
410       }
411       &:hover > .user-button { color: darken($darkgrey, 5%); }
412     }
413   }
414
415   .caret {
416     border-top-color: $grey;
417     margin-top: 9px;
418   }
419
420   img.user_thumbnail_tiny {
421     border: 0;
422     vertical-align: top;
423     margin-top: 0px;
424     margin: 3px 0 0 3px;
425     border-radius: 2px;
426   }
427
428   #inboxanchor {
429     display: inline-block;
430     vertical-align: top;
431     height: 25px;
432     margin: 3px 0 3px 3px;
433     background-color: lighten($grey, 10%);
434     line-height: 20px;
435     border-radius: 2;
436   }
437
438   .dropdown-menu {
439     left: auto;
440     right: -1px;
441     border-radius: 3px 0 3px 3px;
442
443     .count-number {
444       float: right;
445       padding: 0 5px;
446       margin: 0;
447     }
448   }
449 }
450
451 #compact-secondary-nav {
452   display: none;
453   ul li a {
454     width: 100%;
455     color: #333;
456     &:hover { color: #fff; }
457   }
458 }
459
460 @media only screen and (max-width:960px) {
461   #compact-secondary-nav {
462     display: inline-block;
463   }
464   .compact-hide {
465     display: none;
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     background: #fff;
642
643     h2, h3, h4 {
644       padding: $lineheight $lineheight $lineheight/2;
645     }
646
647     h4 {
648       font-weight: normal;
649       color: #666;
650       font-size: 12px;
651     }
652
653     .icon.close {
654       position: absolute;
655       right: $lineheight;
656       cursor: pointer;
657     }
658
659     -webkit-transition: margin 300ms linear;
660        -moz-transition: margin 300ms linear;
661             transition: margin 300ms linear;
662   }
663
664   #sidebar.minimized {
665     position: absolute;
666     z-index: 1000;
667     height: auto;
668     border-radius: 5px;
669     overflow: hidden;
670     margin-top: $typeheight;
671     margin-left: $typeheight;
672   }
673
674   .welcome {
675     p {
676       padding: $lineheight/2 $lineheight $lineheight;
677       font-size: 110%;
678       font-weight: 300;
679     }
680
681     .button {
682       width: 50%;
683       float: left;
684       margin: 0;
685       border-radius: 0;
686       font-weight: 400;
687       padding: .6em;
688
689       &.learn-more {
690         border-right: 1px solid #fff;
691       }
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 {
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 .donate-attr { color: darken($green, 10%) !important; }
875
876 /* Rules for the sidebar */
877
878 .sidebar_heading {
879   position: relative;
880   padding: $lineheight/2 $lineheight;
881   // background: $offwhite;
882   // border-bottom: 1px solid #ccc;
883   > .close { 
884     float: right;
885     margin-top: 2px;
886     cursor: pointer; 
887   }
888 }
889
890 #sidebar_content {
891   .loader,
892   .load_more {
893     text-align: center;
894     margin: $lineheight auto;
895     width: $lineheight;
896     display: block;
897   }
898 }
899
900 /* Rules for the search box */
901
902 #search_form {
903   position: relative;
904   padding: $lineheight/2;
905   background-color: $lightgrey;
906
907   #query_wrapper {
908     position: relative;
909     overflow: hidden;
910   }
911
912   input {
913     width: 100%;
914     height: 30px;
915     border-right: none;
916     border-radius: 2px 0 0 2px;
917
918     transition: 300ms linear;
919     -webkit-transition: 300ms linear;
920     -moz-transition: 300ms linear;
921   }
922
923   input:focus {
924     outline: none;
925     box-shadow: 0px 0px 7px #9ED485;
926   }
927
928   input[type=submit] {
929     float: right;
930     width: auto;
931     min-width: 0;
932     border-radius: 0 2px 2px 0;
933   }
934
935   #describe_location {
936     position: absolute;
937     top: 6px;
938     right: 6px;
939     font-size: 10px;
940     color: $blue;
941   }
942 }
943
944 /* Rules for donation request box */
945
946 a.donate {
947   display: block;
948   padding: $lineheight/4 $lineheight;
949   border: 1px solid $green;
950   font-size: $typeheight;
951   line-height: 1.4;
952   text-align: center;
953   border-radius: 2px;
954   color: #222;
955   margin: $lineheight/2 $lineheight;
956
957   &:hover {
958     background: $green;
959     text-decoration: none;
960   }
961 }
962
963 /* Rules for rotating sidebar ads */
964
965 .ad-container {
966   display: block;
967   height: 120px;
968   margin: auto;
969   overflow: hidden;
970   position: relative;
971   border-bottom: 1px solid #ccc;
972
973   a {
974     display: block;
975     width: 165px;
976     margin: auto;
977   }
978
979   .ad {
980     height: 100px;
981     border: 0;
982     background: #fff;
983   }
984 }
985
986 /* Rules for the map key which appears in the popout sidebar */
987
988 #mapkey {
989  .mapkey-table-key img {
990     display: block;
991     margin-left: auto;
992     margin-right: auto;
993   }
994   td {
995     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
996   }
997 }
998
999 /* Rules for search results which appear in the popout sidebar */
1000
1001 .search_results_entry {
1002   ul li {
1003     border-bottom: $keyline;
1004     &:first-child { border-top: $keyline; }
1005   }
1006
1007   .search_details {
1008     display: block;
1009     float: right;
1010     text-align: right;
1011     margin-top: 0.2em;
1012     margin-left: 0.5em;
1013   }
1014 }
1015
1016 .search_results_error {
1017   color: #f00;
1018 }
1019
1020 /* Rules for data browser information which appears in the popout sidebar */
1021
1022 #browse_content {
1023   position: relative;
1024   .browse_show_list.button {
1025     position: absolute;
1026     left: $lineheight;
1027     right: $lineheight;
1028     bottom: -40px;
1029     margin-bottom: 0;
1030   }
1031   a.more-details {
1032     position: absolute;
1033     top: 0;
1034     right: $lineheight;
1035   }
1036   ul li {
1037     margin-bottom: 0;
1038   }
1039 }
1040
1041 /* Rules for entity history */
1042 #sidebar_content {
1043   .browse_details {
1044     position: relative;
1045     border-bottom: $keyline;
1046   }
1047 }
1048
1049 .browse_status {
1050   display: none;
1051 }
1052
1053 /* Rules for the changeset list shown by the history tab */
1054
1055 #sidebar .changesets {
1056   li {
1057     padding: $lineheight;
1058     border-bottom: $keyline;
1059     cursor: pointer;
1060
1061     &.selected { background: #FFFFE6; }
1062     /* color is derived from changeset bbox fillColor in history.js */
1063
1064     h4 {
1065       padding: 0;
1066     }
1067   }
1068
1069   .comment a {
1070     font-weight: 500;
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     .paginate {
1086       float: right;
1087       padding: 1px 6px;
1088       border: 1px solid #eee;
1089       border-radius: 3px;
1090     }
1091   }
1092
1093   .paginate ul, .note-comments ul {
1094     padding-left: 20px;
1095   }
1096
1097   .browse-field {
1098     margin-bottom: 10px;
1099
1100     h4 {
1101       padding: 5px 0 5px 10px;
1102       font-size: 12px;
1103       border: 1px solid #CCC;
1104       border-radius: 4px 4px 0 0;
1105       background-color: #F6F6F6;
1106     }
1107
1108     p {
1109       padding: 7px 10px;
1110       font-size: 12px;
1111       background-color: #FFF;
1112       border: 1px solid #CCC;
1113       border-top: 0;
1114       border-radius: 0 0 4px 4px;
1115     }
1116   }
1117
1118   .browse-tag-list {
1119     background-color: #F6F6F6;
1120     border-top: 1px solid #ddd;
1121     border-bottom: 1px solid #ddd;
1122     font-size: 12px;
1123     margin-left: -$lineheight;
1124     margin-right: -$lineheight;
1125
1126     li {
1127       border-bottom: 1px solid #ddd;
1128     }
1129
1130     li:last-child {
1131       border-bottom: 0;
1132     }
1133
1134     .browse-tag-k,
1135     .browse-tag-v {
1136       display: inline-block;
1137       width: 50%;
1138       float: left;
1139       padding: 6px 10px 6px $lineheight;
1140     }
1141
1142     .browse-tag-k {
1143       font-weight: 500;
1144       background-color: #F6F6F6;
1145     }
1146
1147     .browse-tag-v {
1148       border-left: 1px solid #ddd;
1149       background-color: #fff;
1150     }
1151   }
1152 }
1153
1154 /* Rules for export information which appears in the popout sidebar */
1155
1156 .export_bounds, .export_button {
1157   text-align: center;
1158 }
1159
1160 .export_area_inputs {
1161   margin-bottom: $lineheight/2;
1162   input[type="text"] {
1163     width: 80px;
1164     margin-bottom: 5px;
1165   }
1166 }
1167
1168 .export_bound {
1169   margin: $lineheight/4;
1170 }
1171
1172 #export_osm {
1173   span.small-title { 
1174     font-weight: 500;
1175     display: block;
1176     font-size: 14px;
1177     padding-bottom: 5px; 
1178   }
1179
1180   dl {
1181     padding-left: 30px;
1182     font-size: 13px;
1183     color: #666;
1184     dd {
1185       margin-left: 0;
1186       margin-bottom: 10px;
1187     }
1188   }
1189 }
1190
1191 /* Rules for edit pages */
1192
1193 .site-edit {
1194   #content {
1195     position: absolute;
1196     top: $headerHeight;
1197     bottom: 0;
1198     width: 100%;
1199   }
1200
1201   #map {
1202     height: 100%;
1203   }
1204 }
1205
1206 /* Rules for non-map content pages */
1207
1208 .content-heading {
1209   background: $lightgrey;
1210   
1211   h1 { font-size: 22px; }
1212 }
1213
1214 .content-body {
1215   h1, h2, h3, p {
1216     margin-bottom: $lineheight;
1217   }
1218
1219   h1, h2, h3 {
1220     margin-top: $lineheight/2;
1221   }
1222 }
1223
1224 .content-inner {
1225   position: relative;
1226   max-width: 900px;
1227   margin: auto;
1228   padding: $lineheight;
1229 }
1230
1231 /* Overrides for pages that use new layout conventions */
1232
1233 .user-new,
1234 .user-create,
1235 .user-terms {
1236   .content-body .content-inner {
1237     padding: 0;
1238   }
1239 }
1240
1241 .user-new,
1242 .user-create,
1243 .user-terms,
1244 .user-confirm {
1245   .content-heading .content-inner {
1246     height: 200px;
1247   }
1248 }
1249
1250 .header-illustration {
1251   background-position: 0 0;
1252   background-repeat: no-repeat;
1253   position: absolute;
1254   height: 200px;
1255   width: 100%;
1256   left: 0;
1257   bottom: 0;
1258
1259   &.new-user-main {
1260     background-image: image-url("sign-up-illustration.png");
1261   }
1262
1263   &.confirm-main {
1264     background-image: image-url("confirm-illustration.png");
1265   }
1266
1267   &.new-user-terms {
1268     background-image: image-url("terms-illustration.png");
1269   }
1270
1271   &.new-user-arm {
1272     height: 110px;
1273     width: 130px;
1274     left: 260px;
1275     top: 160px;
1276     background-image: image-url("sign-up-illustration-arm.png");
1277     z-index: 100;
1278   }
1279 }
1280
1281 #content.maximised {
1282   top: 0;
1283   left: 0;
1284   right: 0;
1285   bottom: 0;
1286   border: 0;
1287   z-index: 1000;
1288 }
1289
1290 #slim_container {
1291   width: 100%;
1292 }
1293
1294 #slim_container_content {
1295   max-width: 50em;
1296   background-color: #FFFFFF;
1297   margin: $lineheight/2 auto;
1298   padding: 3px;
1299   border-radius: 25px;
1300   -moz-border-radius: 25px;
1301   border: 1px solid #e6e6e6;
1302 }
1303
1304 #slim_content {
1305   margin: $lineheight/2;
1306   margin-top: 95px;
1307   max-width: 50em;
1308
1309   .content-heading {
1310     margin-bottom: 15px;
1311   }
1312 }
1313
1314 #slim_header {
1315   margin: 30px $lineheight/2;
1316   position: absolute;
1317   top: 0px;
1318   margin-right: $lineheight/4;
1319   img {
1320     vertical-align: middle;
1321     margin-bottom: $lineheight/4;
1322     margin-right: $lineheight/4;
1323   }
1324 }
1325
1326 /* Rules for small maps in content areas */
1327
1328 .content_map {
1329   position: relative;
1330   width: 45%;
1331   height: 400px;
1332   border: 1px solid #ccc;
1333   margin-bottom: $lineheight;
1334   float: right;
1335 }
1336
1337 /* Rules for the trace list shown by the traces tab etc */
1338
1339 #trace_list {
1340   font-size: $lineheight/2;
1341   border-width: 0px;
1342   text-align: right;
1343
1344   .trace_summary {
1345     font-size: 12px;
1346     color: gray;
1347   }
1348
1349   .trace_pending {
1350     color: red;
1351   }
1352
1353   .trace_public {
1354     color: green;
1355   }
1356
1357   .trace_identifiable {
1358     color: green;
1359   }
1360
1361   .trace_trackable {
1362     color: red;
1363   }
1364
1365   .trace_private {
1366     color: red;
1367   }
1368 }
1369
1370 /* Rules for the user profile page */
1371
1372 #userinformation {
1373
1374   min-height: 100px;
1375   .userinformation-inner {
1376     float: left;
1377   }
1378   h2 {
1379     margin-top: 0;
1380   }
1381   .user-description {
1382     width: 100%;
1383     clear: both;
1384   }
1385   .deemphasize {
1386     margin: 0;
1387   }
1388 }
1389
1390 .admin-user-info small {
1391   margin-bottom: $lineheight/2;
1392   display: inline;
1393   margin-right: $lineheight;
1394 }
1395
1396 .activity-block {
1397   clear: left;
1398   border-bottom: 1px solid #ccc;
1399   padding-bottom: $lineheight;
1400   float: left;
1401   h3 {
1402     margin-bottom: $lineheight/2;
1403   }
1404 }
1405
1406 .contact-activity {
1407   margin-top: $lineheight;
1408   width: 100%;
1409 }
1410
1411 .activity-details p {
1412   margin-left: 70px;
1413   margin-bottom: 0;
1414 }
1415
1416 #friends-container .contact-activity ul {
1417   margin-left: 70px;
1418 }
1419
1420 .user-view {
1421   p#no_home_location {
1422     margin: $lineheight;
1423   }
1424   .user_thumbnail {
1425     margin-top: $lineheight/4;
1426     float: left;
1427   }
1428 }
1429
1430 /* Rules for the user map */
1431
1432 .content_map .leaflet-popup-content {
1433   margin: $lineheight/2;
1434   min-height: 50px;
1435 }
1436
1437 /* Rules for user popups on maps */
1438
1439 .user_popup {
1440   min-width: 200px;
1441   p {
1442     padding: 0 0 5px 0;
1443     margin-top: 0 0 0 60px;
1444     font-size: 12px;
1445   }
1446   img.user_thumbnail {
1447     float: left;
1448     margin: 0 $lineheight/2 0 0;
1449   }
1450 }
1451
1452 /* Rules for the user list */
1453
1454 #user_list {
1455   font-size: $lineheight/2;
1456   width: 100%;
1457
1458   tr {
1459     vertical-align: middle;
1460   }
1461
1462   p {
1463     margin-top: 0px;
1464     margin-bottom: 0px;
1465   }
1466 }
1467
1468 #user_list_actions {
1469   float: right;
1470   margin-top: $lineheight/2;
1471 }
1472
1473 /* Rules for the diary list page */
1474
1475 .diary_post {
1476   position: relative;
1477   margin-top: $lineheight/2;
1478   padding-top: $lineheight;
1479   border-top: 1px solid #ccc;
1480
1481   .post_heading {
1482     margin-bottom: $lineheight;
1483
1484     h2 {
1485       margin-top: 0;
1486       margin-bottom: $lineheight/2;
1487       font-size: 24px;
1488     }
1489   }
1490
1491   img.user_thumbnail {
1492     float: left;
1493   }
1494
1495   small.deemphasize {
1496     float: left;
1497     display: block;
1498   }
1499
1500   ul.secondary-actions {
1501     display: inline-block;
1502   }
1503 }
1504
1505 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1506   display: inline;
1507 }
1508
1509 /* Rules for the diary entry page */
1510
1511 .diary_entry {
1512   #map {
1513     position: relative;
1514     width: 90%;
1515     height: 400px;
1516     border: 1px solid #ccc;
1517     display: none;
1518     margin-bottom: $lineheight;
1519   }
1520   #newcomment {
1521     border-top: 1px solid #ccc;
1522     padding-top: $lineheight;
1523     margin-top: $lineheight/2;
1524   }
1525   .comments {
1526     max-width: 740px;
1527   }
1528   .diary-comment {
1529     margin-top: $lineheight/2;
1530     border-top: 1px dashed #ccc;
1531     padding-top: $lineheight/2;
1532     &:first-child {
1533       margin-top: $lineheight;
1534       padding-top: $lineheight;
1535       border-top: 1px solid #ccc;
1536     }
1537     p {
1538       margin-bottom: $lineheight/2;
1539     }
1540     .comment-heading {
1541       margin-bottom: 0;
1542       margin-top: 0;
1543     }
1544   }
1545 }
1546
1547 .diary_entry-view img.user_thumbnail {
1548   float: left;
1549 }
1550
1551 /* Rules for the log in page */
1552
1553 #login_openid_buttons {
1554   margin-bottom: 0;
1555 }
1556
1557 #login_openid_buttons li {
1558   float: left;
1559   padding: $lineheight/4 $lineheight/2;
1560 }
1561
1562 /* Rules for the account confirmation page */
1563
1564 .user-terms {
1565   .legale {
1566     border: 1px solid #ccc;
1567     padding: $lineheight;
1568     margin-bottom: $lineheight;
1569     overflow: auto;
1570     height: 10em;
1571   }
1572
1573   #decline {
1574     background: $lightblue;
1575     &:hover {
1576       background: darken($lightblue, $hovercolor);
1577     }
1578   }
1579
1580   .form-row {
1581     margin: auto;
1582     max-width: 370px;
1583   }
1584 }
1585
1586 /* Rules for the account settings page */
1587
1588 #accountForm .user_map {
1589   position: relative;
1590   width: 500px;
1591   height: 400px;
1592   border: 1px solid #ccc;
1593 }
1594
1595 #accountForm .user_image {
1596   margin-bottom: 0;
1597 }
1598
1599 #accountForm #user_image {
1600   margin-left: 20px;
1601 }
1602
1603 #accountForm ul.accountImage-options {
1604   margin-left: 120px;
1605 }
1606
1607 .nohome .location {
1608   display: none;
1609 }
1610
1611 #homerow .message {
1612   display: none;
1613 }
1614
1615 .nohome .message {
1616   display: inline !important;
1617 }
1618
1619 .content_map.settings_map {
1620   width: 50%;
1621   float: none;
1622 }
1623
1624 /* Rules for the oauth settings page */
1625
1626 .oauth_clients .buttons .oauth-edit {
1627   border-radius: 2px 0 0 2px;
1628 }
1629
1630 .oauth_clients .buttons .oauth-delete {
1631   border-radius: 0 2px 2px 0;
1632 }
1633
1634 /* Rules for messages pages */
1635
1636 .messages {
1637   width: 100%;
1638   border: 1px solid #ddd;
1639
1640   input[type="submit"] {
1641     margin: auto;
1642   }
1643   tbody tr {
1644     border-top: 1px solid #ccc;
1645   }
1646
1647   .inbox-row {
1648     background: #f8f8ff;
1649   }
1650
1651   .inbox-row-unread {
1652     background:#CBEEA7;
1653   }
1654
1655   .right {
1656     float: right;
1657   }
1658
1659   tr td,
1660   tr th {
1661     padding: $lineheight/4;
1662   }
1663   p:last-child,
1664   h2:last-child,
1665   h3:last-child,
1666   ol:last-child,
1667   ul:last-child {
1668     margin-bottom:0;
1669   }
1670   tr td {
1671     height: 30px;
1672     border-right: 1px solid $lightgrey;
1673   }
1674 }
1675
1676 .inbox-row .inbox-mark-read {
1677   display: none;
1678 }
1679
1680 .info-line {
1681   margin-bottom: $lineheight;
1682   padding: $lineheight/4 0px 4px 0px;
1683   border-bottom: 1px solid #ccc;
1684
1685   form, form div {
1686     display: inline;
1687   }
1688 }
1689
1690 .info-line .user_thumbnail_tiny {
1691   vertical-align: middle;
1692 }
1693
1694 .inbox-mark-unread,
1695 .inbox-mark-read,
1696 .inbox-delete {
1697   width: 1%;
1698 }
1699
1700 .inbox-row-unread .inbox-mark-unread {
1701   display: none;
1702 }
1703
1704 .message-read .message-buttons {
1705   margin-top: $lineheight;
1706   padding-top: $lineheight;
1707   border-top: 1px solid $lightgrey;
1708 }
1709
1710 .message-read .buttons .mark-unread-button {
1711   border-radius: 0;
1712 }
1713
1714 /* Rules for "flash" notice boxes shown at the top of the content area */
1715
1716 .error {
1717   padding: $lineheight;
1718   background-color: #ff7070;
1719 }
1720
1721 .warning {
1722   padding: $lineheight;
1723   background-color: #ffe0cc;
1724 }
1725
1726 .notice {
1727   padding: $lineheight;
1728   background-color: #CBEEA7;
1729 }
1730
1731 /* Rules for highlighting fields with rails validation errors */
1732
1733 .field_with_errors {
1734   padding: 2px;
1735   background-color: #ff7070;
1736   display: inline-block;
1737 }
1738
1739 .formError {
1740   display: inline-block;
1741   padding: 5px 10px;
1742   margin-top: 5px;
1743   border-radius: 4px;
1744   font-size: 12px;
1745   color: #fff;
1746   background-color: #ff7070;
1747 }
1748
1749 /* Rules for rails validation error boxes */
1750
1751 #errorExplanation {
1752   width: 400px;
1753   border: 2px solid #ff7070;
1754   padding: 0 $lineheight/2;
1755   margin-bottom: $lineheight;
1756   background-color: #f0f0f0;
1757
1758   h2 {
1759     margin: 0 -10px 10px -10px;
1760     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1761     font-weight: 500;
1762     font-size: 12px;
1763     background-color: #c00;
1764     color: #fff;
1765     text-align: left;
1766   }
1767
1768   p {
1769     color: #333;
1770     margin-bottom: 0px;
1771     padding: $lineheight/4;
1772   }
1773
1774   ul {
1775     padding-left: $lineheight;
1776
1777     li {
1778       font-size: 12px;
1779       list-style: disc;
1780     }
1781   }
1782 }
1783
1784 /* Rules for forms */
1785
1786 .standard-form {
1787   fieldset {
1788     margin-bottom: $lineheight;
1789   }
1790   label.standard-label {
1791     display: block;
1792     margin-bottom: $lineheight/4;
1793     font-size: $typeheight;
1794     font-weight: 500;
1795     line-height: 1.5;
1796   }
1797   label.standard-label.secondary {
1798     display: inline-block;
1799     font-weight: normal;
1800   }
1801   .form-help {
1802     font-weight: normal;
1803   }
1804   .form-column {
1805     float: left;
1806     margin-right: 20px;
1807   }
1808   .form-divider {
1809     margin-top: $lineheight;
1810     padding-top: $lineheight;
1811     border-top: 1px solid $lightgrey;
1812   }
1813   .horizontal-list .form-row { 
1814     float: left;
1815     padding-right: 10px;
1816   }
1817   .form-row {
1818     margin-bottom: $lineheight/2;
1819   }
1820   .form-list {
1821     margin-bottom: 0;
1822   }
1823   .form-list li {
1824     margin-bottom: 5px;
1825    }
1826   input[type="checkbox"],
1827   input[type="radio"] {
1828     float: left;
1829     margin-top: 5px;
1830   }
1831 }
1832
1833 #remember_me_openid {
1834   display: block;
1835 }
1836
1837 input[type="checkbox"],
1838 input[type="radio"] {
1839     margin-right: 5px;
1840 }
1841
1842 input[type="text"],
1843 input[type="email"],
1844 input[type="url"],
1845 input[type="password"],
1846 textarea {
1847   border: 1px solid #ccc;
1848   padding: 2px 5px;
1849   margin: 0;
1850   width: 200px;
1851 }
1852
1853 textarea {
1854   padding: 5px;
1855   width: 100%;
1856 }
1857
1858 /* Rules for user images */
1859
1860 img.user_image {
1861   max-width: 100px;
1862   max-height: 100px;
1863   border: 1px solid #ccc;
1864   margin-bottom: $lineheight;
1865   float: left;
1866   margin-right: $lineheight;
1867 }
1868
1869 img.user_thumbnail {
1870   max-width: 50px;
1871   max-height: 50px;
1872   border: 1px solid #ccc;
1873   margin-right: $lineheight;
1874 }
1875
1876 img.user_thumbnail_tiny {
1877   max-width: 25px;
1878   max-height: 25px;
1879   border: 1px solid #ccc;
1880 }
1881
1882 /* Rules for geo microformats */
1883
1884 abbr.geo {
1885   border-bottom: none;
1886 }
1887
1888 /* Rules for RSS buttons */
1889
1890 .rsssmall {
1891   position: relative;
1892   top: 3px;
1893 }
1894
1895 /* General styles for action lists / subnavs / pager navs */
1896
1897 ul.secondary-actions {
1898   font-style: normal;
1899   margin-bottom: 0;
1900   margin-left: 0;
1901   &.pager {
1902     display: inline-block;
1903     margin-right: 60px;
1904   }
1905   > li {
1906     display: block;
1907     float: left;
1908     list-style: none;
1909     border-left: 1px solid #ccc;
1910     padding-left: $lineheight/2;
1911     margin-right: $lineheight/2;
1912     &:first-child {
1913       border-left: 0;
1914       padding-left: 0;
1915     }
1916     &:last-child {
1917       margin-right: 0px;
1918     }
1919   }
1920 }
1921
1922 div.secondary-actions {
1923   padding: 10px;
1924   border-top: 1px solid #ccc;
1925   text-align: center;
1926 }
1927
1928 /* Utility for managing inner content areas */
1929
1930 .inner22 { padding: $lineheight;}
1931
1932 .inner12 { padding: $lineheight/2 $lineheight;}
1933
1934 .inner11 { padding: $lineheight/2;}
1935
1936 .inner20 { padding: $lineheight 0;}
1937
1938 .inner02 { padding: 0 $lineheight;}
1939
1940 /* Utility for general button styles */
1941
1942 input[type="button"],
1943 input[type="submit"],
1944 input[type="reset"],
1945 a.button {
1946   cursor: pointer;
1947   border: 0;
1948   display: inline-block;
1949   line-height: 20px;
1950   padding: $lineheight/4 $lineheight/2;
1951   min-height: 20px + $lineheight/2;
1952   min-width: 120px;
1953   margin: 0 0 $lineheight/2 0;
1954   color: white;
1955   background: $blue;
1956   text-align: center;
1957   border-radius: 2px;
1958   -moz-border-radius: 2px;
1959   &:hover {
1960     background: darken($blue, $hovercolor);
1961     text-decoration: none;
1962   }
1963   &.deemphasize {
1964     background: $lightblue;
1965     &:hover {
1966       background: darken($lightblue, $hovercolor);
1967     }
1968   }
1969   &:disabled {
1970     background: $lightgrey;
1971     &:hover {
1972       background: $lightgrey;
1973     }
1974   }
1975   &:last-child {
1976     margin-bottom: 0;
1977   }
1978 }
1979
1980 .buttons {
1981   min-width: 200px;
1982   input[type="submit"],
1983   input[type="button"],
1984   input[type="reset"],
1985   .button {
1986     box-sizing: border-box;
1987     float: left;
1988     border-radius: 0;
1989     margin:0;
1990     min-width: 100px;
1991     max-width: 180px;
1992     border-right:1px solid white;
1993     text-overflow: ellipsis;
1994     white-space: nowrap;
1995     overflow: hidden;
1996   }
1997   input:first-child,
1998   .button:first-child {
1999     border-radius:2px 0 0 2px;
2000   }
2001   input:last-child,
2002   .button:last-child {
2003     border-radius:0 2px 2px 0;
2004     border-right-width: 0;
2005   }
2006   input:only-child,
2007   .button:only-child,
2008   *[value="Hide"] + input:last-child,
2009   *[value="Hide"] + .button:last-child {
2010     border-radius:2px;
2011     border-right-width: 0;
2012   }
2013     /* if a 3-button set has a hidden middle button */
2014   *[value="Hide"] + input:nth-child(3),
2015   *[value="Hide"] + .button:nth-child(3) {
2016     border-radius:0 2px 2px 0;
2017     border-right-width: 0;
2018   }
2019   /* if a 3-button set starts with a hidden button */
2020   *[value="Hide"] + input:nth-child(2):not(:last-child),
2021   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
2022     border-radius:2px 0 0 2px;
2023     border-right-width: 1px;
2024   }
2025 }
2026
2027 /* Rules for doing distinct colour of alternate table rows */
2028
2029 .table0,
2030 .item0 {
2031   background: $offwhite;
2032 }
2033
2034 .table1,
2035 .item1 {
2036   background: #fff;
2037 }
2038
2039 /* Rules for OpenID logo */
2040
2041 .openid_logo {
2042   vertical-align: text-bottom;
2043   border: 0;
2044 }
2045
2046 /* Rules for rich text */
2047
2048 .richtext,
2049 .prose {
2050   h1, h2 {
2051     padding-bottom: $lineheight/2;
2052     border-bottom: 1px dashed #cccccc;
2053     margin-bottom: $lineheight/2;
2054   }
2055
2056   h1 {
2057     font-size: 24px;
2058   }
2059
2060   h2 {
2061     font-size: 18px;
2062   }
2063
2064   h3 {
2065     font-size: $typeheight;
2066   }
2067
2068   code {
2069     font-size: 13px;
2070     background: #e8e8e8;
2071     padding: 2px 3px;
2072   }
2073
2074   pre {
2075     font-size: 13px;
2076     background: #e8e8e8;
2077     padding: 2px 3px;
2078
2079     code {
2080       padding: 0;
2081     }
2082   }
2083
2084   img {
2085     padding: $lineheight;
2086     background-color: $offwhite;
2087     display: block;
2088     max-width: 100%;
2089     margin: auto;
2090   }
2091
2092   blockquote {
2093     border-left: $lineheight solid $offwhite;
2094     padding-left: $lineheight;
2095     margin: 0;
2096     color: #7E7E7E;
2097   }
2098
2099   ul, ol {
2100     padding-left: $lineheight;
2101     margin-bottom: $lineheight;
2102     margin-left: $lineheight;
2103   }
2104
2105   ul li {
2106     list-style: disc;
2107   }
2108
2109   ol li {
2110     list-style: decimal;
2111   }
2112 }
2113
2114 .diary_post .richtext {
2115     margin-top: $lineheight;
2116   }
2117
2118 .comments .richtext {
2119   margin-left: 70px;
2120   margin-top: 0;
2121 }
2122
2123 /* Rules for rich text editors */
2124
2125 .richtext_container {
2126   margin-bottom: $lineheight;
2127
2128   .richtext_content {
2129     width: 50%;
2130     display: inline-block;
2131     vertical-align: top;
2132
2133     .richtext_preview {
2134       display: inline-block;
2135       padding: $lineheight;
2136       background-color: $offwhite;
2137       overflow-x: auto;
2138
2139       &.loading {
2140         background-image: image-url("loading.gif");
2141         background-repeat: no-repeat;
2142         background-position: center;
2143       }
2144
2145       > :first-child {
2146         margin-top: 0px;
2147       }
2148     }
2149   }
2150
2151   .richtext_help {
2152     display: inline-block;
2153     vertical-align: top;
2154     margin-left: 15px;
2155     background-color: #f8f8ff;
2156     padding: $lineheight/2;
2157     width: 220px;
2158
2159     ul {
2160       margin-bottom: 0;
2161     }
2162
2163     h4.heading, li {
2164       border-bottom: 1px solid #ccc;
2165       margin-bottom: $lineheight/4;
2166       padding-bottom: $lineheight/4;
2167     }
2168
2169     li h4, li span, li p {
2170       display: inline-block;
2171       vertical-align: top;
2172       font-size: 11px;
2173     }
2174
2175     li h4 {
2176       width: 40%;
2177       margin: 0;
2178     }
2179
2180     li span, li p {
2181       width: 50%;
2182       margin-left: $lineheight/2;
2183       margin-bottom: $lineheight/4;
2184       white-space: nowrap;
2185     }
2186   }
2187 }
2188
2189 /* Rules for the user notes list */
2190
2191 .note_list {
2192   tr.creator {
2193     background-color: #eeeeee;
2194   }
2195
2196   td {
2197     padding: 3px;
2198   }
2199
2200   p {
2201     margin-bottom: 0px;
2202   }
2203 }
2204
2205 /* Rules for the notes interface */
2206
2207 .leaflet-popup-content .note {
2208   padding-top: $lineheight/2;
2209 }
2210
2211 .leaflet-popup-content .note {
2212   h2 {
2213     margin-bottom: $lineheight/2;
2214   }
2215
2216   div {
2217     margin-top: $lineheight/2;
2218   }
2219
2220   .permalink {
2221     position: absolute;
2222     top: $lineheight/4;
2223     left: $lineheight/4;
2224     min-width: 15px;
2225     min-height: 15px;
2226   }
2227
2228   .permalink span {
2229     display: none;
2230     padding-left: $lineheight;
2231   }
2232
2233   .permalink:hover span {
2234     display: block;
2235   }
2236
2237   .warning {
2238     display: block;
2239     background-color: #ffe0cc;
2240     padding: 4px 6px;
2241     margin-bottom: $lineheight/2;
2242   }
2243
2244   .comment_body {
2245     margin-top: 2px;
2246     margin-bottom: 2px;
2247
2248     p {
2249       margin-top: 0px;
2250       margin-bottom: 0px;
2251     }
2252   }
2253
2254   .comment {
2255     width: 100%;
2256     height: 100px;
2257   }
2258
2259   .buttons {
2260     margin-top: $lineheight/4;
2261     text-align: right;
2262   }
2263 }
2264
2265 /* Rules for the iD editor */
2266
2267 .id-embed {
2268   width: 100%;
2269   height: 100%;
2270 }
2271
2272 /* Rules for dropdown menus */
2273
2274 .dropdown {
2275   position: relative;
2276 }
2277
2278 .dropdown-toggle {
2279   *margin-bottom: -3px;
2280 }
2281
2282 .dropdown-toggle:active,
2283 .open .dropdown-toggle {
2284   outline: 0;
2285 }
2286
2287 .caret {
2288   display: inline-block;
2289   width: 0;
2290   height: 0;
2291   vertical-align: top;
2292   border-top: 4px solid #000000;
2293   border-right: 4px solid transparent;
2294   border-left: 4px solid transparent;
2295   content: "";
2296 }
2297
2298 .dropdown .caret {
2299   margin-top: 8px;
2300   margin-left: 2px;
2301 }
2302
2303 .dropdown-menu {
2304   position: absolute;
2305   top: 100%;
2306   left: -1px;
2307   z-index: 1000;
2308   display: none;
2309   float: left;
2310   min-width: 160px;
2311   padding: 5px 0;
2312   margin: 0;
2313   list-style: none;
2314   background-color: #ffffff;
2315   border: 1px solid #ccc;
2316   border-radius: 0 3px 3px;
2317   *border-right-width: 2px;
2318   *border-bottom-width: 2px;
2319   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2320      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2321           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2322   -webkit-background-clip: padding-box;
2323      -moz-background-clip: padding;
2324           background-clip: padding-box;
2325 }
2326
2327 .dropdown-menu.pull-right {
2328   right: 0;
2329   left: auto;
2330 }
2331
2332 .dropdown-menu .divider {
2333   *width: 100%;
2334   height: 1px;
2335   margin: 9px 1px;
2336   *margin: -5px 0 5px;
2337   overflow: hidden;
2338   background-color: #e5e5e5;
2339   border-bottom: 1px solid #ffffff;
2340 }
2341
2342 .dropdown-menu > li > a {
2343   display: block;
2344   padding: 3px 10px;
2345   clear: both;
2346   font-weight: normal;
2347   line-height: 20px;
2348   color: #333333;
2349   white-space: nowrap;
2350 }
2351
2352 .dropdown-menu > li > a:hover,
2353 .dropdown-menu > li > a:focus,
2354 .dropdown-submenu:hover > a,
2355 .dropdown-submenu:focus > a {
2356   color: #ffffff;
2357   text-decoration: none;
2358   background-color: $green;
2359 }
2360
2361 .dropdown-menu > .active > a,
2362 .dropdown-menu > .active > a:hover,
2363 .dropdown-menu > .active > a:focus {
2364   color: #ffffff;
2365   text-decoration: none;
2366   background-color: $green;
2367   outline: 0;
2368 }
2369
2370 .dropdown-menu > .disabled > a,
2371 .dropdown-menu > .disabled > a:hover,
2372 .dropdown-menu > .disabled > a:focus {
2373   color: #999999;
2374 }
2375
2376 .dropdown-menu > .disabled > a:hover,
2377 .dropdown-menu > .disabled > a:focus {
2378   text-decoration: none;
2379   cursor: default;
2380   background-color: transparent;
2381   background-image: none;
2382 }
2383
2384 .open {
2385   *z-index: 1000;
2386 }
2387
2388 .open > .dropdown-menu {
2389   display: block;
2390 }
2391
2392 .dropdown-backdrop {
2393   position: fixed;
2394   top: 0;
2395   right: 0;
2396   bottom: 0;
2397   left: 0;
2398   z-index: 990;
2399 }
2400
2401 /* Rules for the "Welcome" page */
2402 .site-welcome {
2403   .center {
2404     text-align: center;
2405     .sprite { 
2406       float: none;
2407       margin: auto;
2408     }
2409   }
2410
2411   .sprite {
2412     background-image: image-url("welcome-sprite.png");
2413     background-size: 500px 250px;
2414     display: block;
2415     float: left;
2416   }
2417
2418   .icon-list { 
2419     padding-bottom: 20px;
2420     div {
2421       margin-bottom: 10px;
2422       p {
2423         padding-top: 10px;
2424       }
2425     }
2426   }
2427   .sprite.small {
2428     width: 50px;
2429     height: 50px;
2430   }
2431
2432   .sprite.x {
2433     background-position: -50px 0;
2434   }
2435
2436   .sprite.term {
2437     margin-right: 10px;
2438     vertical-align: middle;
2439   }
2440
2441   .sprite.node {
2442     background-position: -100px 0;
2443   }
2444
2445   .sprite.way {
2446     background-position: -150px 0;
2447   }
2448
2449   .sprite.tag {
2450     background-position: -200px 0;
2451   }
2452
2453   .sprite.editor {
2454     background-position: -250px 0;
2455   }
2456
2457   .sprite.question {
2458     background-position: -300px 0;
2459   }
2460
2461   .start-mapping {
2462     margin: auto;
2463     cursor: pointer;
2464     border: none;
2465     padding: 20px 40px;
2466     font-size: 30px;
2467     text-decoration: none;
2468   }
2469
2470   .note-box {
2471     margin-top: 20px;
2472     background-color: $offwhite;
2473   }
2474
2475   .icon.note {
2476     background-color: #333;
2477     border-radius: 4px;
2478   }
2479 }
2480
2481 .site-about #content {
2482   //background-color: #000;
2483   background-color: #eee;
2484   background-position: 50% 50%;
2485   background-repeat: no-repeat;
2486   background-size: cover;
2487   background-attachment: fixed;
2488
2489   &.photo-0 { background-image: image-url('about/0.jpg'); .photo-0 { display: block; } }
2490   &.photo-1 { background-image: image-url('about/1.jpg'); .photo-1 { display: block; } }
2491   &.photo-2 { background-image: image-url('about/2.jpg'); .photo-2 { display: block; } }
2492   &.photo-3 { background-image: image-url('about/4.jpg'); .photo-3 { display: block; } }
2493   &.photo-4 { background-image: image-url('about/4.jpg'); .photo-4 { display: block; } }
2494   &.photo-5 { background-image: image-url('about/5.jpg'); .photo-5 { display: block; } }
2495
2496   .caption {
2497     max-width: 200px;
2498     font: 13px/20px Helvetica, Arial, sans-serif;
2499     position: fixed;
2500     text-align: right;
2501     right: 20px;
2502     bottom: 60px;
2503     text-shadow: #000 0px 1px 5px;
2504     color: #eee;
2505     opacity: 0.8;
2506     display: none;
2507   }
2508
2509   .caption a {
2510     color: white;
2511     white-space: nowrap;
2512     text-decoration: none;
2513   }
2514
2515   a.next {
2516     display: block;
2517     position: fixed;
2518     right: 10px;
2519     bottom: 10px;
2520     width: 40px;
2521     height: 40px;
2522     border-radius: 5px;
2523     text-indent: -9999px;
2524     overflow: hidden;
2525     background: image-url('about/sprite.png') -120px 0px no-repeat;
2526     background-color: #000;
2527     background-color: rgba(0, 0, 0, 0.5);
2528   }
2529
2530   .content-inner {
2531     position: relative;
2532     color: #333;
2533     min-width: 320px;
2534     max-width: 640px;
2535
2536     .section {
2537       margin-bottom: 30px;
2538     }
2539
2540     .section:last-child {
2541       margin-bottom: 0;
2542     }
2543   }
2544
2545   .text {
2546     background: white;
2547     padding: 40px;
2548   }
2549
2550   .attr {
2551     position: relative;
2552     padding: 170px 40px 20px;
2553     background: #333;
2554     background: rgba(0, 0, 0, .8);
2555     margin-bottom: 0;
2556     margin-top: -20px;
2557
2558     h1 {
2559       display: block;
2560       color: white;
2561       font-weight: 300;
2562       font-size: 34px;
2563       span {
2564         color: #76c551;
2565       }
2566     }
2567
2568     .user-image {
2569       position: absolute;
2570       top: 0px;
2571       right: 240px;
2572       left: 0px;
2573       height: 150px;
2574       background-position: 0 50%;
2575       background-repeat: no-repeat;
2576       background-image: image-url('about/osm.png');
2577       background-size: cover;
2578       background-color: #76c551;
2579     }
2580
2581     .byosm {
2582       position: absolute;
2583       top: 0px;
2584       right: 0px;
2585       z-index: 1;
2586       width: 240px;
2587       height: 150px;
2588       padding: 20px 20px 20px 40px;
2589       font: 500 20px/24px Helvetica, Arial, sans-serif;
2590       white-space: nowrap;
2591       color: #fff;
2592       background: #76c551;
2593     }
2594
2595     .byosm span {
2596       display: inline-block;
2597       width: 20px;
2598       margin-left: -20px;
2599     }
2600   }
2601
2602   h2 {
2603     margin-bottom: 10px;
2604   }
2605
2606   .icon {
2607     width: 30px;
2608     height: 30px;
2609     margin-right: 10px;
2610     vertical-align: middle;
2611     background: 40px 40px image-url('about/sprite.png') no-repeat;
2612
2613     &.local        { background-position: 0px    0px; }
2614     &.community    { background-position: 0px  -40px; }
2615     &.open         { background-position: 0px  -80px; }
2616     &.partners     { background-position: 0px -120px; }
2617     &.infringement { background-position: 0px -160px; }
2618   }
2619 }
2620
2621 @import 'browse';
2622
2623 @media only screen and (max-width:960px) {
2624   .header-illustration.new-user-arm {
2625     display: none;
2626   }
2627 }
2628