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