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