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