Make menu off-canvas
This commit is contained in:
parent
06b2b5103a
commit
fd7dca3b11
5 changed files with 61 additions and 3 deletions
14
ui/controls.css
Normal file
14
ui/controls.css
Normal 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 */
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue