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