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