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