]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Merge branch 'jfire2' into routing
[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 and direction forms */
907
908 header .search_forms,
909 .directions_form {
910   display: none;
911 }
912
913 .search_form,
914 .directions_form {
915   position: relative;
916   padding: $lineheight/2;
917   padding-top: 1px;
918   background-color: $lightgrey;
919
920   .query_wrapper {
921     position: relative;
922     overflow: hidden;
923     border-radius: 2px 0 0 2px;
924   }
925
926   input[type=text] {
927     width: 100%;
928     height: 30px;
929     border-right: none;
930
931     transition: 300ms linear;
932     -webkit-transition: 300ms linear;
933     -moz-transition: 300ms linear;
934   }
935
936   input:focus {
937     outline: none;
938     box-shadow: 0px 0px 7px #9ED485;
939   }
940
941   input[type=submit] {
942     float: right;
943     width: auto;
944     min-width: 0;
945     border-radius: 0 2px 2px 0;
946   }
947
948   .query_options {
949     text-align: right;
950     font-size: 10px;
951     color: $blue;
952   }
953 }
954
955 /* Rules for the map key which appears in the popout sidebar */
956
957 #mapkey {
958  .mapkey-table-key img {
959     display: block;
960     margin-left: auto;
961     margin-right: auto;
962   }
963   td {
964     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
965   }
966 }
967
968 /* Rules for search sidebar */
969
970 .search_results_entry {
971   ul li {
972     border-bottom: $keyline;
973     &:first-child { border-top: $keyline; }
974   }
975
976   .search_details {
977     display: block;
978     float: right;
979     text-align: right;
980     margin-top: 0.2em;
981     margin-left: 0.5em;
982   }
983 }
984
985 .search_results_error {
986   color: #f00;
987 }
988
989 /* Rules for routing */
990
991 #sidebar_content>table {
992     padding: 5px 20px 10px 15px;
993     width: 100%;
994     border-collapse: separate;
995 }
996
997 td.direction {
998     background-image: image-url('routing-sprite.png'); 
999     width: 20px; height: 20px; 
1000     background-repeat: no-repeat;
1001 }
1002 @for $i from 1 through 17 {
1003 td.direction.i#{$i}  { background-position: #{($i)*-20+20}px 0px; }
1004 }
1005
1006 .directions_form input[type="submit"] {
1007     margin-top: 30px !important;
1008 }
1009
1010 p#routing_summary {
1011     padding: 0 $lineheight $lineheight/4;
1012 }
1013
1014 td.instruction, td.distance {
1015     padding-top: 0;
1016     border-bottom: 1px solid #DDD;
1017 }
1018 td.distance {
1019     color: #BBB;
1020     text-align: right;
1021     font-size: x-small;
1022 }
1023 tr.turn {
1024     cursor: pointer;
1025 }
1026 tr.turn:hover {
1027     background: lighten($green, 30%); 
1028 }
1029 .routing_engines, #route_from, #route_to { margin-left: 25px; }
1030 .routing_marker { width: 15px; position: absolute; }
1031
1032 /* Rules for entity history */
1033
1034 #sidebar_content {
1035   .browse_details {
1036     position: relative;
1037     border-bottom: $keyline;
1038   }
1039 }
1040
1041 .browse_status {
1042   display: none;
1043 }
1044
1045 /* Rules for the history sidebar */
1046
1047 #sidebar .changesets {
1048   li {
1049     padding: 15px 20px;
1050     border-bottom: 1px solid #ddd;
1051     cursor: pointer;
1052
1053     &.selected { background: #FFFFE6; }
1054     /* color is derived from changeset bbox fillColor in history.js */
1055   }
1056
1057   h4 {
1058     margin: 0;
1059     a {
1060       color: #000;
1061     }
1062   }
1063 }
1064
1065 /* Rules for the browse sidebar */
1066
1067 #sidebar_content {
1068   .browse-section {
1069     padding: $lineheight/2 $lineheight;
1070     border-bottom: 1px solid #ddd;
1071
1072     h4:first-child {
1073       margin-top: 0;
1074       word-wrap: break-word;
1075     }
1076   }
1077
1078   .browse-section:last-of-type {
1079     border-bottom: none;
1080   }
1081
1082   .paginate {
1083     float: right;
1084     padding: 1px 6px;
1085     border: 1px solid #eee;
1086     border-radius: 3px;
1087   }
1088
1089   .paginate ul {
1090     padding-left: 20px;
1091   }
1092
1093   .browse-field {
1094     margin-bottom: 10px;
1095
1096     h4 {
1097       padding: 5px 0 5px 10px;
1098       font-size: 12px;
1099       border: 1px solid #CCC;
1100       border-radius: 4px 4px 0 0;
1101       background-color: #F6F6F6;
1102     }
1103
1104     p {
1105       padding: 7px 10px;
1106       font-size: 12px;
1107       background-color: #FFF;
1108       border: 1px solid #CCC;
1109       border-top: 0;
1110       border-radius: 0 0 4px 4px;
1111     }
1112   }
1113
1114   .browse-tag-list {
1115     background-color: #F6F6F6;
1116     border: 1px solid #ddd;
1117     border-radius: 3px;
1118     font-size: 12px;
1119     table-layout: fixed;
1120     border-collapse: separate;
1121
1122     th, td {
1123       border-bottom: 1px solid #ddd;
1124     }
1125
1126     tr:last-child th, tr:last-child td {
1127       border-bottom: 0;
1128     }
1129
1130     .browse-tag-k,
1131     .browse-tag-v {
1132       width: 50%;
1133       padding: 6px 10px;
1134       word-wrap: break-word;
1135     }
1136
1137     .browse-tag-k {
1138       font-weight: 500;
1139       background-color: #F6F6F6;
1140     }
1141
1142     .browse-tag-v {
1143       border-left: 1px solid #ddd;
1144       background-color: #fff;
1145     }
1146   }
1147
1148   .warning {
1149     margin: $lineheight/2 0;
1150     padding: $lineheight/2;
1151     font-size: 90%;
1152   }
1153
1154   .note-comments li {
1155     margin: $lineheight/2 0;
1156
1157     p {
1158       margin-left: 10px;
1159     }
1160   }
1161
1162   .note-description {
1163     overflow: hidden;
1164     margin: 0 0 10px 10px;
1165   }
1166 }
1167
1168 /* Rules for export sidebar */
1169
1170 .export_form {
1171   padding: $lineheight;
1172
1173   .export_area_inputs,
1174   .export_button {
1175     text-align: center;
1176   }
1177
1178   .export_area_inputs {
1179     margin-bottom: $lineheight/2;
1180     input[type="text"] {
1181       width: 80px;
1182       text-align: center;
1183       margin-bottom: 5px;
1184     }
1185   }
1186
1187   .export_boxy {
1188     background: #eee;
1189     border: 1px solid #ccc;
1190     border-radius: 3px;
1191
1192     #maxlat { margin-top: -1px; }
1193     #minlon {
1194       float: left;
1195       margin-left: -1px;
1196     }
1197     #maxlon {
1198       float: right;
1199       margin-right: -1px;
1200     }
1201     #minlat { margin-bottom: 0; }
1202   }
1203
1204   .export_bound {
1205     margin: $lineheight/4;
1206   }
1207
1208   .export_button {
1209     margin-top: $lineheight;
1210     margin-bottom: $lineheight;
1211   }
1212
1213   dl {
1214     padding-left: $lineheight/2;
1215     dd {
1216       margin-left: 0;
1217       margin-bottom: 10px;
1218     }
1219   }
1220 }
1221
1222 /* Rules for the routing sidebar */
1223
1224 #sidebar_content {
1225   #routing_credit {
1226     text-align: center;
1227     padding: 0.5em;
1228   }
1229 }
1230
1231 /* Rules for edit pages */
1232
1233 .site-edit {
1234   #content {
1235     position: absolute;
1236     top: $headerHeight;
1237     bottom: 0;
1238     width: 100%;
1239   }
1240
1241   #map {
1242     height: 100%;
1243     overflow: hidden;
1244   }
1245 }
1246
1247 /* Rules for non-map content pages */
1248
1249 .content-heading {
1250   background: $lightgrey;
1251   
1252   h1 { font-size: 22px; }
1253 }
1254
1255 .content-body {
1256   h1, h2, h3, p, ul, ol {
1257     margin-bottom: $lineheight;
1258   }
1259
1260   h1, h2, h3 {
1261     margin-top: $lineheight/2;
1262   }
1263 }
1264
1265 .content-inner {
1266   position: relative;
1267   max-width: 900px;
1268   margin: auto;
1269   padding: $lineheight;
1270 }
1271
1272 /* Overrides for pages that use new layout conventions */
1273
1274 .user-new,
1275 .user-create,
1276 .user-terms {
1277   .content-body .content-inner {
1278     padding: 0;
1279   }
1280 }
1281
1282 .user-new,
1283 .user-create,
1284 .user-terms,
1285 .user-confirm {
1286   .content-heading .content-inner {
1287     height: 200px;
1288   }
1289 }
1290
1291 .header-illustration {
1292   background-position: 0 0;
1293   background-repeat: no-repeat;
1294   position: absolute;
1295   height: 200px;
1296   width: 100%;
1297   left: 0;
1298   bottom: 0;
1299
1300   &.new-user-main {
1301     background-image: image-url("sign-up-illustration.png");
1302   }
1303
1304   &.confirm-main {
1305     background-image: image-url("confirm-illustration.png");
1306   }
1307
1308   &.new-user-terms {
1309     background-image: image-url("terms-illustration.png");
1310   }
1311
1312   &.new-user-arm {
1313     height: 110px;
1314     width: 130px;
1315     left: 260px;
1316     top: 160px;
1317     background-image: image-url("sign-up-illustration-arm.png");
1318     z-index: 100;
1319   }
1320 }
1321
1322 #content.maximised {
1323   top: 0;
1324   left: 0;
1325   right: 0;
1326   bottom: 0;
1327   border: 0;
1328   z-index: 2000;
1329 }
1330
1331 /* Rules for small maps in content areas */
1332
1333 .content_map {
1334   position: relative;
1335   width: 45%;
1336   height: 400px;
1337   border: 1px solid #ccc;
1338   margin-bottom: $lineheight;
1339   float: right;
1340 }
1341
1342 /* Rules for the trace list shown by the traces tab etc */
1343
1344 #trace_list {
1345   font-size: $lineheight/2;
1346   border-width: 0px;
1347   text-align: right;
1348
1349   .trace_summary {
1350     font-size: 12px;
1351     color: gray;
1352   }
1353
1354   .trace_pending {
1355     color: red;
1356   }
1357
1358   .trace_public {
1359     color: green;
1360   }
1361
1362   .trace_identifiable {
1363     color: green;
1364   }
1365
1366   .trace_trackable {
1367     color: red;
1368   }
1369
1370   .trace_private {
1371     color: red;
1372   }
1373 }
1374
1375 /* Rules for the user profile page */
1376
1377 #userinformation {
1378
1379   min-height: 100px;
1380   .userinformation-inner {
1381     float: left;
1382   }
1383   h2 {
1384     margin-top: 0;
1385   }
1386   .user-description {
1387     width: 100%;
1388     clear: both;
1389   }
1390   .deemphasize {
1391     margin: 0;
1392   }
1393 }
1394
1395 .admin-user-info small {
1396   margin-bottom: $lineheight/2;
1397   display: inline;
1398   margin-right: $lineheight;
1399 }
1400
1401 .activity-block {
1402   clear: left;
1403   border-bottom: 1px solid #ccc;
1404   padding-bottom: $lineheight;
1405   float: left;
1406   h3 {
1407     margin-bottom: $lineheight/2;
1408   }
1409 }
1410
1411 .contact-activity {
1412   margin-top: $lineheight;
1413   width: 100%;
1414 }
1415
1416 .activity-details p {
1417   margin-left: 70px;
1418   margin-bottom: 0;
1419 }
1420
1421 #friends-container .contact-activity ul {
1422   margin-left: 70px;
1423 }
1424
1425 .user-view {
1426   // Silly exception; remove when user page is redesigned.
1427   .content-inner {
1428     max-width: none;
1429   }
1430   p#no_home_location {
1431     margin: $lineheight;
1432   }
1433   .user_thumbnail {
1434     margin-top: $lineheight/4;
1435     float: left;
1436   }
1437 }
1438
1439 /* Rules for the user map */
1440
1441 .content_map .leaflet-popup-content {
1442   margin: $lineheight/2;
1443   min-height: 50px;
1444 }
1445
1446 /* Rules for user popups on maps */
1447
1448 .user_popup {
1449   min-width: 200px;
1450   p {
1451     padding: 0 0 5px 0;
1452     margin-top: 0 0 0 60px;
1453     font-size: 12px;
1454   }
1455   img.user_thumbnail {
1456     float: left;
1457     margin: 0 $lineheight/2 0 0;
1458   }
1459 }
1460
1461 /* Rules for the user list */
1462
1463 #user_list {
1464   font-size: $lineheight/2;
1465   width: 100%;
1466
1467   tr {
1468     vertical-align: middle;
1469   }
1470
1471   p {
1472     margin-top: 0px;
1473     margin-bottom: 0px;
1474   }
1475 }
1476
1477 #user_list_actions {
1478   float: right;
1479   margin-top: $lineheight/2;
1480 }
1481
1482 /* Rules for the diary list page */
1483
1484 .diary_post {
1485   position: relative;
1486   margin-top: $lineheight/2;
1487   padding-top: $lineheight;
1488   border-top: 1px solid #ccc;
1489
1490   .post_heading {
1491     margin-bottom: $lineheight;
1492
1493     h2 {
1494       margin-top: 0;
1495       margin-bottom: $lineheight/2;
1496       font-size: 24px;
1497     }
1498   }
1499
1500   img.user_thumbnail {
1501     float: left;
1502   }
1503
1504   small.deemphasize {
1505     float: left;
1506     display: block;
1507   }
1508
1509   ul.secondary-actions {
1510     display: inline-block;
1511   }
1512 }
1513
1514 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1515   display: inline;
1516 }
1517
1518 /* Rules for the diary entry page */
1519
1520 .diary_entry {
1521   #map {
1522     position: relative;
1523     width: 90%;
1524     height: 400px;
1525     border: 1px solid #ccc;
1526     display: none;
1527     margin-bottom: $lineheight;
1528   }
1529   #newcomment {
1530     border-top: 1px solid #ccc;
1531     padding-top: $lineheight;
1532     margin-top: $lineheight/2;
1533   }
1534   .comments {
1535     max-width: 740px;
1536   }
1537   .diary-comment {
1538     margin-top: $lineheight/2;
1539     border-top: 1px dashed #ccc;
1540     padding-top: $lineheight/2;
1541     &:first-child {
1542       margin-top: $lineheight;
1543       padding-top: $lineheight;
1544       border-top: 1px solid #ccc;
1545     }
1546     p {
1547       margin-bottom: $lineheight/2;
1548     }
1549     .comment-heading {
1550       margin-bottom: 0;
1551       margin-top: 0;
1552     }
1553   }
1554 }
1555
1556 .diary_entry-view img.user_thumbnail {
1557   float: left;
1558 }
1559
1560 /* Rules for the log in page */
1561
1562 #login_openid_buttons {
1563   margin-bottom: 0;
1564 }
1565
1566 #login_openid_buttons li {
1567   float: left;
1568   padding: $lineheight/4 $lineheight/2;
1569 }
1570
1571 /* Rules for the account confirmation page */
1572
1573 .user-terms {
1574   .legale {
1575     border: 1px solid #ccc;
1576     padding: $lineheight;
1577     margin-bottom: $lineheight;
1578     overflow: auto;
1579     height: 20em;
1580   }
1581
1582   #decline {
1583     background: $lightblue;
1584     &:hover {
1585       background: darken($lightblue, $hovercolor);
1586     }
1587   }
1588 }
1589
1590 /* Rules for the account settings page */
1591
1592 #accountForm .user_map {
1593   position: relative;
1594   width: 500px;
1595   height: 400px;
1596   border: 1px solid #ccc;
1597 }
1598
1599 #accountForm .user_image {
1600   margin-bottom: 0;
1601 }
1602
1603 #accountForm #user_image {
1604   margin-left: 20px;
1605 }
1606
1607 #accountForm ul.accountImage-options {
1608   margin-left: 120px;
1609 }
1610
1611 .nohome .location {
1612   display: none;
1613 }
1614
1615 #homerow .message {
1616   display: none;
1617 }
1618
1619 .nohome .message {
1620   display: inline !important;
1621 }
1622
1623 .content_map.settings_map {
1624   width: 50%;
1625   float: none;
1626 }
1627
1628 /* Rules for the oauth settings page */
1629
1630 .oauth_clients .buttons .oauth-edit {
1631   border-radius: 2px 0 0 2px;
1632 }
1633
1634 .oauth_clients .buttons .oauth-delete {
1635   border-radius: 0 2px 2px 0;
1636 }
1637
1638 /* Rules for messages pages */
1639
1640 .messages {
1641   width: 100%;
1642   border: 1px solid #ddd;
1643
1644   input[type="submit"] {
1645     margin: auto;
1646   }
1647   tbody tr {
1648     border-top: 1px solid #ccc;
1649   }
1650
1651   .inbox-row {
1652     background: #f8f8ff;
1653   }
1654
1655   .inbox-row-unread {
1656     background:#CBEEA7;
1657   }
1658
1659   .right {
1660     float: right;
1661   }
1662
1663   tr td,
1664   tr th {
1665     padding: $lineheight/4;
1666   }
1667   p:last-child,
1668   h2:last-child,
1669   h3:last-child,
1670   ol:last-child,
1671   ul:last-child {
1672     margin-bottom:0;
1673   }
1674   tr td {
1675     height: 30px;
1676     border-right: 1px solid $lightgrey;
1677   }
1678 }
1679
1680 .inbox-row .inbox-mark-read {
1681   display: none;
1682 }
1683
1684 .info-line {
1685   margin-bottom: $lineheight;
1686   padding: $lineheight/4 0px 4px 0px;
1687   border-bottom: 1px solid #ccc;
1688
1689   form, form div {
1690     display: inline;
1691   }
1692 }
1693
1694 .info-line .user_thumbnail_tiny {
1695   vertical-align: middle;
1696 }
1697
1698 .inbox-sent {
1699   white-space: nowrap;
1700 }
1701
1702 .inbox-mark-unread,
1703 .inbox-mark-read,
1704 .inbox-delete {
1705   width: 1%;
1706 }
1707
1708 .inbox-row-unread .inbox-mark-unread {
1709   display: none;
1710 }
1711
1712 .message-read .message-buttons {
1713   margin-top: $lineheight;
1714   margin-bottom: $lineheight * 1.5;
1715   padding-top: $lineheight;
1716   border-top: 1px solid $lightgrey;
1717 }
1718
1719 .message-read .buttons .mark-unread-button {
1720   border-radius: 0;
1721 }
1722
1723 /* Rules for "flash" notice boxes shown at the top of the content area */
1724
1725 .error {
1726   padding: $lineheight;
1727   background-color: #ff7070;
1728 }
1729
1730 .warning {
1731   padding: $lineheight;
1732   background-color: #ffe0cc;
1733 }
1734
1735 .notice {
1736   padding: $lineheight;
1737   background-color: #CBEEA7;
1738 }
1739
1740 /* Rules for highlighting fields with rails validation errors */
1741
1742 .formError {
1743   display: inline-block;
1744   padding: 5px 10px;
1745   margin-top: 5px;
1746   border-radius: 4px;
1747   font-size: 12px;
1748   color: #fff;
1749   background-color: #ff7070;
1750 }
1751
1752 /* Rules for rails validation error boxes */
1753
1754 #errorExplanation {
1755   width: 400px;
1756   border: 2px solid #ff7070;
1757   padding: 0 $lineheight/2;
1758   margin-bottom: $lineheight;
1759   background-color: #f0f0f0;
1760
1761   h2 {
1762     margin: 0 -10px 10px -10px;
1763     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1764     font-weight: bold;
1765     font-size: 12px;
1766     background-color: #c00;
1767     color: #fff;
1768     text-align: left;
1769   }
1770
1771   p {
1772     color: #333;
1773     margin-bottom: 0px;
1774     padding: $lineheight/4;
1775   }
1776
1777   ul {
1778     padding-left: $lineheight;
1779
1780     li {
1781       font-size: 12px;
1782       list-style: disc;
1783     }
1784   }
1785 }
1786
1787 /* Rules for forms */
1788
1789 .standard-form {
1790   fieldset {
1791     margin-bottom: $lineheight;
1792   }
1793   label.standard-label {
1794     display: block;
1795     margin-bottom: $lineheight/4;
1796     font-size: $typeheight;
1797     font-weight: bold;
1798     line-height: 1.5;
1799   }
1800   label.standard-label.secondary {
1801     display: inline-block;
1802     font-weight: normal;
1803   }
1804   .form-help {
1805     font-weight: normal;
1806   }
1807   .form-column {
1808     float: left;
1809     margin-right: 20px;
1810   }
1811   .form-divider {
1812     margin-top: $lineheight;
1813     padding-top: $lineheight;
1814     border-top: 1px solid $lightgrey;
1815   }
1816   .horizontal-list .form-row { 
1817     float: left;
1818     padding-right: 10px;
1819   }
1820   .form-row {
1821     margin-bottom: $lineheight/2;
1822   }
1823   .form-list {
1824     margin-bottom: 0;
1825   }
1826   .form-list li {
1827     margin-bottom: 5px;
1828    }
1829   input[type="checkbox"],
1830   input[type="radio"] {
1831     float: left;
1832     margin-top: 5px;
1833   }
1834 }
1835
1836 #remember_me_openid {
1837   display: block;
1838 }
1839
1840 input[type="checkbox"],
1841 input[type="radio"] {
1842     margin-right: 5px;
1843 }
1844
1845 input[type="text"],
1846 input[type="email"],
1847 input[type="url"],
1848 input[type="password"],
1849 textarea {
1850   border: 1px solid #ccc;
1851   padding: 2px 5px;
1852   margin: 0;
1853   width: 200px;
1854
1855   &.field_with_errors {
1856     border: 2px solid #ff7070;
1857   }
1858 }
1859
1860 textarea {
1861   padding: 5px;
1862   width: 100%;
1863 }
1864
1865 /* Rules for user images */
1866
1867 img.user_image {
1868   max-width: 100px;
1869   max-height: 100px;
1870   border: 1px solid #ccc;
1871   margin-bottom: $lineheight;
1872   float: left;
1873   margin-right: $lineheight;
1874 }
1875
1876 img.user_thumbnail {
1877   max-width: 50px;
1878   max-height: 50px;
1879   border: 1px solid #ccc;
1880   margin-right: $lineheight;
1881 }
1882
1883 img.user_thumbnail_tiny {
1884   width: auto;
1885   height: auto;
1886   max-width: 25px;
1887   max-height: 25px;
1888   border: 1px solid #ccc;
1889 }
1890
1891 /* Rules for geo microformats */
1892
1893 abbr.geo {
1894   border-bottom: none;
1895 }
1896
1897 /* Rules for RSS buttons */
1898
1899 .rsssmall {
1900   position: relative;
1901   top: 3px;
1902 }
1903
1904 /* General styles for action lists / subnavs / pager navs */
1905
1906 ul.secondary-actions {
1907   font-style: normal;
1908   margin-bottom: 0;
1909   margin-left: 0;
1910   &.pager {
1911     display: inline-block;
1912     margin-right: 60px;
1913   }
1914   > li {
1915     display: block;
1916     float: left;
1917     list-style: none;
1918     border-left: 1px solid #ccc;
1919     padding-left: $lineheight/2;
1920     margin-right: $lineheight/2;
1921     &:first-child {
1922       border-left: 0;
1923       padding-left: 0;
1924     }
1925     &:last-child {
1926       margin-right: 0px;
1927     }
1928   }
1929 }
1930
1931 div.secondary-actions {
1932   padding: 10px;
1933   text-align: center;
1934 }
1935
1936 /* Utility for managing inner content areas */
1937
1938 .inner22 { padding: $lineheight;}
1939
1940 .inner12 { padding: $lineheight/2 $lineheight;}
1941
1942 .inner11 { padding: $lineheight/2;}
1943
1944 .inner20 { padding: $lineheight 0;}
1945
1946 .inner02 { padding: 0 $lineheight;}
1947
1948 /* Utility for general button styles */
1949
1950 input[type="button"],
1951 input[type="submit"],
1952 input[type="reset"],
1953 a.button {
1954   cursor: pointer;
1955   border: 0;
1956   display: inline-block;
1957   line-height: 20px;
1958   padding: $lineheight/4 $lineheight/2;
1959   min-height: 20px + $lineheight/2;
1960   min-width: 120px;
1961   margin: 0 0 $lineheight/2 0;
1962   color: white;
1963   background: $blue;
1964   text-align: center;
1965   border-radius: 2px;
1966   -moz-border-radius: 2px;
1967   &:hover {
1968     background: darken($blue, $hovercolor);
1969     text-decoration: none;
1970   }
1971   &.deemphasize {
1972     background: $lightblue;
1973     &:hover {
1974       background: darken($lightblue, $hovercolor);
1975     }
1976   }
1977   &:disabled {
1978     background: $lightgrey;
1979     &:hover {
1980       background: $lightgrey;
1981     }
1982   }
1983   &:last-child {
1984     margin-bottom: 0;
1985   }
1986 }
1987
1988 .buttons {
1989   min-width: 200px;
1990   input[type="submit"],
1991   input[type="button"],
1992   input[type="reset"],
1993   .button {
1994     box-sizing: border-box;
1995     float: left;
1996     border-radius: 0;
1997     margin:0;
1998     min-width: 75px;
1999     max-width: 180px;
2000     border-right:1px solid white;
2001     text-overflow: ellipsis;
2002     white-space: nowrap;
2003     overflow: hidden;
2004   }
2005   input:first-child,
2006   .button:first-child {
2007     border-radius:2px 0 0 2px;
2008   }
2009   input:last-child,
2010   .button:last-child {
2011     border-radius:0 2px 2px 0;
2012     border-right-width: 0;
2013   }
2014   input:only-child,
2015   .button:only-child,
2016   *[value="Hide"] + input:last-child,
2017   *[value="Hide"] + .button:last-child {
2018     border-radius:2px;
2019     border-right-width: 0;
2020   }
2021     /* if a 3-button set has a hidden middle button */
2022   *[value="Hide"] + input:nth-child(3),
2023   *[value="Hide"] + .button:nth-child(3) {
2024     border-radius:0 2px 2px 0;
2025     border-right-width: 0;
2026   }
2027   /* if a 3-button set starts with a hidden button */
2028   *[value="Hide"] + input:nth-child(2):not(:last-child),
2029   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
2030     border-radius:2px 0 0 2px;
2031     border-right-width: 1px;
2032   }
2033 }
2034
2035 /* Rules for doing distinct colour of alternate table rows */
2036
2037 .table0,
2038 .item0 {
2039   background: $offwhite;
2040 }
2041
2042 .table1,
2043 .item1 {
2044   background: #fff;
2045 }
2046
2047 /* Rules for OpenID logo */
2048
2049 .openid_logo {
2050   vertical-align: text-bottom;
2051   border: 0;
2052 }
2053
2054 /* Rules for rich text */
2055
2056 .richtext,
2057 .prose {
2058   h1, h2 {
2059     padding-bottom: $lineheight/2;
2060     border-bottom: 1px dashed #cccccc;
2061     margin-bottom: $lineheight/2;
2062   }
2063
2064   h1 {
2065     font-size: 24px;
2066   }
2067
2068   h2 {
2069     font-size: 18px;
2070   }
2071
2072   h3 {
2073     font-size: $typeheight;
2074   }
2075
2076   code {
2077     font-size: 13px;
2078     background: #e8e8e8;
2079     padding: 2px 3px;
2080   }
2081
2082   pre {
2083     font-size: 13px;
2084     background: #e8e8e8;
2085     padding: 2px 3px;
2086
2087     code {
2088       padding: 0;
2089     }
2090   }
2091
2092   img {
2093     padding: $lineheight;
2094     background-color: $offwhite;
2095     display: block;
2096     max-width: 100%;
2097     margin: auto;
2098   }
2099
2100   blockquote {
2101     border-left: $lineheight solid $offwhite;
2102     padding-left: $lineheight;
2103     margin: 0;
2104     color: #7E7E7E;
2105   }
2106
2107   ul, ol {
2108     padding-left: $lineheight;
2109     margin-bottom: $lineheight;
2110     margin-left: $lineheight;
2111   }
2112
2113   ul li {
2114     list-style: disc;
2115   }
2116
2117   ol li {
2118     list-style: decimal;
2119   }
2120 }
2121
2122 .diary_post .richtext {
2123     margin-top: $lineheight;
2124   }
2125
2126 .comments .richtext {
2127   margin-left: 70px;
2128   margin-top: 0;
2129 }
2130
2131 /* Rules for rich text editors */
2132
2133 input.richtext_title[type="text"] {
2134   width: 50%;
2135   width: -moz-calc(100% - 235px);
2136   width: -webkit-calc(100% - 235px);
2137   width: calc(100% - 235px);
2138
2139   @media only screen and (max-width:768px) {
2140     width: 100%;
2141   }
2142 }
2143
2144 .richtext_container {
2145   margin-bottom: $lineheight;
2146
2147   .richtext_content {
2148     width: 50%;
2149     width: -moz-calc(100% - 235px);
2150     width: -webkit-calc(100% - 235px);
2151     width: calc(100% - 235px);
2152     display: inline-block;
2153     vertical-align: top;
2154
2155     @media only screen and (max-width:768px) {
2156       width: 100%;
2157     }
2158
2159     .richtext_preview {
2160       display: inline-block;
2161       padding: $lineheight;
2162       background-color: $offwhite;
2163       overflow-x: auto;
2164
2165       &.loading {
2166         background-image: image-url("loading.gif");
2167         background-repeat: no-repeat;
2168         background-position: center;
2169       }
2170
2171       > :first-child {
2172         margin-top: 0px;
2173       }
2174     }
2175   }
2176
2177   .richtext_help {
2178     display: inline-block;
2179     vertical-align: top;
2180     margin-left: 15px;
2181     background-color: #f8f8ff;
2182     padding: $lineheight/2;
2183     width: 220px;
2184
2185     ul {
2186       margin-bottom: 0;
2187     }
2188
2189     h4.heading, li {
2190       border-bottom: 1px solid #ccc;
2191       margin-bottom: $lineheight/4;
2192       padding-bottom: $lineheight/4;
2193     }
2194
2195     li h4, li span, li p {
2196       display: inline-block;
2197       vertical-align: top;
2198       font-size: 11px;
2199     }
2200
2201     li h4 {
2202       width: 40%;
2203       margin: 0;
2204     }
2205
2206     li span, li p {
2207       width: 50%;
2208       margin-left: $lineheight/2;
2209       margin-bottom: $lineheight/4;
2210       white-space: nowrap;
2211     }
2212   }
2213 }
2214
2215 /* Rules for the user notes list */
2216
2217 .note_list {
2218   tr.creator {
2219     background-color: #eeeeee;
2220   }
2221
2222   td {
2223     padding: 3px;
2224   }
2225
2226   p {
2227     margin-bottom: 0px;
2228   }
2229 }
2230
2231 /* Rules for the iD editor */
2232
2233 .id-embed {
2234   width: 100%;
2235   height: 100%;
2236 }
2237
2238 /* Rules for dropdown menus */
2239
2240 .dropdown {
2241   position: relative;
2242 }
2243
2244 .dropdown-toggle {
2245   *margin-bottom: -3px;
2246 }
2247
2248 .dropdown-toggle:active,
2249 .open .dropdown-toggle {
2250   outline: 0;
2251 }
2252
2253 .caret {
2254   display: inline-block;
2255   width: 0;
2256   height: 0;
2257   vertical-align: top;
2258   border-top: 4px solid #000000;
2259   border-right: 4px solid transparent;
2260   border-left: 4px solid transparent;
2261   content: "";
2262 }
2263
2264 .dropdown .caret {
2265   margin-top: 8px;
2266   margin-left: 2px;
2267 }
2268
2269 .dropdown-menu {
2270   position: absolute;
2271   top: 100%;
2272   left: -1px;
2273   z-index: 1000;
2274   display: none;
2275   float: left;
2276   min-width: 160px;
2277   padding: 5px 0;
2278   margin: 0;
2279   list-style: none;
2280   background-color: #ffffff;
2281   border: 1px solid #ccc;
2282   border-radius: 0 3px 3px;
2283   *border-right-width: 2px;
2284   *border-bottom-width: 2px;
2285   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2286      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2287           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2288   -webkit-background-clip: padding-box;
2289      -moz-background-clip: padding;
2290           background-clip: padding-box;
2291 }
2292
2293 .dropdown-menu.pull-right {
2294   right: 0;
2295   left: auto;
2296 }
2297
2298 .dropdown-menu .divider {
2299   *width: 100%;
2300   height: 1px;
2301   margin: 9px 1px;
2302   *margin: -5px 0 5px;
2303   overflow: hidden;
2304   background-color: #e5e5e5;
2305   border-bottom: 1px solid #ffffff;
2306 }
2307
2308 .dropdown-menu > li > a {
2309   display: block;
2310   padding: 3px 10px;
2311   clear: both;
2312   font-weight: normal;
2313   line-height: 20px;
2314   color: #333333;
2315   white-space: nowrap;
2316 }
2317
2318 .dropdown-menu > li > a:hover,
2319 .dropdown-menu > li > a:focus,
2320 .dropdown-submenu:hover > a,
2321 .dropdown-submenu:focus > a {
2322   color: #ffffff;
2323   text-decoration: none;
2324   background-color: $green;
2325 }
2326
2327 .dropdown-menu > .active > a,
2328 .dropdown-menu > .active > a:hover,
2329 .dropdown-menu > .active > a:focus {
2330   color: #ffffff;
2331   text-decoration: none;
2332   background-color: $green;
2333   outline: 0;
2334 }
2335
2336 .dropdown-menu > .disabled > a,
2337 .dropdown-menu > .disabled > a:hover,
2338 .dropdown-menu > .disabled > a:focus {
2339   color: #999999;
2340 }
2341
2342 .dropdown-menu > .disabled > a:hover,
2343 .dropdown-menu > .disabled > a:focus {
2344   text-decoration: none;
2345   cursor: default;
2346   background-color: transparent;
2347   background-image: none;
2348 }
2349
2350 .open {
2351   *z-index: 1000;
2352 }
2353
2354 .open > .dropdown-menu {
2355   display: block;
2356 }
2357
2358 .dropdown-backdrop {
2359   position: fixed;
2360   top: 0;
2361   right: 0;
2362   bottom: 0;
2363   left: 0;
2364   z-index: 990;
2365 }
2366
2367 /* Rules for the "Welcome" page */
2368 .site-welcome, .site-fixthemap {
2369   .center {
2370     text-align: center;
2371     .sprite { 
2372       float: none;
2373       margin: auto;
2374     }
2375   }
2376
2377   .sprite {
2378     background-image: image-url("welcome-sprite.png");
2379     background-size: 500px 250px;
2380     display: block;
2381     float: left;
2382   }
2383
2384   .icon-list { 
2385     padding-bottom: 20px;
2386     div {
2387       margin-bottom: 10px;
2388       p {
2389         padding-top: 10px;
2390       }
2391     }
2392   }
2393   .sprite.small {
2394     width: 50px;
2395     height: 50px;
2396   }
2397
2398   .sprite.x {
2399     background-position: -50px 0;
2400   }
2401
2402   .sprite.term {
2403     margin-right: 10px;
2404     vertical-align: middle;
2405   }
2406
2407   .sprite.node {
2408     background-position: -100px 0;
2409   }
2410
2411   .sprite.way {
2412     background-position: -150px 0;
2413   }
2414
2415   .sprite.tag {
2416     background-position: -200px 0;
2417   }
2418
2419   .sprite.editor {
2420     background-position: -250px 0;
2421   }
2422
2423   .sprite.question {
2424     background-position: -300px 0;
2425   }
2426
2427   .start-mapping {
2428     margin: auto;
2429     cursor: pointer;
2430     border: none;
2431     padding: 20px 40px;
2432     font-size: 30px;
2433     text-decoration: none;
2434   }
2435
2436   .note-box {
2437     margin-top: 20px;
2438     background-color: $offwhite;
2439   }
2440
2441   .icon.note {
2442     background-color: #333;
2443     border-radius: 4px;
2444   }
2445 }
2446
2447 .site-about #content {
2448   //background-color: #000;
2449   background-color: #eee;
2450   background-position: 50% 50%;
2451   background-repeat: no-repeat;
2452   background-size: cover;
2453   background-attachment: fixed;
2454
2455   &.photo-0 { background-image: image-url('about/0.jpg'); .photo-0 { display: block; } }
2456   &.photo-1 { background-image: image-url('about/1.jpg'); .photo-1 { display: block; } }
2457   &.photo-2 { background-image: image-url('about/2.jpg'); .photo-2 { display: block; } }
2458   &.photo-3 { background-image: image-url('about/4.jpg'); .photo-3 { display: block; } }
2459   &.photo-4 { background-image: image-url('about/4.jpg'); .photo-4 { display: block; } }
2460   &.photo-5 { background-image: image-url('about/5.jpg'); .photo-5 { display: block; } }
2461
2462   .caption {
2463     max-width: 200px;
2464     font: 13px/20px Helvetica, Arial, sans-serif;
2465     position: fixed;
2466     text-align: right;
2467     right: 20px;
2468     bottom: 60px;
2469     text-shadow: #000 0px 1px 5px;
2470     color: #eee;
2471     opacity: 0.8;
2472     display: none;
2473   }
2474
2475   .caption a {
2476     color: white;
2477     white-space: nowrap;
2478     text-decoration: none;
2479   }
2480
2481   a.next {
2482     display: block;
2483     position: fixed;
2484     right: 10px;
2485     bottom: 10px;
2486     width: 40px;
2487     height: 40px;
2488     border-radius: 5px;
2489     text-indent: -9999px;
2490     overflow: hidden;
2491     background: image-url('about/sprite.png') -120px 0px no-repeat;
2492     background-color: #000;
2493     background-color: rgba(0, 0, 0, 0.5);
2494   }
2495
2496   .content-inner {
2497     position: relative;
2498     color: #333;
2499     min-width: 320px;
2500     max-width: 640px;
2501
2502     .section {
2503       margin-bottom: 30px;
2504     }
2505
2506     .section:last-child {
2507       margin-bottom: 0;
2508     }
2509   }
2510
2511   .text {
2512     background: white;
2513     padding: 40px;
2514   }
2515
2516   .attr {
2517     position: relative;
2518     padding: 170px 40px 20px;
2519     background: #333;
2520     background: rgba(0, 0, 0, .8);
2521     margin-bottom: 0;
2522     margin-top: -20px;
2523
2524     h1 {
2525       display: block;
2526       color: white;
2527       font-weight: 300;
2528       font-size: 34px;
2529       span {
2530         color: #76c551;
2531       }
2532     }
2533
2534     .user-image {
2535       position: absolute;
2536       top: 0px;
2537       right: 240px;
2538       left: 0px;
2539       height: 150px;
2540       background-position: 0 50%;
2541       background-repeat: no-repeat;
2542       background-image: image-url('about/osm.png');
2543       background-size: cover;
2544       background-color: #76c551;
2545     }
2546
2547     .byosm {
2548       position: absolute;
2549       top: 0px;
2550       right: 0px;
2551       z-index: 1;
2552       width: 240px;
2553       height: 150px;
2554       padding: 20px 20px 20px 40px;
2555       font: 500 20px/24px Helvetica, Arial, sans-serif;
2556       white-space: nowrap;
2557       color: #fff;
2558       background: #76c551;
2559     }
2560
2561     .byosm span {
2562       display: inline-block;
2563       width: 20px;
2564       margin-left: -20px;
2565     }
2566   }
2567
2568   h2 {
2569     margin-bottom: 10px;
2570   }
2571
2572   .icon {
2573     width: 30px;
2574     height: 30px;
2575     margin-right: 10px;
2576     vertical-align: middle;
2577     background: 40px 40px image-url('about/sprite.png') no-repeat;
2578
2579     &.local        { background-position: 0px    0px; }
2580     &.community    { background-position: 0px  -40px; }
2581     &.open         { background-position: 0px  -80px; }
2582     &.partners     { background-position: 0px -120px; }
2583     &.infringement { background-position: 0px -160px; }
2584   }
2585 }
2586
2587 @import 'browse';
2588
2589 @media only screen and (max-width:960px) {
2590   .header-illustration.new-user-arm {
2591     display: none;
2592   }
2593 }
2594