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