4 @import "rails_bootstrap_forms";
 
   7 $bootstrap-icons-font-dir: "bootstrap-icons/font/fonts";
 
   8 @import "bootstrap-icons/font/bootstrap-icons";
 
  10 /* Styles common to large and small screens */
 
  12 /* Default rules for the body of every page */
 
  15   font-size: $typeheight;
 
  16   --dark-mode-map-filter: none;
 
  20   text-decoration: underline dotted;
 
  23 /* Utility for de-emphasizing content */
 
  25 .text-body-secondary a {
 
  29 /* Bootstrap contextual table classes overrides in dark mode */
 
  31 @include color-mode(dark) {
 
  33     --bs-table-bg: rgb(var(--bs-primary-rgb), .25);
 
  36     --bs-table-bg: rgb(var(--bs-secondary-rgb), .25);
 
  39     --bs-table-bg: rgb(var(--bs-success-rgb), .25);
 
  41   .table-primary, .table-secondary, .table-success {
 
  42     --bs-table-color: initial;
 
  43     border-color: inherit;
 
  47 /* Utility for delayed loading spinner */
 
  50   animation: 300ms linear forwards delayed-fade-in;
 
  53 @keyframes delayed-fade-in {
 
  59 /* Bootstrap close button overrides for nested light/dark themes */
 
  61 [data-bs-theme="dark"],
 
  62 [data-bs-theme] [data-bs-theme="dark"] {
 
  63   --bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%);
 
  66 [data-bs-theme="light"],
 
  67 [data-bs-theme] [data-bs-theme="light"] {
 
  68   --bs-btn-close-filter: none;
 
  71 /* Rules for the header */
 
  74   fill: var(--bs-emphasis-color);
 
  75   stroke: var(--bs-body-bg);
 
  80   height: $headerHeight;
 
  85     padding: $lineheight * 0.5;
 
  89     height: $headerHeight;
 
  91     gap: $lineheight * 0.5;
 
 104   #edit_tab .btn-outline-primary {
 
 105     @include button-outline-variant($green, $color-hover: $white, $active-color: $white);
 
 109     .btn-outline-primary {
 
 114         background-color: lighten($green, 30%);
 
 119   // Small tweaks to the toggle to stop the primary colour showing through
 
 120   // when the menu is shown
 
 121   .show > .btn-outline-primary.dropdown-toggle {
 
 122     background-color: $green;
 
 123     border-color: $green;
 
 126       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
 
 141 nav.primary, nav.secondary {
 
 144       background-color: $green;
 
 150 #compact-secondary-nav {
 
 157     min-height: $headerHeight;
 
 160       display: none !important;
 
 181     .user-menu, .login-menu {
 
 186   #compact-secondary-nav {
 
 190   .overlay-sidebar #sidebar {
 
 198 /* Rules for language selector */
 
 200 .select_language_list {
 
 208     &:hover .current_locale_name {
 
 209       text-decoration: underline;
 
 214 /* Utility for styling notification numbers */
 
 217   background: transparentize(lighten($green, 25%), .25);
 
 219   font-weight: $font-weight-normal;
 
 222 /* Rules for Leaflet maps */
 
 224 .leaflet-top.leaflet-right,
 
 225 .leaflet-top.leaflet-left {
 
 229   flex-direction: column;
 
 230   flex-wrap: wrap-reverse;
 
 233 .leaflet-control .control-button {
 
 239   background-color: rgba(0,0,0,.6);
 
 244     background-color: black;
 
 249     background-color: rgba(0,0,0,.5);
 
 254     border-start-start-radius: 4px;
 
 258     border-end-start-radius: 4px;
 
 263 .leaflet-control.active .control-button {
 
 264   background-color: $vibrant-green;
 
 267 /* Rules for the sidebar and main map area */
 
 287     width: $sidebarWidth;
 
 290   .overlay-sidebar #sidebar {
 
 300     .sidebar-close-controls,
 
 314     width: $sidebarWidth;
 
 329     .leaflet-marker-draggable {
 
 334       animation: 1500ms forwards query-marker-fade;
 
 336       @keyframes query-marker-fade {
 
 352 @include media-breakpoint-down(md) {
 
 367     .overlay-sidebar.overlay-right-sidebar {
 
 387       box-sizing: content-box;
 
 388       top: - map.get($border-widths, 4);
 
 389       left: - map.get($border-widths, 4);
 
 390       --bs-btn-border-color: var(--bs-body-bg);
 
 393       --bs-btn-border-color: var(--bs-primary-border-subtle);
 
 398     .form-check.disabled { color: $darkgrey; }
 
 409   top: 10px !important;
 
 411     margin-right: 0px !important;
 
 412     margin-top: 0px !important;
 
 416 .leaflet-popup-scrolled {
 
 417   padding-right: $lineheight;
 
 418   border-bottom: 0px !important;
 
 419   border-top: 0px !important;
 
 422 .leaflet-popup-content-wrapper, .leaflet-popup-tip,
 
 423 .leaflet-contextmenu, .leaflet-contextmenu-item,
 
 424 .leaflet-control-attribution, .leaflet-control-scale-line {
 
 425   @extend .bg-body, .text-body;
 
 428 .leaflet-control-attribution, .leaflet-control-scale-line {
 
 429   @extend .bg-opacity-75;
 
 430   text-shadow: none !important;
 
 433 .leaflet-contextmenu-item.over {
 
 434   @extend .bg-body-secondary, .border-secondary, .border-opacity-10;
 
 437 .leaflet-popup-content-wrapper {
 
 441     color: var(--bs-link-color) !important;
 
 445 @include color-mode(dark) {
 
 446   .leaflet-container .leaflet-control-attribution a {
 
 447     color: var(--bs-link-color);
 
 450   .leaflet-control-scale-line {
 
 451     border-color: rgba(var(--bs-light-rgb), .75) !important;
 
 455 @mixin dark-map-color-scheme {
 
 456   .leaflet-tile-container,
 
 457   #legend .filtered-image {
 
 458     filter: var(--dark-mode-map-filter);
 
 461   .leaflet-tile-container .leaflet-tile {
 
 466 body[data-map-theme="dark"] {
 
 467   @include dark-map-color-scheme;
 
 470 @include color-mode(dark) {
 
 471   body:not([data-map-theme]) {
 
 472     @include dark-map-color-scheme;
 
 476 /* Rules for attribution text under the main map shown on printouts */
 
 478 .donate-attr { color: darken($green, 10%) !important; }
 
 480 /* Temporary label size override until we remove site-wide font customisation */
 
 491 /* Stop bootstrap 5 from floating legends when they don't need to be */
 
 496 /* Override the text colour for primary and secondary buttons, to match our
 
 497    bootstrap 4 colours. Note this has accessibility issues, which is why
 
 498    bootstrap 5 calculates black as the appropriate colour, and we should
 
 499    reconsider our colours at some point with that in mind. */
 
 502   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 506   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 509 .btn-outline-secondary {
 
 510   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
 
 513 /* Rules for the search and direction forms */
 
 524   input:not(:placeholder-shown) + .input-group-text .describe_location {
 
 529 /* Rules for search results */
 
 531 .search_results_entry li.list-group-item {
 
 532   border-right: 1em solid var(--marker-color);
 
 535 .leaflet-marker-icon.activatable:is(.active, :hover) > svg {
 
 536   transform: scale(1.5);
 
 537   transform-origin: bottom;
 
 540 /* Rules for routing */
 
 549 .routing_marker_column {
 
 551   margin-right: .35rem;
 
 559 /* Rules for the history sidebar */
 
 561 .changeset-above-sidebar-viewport {
 
 562   --changeset-border-color: #CC6655;
 
 563   --changeset-fill-color: #DDBBBB;
 
 564   --changeset-outline-color: #FFF4F4;
 
 566 .changeset-in-sidebar-viewport {
 
 567   --changeset-border-color: #FF9500;
 
 568   --changeset-fill-color: #FFFFAF;
 
 569   --changeset-outline-color: #FFFFFF;
 
 570   &.changeset-highlight-outline {
 
 571     filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, .75));
 
 574 .changeset-below-sidebar-viewport {
 
 575   --changeset-border-color: #8888AA;
 
 576   --changeset-fill-color: #CCCCDD;
 
 577   --changeset-outline-color: #F4F4FF;
 
 579 .changeset-highlight-outline {
 
 580   filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, .25));
 
 583 #sidebar .changesets {
 
 584   .changeset-color-hint-bar {
 
 586     background: var(--changeset-border-color);
 
 594     a.stretched-link > bdi, a:not(.stretched-link), [title] {
 
 596       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
 
 601 #sidebar .changeset_line .changeset_num_comments {
 
 605 /* Rules for the browse sidebar */
 
 611     tr > *:not([colspan]) {
 
 612       white-space: pre-wrap;
 
 613       word-wrap: break-word;
 
 614       word-break: break-word;
 
 622   .browse-element-list {
 
 623     line-height: 1.25rem;
 
 629     .d-flex > .browse-icon {
 
 630       height: max(20px, 1.25rem);
 
 639 @include color-mode(dark) {
 
 640   #sidebar_content .browse-element-list .browse-icon-invertible {
 
 641     filter: invert(.8) hue-rotate(180deg);
 
 645 /* Force LTR/RTL alignment for placeholder text */
 
 647 .form-control::placeholder {
 
 651 /* Rules for export sidebar */
 
 654   .export_area_inputs {
 
 667 /* Rules for edit pages */
 
 678 /* Rules for non-map content pages */
 
 682   padding: $lineheight;
 
 685 /* Rules for login and signup pages */
 
 687 .sessions-new, .users-new, .users-create {
 
 688   #content .content-inner {
 
 693 .header-illustration {
 
 694   background-position: right;
 
 695   background-repeat: no-repeat;
 
 703     background-image: image-url("sign-up-illustration.svg");
 
 704     background-position-x: 70px;
 
 708     background-image: image-url("confirm-illustration.svg");
 
 712     background-image: image-url("terms-illustration.svg");
 
 716 [dir=rtl] .header-illustration {
 
 717   transform: scaleX(-1);
 
 720     transform: scaleX(-1);
 
 724     transform: scaleX(-1);
 
 728 /* Rules for small maps in content areas */
 
 732   margin-bottom: $lineheight;
 
 735 @include media-breakpoint-up(md) {
 
 741 /* Rules for the user map */
 
 743 .content_map .leaflet-popup-content {
 
 747 /* Rules for user popups on maps */
 
 751     margin: 0 0 5px 0 !important;
 
 756 /* Rules for the diary entry page */
 
 763   .diary-comment .col-auto {
 
 766   .diary-comment .col {
 
 771 /* Rules for the issues page */
 
 773 .issues.issues-index {
 
 779 /* Rules for the account confirmation page */
 
 781 .accounts-terms-show {
 
 783     padding: $lineheight;
 
 784     margin-bottom: $lineheight;
 
 793       list-style-type: lower-alpha;
 
 798 /* Rules for user images */
 
 810 img.user_thumbnail_tiny {
 
 816 /* General styles for action lists / subnavs */
 
 818 nav.secondary-actions {
 
 831       border-left: 1px solid $grey;
 
 832       padding-left: $lineheight * 0.5;
 
 833       margin-right: $lineheight * 0.5;
 
 834       margin-bottom: $lineheight * 0.125;
 
 839 div.secondary-actions {
 
 844 /* Rules for rich text */
 
 848     background: var(--bs-secondary-bg);
 
 853     background: var(--bs-secondary-bg);
 
 855     white-space: pre-wrap;
 
 863     padding: $lineheight;
 
 864     background-color: var(--bs-tertiary-bg);
 
 871     border-left: $lineheight solid var(--bs-tertiary-bg);
 
 872     padding-left: $lineheight;
 
 874     color: var(--bs-secondary-color);
 
 878 /* Rules for the "About" page */
 
 880 .site-about #content {
 
 890         color: $vibrant-green;
 
 896       background-position: 0 50%;
 
 897       background-repeat: no-repeat;
 
 898       background-image: image-url('about/osm.png');
 
 899       background-size: cover;
 
 900       background-color: $vibrant-green;
 
 904       background: $vibrant-green;
 
 908       display: inline-block;
 
 915 /* Rules for tables with usernames */
 
 917 .messages-table .username,
 
 918 #block_list .username {
 
 922 /* Rules for navigation tabs */
 
 924 .nav-tabs .username {
 
 928 .bg-body-secondary .nav-tabs {
 
 929   --bs-border-color: var(--bs-secondary-border-subtle);
 
 930   --bs-secondary-bg: var(--bs-secondary-border-subtle);
 
 934 /* Rules for traces */
 
 937   mix-blend-mode: darken;
 
 940 @include color-mode(dark) {
 
 943     mix-blend-mode: lighten;
 
 947 /* Rules for the heatmap */
 
 950   grid-template-columns: auto;
 
 951   grid-auto-columns: minmax(1em, 1fr);
 
 952   grid-template-rows: auto;
 
 953   grid-auto-rows: minmax(1em, 1fr);
 
 957   [data-date], [data-date] span {
 
 964     background-color: #ededed;
 
 966       background-color: #14432a;
 
 969       background-color: #4dd05a;
 
 972       box-shadow: 0px 0px 0px 1px #8884;
 
 977 @include color-mode(dark) {
 
 980       background-color: #2d333b;
 
 982         background-color: #4dd05a;
 
 985         background-color: #14432a;
 
 992   --bs-tooltip-max-width: none;
 
 995 /* Rules for auth provider logos */
 
 997 .apple-logo rect { fill: black; }
 
 998 .apple-logo path { fill: white; }
 
1000 @media (prefers-color-scheme: dark) {
 
1001   .apple-logo rect { fill: white; }
 
1002   .apple-logo path { fill: black; }
 
1005 .github-logo rect { fill: white; }
 
1006 .github-logo path { fill: black; }
 
1008 @media (prefers-color-scheme: dark) {
 
1009   .github-logo rect { fill: black; }
 
1010   .github-logo path { fill: white; }
 
1013 /* Rules for contextmenu */
 
1018       background-color: $gray-200;
 
1025   &.cm_dropdown_menu {
 
1032 @media (prefers-color-scheme: dark) {
 
1036         background-color: $gray-700;