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