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