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