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