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