3 @import "rails_bootstrap_forms";
 
   5 /* Styles common to large and small screens */
 
   7 /* Default rules for the body of every page */
 
  10   font-size: $typeheight;
 
  23   text-decoration: underline dotted;
 
  26 #container { position: relative; }
 
  29   vertical-align: middle;
 
  30   margin-right: $lineheight * 0.25;
 
  36   display: inline-block;
 
  40   background: transparent image-url("sprite.png") no-repeat 0 0;
 
  41   background-image: image-url("sprite.svg");
 
  46 .icon.search      { /*rtl:ignore*/ background-position: 0 0; }
 
  47 .icon.donate      { /*rtl:ignore*/ background-position: -20px 0; }
 
  48 .icon.zoomin      { /*rtl:ignore*/ background-position: -40px 0; }
 
  49 .icon.zoomout     { /*rtl:ignore*/ background-position: -60px 0; }
 
  50 .icon.geolocate   { /*rtl:ignore*/ background-position: -80px 0; }
 
  51 .active .icon.geolocate   { /*rtl:ignore*/ background-position: -80px -20px; }
 
  52 .icon.layers      { /*rtl:ignore*/ background-position: -100px 0; }
 
  53 .icon.key         { /*rtl:ignore*/ background-position: -120px 0; }
 
  54 .icon.share       { /*rtl:ignore*/ background-position: -140px 0; }
 
  55 .icon.clipboard   { /*rtl:ignore*/ background-position: -160px 0; }
 
  56 .icon.link        { /*rtl:ignore*/ background-position: -180px 0; }
 
  57 .icon.close       { /*rtl:ignore*/ background-position: -200px 0; }
 
  58 .icon.close:hover { /*rtl:ignore*/ background-position: -200px -20px; }
 
  59 .icon.check       { /*rtl:ignore*/ background-position: -220px 0; }
 
  60 .icon.note        { /*rtl:ignore*/ background-position: -240px 0; }
 
  61 .icon.note.grey   { /*rtl:ignore*/ background-position: -240px -20px; }
 
  62 .icon.query       { /*rtl:ignore*/ background-position: -260px 0; }
 
  64 /* Utility for de-emphasizing content */
 
  70 /* Rules for borders */
 
  71 /* These add additional colours to those provided by bootstrap */
 
  73   border-color: $grey !important;
 
  77   border-color: $lightgrey !important;
 
  80 /* Rules for the header */
 
  87   background: image-url("menu-icon.png") no-repeat;
 
  88   background-size: 30px 30px;
 
  91   margin: 14px 10px 0 0;
 
  96   height: $headerHeight;
 
 101   h1, nav, nav > ul, nav > ul > li {
 
 102     display: inline-block;
 
 107     padding: $lineheight * 0.5;
 
 130   & > .btn-group .btn-outline-primary {
 
 131     @include button-outline-variant($green, $color-hover: $white, $active-color: $white);
 
 135     .btn-outline-primary {
 
 140         border-top-color: $grey;
 
 144         background-color: lighten($green, 30%);
 
 149   // Small tweaks to the toggle to stop the primary colour showing through
 
 150   // when the menu is shown
 
 151   .show > .btn-outline-primary.dropdown-toggle {
 
 152     background-color: $green;
 
 153     border-color: $green;
 
 156       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
 
 168     color: darken($darkgrey, 25%);
 
 172     background-color: lighten($grey, 10%);
 
 176 nav.primary, nav.secondary {
 
 179       background-color: $green;
 
 185 #compact-secondary-nav {
 
 190   #compact-secondary-nav {
 
 191     display: inline-block;
 
 204     flex-direction: column;
 
 206     min-height: $headerHeight;
 
 218   #sidebar .search_forms,
 
 235       border-top: 1px solid #eee;
 
 237         border-bottom: 1px solid #eee;
 
 255     .user-menu, .login-menu {
 
 260   #compact-secondary-nav {
 
 265     display: inline-block;
 
 268   .overlay-sidebar #sidebar .welcome {
 
 272   .overlay-sidebar #sidebar #banner {
 
 277 /* Utility for styling notification numbers */
 
 280   background: lighten($green, 30%);
 
 282   font-weight: $font-weight-normal;
 
 285 /* Rules for Leaflet maps */
 
 287 .leaflet-top.leaflet-right,
 
 288 .leaflet-top.leaflet-left {
 
 292   flex-direction: column;
 
 293   flex-wrap: wrap-reverse;
 
 296 .leaflet-control .control-button {
 
 300   background-color: #333;
 
 301   background-color: rgba(0,0,0,.6);
 
 306     background-color: black;
 
 311     background-color: #333;
 
 312     background-color: rgba(0,0,0,.5);
 
 317     background-color: $vibrant-green;
 
 321     border-start-start-radius: 4px;
 
 325     border-end-start-radius: 4px;
 
 334 /* Rules for the sidebar and main map area */
 
 354     width: $sidebarWidth;
 
 362   .overlay-sidebar #sidebar {
 
 390       width: $sidebarWidth;
 
 406     .leaflet-marker-draggable {
 
 421       border-bottom: 1px solid $grey;
 
 427 @include media-breakpoint-down(md) {
 
 469       border: 2px solid #fff;
 
 472       transition: border-color 0.08s ease-in;
 
 479         border-bottom-right-radius: 3px;
 
 483         text-stroke: 2px #fff;
 
 484         background: rgba(255,255,255,.9);
 
 486         input[type="radio"] {
 
 491       &.active { border-color: darken($green, 10%); }
 
 494         &.active { border-color: darken($green, 20%); }
 
 504     li.disabled { color: $darkgrey; }
 
 515   top: 10px !important;
 
 517     margin-right: 0px !important;
 
 518     margin-top: 0px !important;
 
 522 .leaflet-popup-scrolled {
 
 523   padding-right: $lineheight;
 
 524   border-bottom: 0px !important;
 
 525   border-top: 0px !important;
 
 528 .leaflet-popup-content-wrapper {
 
 529   border-radius: 4px !important;
 
 532 /* Rules for attribution text under the main map shown on printouts */
 
 534 .donate-attr { color: darken($green, 10%) !important; }
 
 536 /* Rules for the sidebar */
 
 546 /* Temporary label size override until we remove site-wide font customisation */
 
 557 /* Stop bootstrap 5 from floating legends when they don't need to be */
 
 562 /* Override the text colour for primary and secondary buttons, to match our
 
 563    bootstrap 4 colours. Note this has accessibility issues, which is why
 
 564    bootstrap 5 calculates black as the appropriate colour, and we should
 
 565    reconsider our colours at some point with that in mind. */
 
 568   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 572   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 575 .btn-outline-secondary {
 
 576   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
 
 579 /* Rules for the search and direction forms */
 
 581 header .search_forms,
 
 586 /* Rules for the map key which appears in the popout sidebar */
 
 589  .mapkey-table-key img {
 
 596 /* Rules for search sidebar */
 
 598 #sidebar .search_results_entry {
 
 600     background: $list-highlight;
 
 603   .search_more .loader {
 
 608 /* Rules for routing */
 
 611   background-image: image-url('routing-sprite.png');
 
 614   background-repeat: no-repeat;
 
 616 @for $i from 0 through 25 {
 
 617 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
 
 627     background: $list-highlight;
 
 630 .routing_marker { width: 15px; cursor: move; }
 
 636 /* Rules for the history sidebar */
 
 638 #sidebar .changesets {
 
 640     &.selected { background: $list-highlight; }
 
 641     /* color is derived from changeset bbox fillColor in history.js */
 
 643     a.stretched-link > span, a:not(.stretched-link), [title] {
 
 645       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
 
 649   .changeset_more .loader {
 
 655 /* Rules for the browse sidebar */
 
 659     padding-bottom: $spacer;
 
 660     margin-bottom: $spacer;
 
 661     border-bottom: 1px solid $grey;
 
 664       word-wrap: break-word;
 
 668   .browse-section:last-of-type {
 
 674     white-space: pre-wrap;
 
 676     tr:last-child th, tr:last-child td {
 
 680     .colour-preview-box {
 
 683       // add color via inline css on element: background-color: <tag value>;
 
 687   span.action-button:hover {
 
 689     text-decoration: underline;
 
 694     margin: 0 0 10px 10px;
 
 707           background: $list-highlight;
 
 714 /* Bootstrap buttons don't have any vertical margin, so
 
 715    they touch when adjacent buttons wrap onto a new line
 
 716    e.g. wide form buttons on a narrow sidebar */
 
 720     margin-bottom: $spacer * 0.25;
 
 724 /* Force LTR/RTL alignment for placeholder text */
 
 726 .form-control::placeholder {
 
 730 /* Rules for export sidebar */
 
 738   .export_area_inputs {
 
 739     margin-bottom: $spacer;
 
 747     background: $lightgrey;
 
 749     #maxlat { margin-top: -1px; }
 
 752       /*rtl:ignore*/ margin-left: -1px;
 
 756       /*rtl:ignore*/ margin-right: -1px;
 
 758     #minlat { margin-bottom: -1px; }
 
 762 /* Rules for edit pages */
 
 773 /* Rules for non-map content pages */
 
 776   background: $lightgrey;
 
 783   padding: $lineheight;
 
 786 /* Overrides for pages that use new layout conventions */
 
 788 .header-illustration {
 
 789   background-position: 0 0;
 
 790   background-repeat: no-repeat;
 
 798     background-image: image-url("sign-up-illustration.png");
 
 802     background-image: image-url("confirm-illustration.png");
 
 806     background-image: image-url("terms-illustration.png");
 
 814     background-image: image-url("sign-up-illustration-arm.png");
 
 817     pointer-events: none;
 
 821 [dir=rtl] .header-illustration {
 
 822   transform: scaleX(-1);
 
 825     transform: scaleX(-1);
 
 829 /* Rules for small maps in content areas */
 
 833   margin-bottom: $lineheight;
 
 836 @include media-breakpoint-up(md) {
 
 842 /* Rules for the user map */
 
 844 .content_map .leaflet-popup-content {
 
 849 /* Rules for user popups on maps */
 
 860 /* Rules for the diary entry page */
 
 871     border-top: 1px dashed $grey;
 
 873       border-top: 1px solid $grey;
 
 878 /* Rules for the account confirmation page */
 
 882     padding: $lineheight;
 
 883     margin-bottom: $lineheight;
 
 892       list-style-type: lower-alpha;
 
 897 /* Rules for messages pages */
 
 901     background: $offwhite;
 
 904   .inbox-row-unread td {
 
 910   background-color: $lightgrey;
 
 922   background-color: $lightgrey;
 
 925 /* Rules for user images */
 
 937 img.user_thumbnail_tiny {
 
 943 /* General styles for action lists / subnavs */
 
 945 nav.secondary-actions {
 
 958       border-left: 1px solid $grey;
 
 959       padding-left: $lineheight * 0.5;
 
 960       margin-right: $lineheight * 0.5;
 
 961       margin-bottom: $lineheight * 0.125;
 
 966 div.secondary-actions {
 
 971 /* Rules for rich text */
 
 976     background: $lightgrey;
 
 981     background: $lightgrey;
 
 983     white-space: pre-wrap;
 
 991     padding: $lineheight;
 
 992     background-color: $offwhite;
 
 999     border-left: $lineheight solid $offwhite;
 
1000     padding-left: $lineheight;
 
1006 /* Rules for the "Welcome" page */
 
1007 .site-welcome, .site-fixthemap {
 
1009     background-image: image-url("welcome-sprite.png");
 
1010     background-size: 500px 250px;
 
1020     /*rtl:ignore*/ background-position: -50px 0;
 
1025     vertical-align: middle;
 
1029     /*rtl:ignore*/ background-position: -100px 0;
 
1033     /*rtl:ignore*/ background-position: -150px 0;
 
1037     /*rtl:ignore*/ background-position: -200px 0;
 
1041     /*rtl:ignore*/ background-position: -250px 0;
 
1045     /*rtl:ignore*/ background-position: -300px 0;
 
1049     /*rtl:ignore*/ background-position: -350px 0;
 
1053     background-color: #333;
 
1058 .site-about #content {
 
1059   background-color: $lightgrey;
 
1070         color: $vibrant-green;
 
1076       background-position: 0 50%;
 
1077       background-repeat: no-repeat;
 
1078       background-image: image-url('about/osm.png');
 
1079       background-size: cover;
 
1080       background-color: $vibrant-green;
 
1084       background: $vibrant-green;
 
1088       display: inline-block;
 
1097     background: 40px 40px image-url('about/sprite.png') no-repeat;
 
1101       background-position: 0px 0px;
 
1105       background-position: 0px -40px;
 
1109       background-position: 0px -80px;
 
1113       background-position: 0px -120px;
 
1117       background-position: 0px -160px;
 
1121       background-position: -45px -160px;