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