Also disable form elements via CSS pointer-events when not in edit mode.

This lets us visually transition the controls without accidentally enabling interaction
This commit is contained in:
Magnus Hoff 2018-09-30 22:33:40 +02:00
parent c6dd37ed9e
commit 58283a601c

View file

@ -322,11 +322,15 @@ h1>input {
transform: translate(0, 65px); transform: translate(0, 65px);
transition: transform 100ms; transition: transform 100ms;
transition-timing-function: linear; transition-timing-function: linear;
pointer-events: none;
} }
.edit .editor-controls { .edit .editor-controls {
transform: translate(0, 0); transform: translate(0, 0);
transition-timing-function: cubic-bezier(.17,.84,.44,1); transition-timing-function: cubic-bezier(.17,.84,.44,1);
pointer-events: unset;
} }
.theme-picker { .theme-picker {