hgc
9c5a5036a1
- Lifted the whole fucking thing from this guys original project - Added jscolor nicer native colour picker - Removed weird local URL derivation logic in favour of 2x variables - Swapped mouse buttons like the original canvashole - Added help section with key bindings and shit
96 lines
1.3 KiB
CSS
96 lines
1.3 KiB
CSS
* {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family: monospace;
|
|
}
|
|
|
|
body {
|
|
overflow: hidden;
|
|
position: fixed;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
#viewport-canvas {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
image-rendering: pixelated;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: #e0e0e0;
|
|
}
|
|
|
|
#ui-wrapper {
|
|
position: fixed;
|
|
bottom: top;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #ffffff;
|
|
transition: background 1s;
|
|
}
|
|
|
|
#ui-wrapper > #color-wrapper, #zoom-wrapper {
|
|
visibility: hidden;
|
|
}
|
|
|
|
|
|
#ui-wrapper[hide=true] {
|
|
pointer-events: none;
|
|
background: none;
|
|
}
|
|
|
|
#ui-wrapper[hide=true] > #color-wrapper, #zoom-wrapper {
|
|
visibility: visible;
|
|
}
|
|
|
|
#color-wrapper {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
left: 16px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
#color-swatch {
|
|
width: 20px;
|
|
height: 22px;
|
|
background-color: #000000;
|
|
}
|
|
|
|
#color-field {
|
|
height: 20px;
|
|
padding: 1px;
|
|
border: none;
|
|
outline: none;
|
|
pointer-events: all;
|
|
}
|
|
|
|
#loading-p {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
font-size: 1.4em;
|
|
transform: translate(-50%,-50%);
|
|
}
|
|
|
|
#zoom-wrapper {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
}
|
|
|
|
.zoom-button {
|
|
width: 30px;
|
|
height: 30px;
|
|
border: none;
|
|
background: none;
|
|
outline: none;
|
|
background-color: red;
|
|
font-size: 22px;
|
|
background-color: #ffffff;
|
|
border: 1px solid black;
|
|
cursor: pointer;
|
|
pointer-events: all;
|
|
user-select: none;
|
|
} |