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