]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Convert browse details to sidebar layout
[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 .browse {
931   #content {
932     position: absolute;
933     top: $headerHeight;
934     bottom: 0;
935     width: 100%;
936   }
937
938   #sidebar, #map {
939     position: relative;
940     height: 100%;
941     overflow-x: hidden;
942     overflow-y: auto;
943   }
944
945   #sidebar {
946     float: left;
947     width: $sidebarWidth;
948   }
949 }
950
951 .content-heading {
952   position: relative;
953   padding: $lineheight;
954   background: $lightgrey;
955   border-bottom: $keyline;
956 }
957
958 .content-body {
959   padding: $lineheight;
960 }
961
962 /* Overrides for pages that use new layout conventions */
963
964 .user-new,
965 .user-create,
966 .user-terms,
967 .user-confirm {
968   .content-heading {
969     height: 200px;
970   }
971 }
972
973 .user-new,
974 .user-create,
975 .user-terms {
976   .content-body {
977     padding: 0;
978   }
979 }
980
981 .header-illustration {
982   background-position: 0 0;
983   background-repeat: no-repeat;
984   position: absolute;
985   height: 200px;
986   width: 100%;
987   left: 0;
988   bottom: 0;
989
990   &.new-user-main {
991     background-image: image-url("sign-up-illustration.png");
992   }
993
994   &.confirm-main {
995     background-image: image-url("confirm-illustration.png");
996   }
997
998   &.new-user-terms {
999     background-image: image-url("terms-illustration.png");
1000   }
1001
1002   &.new-user-arm {
1003     height: 110px;
1004     width: 130px;
1005     left: 260px;
1006     top: 160px;
1007     background-image: image-url("sign-up-illustration-arm.png");
1008   }
1009 }
1010
1011 @media only screen and (max-width:900px) {
1012   .header-illustration.new-user-arm { display: none;}
1013 .wrapper {
1014   margin-left: $sidebarWidth;
1015   text-align: left;
1016 }
1017
1018 }
1019
1020 #content.maximised {
1021   top: 0;
1022   left: 0;
1023   right: 0;
1024   bottom: 0;
1025   border: 0;
1026   z-index: 1000;
1027 }
1028
1029 #slim_container {
1030   width: 100%;
1031 }
1032
1033 #slim_container_content {
1034   max-width: 50em;
1035   background-color: #FFFFFF;
1036   margin: $lineheight/2 auto;
1037   padding: 3px;
1038   border-radius: 25px;
1039   -moz-border-radius: 25px;
1040   border: 1px solid #e6e6e6;
1041 }
1042
1043 #slim_content {
1044   margin: $lineheight/2;
1045   margin-top: 95px;
1046   max-width: 50em;
1047
1048   .content-heading {
1049     margin-bottom: 15px;
1050   }
1051 }
1052
1053 #slim_header {
1054   margin: 30px $lineheight/2;
1055   position: absolute;
1056   top: 0px;
1057   margin-right: $lineheight/4;
1058   img {
1059     vertical-align: middle;
1060     margin-bottom: $lineheight/4;
1061     margin-right: $lineheight/4;
1062   }
1063 }
1064
1065 /* Rules for small maps in content areas */
1066
1067 .content_map {
1068   position: relative;
1069   width: 45%;
1070   height: 400px;
1071   border: 1px solid #ccc;
1072   margin-bottom: $lineheight;
1073   float: right;
1074 }
1075
1076 .content_map #small_map {
1077   height: 100%;
1078   width: 100%;
1079   margin-bottom: $lineheight;
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 }