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