Side panels: header icon buttons one size and color (pin and export menu no longer off), title cut short instead of wrapping; tree dividers between siblings so a folder's line comes after its contents; Offline data group rows centered, subregion row smaller; plugin rows wrap with the whole Run button
This commit is contained in:
1 parent
b32f7d3bd3
commit
9015a4936d
1 file changed
+66
-15
+66
-15
@@ -769,9 +769,13 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
|||||||
border-radius: 4px;
|
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__continent > summary,
|
||||||
.offline-data-panel__subregions > summary {
|
.offline-data-panel__subregions > summary {
|
||||||
padding: 6px 8px;
|
box-sizing: border-box;
|
||||||
|
padding: 12px 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -791,7 +795,11 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
|||||||
border-left: 2px solid #eee;
|
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;
|
color: #666;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
@@ -2567,16 +2575,22 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Name (wraps), the whole Run button, the status on a line of its own. */
|
||||||
.plugins-panel__item {
|
.plugins-panel__item {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 4px 8px;
|
||||||
padding: 4px 0;
|
padding: 8px 0;
|
||||||
white-space: nowrap;
|
}
|
||||||
|
|
||||||
|
.plugins-panel__item + .plugins-panel__item {
|
||||||
|
box-shadow: inset 0 1px #e6e6e6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugins-panel__label {
|
.plugins-panel__label {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugins-panel__run {
|
.plugins-panel__run {
|
||||||
@@ -2591,6 +2605,8 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2600,14 +2616,13 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
|||||||
}
|
}
|
||||||
|
|
||||||
.plugins-panel__status {
|
.plugins-panel__status {
|
||||||
min-width: 3.5em;
|
flex-basis: 100%;
|
||||||
max-width: 200px;
|
|
||||||
color: #888;
|
color: #888;
|
||||||
font-size: 11px;
|
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. */
|
.plugins-panel__status:empty {
|
||||||
white-space: normal;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugins-panel__status--error {
|
.plugins-panel__status--error {
|
||||||
@@ -3205,12 +3220,13 @@ html.night .maplibregl-marker {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* List dividers as in OsmAnd: a hairline between rows (an inset shadow,
|
/* List dividers as in OsmAnd: a hairline between sibling rows (an inset
|
||||||
so the 44 px rows don't grow) and each section heading on a gray band, so it's
|
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. */
|
clear what belongs together, not just text spaced apart. */
|
||||||
.overlays-panel__item + .overlays-panel__item,
|
.overlays-panel__item + .overlays-panel__item,
|
||||||
.gpx-tree__file,
|
.gpx-tree li + li,
|
||||||
.gpx-tree__point + .gpx-tree__point,
|
|
||||||
.sidebar-flyout__option + .sidebar-flyout__option,
|
.sidebar-flyout__option + .sidebar-flyout__option,
|
||||||
.gpx-tree__download-menu-item + .gpx-tree__download-menu-item {
|
.gpx-tree__download-menu-item + .gpx-tree__download-menu-item {
|
||||||
box-shadow: inset 0 1px #e6e6e6;
|
box-shadow: inset 0 1px #e6e6e6;
|
||||||
@@ -3233,3 +3249,38 @@ html.night .maplibregl-marker {
|
|||||||
margin-top: -8px;
|
margin-top: -8px;
|
||||||
border-top: none;
|
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;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user