Make menu off-canvas

This commit is contained in:
Chandler Swift 2023-07-03 22:13:15 -05:00
parent 06b2b5103a
commit fd7dca3b11
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
5 changed files with 61 additions and 3 deletions

14
ui/controls.css Normal file
View file

@ -0,0 +1,14 @@
.show-menu {
top: .5em;
left: .5em;
}
.ol-zoom {
top: calc(1.375em + 2 * 0.5em);
}
.ol-touch .show-menu {
top: .5em; /* TODO */
}
.ol-touch .ol-zoom {
top: calc(1.375em * 1.5 + 2 * 0.5em); /* menu button at 1.5x scale, plus 2x padding */
}