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