Add URL params parsing and concept of "embedded mode"

This commit is contained in:
Ian Renton
2025-11-30 11:26:15 +00:00
parent 8a82f81ec4
commit 9d130712d8
13 changed files with 143 additions and 49 deletions

View File

@@ -4,6 +4,13 @@
font-weight: bold;
}
/* In embedded mode, hide header/footer/settings. "#header div" is kind of janky but for some reason if we hide the
whole of #header, the map vertical sizing breaks. */
[embedded-mode=true] #header div, [embedded-mode=true] #footer,
[embedded-mode=true] #settingsButtonRow, [embedded-mode=true] #settingsButtonRowMap {
display: none;
}
[data-bs-theme=dark] #logo {
filter: invert(100%) hue-rotate(180deg) brightness(80%);
}
@@ -30,6 +37,11 @@ div.container {
min-height:100svh;
}
[embedded-mode=true] div.container {
width: 100% !important;
max-width: 100% !important;
}
/* ABOUT PAGE */
@@ -282,10 +294,10 @@ div.band-spot:hover span.band-spot-info {
margin-right: -1em;
}
/* Avoid map page filters panel being larger than the map itself */
#maptools .appearing-panel {
#settingsButtonRowMap .appearing-panel {
max-height: 30em;
}
#maptools .appearing-panel .card-body {
#settingsButtonRowMap .appearing-panel .card-body {
max-height: 26em;
overflow: scroll;
}