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