baldav/tools/brouter-web/baldav-custom.css
4aiman 74770c1e60 tools/brouter-web: preserve mirror customization (config + dark toggle + default overlays)
Static brouter-web on the Keenetic mirror pointed at the PC RouteServer.
config.js (host/layers/centre), baldav-custom.{css,js} (day/night toggle that
inverts only the tile layer + dark sidebar, one-time default POI overlays),
and a README with the deploy steps. Kept in-repo so the mirror is reproducible.
2026-09-09 13:50:42 +03:00

18 lines
1 KiB
CSS

/* BalDav dark mode for BRouter-Web. Invert ONLY the tile layer (route/POI overlays
keep colour), dark backdrop, and dark-theme the right sidebar (was white). */
body.bw-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(1.5); }
body.bw-dark .leaflet-container { background: #1b1f24; }
body.bw-dark #sidebar,
body.bw-dark #sidebar .leaflet-sidebar-content,
body.bw-dark #sidebar .leaflet-sidebar-pane,
body.bw-dark .leaflet-control-layers,
body.bw-dark .leaflet-control-layers-expanded { background: #20242a !important; color: #dfe3e8 !important; }
body.bw-dark #sidebar label,
body.bw-dark #sidebar h1,
body.bw-dark #sidebar span,
body.bw-dark #sidebar a,
body.bw-dark #sidebar .leaflet-sidebar-header { color: #dfe3e8 !important; }
body.bw-dark #sidebar input[type="text"],
body.bw-dark #sidebar select { background:#2b3038 !important; color:#dfe3e8 !important; border-color:#3a4048 !important; }
body.bw-dark .leaflet-control-layers-separator { border-top-color: #3a4048 !important; }
#baldav-daynight { cursor: pointer; }