4 @import "rails_bootstrap_forms";
 
   6 /* Styles common to large and small screens */
 
   8 /* Default rules for the body of every page */
 
  11   font-size: $typeheight;
 
  12   --dark-mode-map-filter: none;
 
  16   text-decoration: underline dotted;
 
  22   display: inline-block;
 
  26   background: transparent image-url("sprite.svg") no-repeat 0 0;
 
  31 .icon.search      { /*rtl:ignore*/ background-position: 0 0; }
 
  32 .icon.donate      { /*rtl:ignore*/ background-position: -20px 0; }
 
  33 .icon.zoomin      { /*rtl:ignore*/ background-position: -40px 0; }
 
  34 .icon.zoomout     { /*rtl:ignore*/ background-position: -60px 0; }
 
  35 .icon.geolocate   { /*rtl:ignore*/ background-position: -80px 0; }
 
  36 .active .icon.geolocate   { /*rtl:ignore*/ background-position: -80px -20px; }
 
  37 .icon.layers      { /*rtl:ignore*/ background-position: -100px 0; }
 
  38 .icon.key         { /*rtl:ignore*/ background-position: -120px 0; }
 
  39 .icon.share       { /*rtl:ignore*/ background-position: -140px 0; }
 
  40 .icon.clipboard   { /*rtl:ignore*/ background-position: -160px 0; }
 
  41 .icon.link        { /*rtl:ignore*/ background-position: -180px 0; }
 
  42 .icon.close       { /*rtl:ignore*/ background-position: -200px 0; }
 
  43 .icon.close:hover { /*rtl:ignore*/ background-position: -200px -20px; }
 
  44 .icon.check       { /*rtl:ignore*/ background-position: -220px 0; }
 
  45 .icon.note        { /*rtl:ignore*/ background-position: -240px 0; }
 
  46 .icon.note.grey   { /*rtl:ignore*/ background-position: -240px -20px; }
 
  47 .icon.query       { /*rtl:ignore*/ background-position: -260px 0; }
 
  49 /* Utility for de-emphasizing content */
 
  51 .text-body-secondary a {
 
  55 /* Bootstrap contextual table classes overrides in dark mode */
 
  57 @include color-mode(dark) {
 
  59     --bs-table-bg: rgb(var(--bs-primary-rgb), .25);
 
  62     --bs-table-bg: rgb(var(--bs-secondary-rgb), .25);
 
  65     --bs-table-bg: rgb(var(--bs-success-rgb), .25);
 
  67   .table-primary, .table-secondary, .table-success {
 
  68     --bs-table-color: initial;
 
  69     border-color: inherit;
 
  73 /* Utility for delayed loading spinner */
 
  76   animation: 300ms linear forwards delayed-fade-in;
 
  79 @keyframes delayed-fade-in {
 
  85 /* Rules for the header */
 
  92   background: image-url("menu-icon.svg") no-repeat;
 
  93   background-size: 30px 30px;
 
  96   margin: 14px 10px 0 0;
 
 100 @include color-mode(dark) {
 
 107   height: $headerHeight;
 
 112     padding: $lineheight * 0.5;
 
 116     height: $headerHeight;
 
 130   #edit_tab .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);
 
 171 nav.primary, nav.secondary {
 
 174       background-color: $green;
 
 180 #compact-secondary-nav {
 
 190     flex-direction: column;
 
 192     min-height: $headerHeight;
 
 195       display: none !important;
 
 207   #sidebar .search_forms {
 
 222     flex-direction: column;
 
 226       justify-content: center;
 
 229     .user-menu, .login-menu {
 
 234   #compact-secondary-nav {
 
 239     display: inline-block;
 
 242   .overlay-sidebar #sidebar .welcome {
 
 246   .overlay-sidebar #sidebar #banner {
 
 251 /* Utility for styling notification numbers */
 
 254   background: transparentize(lighten($green, 25%), .25);
 
 256   font-weight: $font-weight-normal;
 
 259 /* Rules for Leaflet maps */
 
 261 .leaflet-top.leaflet-right,
 
 262 .leaflet-top.leaflet-left {
 
 266   flex-direction: column;
 
 267   flex-wrap: wrap-reverse;
 
 270 .leaflet-control .control-button {
 
 274   background-color: #333;
 
 275   background-color: rgba(0,0,0,.6);
 
 280     background-color: black;
 
 285     background-color: #333;
 
 286     background-color: rgba(0,0,0,.5);
 
 291     background-color: $vibrant-green;
 
 295     border-start-start-radius: 4px;
 
 299     border-end-start-radius: 4px;
 
 308 /* Rules for the sidebar and main map area */
 
 328     width: $sidebarWidth;
 
 331   .overlay-sidebar #sidebar {
 
 344     .sidebar-close-controls,
 
 360       width: $sidebarWidth;
 
 376     .leaflet-marker-draggable {
 
 381       animation: 1500ms forwards query-marker-fade;
 
 383       @keyframes query-marker-fade {
 
 399 @include media-breakpoint-down(md) {
 
 414     .overlay-sidebar.overlay-right-sidebar {
 
 434       box-sizing: content-box;
 
 435       top: - map.get($border-widths, 4);
 
 436       left: - map.get($border-widths, 4);
 
 437       --bs-btn-border-color: var(--bs-body-bg);
 
 440       --bs-btn-border-color: var(--bs-primary-border-subtle);
 
 445     li.disabled { color: $darkgrey; }
 
 456   top: 10px !important;
 
 458     margin-right: 0px !important;
 
 459     margin-top: 0px !important;
 
 463 .leaflet-popup-scrolled {
 
 464   padding-right: $lineheight;
 
 465   border-bottom: 0px !important;
 
 466   border-top: 0px !important;
 
 469 .leaflet-popup-content-wrapper, .leaflet-popup-tip,
 
 470 .leaflet-contextmenu, .leaflet-contextmenu-item,
 
 471 .leaflet-control-attribution, .leaflet-control-scale-line {
 
 472   @extend .bg-body, .text-body;
 
 475 .leaflet-control-attribution, .leaflet-control-scale-line {
 
 476   @extend .bg-opacity-75;
 
 477   text-shadow: none !important;
 
 480 .leaflet-contextmenu-item.over {
 
 481   @extend .bg-body-secondary, .border-secondary, .border-opacity-10;
 
 484 .leaflet-popup-content-wrapper {
 
 488     color: var(--bs-link-color) !important;
 
 492 @include color-mode(dark) {
 
 493   .leaflet-container .leaflet-control-attribution a {
 
 494     color: var(--bs-link-color);
 
 497   .leaflet-control-scale-line {
 
 498     border-color: rgba(var(--bs-light-rgb), .75) !important;
 
 502 @mixin dark-map-color-scheme {
 
 503   .leaflet-tile-container,
 
 504   .mapkey-table-entry td:first-child > * {
 
 505     filter: var(--dark-mode-map-filter);
 
 508   .leaflet-tile-container .leaflet-tile {
 
 513 body[data-map-theme="dark"] {
 
 514   @include dark-map-color-scheme;
 
 517 @include color-mode(dark) {
 
 518   body:not([data-map-theme]) {
 
 519     @include dark-map-color-scheme;
 
 523 /* Rules for attribution text under the main map shown on printouts */
 
 525 .donate-attr { color: darken($green, 10%) !important; }
 
 527 /* Temporary label size override until we remove site-wide font customisation */
 
 538 /* Stop bootstrap 5 from floating legends when they don't need to be */
 
 543 /* Override the text colour for primary and secondary buttons, to match our
 
 544    bootstrap 4 colours. Note this has accessibility issues, which is why
 
 545    bootstrap 5 calculates black as the appropriate colour, and we should
 
 546    reconsider our colours at some point with that in mind. */
 
 549   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 553   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 556 .btn-outline-secondary {
 
 557   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
 
 560 /* Rules for the search and direction forms */
 
 562 header .search_forms,
 
 573 /* Rules for routing */
 
 582 .routing_marker_column {
 
 584   margin-right: .35rem;
 
 592 /* Rules for the history sidebar */
 
 594 .changeset-above-sidebar-viewport {
 
 595   --changeset-border-color: #CC7755;
 
 596   --changeset-fill-color: #888888;
 
 598 .changeset-in-sidebar-viewport {
 
 599   --changeset-border-color: #FF9500;
 
 600   &.changeset-highlighted {
 
 601     --changeset-border-color: #FF6600;
 
 603   --changeset-fill-color: #FFFFAF;
 
 605 .changeset-below-sidebar-viewport {
 
 606   --changeset-border-color: #8888AA;
 
 607   --changeset-fill-color: #888888;
 
 610 #sidebar .changesets {
 
 611   .changeset-color-hint-bar {
 
 613     background: var(--changeset-border-color);
 
 621     a.stretched-link > span, a:not(.stretched-link), [title] {
 
 623       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
 
 628 /* Rules for the browse sidebar */
 
 632     padding-bottom: $spacer;
 
 633     margin-bottom: $spacer;
 
 634     border-bottom: 1px solid $grey;
 
 637       word-wrap: break-word;
 
 641   .browse-section:last-of-type {
 
 647     white-space: pre-wrap;
 
 648     word-wrap: break-word;
 
 649     word-break: break-word;
 
 651     tr:last-child th, tr:last-child td {
 
 661 /* Force LTR/RTL alignment for placeholder text */
 
 663 .form-control::placeholder {
 
 667 /* Rules for export sidebar */
 
 670   .export_area_inputs {
 
 683 /* Rules for edit pages */
 
 694 /* Rules for non-map content pages */
 
 698   padding: $lineheight;
 
 701 /* Rules for login and signup pages */
 
 703 .sessions-new, .users-new, .users-create {
 
 704   #content .content-inner {
 
 709 .header-illustration {
 
 710   background-position: right;
 
 711   background-repeat: no-repeat;
 
 719     background-image: image-url("sign-up-illustration.svg");
 
 720     background-position-x: 70px;
 
 724     background-image: image-url("confirm-illustration.svg");
 
 728     background-image: image-url("terms-illustration.svg");
 
 732 [dir=rtl] .header-illustration {
 
 733   transform: scaleX(-1);
 
 736     transform: scaleX(-1);
 
 740     transform: scaleX(-1);
 
 744 /* Rules for small maps in content areas */
 
 748   margin-bottom: $lineheight;
 
 751 @include media-breakpoint-up(md) {
 
 757 /* Rules for the user map */
 
 759 .content_map .leaflet-popup-content {
 
 764 /* Rules for user popups on maps */
 
 774 /* Rules for the diary entry page */
 
 781   .diary-comment .col-auto {
 
 784   .diary-comment .col {
 
 789 /* Rules for the issues page */
 
 791 .issues.issues-index {
 
 797 /* Rules for the account confirmation page */
 
 799 .accounts-terms-show {
 
 801     padding: $lineheight;
 
 802     margin-bottom: $lineheight;
 
 811       list-style-type: lower-alpha;
 
 816 /* Rules for user images */
 
 828 img.user_thumbnail_tiny {
 
 834 /* General styles for action lists / subnavs */
 
 836 nav.secondary-actions {
 
 849       border-left: 1px solid $grey;
 
 850       padding-left: $lineheight * 0.5;
 
 851       margin-right: $lineheight * 0.5;
 
 852       margin-bottom: $lineheight * 0.125;
 
 857 div.secondary-actions {
 
 862 /* Rules for rich text */
 
 866     background: var(--bs-secondary-bg);
 
 871     background: var(--bs-secondary-bg);
 
 873     white-space: pre-wrap;
 
 881     padding: $lineheight;
 
 882     background-color: var(--bs-tertiary-bg);
 
 889     border-left: $lineheight solid var(--bs-tertiary-bg);
 
 890     padding-left: $lineheight;
 
 892     color: var(--bs-secondary-color);
 
 896 /* Rules for the "About" page */
 
 898 .site-about #content {
 
 908         color: $vibrant-green;
 
 914       background-position: 0 50%;
 
 915       background-repeat: no-repeat;
 
 916       background-image: image-url('about/osm.png');
 
 917       background-size: cover;
 
 918       background-color: $vibrant-green;
 
 922       background: $vibrant-green;
 
 926       display: inline-block;
 
 933 /* Rules for tables with usernames */
 
 935 .messages-table .username,
 
 936 #block_list .username {
 
 940 /* Rules for navigation tabs */
 
 942 .nav-tabs .username {
 
 946 .bg-body-secondary .nav-tabs {
 
 947   --bs-border-color: var(--bs-secondary-border-subtle);
 
 948   --bs-secondary-bg: var(--bs-secondary-border-subtle);
 
 952 /* Rules for traces */
 
 955   mix-blend-mode: darken;
 
 958 @include color-mode(dark) {
 
 961     mix-blend-mode: lighten;
 
 965 /* Rules for map sidebar icons */
 
 967 .browse-section .browse-element-list {
 
 968   line-height: 1.25rem;
 
 974   .d-flex > .browse-icon {
 
 975     height: max(20px, 1.25rem);
 
 978   @include color-mode(dark) {
 
 979     .browse-icon-invertible {
 
 980       filter: invert(.8) hue-rotate(180deg);