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