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