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