Adapt Leaflet scale and attribution controls to dark mode
This commit is contained in:
parent
9017eadbe8
commit
c29cdf378f
1 changed files with 12 additions and 4 deletions
|
@ -457,13 +457,17 @@ body.small-nav {
|
|||
border-top: 0px !important;
|
||||
}
|
||||
|
||||
.leaflet-popup-content-wrapper,
|
||||
.leaflet-popup-tip,
|
||||
.leaflet-contextmenu,
|
||||
.leaflet-contextmenu-item {
|
||||
.leaflet-popup-content-wrapper, .leaflet-popup-tip,
|
||||
.leaflet-contextmenu, .leaflet-contextmenu-item,
|
||||
.leaflet-control-attribution, .leaflet-control-scale-line {
|
||||
@extend .bg-body, .text-body;
|
||||
}
|
||||
|
||||
.leaflet-control-attribution, .leaflet-control-scale-line {
|
||||
@extend .bg-opacity-75;
|
||||
text-shadow: none !important;
|
||||
}
|
||||
|
||||
.leaflet-contextmenu-item.over {
|
||||
@extend .bg-body-secondary, .border-secondary, .border-opacity-10;
|
||||
}
|
||||
|
@ -481,6 +485,10 @@ body.small-nav {
|
|||
.mapkey-table-entry td:first-child > * {
|
||||
filter: brightness(.8);
|
||||
}
|
||||
|
||||
.leaflet-control-attribution a {
|
||||
color: var(--bs-link-color);
|
||||
}
|
||||
}
|
||||
|
||||
/* Rules for attribution text under the main map shown on printouts */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue