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