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