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