diff --git a/public/css/style.css b/public/css/style.css index 5a00a2c..af91dfc 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -769,9 +769,13 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr border-radius: 4px; } +/* Finger-sized (44 px, see the panel rule at the end) with the text in + the middle, not at the top of an otherwise empty row; a summary stays + display: list-item for its disclosure triangle. */ .offline-data-panel__continent > summary, .offline-data-panel__subregions > summary { - padding: 6px 8px; + box-sizing: border-box; + padding: 12px 8px; cursor: pointer; } @@ -791,7 +795,11 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr border-left: 2px solid #eee; } -.offline-data-panel__subregions > summary { +/* Second-level, so smaller than the 44 px rows (and more specific than + that rule at the end). */ +.offline-data-panel__region-list .offline-data-panel__subregions > summary { + min-height: 32px; + padding: 8px 8px; color: #666; font-size: 12px; } @@ -2567,16 +2575,22 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr padding: 0; } +/* Name (wraps), the whole Run button, the status on a line of its own. */ .plugins-panel__item { display: flex; + flex-wrap: wrap; align-items: center; - gap: 8px; - padding: 4px 0; - white-space: nowrap; + gap: 4px 8px; + padding: 8px 0; +} + +.plugins-panel__item + .plugins-panel__item { + box-shadow: inset 0 1px #e6e6e6; } .plugins-panel__label { flex: 1; + min-width: 0; } .plugins-panel__run { @@ -2591,6 +2605,8 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr color: #fff; font: inherit; font-size: 12px; + white-space: nowrap; + flex-shrink: 0; cursor: pointer; } @@ -2600,14 +2616,13 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr } .plugins-panel__status { - min-width: 3.5em; - max-width: 200px; + flex-basis: 100%; color: #888; font-size: 11px; - /* Overrides the parent's nowrap: "Running…"/"Done" never wrap either - way, but a real RunError message (e.g. "plugin exited with status 1") - needs to, or it just overflows the panel unreadably. */ - white-space: normal; +} + +.plugins-panel__status:empty { + display: none; } .plugins-panel__status--error { @@ -3205,12 +3220,13 @@ html.night .maplibregl-marker { flex-shrink: 0; } -/* List dividers as in OsmAnd: a hairline between rows (an inset shadow, - so the 44 px rows don't grow) and each section heading on a gray band, so it's +/* List dividers as in OsmAnd: a hairline between sibling rows (an inset + shadow, so the 44 px rows don't grow) — a folder's line comes after + its contents, not under its own name — and each section heading on a + gray band, so it's clear what belongs together, not just text spaced apart. */ .overlays-panel__item + .overlays-panel__item, -.gpx-tree__file, -.gpx-tree__point + .gpx-tree__point, +.gpx-tree li + li, .sidebar-flyout__option + .sidebar-flyout__option, .gpx-tree__download-menu-item + .gpx-tree__download-menu-item { box-shadow: inset 0 1px #e6e6e6; @@ -3233,3 +3249,38 @@ html.night .maplibregl-marker { margin-top: -8px; border-top: none; } + +/* Panel headers: one row of equal, finger-sized icon buttons (actions, + export menu, pin, close) in one color, the title cut short rather than + wrapped. */ +:is(.gpx-panel__header, .basemap-panel__header) { + gap: 4px; + padding: 2px 4px 2px 12px; +} + +:is(.gpx-panel__header, .basemap-panel__header) > strong { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.gpx-panel__actions { + gap: 0; +} + +:is(.gpx-panel__header, .basemap-panel__header) :is(.gpx-panel__action, .gpx-panel__close, .basemap-panel__close, .side-panel-pin, .gpx-tree__download) { + width: 40px; + min-width: 40px; + height: 44px; + margin: 0; + padding: 0; + display: inline-flex; + align-items: center; + justify-content: center; + color: #444; +} + +.gpx-panel__action[hidden] { + display: none; +}