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