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