]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.scss
Rework welcome and fixthemap pages
[rails.git] / app / assets / stylesheets / common.scss
1 @import "parameters";
2 @import "bootstrap";
3 @import "rails_bootstrap_forms";
4
5 /* Styles common to large and small screens */
6
7 /* Default rules for the body of every page */
8
9 body {
10   font-size: $typeheight;
11 }
12
13 p > img {
14   width: auto;
15   max-width: 100%;
16 }
17
18 small, aside {
19   font-size: 12px;
20 }
21
22 #container { position: relative; }
23
24 .small_icon {
25   vertical-align: middle;
26   margin-right: $lineheight/4;
27 }
28
29 [dir=rtl] { /* no-r2 */ text-align: right; }
30
31 [dir=ltr] { /* no-r2 */ text-align: left; }
32
33 /* Rules for icons */
34
35 .icon {
36   display: inline-block;
37   vertical-align: top;
38   width: 20px;
39   height: 20px;
40   background: transparent image-url("sprite.png") no-repeat 0 0;
41   background-image: image-url("sprite.svg");
42   text-indent: -9999px;
43   overflow: hidden;
44 }
45
46 .icon.search      { /* no-r2 */ background-position: 0 0; }
47 .icon.donate      { /* no-r2 */ background-position: -20px 0; }
48 .icon.zoomin      { /* no-r2 */ background-position: -40px 0; }
49 .icon.zoomout     { /* no-r2 */ background-position: -60px 0; }
50 .icon.geolocate   { /* no-r2 */ background-position: -80px 0; }
51 .active .icon.geolocate   { /* no-r2 */ background-position: -80px -20px; }
52 .icon.layers      { /* no-r2 */ background-position: -100px 0; }
53 .icon.key         { /* no-r2 */ background-position: -120px 0; }
54 .icon.share       { /* no-r2 */ background-position: -140px 0; }
55 .icon.clipboard   { /* no-r2 */ background-position: -160px 0; }
56 .icon.link        { /* no-r2 */ background-position: -180px 0; }
57 .icon.close       { /* no-r2 */ background-position: -200px 0; }
58 .close-wrap:hover .icon.close,
59 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
60 .icon.check       { /* no-r2 */ background-position: -220px 0; }
61 .icon.note        { /* no-r2 */ background-position: -240px 0; }
62 .icon.note.grey   { /* no-r2 */ background-position: -240px -20px; }
63 .icon.query       { /* no-r2 */ background-position: -260px 0; }
64
65 /* Utility for de-emphasizing content */
66
67 .text-muted a {
68   color: $blue;
69 }
70
71 /* Rules for borders */
72 /* These add additional colours to those provided by bootstrap */
73 .border-grey {
74   border-color: $grey !important;
75 }
76
77 .border-lightgrey {
78   border-color: $lightgrey !important;
79 }
80
81 /* Rules for the header */
82
83 #menu-icon {
84   display: none !important;
85   float: right;
86   background: image-url("menu-icon.png") no-repeat;
87   background-size: 30px 30px;
88   display: block;
89   width: 30px;
90   height: 30px;
91   margin: 14px 10px 0 0;
92   opacity: 0.6;
93 }
94
95 header {
96   height: $headerHeight;
97   position: relative;
98   z-index: 1001;
99   font-size: 14px;
100
101   h1, nav, nav > ul, nav > ul > li {
102     display: inline-block;
103   }
104
105   > * {
106     height: 100%;
107     padding: $lineheight/2;
108   }
109
110   h1, nav.primary {
111     float: left;
112   }
113
114   a, a:hover {
115     text-decoration: none;
116   }
117
118   img.logo {
119     width: 30px;
120     height: 30px;
121     margin-top: -2px;
122     vertical-align: middle;
123   }
124
125   h1 {
126     font-size: 18px;
127     font-weight: 600;
128     line-height: 1.2;
129     margin: 0;
130     padding-top: 15px;
131
132     a {
133       color: #000;
134     }
135
136     a:hover {
137       color: #000;
138     }
139   }
140
141   .btn {
142     font-size: 14px;
143   }
144 }
145
146
147 nav.primary {
148   .btn-outline-primary {
149     @include button-outline-variant($green, $white);
150   }
151
152   .disabled {
153     .btn-outline-primary {
154       color: $grey;
155       cursor: default;
156
157       .caret {
158         border-top-color: $grey;
159       }
160
161       &:hover {
162         background-color: lighten($green, 30%);
163       }
164     }
165   }
166
167   // Small tweaks to the toggle to stop the primary colour showing through
168   // when the menu is shown
169   .show > .btn-outline-primary.dropdown-toggle {
170     background-color: $green;
171     border-color: $green;
172
173     &:focus {
174       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
175     }
176   }
177 }
178
179 nav.secondary {
180   position: absolute;
181   right: 0;
182
183   .nav-link {
184     padding: 0.2rem;
185     color: $darkgrey;
186   }
187
188   > ul li.current a {
189     color: darken($darkgrey, 25%);
190   }
191
192   .login-menu {
193     .btn-outline-secondary {
194       @include button-outline-variant($darkgrey, $white, null, null, $white);
195     }
196   }
197
198   .user-menu {
199     .btn-outline-secondary {
200       @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
201       border-color: $grey;
202       &:hover {
203         border-color: $grey;
204       }
205       &:focus {
206         background-color: white;
207         box-shadow: none;
208       }
209     }
210     &.show .btn-outline-secondary {
211       background-color: white;
212       &:focus {
213         box-shadow: none;
214       }
215     }
216   }
217
218   #inboxanchor {
219     display: inline-block;
220     height: 25px;
221     margin: 3px 0 3px 3px;
222     background-color: lighten($grey, 10%);
223     line-height: 20px;
224     border-radius: 3;
225   }
226
227   .dropdown-menu {
228     .count-number {
229       font-size: 14px;
230     }
231   }
232 }
233
234 nav.primary, nav.secondary {
235   .dropdown-item {
236     &:hover, &:active {
237       background-color: $green;
238       color: white;
239     }
240   }
241 }
242
243 #compact-secondary-nav {
244   display: none;
245 }
246
247 body.compact-nav {
248   #compact-secondary-nav {
249     display: inline-block;
250   }
251   .compact-hide {
252     display: none;
253   }
254 }
255
256 /* Utility for styling notification numbers */
257
258 .count-number {
259   padding: 2px $lineheight/4;
260   border-radius: 2px;
261   background: lighten($green, 30%);
262   margin: 0 2px;
263   font-size: 11px;
264   color: #333;
265 }
266
267 /* Rules for the message shown in place of the map when javascript is disabled */
268
269 #noscript {
270   z-index: 20000000;
271   margin-left: 400px;
272   margin-top: 50px;
273 }
274
275 /* Rules for Leaflet maps */
276
277 .leaflet-control .control-button {
278   display: block;
279   height: 40px;
280   width: 40px;
281   background-color: #333;
282   background-color: rgba(0,0,0,.6);
283   border-radius: 4px 0 0 4px;
284   margin-bottom: 10px;
285   outline: none;
286
287   &:hover {
288     background-color: black;
289   }
290
291   &.disabled,
292   &.leaflet-disabled {
293     background-color: #333;
294     background-color: rgba(0,0,0,.5);
295     cursor: default;
296   }
297
298   &.active {
299     background-color: $vibrant-green;
300   }
301
302   .icon {
303     margin: 10px;
304   }
305 }
306
307 .leaflet-control .zoomin,
308 .control-layers .control-button {
309   margin-bottom: 0px;
310   border-radius: 4px 0 0 0;
311 }
312
313 .leaflet-control .zoomout,
314 .control-key .control-button {
315   margin-bottom: 0;
316   border-radius: 0;
317 }
318
319 .control-locate .control-button,
320 .control-share .control-button {
321   border-radius: 0 0 0 4px;
322 }
323
324 /* Rules for the sidebar and main map area */
325
326 .map-layout {
327   #content {
328     overflow: hidden;
329     position: absolute;
330     top: $headerHeight;
331     bottom: 0;
332     width: 100%;
333   }
334
335   #sidebar, #map {
336     position: relative;
337     height: 100%;
338     overflow-x: hidden;
339     overflow-y: auto;
340   }
341
342   #sidebar {
343     float: left;
344     width: $sidebarWidth;
345     background: #fff;
346
347     #sidebar_loader {
348       display: none;
349     }
350
351     #sidebar_content {
352       padding: $spacer;
353     }
354
355     > div {
356       position: relative;
357       float: left;
358       clear: both;
359       width: 100%;
360     }
361
362     .close-wrap {
363       cursor: pointer;
364       position: absolute;
365       top: 0;
366       right: 0;
367       width: 60px;
368       height: 60px;
369
370       .icon.close {
371         pointer-events: none;
372         position: absolute;
373         right: 20px;
374         top: 20px;
375       }
376     }
377   }
378
379   .overlay-sidebar #sidebar {
380     position: absolute;
381     z-index: 1000;
382     height: auto;
383     overflow: hidden;
384
385     #banner {
386       display: block;
387     }
388
389     .welcome {
390       display: none;
391
392       &.visible {
393         display: block;
394       }
395     }
396
397     #sidebar_content {
398       display: none;
399     }
400   }
401
402   .welcome {
403     display: none;
404
405     p {
406       font-size: 110%;
407       font-weight: 300;
408     }
409   }
410
411   #banner {
412     display: none;
413
414     img {
415       display: block;
416       width: $sidebarWidth;
417     }
418   }
419
420   #map {
421     height: 100%;
422     overflow: hidden;
423
424     &.query-active {
425       cursor: help;
426     }
427
428     &.query-disabled {
429       cursor: not-allowed;
430     }
431
432     .leaflet-marker-draggable {
433       cursor: move;
434     }
435   }
436
437   #map-ui {
438     display: none;
439     position: relative;
440     float: right;
441     width: 250px;
442     height: 100%;
443     background: white;
444     overflow: auto;
445
446     .section {
447       border-bottom: 1px solid $grey;
448       padding: 10px 20px;
449     }
450
451     a.close-button {
452       float: right;
453       padding:5px;
454       font-size:20px;
455       line-height:10px;
456       color:#222;
457       border:1px solid $grey;
458     }
459
460     .tooltip {
461       opacity: 1;
462       border: 1px solid $grey;
463       .tooltip-arrow {
464         border-top-color: $grey;
465       }
466     }
467   }
468 }
469
470 .layers-ui,
471 .share-ui {
472   li:last-child {
473     margin-bottom: 0;
474   }
475 }
476
477 .layers-ui {
478   .base-layers {
479     .leaflet-container {
480       width: 100%;
481       height: 50px;
482       cursor: pointer;
483     }
484
485     li  {
486       overflow: hidden;
487       border-radius: 3px;
488       border: 2px solid #fff;
489       margin-bottom: 8px;
490       position: relative;
491       transition: border-color 0.08s ease-in;
492
493       label {
494         position: absolute;
495         top: 0;
496         left: 0;
497         padding: 2px 6px;
498         border-bottom-right-radius: 3px;
499         cursor: pointer;
500         font-weight: 600;
501         font-size: 16px;
502         text-stroke: 2px #fff;
503         background: rgba(255,255,255,.9);
504         z-index: 1000;
505         input[type="radio"] {
506           display: none;
507         }
508       }
509
510       &.active { border-color: darken($green, 10%); }
511       &:hover {
512         border-color: $grey;
513         &.active { border-color: darken($green, 20%); }
514       }
515     }
516   }
517
518   .overlay-layers {
519     p {
520       font-size: 13px;
521       margin-bottom: 8px;
522     }
523     li.disabled { color: $darkgrey; }
524   }
525 }
526
527 .share-ui {
528   .share-tabs {
529     margin-bottom: 10px;
530
531     a {
532       color: #fff;
533       text-decoration: none;
534       background-color: $lightblue;
535       padding: 5px 10px;
536       border-right: 1px solid #fff;
537     }
538
539     a:first-child {
540       border-right: 1px solid #fff;
541       border-radius: 4px 0 0 4px;
542     }
543
544     a:last-child {
545       border-radius: 0 4px 4px 0;
546     }
547
548     a.active {
549       background-color: $blue;
550     }
551   }
552
553   .share-tab {
554     display: none;
555   }
556
557   .share-link {
558     input[type=text],
559     textarea {
560       width: 100%;
561       font-family: monospace;
562       font-size: small;
563       line-height: 1.3;
564     }
565   }
566
567   .share-image {
568     label {
569       margin-right: 10px;
570     }
571   }
572
573   #embed_html {
574     resize: vertical;
575   }
576
577   #mapnik_scale {
578     width: 100px;
579   }
580 }
581
582 .leaflet-top {
583   top: $lineheight/2 !important;
584   .leaflet-control {
585     margin-right: 0px !important;
586     margin-top: 0px !important;
587   }
588 }
589
590 .leaflet-popup-scrolled {
591   padding-right: $lineheight;
592   border-bottom: 0px !important;
593   border-top: 0px !important;
594 }
595
596 .leaflet-popup-content-wrapper {
597   border-radius: 4px !important;
598 }
599
600 /* Rules for attribution text under the main map shown on printouts */
601
602 #attribution {
603   display: none;
604
605   table {
606     width: 100%
607   }
608 }
609
610 .attribution_license,
611 .attribution_project {
612   text-align: left;
613 }
614
615 .attribution_notice {
616   text-align: center;
617 }
618
619 .donate-attr { color: darken($green, 10%) !important; }
620
621 /* Rules for the sidebar */
622
623 .sidebar_heading {
624   position: relative;
625   padding: $lineheight/2 $lineheight;
626   // background: $offwhite;
627   // border-bottom: 1px solid $grey;
628   > .close {
629     float: right;
630     margin-top: 2px;
631     cursor: pointer;
632   }
633 }
634
635 #browse_status {
636   input {
637     display: block;
638     margin-left: auto;
639     margin-right: auto;
640   }
641
642   > div {
643    padding: $spacer;
644   }
645 }
646
647 #sidebar {
648   #sidebar_loader,
649   .search_more {
650     width: 100%;
651     margin: $lineheight auto;
652   }
653
654   .loader {
655     text-align: center;
656     margin: auto;
657     width: 40px;
658     display: block;
659   }
660 }
661
662 /* Temporary label size override until we remove site-wide font customisation */
663
664 form {
665   label {
666     font-size: 16px;
667   }
668 }
669
670 /* Stop bootstrap 5 from floating legends when they don't need to be */
671 legend {
672   float: none;
673 }
674
675 /* Override the text colour for primary and secondary buttons, to match our
676    bootstrap 4 colours. Note this has accessibility issues, which is why
677    bootstrap 5 calculates black as the appropriate colour, and we should
678    reconsider our colours at some point with that in mind. */
679
680 .btn-primary {
681   @include button-variant($primary, $primary, $white, null, null, $white, null, null, $white, null, null, $white);
682 }
683
684 .btn-secondary {
685   @include button-variant($secondary, $secondary, $white, null, null, $white, null, null, $white, null, null, $white);
686 }
687
688 .btn-outline-secondary {
689   @include button-outline-variant($secondary, $white, null, null, $white);
690 }
691
692 /* Rules for the search and direction forms */
693
694 header .search_forms,
695 .directions_form {
696   display: none;
697 }
698
699 /* Rules for the map key which appears in the popout sidebar */
700
701 #mapkey {
702  .mapkey-table-key img {
703     display: block;
704     margin-left: auto;
705     margin-right: auto;
706   }
707 }
708
709 /* Rules for search sidebar */
710
711 #sidebar .search_results_entry {
712   ul li {
713     cursor: pointer;
714     &.selected { background: $list-highlight; }
715   }
716
717   .search_more .loader {
718     display: none;
719     width: 100%;
720   }
721 }
722
723 .search_results_error {
724   color: #f00;
725   padding: 10px 20px;
726 }
727
728 /* Rules for routing */
729
730 div.direction {
731   background-image: image-url('routing-sprite.png');
732   width: 20px;
733   height: 20px;
734   background-repeat: no-repeat;
735 }
736 @for $i from 0 through 25 {
737 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
738 }
739
740 td.instruction, td.distance {
741     padding-top: $lineheight/5;
742     padding-bottom: $lineheight/5;
743     border-bottom: 1px solid $grey;
744 }
745 td.distance {
746     color: $darkgrey;
747     text-align: right;
748     font-size: x-small;
749 }
750 tr.turn {
751     cursor: pointer;
752 }
753 tr.turn:hover {
754     background: $list-highlight;
755 }
756
757 .routing_marker { width: 15px; cursor: move; }
758
759 /* Rules for entity history */
760
761 #sidebar_content {
762   .browse_details {
763     position: relative;
764     border-bottom: $keyline;
765   }
766 }
767
768 .browse_status {
769   display: none;
770 }
771
772 /* Rules for the history sidebar */
773
774 #sidebar .changesets {
775   li {
776     cursor: pointer;
777
778     &.selected { background: $list-highlight; }
779     /* color is derived from changeset bbox fillColor in history.js */
780   }
781
782   .comments {
783     color: $darkgrey;
784   }
785
786   .comments-0 {
787     opacity: 0.5;
788   }
789
790   .changeset_more .loader {
791     display: none;
792     width: 100%;
793   }
794 }
795
796 /* Rules for the browse sidebar */
797
798 #sidebar_content {
799   .browse-section {
800     padding-bottom: $spacer;
801     margin-bottom: $spacer;
802     border-bottom: 1px solid $grey;
803
804     h4:first-child {
805       word-wrap: break-word;
806     }
807   }
808
809   .browse-section:last-of-type {
810     border-bottom: none;
811   }
812
813   .browse-tag-list {
814     background-color: $offwhite;
815     table-layout: fixed;
816     border-collapse: separate;
817     border-spacing: 0;
818     width: 100%;
819     margin-bottom: $spacer;
820
821     th, td {
822       border-bottom: 1px solid $grey;
823     }
824
825     tr:last-child th, tr:last-child td {
826       border-bottom: 0;
827     }
828
829     .browse-tag-k,
830     .browse-tag-v {
831       width: 50%;
832       padding: 6px 10px;
833       word-wrap: break-word;
834       white-space: pre-wrap;
835     }
836
837     .browse-tag-k {
838       font-weight: 500;
839       background-color: $offwhite;
840     }
841
842     .browse-tag-v {
843       border-left: 1px solid $grey;
844       background-color: #fff;
845     }
846
847     .colour-preview-box {
848       float: right;
849       width: 14px;
850       height: 14px;
851       margin: 4px 0px;
852       border: 1px solid rgba(0, 0, 0, .1);
853       // add color via inline css on element: background-color: <tag value>;
854     }
855   }
856
857   .note-comments li, .changeset-comments li {
858     margin: $lineheight/2 0;
859
860     p {
861       margin: 10px 6px 0 6px;
862       line-height: 1.5;
863     }
864   }
865
866   .subscribe-buttons input {
867     font-size: 90%;
868     line-height: 15px;
869     min-height: 20px;
870   }
871
872   span.action-button:hover {
873     cursor: pointer;
874     text-decoration: underline;
875   }
876
877   .note-description {
878     overflow: hidden;
879     margin: 0 0 10px 10px;
880   }
881
882   .query-results {
883     display: none;
884
885     ul {
886       li {
887         &.query-result {
888           cursor: pointer;
889         }
890
891         &.selected {
892           background: $list-highlight;
893         }
894       }
895     }
896   }
897 }
898
899 /* Bootstrap buttons don't have any vertical margin, so
900    they touch when adjacent buttons wrap onto a new line
901    e.g. wide form buttons on a narrow sidebar */
902
903 .btn-wrapper {
904   > .btn {
905     margin-bottom: $spacer * 0.25;
906   }
907 }
908
909 /* Rules for export sidebar */
910
911 .export_form {
912   .export_area_inputs,
913   .export_button {
914     text-align: center;
915   }
916
917   .export_area_inputs {
918     margin-bottom: $spacer;
919     input[type="text"] {
920       width: 100px;
921       text-align: center;
922     }
923   }
924
925   .export_boxy {
926     background: $lightgrey;
927
928     #maxlat { margin-top: -1px; }
929     #minlon {
930       float: left;
931       /* no-r2 */ margin-left: -1px;
932     }
933     #maxlon {
934       float: right;
935       /* no-r2 */ margin-right: -1px;
936     }
937     #minlat { margin-bottom: -1px; }
938   }
939
940   .export_bound {
941     margin: $lineheight/4;
942   }
943
944   dl {
945     padding-left: $lineheight/2;
946     dd {
947       margin-left: 0;
948       margin-bottom: 10px;
949     }
950   }
951 }
952
953 /* Rules for edit pages */
954
955 .site-edit {
956   #content {
957     position: absolute;
958     top: $headerHeight;
959     bottom: 0;
960     width: 100%;
961   }
962
963   #map {
964     height: 100%;
965     overflow: hidden;
966   }
967 }
968
969 /* Rules for non-map content pages */
970
971 .content-heading {
972   background: $lightgrey;
973 }
974
975 .content-inner {
976   position: relative;
977   max-width: 960px;
978   margin: auto;
979   padding: $lineheight;
980 }
981
982 /* Overrides for pages that use new layout conventions */
983
984 .header-illustration {
985   background-position: 0 0;
986   background-repeat: no-repeat;
987   position: relative;
988   min-height: 200px;
989   width: 100%;
990   left: 0;
991   bottom: 0;
992
993   &.new-user-main {
994     background-image: image-url("sign-up-illustration.png");
995   }
996
997   &.confirm-main {
998     background-image: image-url("confirm-illustration.png");
999   }
1000
1001   &.new-user-terms {
1002     background-image: image-url("terms-illustration.png");
1003   }
1004
1005   &.new-user-arm {
1006     height: 110px;
1007     width: 130px;
1008     left: 280px;
1009     top: 180px;
1010     background-image: image-url("sign-up-illustration-arm.png");
1011     position: absolute;
1012     z-index: 100;
1013     pointer-events: none;
1014   }
1015 }
1016
1017 [dir=rtl] .header-illustration {
1018   transform: scaleX(-1);
1019 }
1020
1021 #content.maximised {
1022   top: 0;
1023   left: 0;
1024   right: 0;
1025   bottom: 0;
1026   border: 0;
1027   z-index: 2000;
1028 }
1029
1030 /* Rules for small maps in content areas */
1031
1032 .content_map {
1033   height: 200px;
1034   margin-bottom: $lineheight;
1035 }
1036
1037 @include media-breakpoint-up(md) {
1038   .content_map {
1039     height: 400px;
1040   }
1041 }
1042
1043 /* Rules for the user map */
1044
1045 .content_map .leaflet-popup-content {
1046   margin: $lineheight/2;
1047   min-height: 50px;
1048 }
1049
1050 /* Rules for user popups on maps */
1051
1052 .user_popup {
1053   min-width: 200px;
1054   p {
1055     padding: 0 0 5px 0;
1056     margin-top: 0 0 0 60px;
1057     font-size: 12px;
1058   }
1059 }
1060
1061 /* Rules for the user list */
1062
1063 #user_list {
1064   width: 100%;
1065 }
1066
1067 /* Rules for the diary list page */
1068
1069 .diary_post {
1070   position: relative;
1071   padding-top: $lineheight;
1072   padding-bottom: $lineheight/2;
1073   border-top: 1px solid $grey;
1074
1075   &.deleted {
1076     background-color: #fee;
1077   }
1078 }
1079
1080 /* Rules for the diary entry page */
1081
1082 .diary_entries {
1083   #map {
1084     height: 400px;
1085     display: none;
1086     margin-bottom: $lineheight;
1087   }
1088   .comments {
1089     max-width: 740px;
1090   }
1091   .diary-comment {
1092     border-top: 1px dashed $grey;
1093     padding-top: $lineheight/2;
1094     padding-bottom: $lineheight/2;
1095     &:first-child {
1096       margin-top: $lineheight/2;
1097       padding-top: $lineheight;
1098       border-top: 1px solid $grey;
1099     }
1100     &.deleted {
1101       background-color: #fee;
1102     }
1103     p {
1104       margin-bottom: $lineheight/2;
1105     }
1106     .comment-heading {
1107       margin-bottom: 0;
1108       margin-top: 0;
1109     }
1110   }
1111 }
1112
1113 /* Rules for the log in page */
1114
1115 #login_auth_buttons {
1116   margin-bottom: 0;
1117
1118   li {
1119     float: left;
1120     padding: $lineheight/4 $lineheight/2;
1121   }
1122 }
1123
1124 /* Rules for the account confirmation page */
1125
1126 .users-terms {
1127   .legale {
1128     padding: $lineheight;
1129     margin-bottom: $lineheight;
1130     overflow: auto;
1131     height: 20em;
1132
1133     li {
1134       list-style: inherit;
1135     }
1136
1137     ol ol {
1138       list-style-type: lower-alpha;
1139     }
1140   }
1141 }
1142
1143 /* Rules for the account settings page */
1144
1145 #accountForm .user_image {
1146   margin-bottom: 0;
1147 }
1148
1149 #accountForm #user_image {
1150   margin-left: 20px;
1151 }
1152
1153 #accountForm ul.accountImage-options {
1154   margin-left: 120px;
1155 }
1156
1157 .nohome .location {
1158   display: none;
1159 }
1160
1161 #homerow .message {
1162   display: none;
1163 }
1164
1165 .nohome .message {
1166   display: inline !important;
1167 }
1168
1169 /* Rules for the oauth settings page */
1170
1171 .oauth_clients .buttons .oauth-edit {
1172   border-radius: 2px 0 0 2px;
1173 }
1174
1175 .oauth_clients .buttons .oauth-delete {
1176   border-radius: 0 2px 2px 0;
1177 }
1178
1179 /* Rules for the oauth authorization page */
1180
1181 .oauth-authorize ul {
1182   list-style: none;
1183 }
1184
1185 /* Rules for messages pages */
1186
1187 .messages {
1188   button[type="submit"] {
1189     margin: auto;
1190     white-space: nowrap;
1191   }
1192
1193   .inbox-row {
1194     background: $offwhite;
1195   }
1196
1197   .inbox-row-unread {
1198     background: #CBEEA7;
1199   }
1200
1201   .right {
1202     float: right;
1203   }
1204 }
1205
1206 .inbox-row .inbox-mark-read {
1207   display: none;
1208 }
1209
1210 .info-line {
1211   margin-bottom: $lineheight;
1212   padding: $lineheight/4 0px 4px 0px;
1213   border-bottom: 1px solid $grey;
1214
1215   form, form div {
1216     display: inline;
1217   }
1218 }
1219
1220 .info-line .user_thumbnail_tiny {
1221   vertical-align: middle;
1222 }
1223
1224 .inbox-sent {
1225   white-space: nowrap;
1226 }
1227
1228 .inbox-mark-unread,
1229 .inbox-mark-read,
1230 .inbox-delete {
1231   width: 1%;
1232 }
1233
1234 .inbox-row-unread .inbox-mark-unread {
1235   display: none;
1236 }
1237
1238 /* Rules for "flash" notice boxes shown at the top of the content area */
1239
1240 .flash {
1241   &.error {
1242     background-color: #ff7070;
1243   }
1244
1245   &.warning {
1246     background-color: #ffe0cc;
1247   }
1248
1249   &.notice {
1250     background-color: #CBEEA7;
1251   }
1252 }
1253
1254 /* Rules for highlighting fields with rails validation errors */
1255
1256 .formError {
1257   display: inline-block;
1258   padding: 5px 10px;
1259   margin-top: 5px;
1260   border-radius: 4px;
1261   font-size: 12px;
1262   color: #fff;
1263   background-color: #ff7070;
1264 }
1265
1266 /* Rules for rails validation error boxes */
1267
1268 #errorExplanation {
1269   width: 400px;
1270   border: 2px solid #ff7070;
1271   padding: 0 $lineheight/2;
1272   margin-bottom: $lineheight;
1273   background-color: #f0f0f0;
1274
1275   h2 {
1276     margin: 0 -10px 10px -10px;
1277     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1278     font-weight: bold;
1279     font-size: 12px;
1280     background-color: #c00;
1281     color: #fff;
1282     text-align: left;
1283   }
1284
1285   p {
1286     color: #333;
1287     margin-bottom: 0px;
1288     padding: $lineheight/4;
1289   }
1290 }
1291
1292 .search_form {
1293   background-color: $lightgrey;
1294
1295   .describe_location {
1296     top: 6px;
1297     right: 6px;
1298     font-size: 10px;
1299     color: $blue;
1300   }
1301 }
1302
1303 .directions_form {
1304   background-color: $lightgrey;
1305
1306   .loader_copy {
1307     display: none;
1308
1309     img {
1310       vertical-align: middle;
1311     }
1312   }
1313
1314   a.reverse_directions {
1315     cursor: pointer;
1316   }
1317 }
1318
1319 /* Rules for user images */
1320
1321 img.user_image {
1322   max-width: 100px;
1323   max-height: 100px;
1324 }
1325
1326 img.user_thumbnail {
1327   max-width: 50px;
1328   max-height: 50px;
1329 }
1330
1331 img.user_thumbnail_tiny {
1332   width: auto;
1333   height: auto;
1334   max-width: 25px;
1335   max-height: 25px;
1336 }
1337
1338 /* Rules for geo microformats */
1339
1340 abbr.geo {
1341   border-bottom: none;
1342 }
1343
1344 /* General styles for action lists / subnavs / pager navs */
1345
1346
1347 nav.secondary-actions {
1348   margin-left: -11px;
1349   overflow: hidden;
1350   > ul {
1351     display: flex;
1352     flex-direction: row;
1353     flex-wrap: wrap;
1354     margin-bottom: 0;
1355     margin-left: -1px;
1356     padding: 0;
1357     &.pager {
1358       display: inline-block;
1359       margin-right: 60px;
1360     }
1361     > li {
1362       flex-basis: auto;
1363       list-style: none;
1364       border-left: 1px solid $grey;
1365       padding-left: $lineheight/2;
1366       margin-right: $lineheight/2;
1367       margin-bottom: $lineheight/8;
1368     }
1369   }
1370 }
1371
1372 div.secondary-actions {
1373   padding: 10px;
1374   text-align: center;
1375 }
1376
1377 .buttons {
1378   min-width: 200px;
1379   input[type="submit"],
1380   input[type="button"],
1381   input[type="reset"],
1382   .button,
1383   .button_to {
1384     box-sizing: border-box;
1385     float: left;
1386     border-radius: 0;
1387     margin:0;
1388     min-width: 75px;
1389     max-width: 180px;
1390     border-right:1px solid white;
1391     text-overflow: ellipsis;
1392     white-space: nowrap;
1393     overflow: hidden;
1394   }
1395   input:first-child,
1396   .button:first-child,
1397   .button_to:first-child {
1398     border-radius:2px 0 0 2px;
1399   }
1400   input:last-child,
1401   .button:last-child,
1402   .button_to:last-child {
1403     border-radius:0 2px 2px 0;
1404     border-right-width: 0;
1405   }
1406   input:only-child,
1407   .button:only-child,
1408   .button_to:only-child,
1409   *[value="Hide"] + input:last-child,
1410   *[value="Hide"] + .button:last-child,
1411   *[value="Hide"] + .button_to:last-child {
1412     border-radius:2px;
1413     border-right-width: 0;
1414   }
1415     /* if a 3-button set has a hidden middle button */
1416   *[value="Hide"] + input:nth-child(3),
1417   *[value="Hide"] + .button:nth-child(3),
1418   *[value="Hide"] + .button_to:nth-child(3) {
1419     border-radius:0 2px 2px 0;
1420     border-right-width: 0;
1421   }
1422   /* if a 3-button set starts with a hidden button */
1423   *[value="Hide"] + input:nth-child(2):not(:last-child),
1424   *[value="Hide"] + .button:nth-child(2):not(:last-child),
1425   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1426     border-radius:2px 0 0 2px;
1427     border-right-width: 1px;
1428   }
1429 }
1430
1431 /* Create a single-line dl */
1432
1433 dl.dl-inline {
1434   dt, dd {
1435     display: inline-block;
1436   }
1437   dd {
1438     margin-right: 1em;
1439   }
1440 }
1441
1442 /* Rules for OpenID logo */
1443
1444 .openid_logo {
1445   vertical-align: text-bottom;
1446   border: 0;
1447 }
1448
1449 /* Rules for rich text */
1450
1451 .richtext,
1452 .prose {
1453   code {
1454     background: $lightgrey;
1455     padding: 2px 3px;
1456   }
1457
1458   pre {
1459     background: $lightgrey;
1460     padding: 2px 3px;
1461     white-space: pre-wrap;
1462
1463     code {
1464       padding: 0;
1465     }
1466   }
1467
1468   img {
1469     padding: $lineheight;
1470     background-color: $offwhite;
1471     display: block;
1472     max-width: 100%;
1473     margin: auto;
1474   }
1475
1476   blockquote {
1477     border-left: $lineheight solid $offwhite;
1478     padding-left: $lineheight;
1479     margin: 0;
1480     color: $darkgrey;
1481   }
1482 }
1483
1484 /* Rules for the user notes list */
1485
1486 .note_list {
1487   tr.creator {
1488     background-color: $offwhite;
1489   }
1490 }
1491
1492 /* Rules for the iD editor */
1493
1494 .id-embed {
1495   width: 100%;
1496   height: 100%;
1497 }
1498
1499 /* Rules for the "Welcome" page */
1500 .site-welcome, .site-fixthemap {
1501   .sprite {
1502     background-image: image-url("welcome-sprite.png");
1503     background-size: 500px 250px;
1504     display: block;
1505   }
1506
1507   .icon-list {
1508     padding-bottom: 20px;
1509     div {
1510       margin-bottom: 10px;
1511       p {
1512         padding-top: 10px;
1513       }
1514     }
1515   }
1516   .sprite.small {
1517     width: 50px;
1518     height: 50px;
1519   }
1520
1521   .sprite.x {
1522     /* no-r2 */ background-position: -50px 0;
1523   }
1524
1525   .sprite.term {
1526     margin-right: 10px;
1527     vertical-align: middle;
1528   }
1529
1530   .sprite.node {
1531     /* no-r2 */ background-position: -100px 0;
1532   }
1533
1534   .sprite.way {
1535     /* no-r2 */ background-position: -150px 0;
1536   }
1537
1538   .sprite.tag {
1539     /* no-r2 */ background-position: -200px 0;
1540   }
1541
1542   .sprite.editor {
1543     /* no-r2 */ background-position: -250px 0;
1544   }
1545
1546   .sprite.question {
1547     /* no-r2 */ background-position: -300px 0;
1548   }
1549
1550   .sprite.rules {
1551     /* no-r2 */ background-position: -350px 0;
1552   }
1553
1554   .icon.note {
1555     background-color: #333;
1556     border-radius: 4px;
1557   }
1558 }
1559
1560 .site-about #content {
1561   background-color: $lightgrey;
1562   background-position: 50% 50%;
1563   background-repeat: no-repeat;
1564   background-size: cover;
1565   background-attachment: fixed;
1566
1567   .content-inner {
1568     max-width: 760px;
1569   }
1570
1571   .attr {
1572     margin-top: -20px;
1573
1574     h1 {
1575       span {
1576         color: $vibrant-green;
1577       }
1578     }
1579
1580     .user-image {
1581       height: 150px;
1582       background-position: 0 50%;
1583       background-repeat: no-repeat;
1584       background-image: image-url('about/osm.png');
1585       background-size: cover;
1586       background-color: $vibrant-green;
1587     }
1588
1589     .byosm {
1590       background: $vibrant-green;
1591     }
1592
1593     .byosm span {
1594       display: inline-block;
1595       width: 1em;
1596       margin-left: -1em;
1597     }
1598   }
1599
1600   .icon {
1601     width: 30px;
1602     height: 30px;
1603     margin-right: 10px;
1604     vertical-align: middle;
1605     background: 40px 40px image-url('about/sprite.png') no-repeat;
1606
1607     &.local {
1608       /* no-r2 */
1609       background-position: 0px 0px;
1610     }
1611     &.community {
1612       /* no-r2 */
1613       background-position: 0px -40px;
1614     }
1615     &.open {
1616       /* no-r2 */
1617       background-position: 0px -80px;
1618     }
1619     &.partners {
1620       /* no-r2 */
1621       background-position: 0px -120px;
1622     }
1623     &.infringement {
1624       /* no-r2 */
1625       background-position: 0px -160px;
1626     }
1627     &.legal {
1628       /* no-r2 */
1629       background-position: -45px -160px;
1630     }
1631   }
1632 }
1633
1634 @import 'browse';
1635
1636 @media only screen and (max-width:960px) {
1637   .header-illustration.new-user-arm {
1638     display: none;
1639   }
1640 }