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