Adapt Leaflet scale and attribution controls to dark mode

This commit is contained in:
Anton Khorev 2024-05-07 16:55:37 +03:00
parent 9017eadbe8
commit c29cdf378f

View file

@ -457,13 +457,17 @@ body.small-nav {
border-top: 0px !important; border-top: 0px !important;
} }
.leaflet-popup-content-wrapper, .leaflet-popup-content-wrapper, .leaflet-popup-tip,
.leaflet-popup-tip, .leaflet-contextmenu, .leaflet-contextmenu-item,
.leaflet-contextmenu, .leaflet-control-attribution, .leaflet-control-scale-line {
.leaflet-contextmenu-item {
@extend .bg-body, .text-body; @extend .bg-body, .text-body;
} }
.leaflet-control-attribution, .leaflet-control-scale-line {
@extend .bg-opacity-75;
text-shadow: none !important;
}
.leaflet-contextmenu-item.over { .leaflet-contextmenu-item.over {
@extend .bg-body-secondary, .border-secondary, .border-opacity-10; @extend .bg-body-secondary, .border-secondary, .border-opacity-10;
} }
@ -481,6 +485,10 @@ body.small-nav {
.mapkey-table-entry td:first-child > * { .mapkey-table-entry td:first-child > * {
filter: brightness(.8); filter: brightness(.8);
} }
.leaflet-control-attribution a {
color: var(--bs-link-color);
}
} }
/* Rules for attribution text under the main map shown on printouts */ /* Rules for attribution text under the main map shown on printouts */