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