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