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