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