Transparency blocks are now behind canvas, not its wrapper

This commit is contained in:
Igor Zinken
2020-12-29 21:02:53 +01:00
parent a630b60349
commit 37ec143d3d
2 changed files with 9 additions and 9 deletions

View File

@@ -56,7 +56,6 @@ npm run lint
# TODO / Roadmap
* Transparency blocks should be rendered by zCanvas, not parent div
* Restoring positions of documents with positioned rotated objects is not accurate
* Issue with drawing mask on mirrored content
* Moving of flipped / rotated content leads to occasional non-renders (isInsideViewport doesn't take rotated rectangles into account)

View File

@@ -313,7 +313,6 @@ export default {
.canvas-wrapper {
display: inline-block;
width: 100%;
background: url( "../../assets/images/document_transparent_bg.png" ) repeat fixed;
@include component();
.content {
@@ -322,14 +321,9 @@ export default {
overflow: none;
display: block;
&.center canvas {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
canvas {
background: url( "../../assets/images/document_transparent_bg.png" ) repeat;
&.no-cursor {
cursor: none;
}
@@ -343,6 +337,13 @@ export default {
cursor: crosshair;
}
}
&.center canvas {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
}
</style>