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