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