accomadesc 0.4.13 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LeafletMap.svelte +22 -0
- package/package.json +1 -1
package/dist/LeafletMap.svelte
CHANGED
|
@@ -78,4 +78,26 @@
|
|
|
78
78
|
width: 100%;
|
|
79
79
|
min-height: 60vh;
|
|
80
80
|
}
|
|
81
|
+
|
|
82
|
+
/* Auto-detect system dark mode */
|
|
83
|
+
@media (prefers-color-scheme: dark) {
|
|
84
|
+
/* Target ONLY the tile pane so markers and popups stay normal */
|
|
85
|
+
:global(.leaflet-tile-pane) {
|
|
86
|
+
filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Darken the container so you don't get white flashes while tiles load */
|
|
90
|
+
:global(.leaflet-container) {
|
|
91
|
+
background-color: #222222 !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Optional: Tweak the attribution link colors for dark mode readability */
|
|
95
|
+
:global(.leaflet-control-attribution) {
|
|
96
|
+
background-color: rgba(34, 34, 34, 0.7) !important;
|
|
97
|
+
color: #ccc !important;
|
|
98
|
+
}
|
|
99
|
+
:global(.leaflet-control-attribution a) {
|
|
100
|
+
color: #66b2ff !important;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
81
103
|
</style>
|