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