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