Touch screens: finger-sized (44 px) rows, buttons and checkboxes in every side panel and sidebar menu; desktop keeps the compact lists
This commit is contained in:
1 parent
f1c2b22821
commit
261b4c053e
1 file changed
+20
@@ -3171,3 +3171,23 @@ html.night .maplibregl-marker {
|
||||
background: #333;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Touch screens (tablet in the car, phone): every row and control in the
|
||||
side panels (Overlays, Tracks & Points, base map, route, …) and the
|
||||
sidebar menus gets a finger-sized target, ~44 px as Apple/Material
|
||||
recommend. Desktop (fine pointer) keeps the compact lists. */
|
||||
@media (pointer: coarse) {
|
||||
:is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(label, summary, button, select, .overlays-panel__row, .gpx-tree__point, .gpx-tree__file) {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
:is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(button, select) {
|
||||
min-width: 44px;
|
||||
}
|
||||
|
||||
:is(.basemap-panel, .gpx-panel) input:is([type="checkbox"], [type="radio"]) {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user