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