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