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