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