|
|
|
html, body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
touch-action: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dhide {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.canvas {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity .2s;
|
|
|
|
transform-origin: top left;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#toucher {
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 5; /* above all canvases, but below tools */
|
|
|
|
cursor: crosshair;
|
|
|
|
}
|
|
|
|
|
|
|
|
.canvas.white {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#canvas-images {
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#canvas0 {
|
|
|
|
z-index: 1;
|
|
|
|
background: #eee;
|
|
|
|
background-position: 0px 0px;
|
|
|
|
background-size: 32px 32px;
|
|
|
|
background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 10%);
|
|
|
|
}
|
|
|
|
|
|
|
|
#canvas1 {
|
|
|
|
z-index: 2;
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tools-wrapper {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 32px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: end;
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tools {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background: #333;
|
|
|
|
border-radius: 5px;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
height: 42px;
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tool {
|
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
background: #333;
|
|
|
|
transition: transform .1s ease-in-out;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tool:hover {
|
|
|
|
background: #888;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tool.active {
|
|
|
|
transform: translateY(-10px);
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
background: #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tool img {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
filter: invert(100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.floating-image {
|
|
|
|
position: absolute;
|
|
|
|
user-drag: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.floating-image.activated {
|
|
|
|
outline: 5px solid #5286ff;
|
|
|
|
z-index: 999999 !important;
|
|
|
|
cursor: grab;
|
|
|
|
}
|