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.svg") no-repeat 0 0;
 
  45 .icon.search      { /*rtl:ignore*/ background-position: 0 0; }
 
  46 .icon.donate      { /*rtl:ignore*/ background-position: -20px 0; }
 
  47 .icon.zoomin      { /*rtl:ignore*/ background-position: -40px 0; }
 
  48 .icon.zoomout     { /*rtl:ignore*/ background-position: -60px 0; }
 
  49 .icon.geolocate   { /*rtl:ignore*/ background-position: -80px 0; }
 
  50 .active .icon.geolocate   { /*rtl:ignore*/ background-position: -80px -20px; }
 
  51 .icon.layers      { /*rtl:ignore*/ background-position: -100px 0; }
 
  52 .icon.key         { /*rtl:ignore*/ background-position: -120px 0; }
 
  53 .icon.share       { /*rtl:ignore*/ background-position: -140px 0; }
 
  54 .icon.clipboard   { /*rtl:ignore*/ background-position: -160px 0; }
 
  55 .icon.link        { /*rtl:ignore*/ background-position: -180px 0; }
 
  56 .icon.close       { /*rtl:ignore*/ background-position: -200px 0; }
 
  57 .icon.close:hover { /*rtl:ignore*/ background-position: -200px -20px; }
 
  58 .icon.check       { /*rtl:ignore*/ background-position: -220px 0; }
 
  59 .icon.note        { /*rtl:ignore*/ background-position: -240px 0; }
 
  60 .icon.note.grey   { /*rtl:ignore*/ background-position: -240px -20px; }
 
  61 .icon.query       { /*rtl:ignore*/ background-position: -260px 0; }
 
  63 /* Utility for de-emphasizing content */
 
  69 /* Rules for borders */
 
  70 /* These add additional colours to those provided by bootstrap */
 
  72   border-color: $grey !important;
 
  75 /* Rules for the header */
 
  82   background: image-url("menu-icon.png") no-repeat;
 
  83   background-size: 30px 30px;
 
  86   margin: 14px 10px 0 0;
 
  91   height: $headerHeight;
 
  96   h1, nav, nav > ul, nav > ul > li {
 
  97     display: inline-block;
 
 102     padding: $lineheight * 0.5;
 
 125   & > .btn-group .btn-outline-primary {
 
 126     @include button-outline-variant($green, $color-hover: $white, $active-color: $white);
 
 130     .btn-outline-primary {
 
 135         border-top-color: $grey;
 
 139         background-color: lighten($green, 30%);
 
 144   // Small tweaks to the toggle to stop the primary colour showing through
 
 145   // when the menu is shown
 
 146   .show > .btn-outline-primary.dropdown-toggle {
 
 147     background-color: $green;
 
 148     border-color: $green;
 
 151       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
 
 163     color: darken($darkgrey, 25%);
 
 167     background-color: lighten($grey, 10%);
 
 171 nav.primary, nav.secondary {
 
 174       background-color: $green;
 
 180 #compact-secondary-nav {
 
 185   #compact-secondary-nav {
 
 186     display: inline-block;
 
 199     flex-direction: column;
 
 201     min-height: $headerHeight;
 
 213   #sidebar .search_forms,
 
 230     .user-menu, .login-menu {
 
 235   #compact-secondary-nav {
 
 240     display: inline-block;
 
 243   .overlay-sidebar #sidebar .welcome {
 
 247   .overlay-sidebar #sidebar #banner {
 
 252 /* Utility for styling notification numbers */
 
 255   background: lighten($green, 30%);
 
 257   font-weight: $font-weight-normal;
 
 260 /* Rules for Leaflet maps */
 
 262 .leaflet-top.leaflet-right,
 
 263 .leaflet-top.leaflet-left {
 
 267   flex-direction: column;
 
 268   flex-wrap: wrap-reverse;
 
 271 .leaflet-control .control-button {
 
 275   background-color: #333;
 
 276   background-color: rgba(0,0,0,.6);
 
 281     background-color: black;
 
 286     background-color: #333;
 
 287     background-color: rgba(0,0,0,.5);
 
 292     background-color: $vibrant-green;
 
 296     border-start-start-radius: 4px;
 
 300     border-end-start-radius: 4px;
 
 309 /* Rules for the sidebar and main map area */
 
 329     width: $sidebarWidth;
 
 337   .overlay-sidebar #sidebar {
 
 365       width: $sidebarWidth;
 
 381     .leaflet-marker-draggable {
 
 396       border-bottom: 1px solid $grey;
 
 402 @include media-breakpoint-down(md) {
 
 444       border: 2px solid #fff;
 
 447       transition: border-color 0.08s ease-in;
 
 454         border-bottom-right-radius: 3px;
 
 458         text-stroke: 2px #fff;
 
 459         background: rgba(255,255,255,.9);
 
 461         input[type="radio"] {
 
 466       &.active { border-color: darken($green, 10%); }
 
 469         &.active { border-color: darken($green, 20%); }
 
 479     li.disabled { color: $darkgrey; }
 
 490   top: 10px !important;
 
 492     margin-right: 0px !important;
 
 493     margin-top: 0px !important;
 
 497 .leaflet-popup-scrolled {
 
 498   padding-right: $lineheight;
 
 499   border-bottom: 0px !important;
 
 500   border-top: 0px !important;
 
 503 .leaflet-popup-content-wrapper {
 
 504   border-radius: 4px !important;
 
 507 /* Rules for attribution text under the main map shown on printouts */
 
 509 .donate-attr { color: darken($green, 10%) !important; }
 
 511 /* Rules for the sidebar */
 
 521 /* Temporary label size override until we remove site-wide font customisation */
 
 532 /* Stop bootstrap 5 from floating legends when they don't need to be */
 
 537 /* Override the text colour for primary and secondary buttons, to match our
 
 538    bootstrap 4 colours. Note this has accessibility issues, which is why
 
 539    bootstrap 5 calculates black as the appropriate colour, and we should
 
 540    reconsider our colours at some point with that in mind. */
 
 543   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 547   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 550 .btn-outline-secondary {
 
 551   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
 
 554 /* Rules for the search and direction forms */
 
 556 header .search_forms,
 
 561 /* Rules for search sidebar */
 
 563 #sidebar .search_results_entry {
 
 565     background: $list-highlight;
 
 568   .search_more .loader {
 
 573 /* Rules for routing */
 
 576   background-image: image-url('routing-sprite.png');
 
 579   background-repeat: no-repeat;
 
 581 @for $i from 0 through 25 {
 
 582 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
 
 592     background: $list-highlight;
 
 595 .routing_marker { width: 15px; cursor: move; }
 
 601 /* Rules for the history sidebar */
 
 603 #sidebar .changesets {
 
 605     &.selected { background: $list-highlight; }
 
 606     /* color is derived from changeset bbox fillColor in history.js */
 
 608     a.stretched-link > span, a:not(.stretched-link), [title] {
 
 610       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
 
 614   .changeset_more .loader {
 
 620 /* Rules for the browse sidebar */
 
 624     padding-bottom: $spacer;
 
 625     margin-bottom: $spacer;
 
 626     border-bottom: 1px solid $grey;
 
 629       word-wrap: break-word;
 
 633   .browse-section:last-of-type {
 
 639     white-space: pre-wrap;
 
 641     tr:last-child th, tr:last-child td {
 
 648     margin: 0 0 10px 10px;
 
 661           background: $list-highlight;
 
 668 /* Bootstrap buttons don't have any vertical margin, so
 
 669    they touch when adjacent buttons wrap onto a new line
 
 670    e.g. wide form buttons on a narrow sidebar */
 
 674     margin-bottom: $spacer * 0.25;
 
 678 /* Force LTR/RTL alignment for placeholder text */
 
 680 .form-control::placeholder {
 
 684 /* Rules for export sidebar */
 
 692   .export_area_inputs {
 
 693     margin-bottom: $spacer;
 
 701     background: $lightgrey;
 
 703     #maxlat { margin-top: -1px; }
 
 706       /*rtl:ignore*/ margin-left: -1px;
 
 710       /*rtl:ignore*/ margin-right: -1px;
 
 712     #minlat { margin-bottom: -1px; }
 
 716 /* Rules for edit pages */
 
 727 /* Rules for non-map content pages */
 
 730   background: $lightgrey;
 
 737   padding: $lineheight;
 
 740 /* Overrides for pages that use new layout conventions */
 
 742 .header-illustration {
 
 743   background-position: 0 0;
 
 744   background-repeat: no-repeat;
 
 752     background-image: image-url("sign-up-illustration.png");
 
 756     background-image: image-url("confirm-illustration.png");
 
 760     background-image: image-url("terms-illustration.png");
 
 768     background-image: image-url("sign-up-illustration-arm.png");
 
 771     pointer-events: none;
 
 775 [dir=rtl] .header-illustration {
 
 776   transform: scaleX(-1);
 
 779     transform: scaleX(-1);
 
 783 /* Rules for small maps in content areas */
 
 787   margin-bottom: $lineheight;
 
 790 @include media-breakpoint-up(md) {
 
 796 /* Rules for the user map */
 
 798 .content_map .leaflet-popup-content {
 
 803 /* Rules for user popups on maps */
 
 814 /* Rules for the diary entry page */
 
 821   .diary-comment .col-auto {
 
 824   .diary-comment .col {
 
 829 /* Rules for the account confirmation page */
 
 833     padding: $lineheight;
 
 834     margin-bottom: $lineheight;
 
 843       list-style-type: lower-alpha;
 
 848 /* Rules for messages pages */
 
 852     background: $offwhite;
 
 855   .inbox-row-unread td {
 
 861   background-color: $lightgrey;
 
 873   background-color: $lightgrey;
 
 876 /* Rules for user images */
 
 888 img.user_thumbnail_tiny {
 
 894 /* General styles for action lists / subnavs */
 
 896 nav.secondary-actions {
 
 909       border-left: 1px solid $grey;
 
 910       padding-left: $lineheight * 0.5;
 
 911       margin-right: $lineheight * 0.5;
 
 912       margin-bottom: $lineheight * 0.125;
 
 917 div.secondary-actions {
 
 922 /* Rules for rich text */
 
 927     background: $lightgrey;
 
 932     background: $lightgrey;
 
 934     white-space: pre-wrap;
 
 942     padding: $lineheight;
 
 943     background-color: $offwhite;
 
 950     border-left: $lineheight solid $offwhite;
 
 951     padding-left: $lineheight;
 
 957 /* Rules for the "Welcome" page */
 
 958 .site-welcome, .site-fixthemap {
 
 960     background-image: image-url("welcome-sprite.png");
 
 961     background-size: 500px 250px;
 
 971     /*rtl:ignore*/ background-position: -50px 0;
 
 976     vertical-align: middle;
 
 980     /*rtl:ignore*/ background-position: -100px 0;
 
 984     /*rtl:ignore*/ background-position: -150px 0;
 
 988     /*rtl:ignore*/ background-position: -200px 0;
 
 992     /*rtl:ignore*/ background-position: -250px 0;
 
 996     /*rtl:ignore*/ background-position: -300px 0;
 
1000     /*rtl:ignore*/ background-position: -350px 0;
 
1004     background-color: #333;
 
1009 .site-about #content {
 
1010   background-color: $lightgrey;
 
1021         color: $vibrant-green;
 
1027       background-position: 0 50%;
 
1028       background-repeat: no-repeat;
 
1029       background-image: image-url('about/osm.png');
 
1030       background-size: cover;
 
1031       background-color: $vibrant-green;
 
1035       background: $vibrant-green;
 
1039       display: inline-block;
 
1048     background: 40px 40px image-url('about/sprite.png') no-repeat;
 
1052       background-position: 0px 0px;
 
1056       background-position: 0px -40px;
 
1060       background-position: 0px -80px;
 
1064       background-position: 0px -120px;
 
1068       background-position: 0px -160px;
 
1072       background-position: -45px -160px;