mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 06:24:17 +00:00
Decrease area occluded by menu and fix menu scroll issue on mobile (#56)
* don't occlude area below menu * only disable pointer events on the menu on desktop or when a tool has been selected on mobile
This commit is contained in:
parent
ff7a8edcb8
commit
3ba9925d9f
1 changed files with 22 additions and 9 deletions
|
@ -43,16 +43,16 @@ html, body, svg {
|
|||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
font-size: 16px;
|
||||
border-radius:0;
|
||||
overflow-y:scroll;
|
||||
position:fixed;
|
||||
border-radius: 0;
|
||||
overflow-y: scroll;
|
||||
position: fixed;
|
||||
margin-bottom: 30px;
|
||||
left:0;
|
||||
top:0;
|
||||
color:black;
|
||||
height:100%;
|
||||
transition-duration:1s;
|
||||
cursor:default;
|
||||
left: 0;
|
||||
top: 0;
|
||||
color: black;
|
||||
max-height: 100%;
|
||||
transition-duration: 1s;
|
||||
cursor: default;
|
||||
padding: 10px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
@ -83,6 +83,10 @@ html, body, svg {
|
|||
padding:0;
|
||||
}
|
||||
|
||||
#settings {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#menu .tool {
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Safari */
|
||||
|
@ -121,6 +125,15 @@ html, body, svg {
|
|||
#menu .tool:focus {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#menu {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
#menu:focus-within {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#menu .tool.curTool {
|
||||
|
|
Loading…
Reference in a new issue