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