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;
 
  19 /* Utility for de-emphasizing content */
 
  21 .text-body-secondary a {
 
  25 /* Bootstrap contextual table classes overrides in dark mode */
 
  27 @include color-mode(dark) {
 
  29     --bs-table-bg: rgb(var(--bs-primary-rgb), .25);
 
  32     --bs-table-bg: rgb(var(--bs-secondary-rgb), .25);
 
  35     --bs-table-bg: rgb(var(--bs-success-rgb), .25);
 
  37   .table-primary, .table-secondary, .table-success {
 
  38     --bs-table-color: initial;
 
  39     border-color: inherit;
 
  43 /* Utility for delayed loading spinner */
 
  46   animation: 300ms linear forwards delayed-fade-in;
 
  49 @keyframes delayed-fade-in {
 
  55 /* Bootstrap close button overrides for nested light/dark themes */
 
  57 [data-bs-theme="dark"],
 
  58 [data-bs-theme] [data-bs-theme="dark"] {
 
  59   --bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%);
 
  62 [data-bs-theme="light"],
 
  63 [data-bs-theme] [data-bs-theme="light"] {
 
  64   --bs-btn-close-filter: none;
 
  67 /* Rules for the header */
 
  74   background: image-url("menu-icon.svg") no-repeat;
 
  75   background-size: 30px 30px;
 
  78   margin: 14px 10px 0 0;
 
  82 @include color-mode(dark) {
 
  89   height: $headerHeight;
 
  94     padding: $lineheight * 0.5;
 
  98     height: $headerHeight;
 
 112   #edit_tab .btn-outline-primary {
 
 113     @include button-outline-variant($green, $color-hover: $white, $active-color: $white);
 
 117     .btn-outline-primary {
 
 122         background-color: lighten($green, 30%);
 
 127   // Small tweaks to the toggle to stop the primary colour showing through
 
 128   // when the menu is shown
 
 129   .show > .btn-outline-primary.dropdown-toggle {
 
 130     background-color: $green;
 
 131     border-color: $green;
 
 134       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
 
 149 nav.primary, nav.secondary {
 
 152       background-color: $green;
 
 158 #compact-secondary-nav {
 
 168     flex-direction: column;
 
 170     min-height: $headerHeight;
 
 173       display: none !important;
 
 185   #sidebar .search_forms {
 
 200     flex-direction: column;
 
 204       justify-content: center;
 
 207     .user-menu, .login-menu {
 
 212   #compact-secondary-nav {
 
 217     display: inline-block;
 
 220   .overlay-sidebar #sidebar .welcome {
 
 224   .overlay-sidebar #sidebar #banner {
 
 229 /* Rules for language selector */
 
 231 button.d-md-none[data-bs-target="#select_language_dialog"] {
 
 236 .select_language_list {
 
 244 /* Utility for styling notification numbers */
 
 247   background: transparentize(lighten($green, 25%), .25);
 
 249   font-weight: $font-weight-normal;
 
 252 /* Rules for Leaflet maps */
 
 254 .leaflet-top.leaflet-right,
 
 255 .leaflet-top.leaflet-left {
 
 259   flex-direction: column;
 
 260   flex-wrap: wrap-reverse;
 
 263 .leaflet-control .control-button {
 
 269   background-color: rgba(0,0,0,.6);
 
 274     background-color: black;
 
 279     background-color: rgba(0,0,0,.5);
 
 284     border-start-start-radius: 4px;
 
 288     border-end-start-radius: 4px;
 
 293 .leaflet-control.active .control-button {
 
 294   background-color: $vibrant-green;
 
 297 /* Rules for the sidebar and main map area */
 
 317     width: $sidebarWidth;
 
 320   .overlay-sidebar #sidebar {
 
 333     .sidebar-close-controls,
 
 349       width: $sidebarWidth;
 
 365     .leaflet-marker-draggable {
 
 370       animation: 1500ms forwards query-marker-fade;
 
 372       @keyframes query-marker-fade {
 
 388 @include media-breakpoint-down(md) {
 
 403     .overlay-sidebar.overlay-right-sidebar {
 
 423       box-sizing: content-box;
 
 424       top: - map.get($border-widths, 4);
 
 425       left: - map.get($border-widths, 4);
 
 426       --bs-btn-border-color: var(--bs-body-bg);
 
 429       --bs-btn-border-color: var(--bs-primary-border-subtle);
 
 434     .form-check.disabled { color: $darkgrey; }
 
 445   top: 10px !important;
 
 447     margin-right: 0px !important;
 
 448     margin-top: 0px !important;
 
 452 .leaflet-popup-scrolled {
 
 453   padding-right: $lineheight;
 
 454   border-bottom: 0px !important;
 
 455   border-top: 0px !important;
 
 458 .leaflet-popup-content-wrapper, .leaflet-popup-tip,
 
 459 .leaflet-contextmenu, .leaflet-contextmenu-item,
 
 460 .leaflet-control-attribution, .leaflet-control-scale-line {
 
 461   @extend .bg-body, .text-body;
 
 464 .leaflet-control-attribution, .leaflet-control-scale-line {
 
 465   @extend .bg-opacity-75;
 
 466   text-shadow: none !important;
 
 469 .leaflet-contextmenu-item.over {
 
 470   @extend .bg-body-secondary, .border-secondary, .border-opacity-10;
 
 473 .leaflet-popup-content-wrapper {
 
 477     color: var(--bs-link-color) !important;
 
 481 @include color-mode(dark) {
 
 482   .leaflet-container .leaflet-control-attribution a {
 
 483     color: var(--bs-link-color);
 
 486   .leaflet-control-scale-line {
 
 487     border-color: rgba(var(--bs-light-rgb), .75) !important;
 
 491 @mixin dark-map-color-scheme {
 
 492   .leaflet-tile-container,
 
 493   #legend .filtered-image {
 
 494     filter: var(--dark-mode-map-filter);
 
 497   .leaflet-tile-container .leaflet-tile {
 
 502 body[data-map-theme="dark"] {
 
 503   @include dark-map-color-scheme;
 
 506 @include color-mode(dark) {
 
 507   body:not([data-map-theme]) {
 
 508     @include dark-map-color-scheme;
 
 512 /* Rules for attribution text under the main map shown on printouts */
 
 514 .donate-attr { color: darken($green, 10%) !important; }
 
 516 /* Temporary label size override until we remove site-wide font customisation */
 
 527 /* Stop bootstrap 5 from floating legends when they don't need to be */
 
 532 /* Override the text colour for primary and secondary buttons, to match our
 
 533    bootstrap 4 colours. Note this has accessibility issues, which is why
 
 534    bootstrap 5 calculates black as the appropriate colour, and we should
 
 535    reconsider our colours at some point with that in mind. */
 
 538   @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 542   @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
 
 545 .btn-outline-secondary {
 
 546   @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
 
 549 /* Rules for the search and direction forms */
 
 551 header .search_forms,
 
 562 /* Rules for routing */
 
 571 .routing_marker_column {
 
 573   margin-right: .35rem;
 
 581 /* Rules for the history sidebar */
 
 583 .changeset-above-sidebar-viewport {
 
 584   --changeset-border-color: #CC6655;
 
 585   --changeset-fill-color: #DDBBBB;
 
 586   --changeset-outline-color: #FFF4F4;
 
 588 .changeset-in-sidebar-viewport {
 
 589   --changeset-border-color: #FF9500;
 
 590   --changeset-fill-color: #FFFFAF;
 
 591   --changeset-outline-color: #FFFFFF;
 
 592   &.changeset-highlight-outline {
 
 593     filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, .75));
 
 596 .changeset-below-sidebar-viewport {
 
 597   --changeset-border-color: #8888AA;
 
 598   --changeset-fill-color: #CCCCDD;
 
 599   --changeset-outline-color: #F4F4FF;
 
 601 .changeset-highlight-outline {
 
 602   filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, .25));
 
 605 #sidebar .changesets {
 
 606   .changeset-color-hint-bar {
 
 608     background: var(--changeset-border-color);
 
 616     a.stretched-link > bdi, a:not(.stretched-link), [title] {
 
 618       z-index: 2; /* needs to be higher than Bootstrap's stretched link ::after z-index */
 
 623 /* Rules for the browse sidebar */
 
 628     white-space: pre-wrap;
 
 629     word-wrap: break-word;
 
 630     word-break: break-word;
 
 632     tr:last-child th, tr:last-child td {
 
 637   .browse-element-list {
 
 638     line-height: 1.25rem;
 
 644     .d-flex > .browse-icon {
 
 645       height: max(20px, 1.25rem);
 
 654 @include color-mode(dark) {
 
 655   #sidebar_content .browse-element-list .browse-icon-invertible {
 
 656     filter: invert(.8) hue-rotate(180deg);
 
 660 /* Force LTR/RTL alignment for placeholder text */
 
 662 .form-control::placeholder {
 
 666 /* Rules for export sidebar */
 
 669   .export_area_inputs {
 
 682 /* Rules for edit pages */
 
 693 /* Rules for non-map content pages */
 
 697   padding: $lineheight;
 
 700 /* Rules for login and signup pages */
 
 702 .sessions-new, .users-new, .users-create {
 
 703   #content .content-inner {
 
 708 .header-illustration {
 
 709   background-position: right;
 
 710   background-repeat: no-repeat;
 
 718     background-image: image-url("sign-up-illustration.svg");
 
 719     background-position-x: 70px;
 
 723     background-image: image-url("confirm-illustration.svg");
 
 727     background-image: image-url("terms-illustration.svg");
 
 731 [dir=rtl] .header-illustration {
 
 732   transform: scaleX(-1);
 
 735     transform: scaleX(-1);
 
 739     transform: scaleX(-1);
 
 743 /* Rules for small maps in content areas */
 
 747   margin-bottom: $lineheight;
 
 750 @include media-breakpoint-up(md) {
 
 756 /* Rules for the user map */
 
 758 .content_map .leaflet-popup-content {
 
 762 /* Rules for user popups on maps */
 
 766     margin: 0 0 5px 0 !important;
 
 771 /* Rules for the diary entry page */
 
 778   .diary-comment .col-auto {
 
 781   .diary-comment .col {
 
 786 /* Rules for the issues page */
 
 788 .issues.issues-index {
 
 794 /* Rules for the account confirmation page */
 
 796 .accounts-terms-show {
 
 798     padding: $lineheight;
 
 799     margin-bottom: $lineheight;
 
 808       list-style-type: lower-alpha;
 
 813 /* Rules for user images */
 
 825 img.user_thumbnail_tiny {
 
 831 /* General styles for action lists / subnavs */
 
 833 nav.secondary-actions {
 
 846       border-left: 1px solid $grey;
 
 847       padding-left: $lineheight * 0.5;
 
 848       margin-right: $lineheight * 0.5;
 
 849       margin-bottom: $lineheight * 0.125;
 
 854 div.secondary-actions {
 
 859 /* Rules for rich text */
 
 863     background: var(--bs-secondary-bg);
 
 868     background: var(--bs-secondary-bg);
 
 870     white-space: pre-wrap;
 
 878     padding: $lineheight;
 
 879     background-color: var(--bs-tertiary-bg);
 
 886     border-left: $lineheight solid var(--bs-tertiary-bg);
 
 887     padding-left: $lineheight;
 
 889     color: var(--bs-secondary-color);
 
 893 /* Rules for the "About" page */
 
 895 .site-about #content {
 
 905         color: $vibrant-green;
 
 911       background-position: 0 50%;
 
 912       background-repeat: no-repeat;
 
 913       background-image: image-url('about/osm.png');
 
 914       background-size: cover;
 
 915       background-color: $vibrant-green;
 
 919       background: $vibrant-green;
 
 923       display: inline-block;
 
 930 /* Rules for tables with usernames */
 
 932 .messages-table .username,
 
 933 #block_list .username {
 
 937 /* Rules for navigation tabs */
 
 939 .nav-tabs .username {
 
 943 .bg-body-secondary .nav-tabs {
 
 944   --bs-border-color: var(--bs-secondary-border-subtle);
 
 945   --bs-secondary-bg: var(--bs-secondary-border-subtle);
 
 949 /* Rules for traces */
 
 952   mix-blend-mode: darken;
 
 955 @include color-mode(dark) {
 
 958     mix-blend-mode: lighten;
 
 962 /* Rules for the social links */
 
 964 @include color-mode(dark) {
 
 970 /* Rules for the heatmap */
 
 973   grid-template-columns: auto;
 
 974   grid-auto-columns: minmax(1em, 1fr);
 
 975   grid-template-rows: auto;
 
 976   grid-auto-rows: minmax(1em, 1fr);
 
 980   [data-date], [data-date] span {
 
 987     background-color: #ededed;
 
 989       background-color: #14432a;
 
 992       background-color: #4dd05a;
 
 995       box-shadow: 0px 0px 0px 1px #8884;
 
1000 @include color-mode(dark) {
 
1003       background-color: #2d333b;
 
1005         background-color: #4dd05a;
 
1008         background-color: #14432a;
 
1015   --bs-tooltip-max-width: none;