mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-27 06:47:20 +00:00
Fix Dark Mode Map when set in Dashboard card (#13297)
This commit is contained in:
parent
9baeabed19
commit
53519ae8ab
@ -453,6 +453,7 @@ export class HaMap extends ReactiveElement {
|
|||||||
}
|
}
|
||||||
#map.dark {
|
#map.dark {
|
||||||
background: #090909;
|
background: #090909;
|
||||||
|
--map-filter: invert(0.9) hue-rotate(170deg) grayscale(0.7);
|
||||||
}
|
}
|
||||||
.light {
|
.light {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
@ -464,7 +465,7 @@ export class HaMap extends ReactiveElement {
|
|||||||
filter: var(--map-filter);
|
filter: var(--map-filter);
|
||||||
}
|
}
|
||||||
.dark .leaflet-bar a {
|
.dark .leaflet-bar a {
|
||||||
background: var(--card-background-color);
|
background-color: var(--card-background-color, #1c1c1c);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
.leaflet-marker-draggable {
|
.leaflet-marker-draggable {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user