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