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