4 @import "rails_bootstrap_forms";
 
   7 /* Styles common to large and small screens */
 
   9 /* Default rules for the body of every page */
 
  12   font-size: $typeheight;
 
  13   --dark-mode-map-filter: none;
 
  17   text-decoration: underline dotted;
 
  20 /* Utility for de-emphasizing content */
 
  22 .text-body-secondary a {
 
  26 /* Bootstrap contextual table classes overrides in dark mode */
 
  28 @include color-mode(dark) {
 
  30     --bs-table-bg: rgb(var(--bs-primary-rgb), .25);
 
  33     --bs-table-bg: rgb(var(--bs-secondary-rgb), .25);
 
  36     --bs-table-bg: rgb(var(--bs-success-rgb), .25);
 
  38   .table-primary, .table-secondary, .table-success {
 
  39     --bs-table-color: initial;
 
  40     border-color: inherit;
 
  44 /* Utility for delayed loading spinner */
 
  47   animation: 300ms linear forwards delayed-fade-in;
 
  50 @keyframes delayed-fade-in {
 
  56 /* Bootstrap close button overrides for nested light/dark themes */
 
  58 [data-bs-theme="dark"],
 
  59 [data-bs-theme] [data-bs-theme="dark"] {
 
  60   --bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%);
 
  63 [data-bs-theme="light"],
 
  64 [data-bs-theme] [data-bs-theme="light"] {
 
  65   --bs-btn-close-filter: none;
 
  68 /* Rules for the header */
 
  71   fill: var(--bs-emphasis-color);
 
  72   stroke: var(--bs-body-bg);
 
  77   height: $headerHeight;
 
  82     padding: $lineheight * 0.5;
 
  86     height: $headerHeight;
 
  88     gap: $lineheight * 0.5;
 
 101   #edit_tab .btn-outline-primary {
 
 102     @include button-outline-variant($green, $color-hover: $white, $active-color: $white);
 
 106     .btn-outline-primary {
 
 111         background-color: lighten($green, 30%);
 
 116   // Small tweaks to the toggle to stop the primary colour showing through
 
 117   // when the menu is shown
 
 118   .show > .btn-outline-primary.dropdown-toggle {
 
 119     background-color: $green;
 
 120     border-color: $green;
 
 123       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
 
 138 nav.primary, nav.secondary {
 
 141       background-color: $green;
 
 147 #compact-secondary-nav {
 
 154     min-height: $headerHeight;
 
 157       display: none !important;
 
 178     .user-menu, .login-menu {
 
 183   #compact-secondary-nav {
 
 187   .overlay-sidebar #sidebar {
 
 195 /* Rules for language selector */
 
 197 .select_language_list {
 
 205     &:hover .current_locale_name {
 
 206       text-decoration: underline;
 
 211 /* Utility for styling notification numbers */
 
 214   background: transparentize(lighten($green, 25%), .25);
 
 216   font-weight: $font-weight-normal;
 
 219 /* Rules for Leaflet maps */
 
 221 .leaflet-top.leaflet-right,
 
 222 .leaflet-top.leaflet-left {
 
 226   flex-direction: column;
 
 227   flex-wrap: wrap-reverse;
 
 230 .leaflet-control .control-button {
 
 236   background-color: rgba(0,0,0,.6);
 
 241     background-color: black;
 
 246     background-color: rgba(0,0,0,.5);
 
 251     border-start-start-radius: 4px;
 
 255     border-end-start-radius: 4px;
 
 260 .leaflet-control.active .control-button {
 
 261   background-color: $vibrant-green;
 
 264 /* Rules for the sidebar and main map area */
 
 284     width: $sidebarWidth;
 
 287   .overlay-sidebar #sidebar {
 
 297     .sidebar-close-controls,
 
 311     width: $sidebarWidth;
 
 326     .leaflet-marker-draggable {
 
 331       animation: 1500ms forwards query-marker-fade;
 
 333       @keyframes query-marker-fade {
 
 349 @include media-breakpoint-down(md) {
 
 364     .overlay-sidebar.overlay-right-sidebar {
 
 384       box-sizing: content-box;
 
 385       top: - map.get($border-widths, 4);
 
 386       left: - map.get($border-widths, 4);
 
 387       --bs-btn-border-color: var(--bs-body-bg);
 
 390       --bs-btn-border-color: var(--bs-primary-border-subtle);
 
 395     .form-check.disabled { color: $darkgrey; }
 
 406   top: 10px !important;
 
 408     margin-right: 0px !important;
 
 409     margin-top: 0px !important;
 
 413 .leaflet-popup-scrolled {
 
 414   padding-right: $lineheight;
 
 415   border-bottom: 0px !important;
 
 416   border-top: 0px !important;
 
 419 .leaflet-popup-content-wrapper, .leaflet-popup-tip,
 
 420 .leaflet-contextmenu, .leaflet-contextmenu-item,
 
 421 .leaflet-control-attribution, .leaflet-control-scale-line {
 
 422   @extend .bg-body, .text-body;
 
 425 .leaflet-control-attribution, .leaflet-control-scale-line {
 
 426   @extend .bg-opacity-75;
 
 427   text-shadow: none !important;
 
 430 .leaflet-contextmenu-item.over {
 
 431   @extend .bg-body-secondary, .border-secondary, .border-opacity-10;
 
 434 .leaflet-popup-content-wrapper {
 
 438     color: var(--bs-link-color) !important;
 
 442 @include color-mode(dark) {
 
 443   .leaflet-container .leaflet-control-attribution a {
 
 444     color: var(--bs-link-color);
 
 447   .leaflet-control-scale-line {
 
 448     border-color: rgba(var(--bs-light-rgb), .75) !important;
 
 452 @mixin dark-map-color-scheme {
 
 453   .leaflet-tile-container,
 
 454   #legend .filtered-image {
 
 455     filter: var(--dark-mode-map-filter);
 
 458   .leaflet-tile-container .leaflet-tile {
 
 463 body[data-map-theme="dark"] {
 
 464   @include dark-map-color-scheme;
 
 467 @include color-mode(dark) {
 
 468   body:not([data-map-theme]) {
 
 469     @include dark-map-color-scheme;
 
 473 /* Rules for attribution text under the main map shown on printouts */
 
 475 .donate-attr { color: darken($green, 10%) !important; }
 
 477 /* Temporary label size override until we remove site-wide font customisation */
 
 488 /* Stop bootstrap 5 from floating legends when they don't need to be */
 
 493 /* Override the text colour for primary and secondary buttons, to match our
 
 494    bootstrap 4 colours. Note this has accessibility issues, which is why
 
 495    bootstrap 5 calculates black as the appropriate colour, and we should
 
 496    reconsider our colours at some point with that in mind. */
 
 499   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 503   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 506 .btn-outline-secondary {
 
 507   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
 
 510 /* Rules for the search and direction forms */
 
 521   input:not(:placeholder-shown) + .input-group-text .describe_location {
 
 526 /* Rules for search results */
 
 528 .search_results_entry li.list-group-item {
 
 529   border-right: 1em solid var(--marker-color);
 
 532 .leaflet-marker-icon.activatable:is(.active, :hover) > svg {
 
 533   transform: scale(1.5);
 
 534   transform-origin: bottom;
 
 537 /* Rules for routing */
 
 546 .routing_marker_column {
 
 548   margin-right: .35rem;
 
 556 /* Rules for the history sidebar */
 
 558 .changeset-above-sidebar-viewport {
 
 559   --changeset-border-color: #CC6655;
 
 560   --changeset-fill-color: #DDBBBB;
 
 561   --changeset-outline-color: #FFF4F4;
 
 563 .changeset-in-sidebar-viewport {
 
 564   --changeset-border-color: #FF9500;
 
 565   --changeset-fill-color: #FFFFAF;
 
 566   --changeset-outline-color: #FFFFFF;
 
 567   &.changeset-highlight-outline {
 
 568     filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, .75));
 
 571 .changeset-below-sidebar-viewport {
 
 572   --changeset-border-color: #8888AA;
 
 573   --changeset-fill-color: #CCCCDD;
 
 574   --changeset-outline-color: #F4F4FF;
 
 576 .changeset-highlight-outline {
 
 577   filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, .25));
 
 580 #sidebar .changesets {
 
 581   .changeset-color-hint-bar {
 
 583     background: var(--changeset-border-color);
 
 591     a.stretched-link > bdi, a:not(.stretched-link), [title] {
 
 593       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
 
 598 #sidebar .changeset_line .changeset_num_comments {
 
 602 /* Rules for the browse sidebar */
 
 608     tr > *:not([colspan]) {
 
 609       white-space: pre-wrap;
 
 610       word-wrap: break-word;
 
 611       word-break: break-word;
 
 619   .browse-element-list {
 
 620     line-height: 1.25rem;
 
 626     .d-flex > .browse-icon {
 
 627       height: max(20px, 1.25rem);
 
 636 @include color-mode(dark) {
 
 637   #sidebar_content .browse-element-list .browse-icon-invertible {
 
 638     filter: invert(.8) hue-rotate(180deg);
 
 642 /* Force LTR/RTL alignment for placeholder text */
 
 644 .form-control::placeholder {
 
 648 /* Rules for export sidebar */
 
 651   .export_area_inputs {
 
 664 /* Rules for edit pages */
 
 675 /* Rules for non-map content pages */
 
 679   padding: $lineheight;
 
 682 /* Rules for login and signup pages */
 
 684 .sessions-new, .users-new, .users-create {
 
 685   #content .content-inner {
 
 690 .header-illustration {
 
 691   background-position: right;
 
 692   background-repeat: no-repeat;
 
 700     background-image: image-url("sign-up-illustration.svg");
 
 701     background-position-x: 70px;
 
 705     background-image: image-url("confirm-illustration.svg");
 
 709     background-image: image-url("terms-illustration.svg");
 
 713 [dir=rtl] .header-illustration {
 
 714   transform: scaleX(-1);
 
 717     transform: scaleX(-1);
 
 721     transform: scaleX(-1);
 
 725 /* Rules for small maps in content areas */
 
 729   margin-bottom: $lineheight;
 
 732 @include media-breakpoint-up(md) {
 
 738 /* Rules for the user map */
 
 740 .content_map .leaflet-popup-content {
 
 744 /* Rules for user popups on maps */
 
 748     margin: 0 0 5px 0 !important;
 
 753 /* Rules for the diary entry page */
 
 760   .diary-comment .col-auto {
 
 763   .diary-comment .col {
 
 768 /* Rules for the issues page */
 
 770 .issues.issues-index {
 
 776 /* Rules for the account confirmation page */
 
 778 .accounts-terms-show {
 
 780     padding: $lineheight;
 
 781     margin-bottom: $lineheight;
 
 790       list-style-type: lower-alpha;
 
 795 /* Rules for user images */
 
 807 img.user_thumbnail_tiny {
 
 813 /* General styles for action lists / subnavs */
 
 815 nav.secondary-actions {
 
 828       border-left: 1px solid $grey;
 
 829       padding-left: $lineheight * 0.5;
 
 830       margin-right: $lineheight * 0.5;
 
 831       margin-bottom: $lineheight * 0.125;
 
 836 div.secondary-actions {
 
 841 /* Rules for rich text */
 
 845     background: var(--bs-secondary-bg);
 
 850     background: var(--bs-secondary-bg);
 
 852     white-space: pre-wrap;
 
 860     padding: $lineheight;
 
 861     background-color: var(--bs-tertiary-bg);
 
 868     border-left: $lineheight solid var(--bs-tertiary-bg);
 
 869     padding-left: $lineheight;
 
 871     color: var(--bs-secondary-color);
 
 875 /* Rules for the "About" page */
 
 877 .site-about #content {
 
 887         color: $vibrant-green;
 
 893       background-position: 0 50%;
 
 894       background-repeat: no-repeat;
 
 895       background-image: image-url('about/osm.png');
 
 896       background-size: cover;
 
 897       background-color: $vibrant-green;
 
 901       background: $vibrant-green;
 
 905       display: inline-block;
 
 912 /* Rules for tables with usernames */
 
 914 .messages-table .username,
 
 915 #block_list .username {
 
 919 /* Rules for navigation tabs */
 
 921 .nav-tabs .username {
 
 925 .bg-body-secondary .nav-tabs {
 
 926   --bs-border-color: var(--bs-secondary-border-subtle);
 
 927   --bs-secondary-bg: var(--bs-secondary-border-subtle);
 
 931 /* Rules for traces */
 
 934   mix-blend-mode: darken;
 
 937 @include color-mode(dark) {
 
 940     mix-blend-mode: lighten;
 
 944 /* Rules for the heatmap */
 
 947   grid-template-columns: auto;
 
 948   grid-auto-columns: minmax(1em, 1fr);
 
 949   grid-template-rows: auto;
 
 950   grid-auto-rows: minmax(1em, 1fr);
 
 954   [data-date], [data-date] span {
 
 961     background-color: #ededed;
 
 963       background-color: #14432a;
 
 966       background-color: #4dd05a;
 
 969       box-shadow: 0px 0px 0px 1px #8884;
 
 974 @include color-mode(dark) {
 
 977       background-color: #2d333b;
 
 979         background-color: #4dd05a;
 
 982         background-color: #14432a;
 
 989   --bs-tooltip-max-width: none;
 
 992 /* Rules for auth provider logos */
 
 994 .apple-logo rect { fill: black; }
 
 995 .apple-logo path { fill: white; }
 
 997 @media (prefers-color-scheme: dark) {
 
 998   .apple-logo rect { fill: white; }
 
 999   .apple-logo path { fill: black; }
 
1002 .github-logo rect { fill: white; }
 
1003 .github-logo path { fill: black; }
 
1005 @media (prefers-color-scheme: dark) {
 
1006   .github-logo rect { fill: black; }
 
1007   .github-logo path { fill: white; }