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