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