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