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