Add adaptive coordinate guides to canvas editor
This commit is contained in:
@@ -905,6 +905,15 @@ h3 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.canvas-coordinate-guide {
|
||||
display: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.canvas-coordinate-guide[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#scene-overlay[data-interaction="readonly"] {
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -950,6 +959,17 @@ body.canvas-edit-active .board-stage {
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
body.canvas-edit-active .canvas-coordinate-guide:not([hidden]) {
|
||||
position: absolute;
|
||||
z-index: 1005;
|
||||
inset: 0;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
mix-blend-mode: difference;
|
||||
}
|
||||
|
||||
body.canvas-edit-active[data-canvas-editor-mode="move"] .board-stage {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user