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