156 lines
2.3 KiB
SCSS
156 lines
2.3 KiB
SCSS
|
html,
|
||
|
body {
|
||
|
overscroll-behavior: contain;
|
||
|
touch-action: none;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
background-color: #ddd;
|
||
|
}
|
||
|
|
||
|
header {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
padding: 10px;
|
||
|
box-sizing: border-box;
|
||
|
z-index: 9999;
|
||
|
|
||
|
.spacer {
|
||
|
flex-grow: 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.user-card {
|
||
|
background-color: #444;
|
||
|
color: #fff;
|
||
|
border-radius: 10px;
|
||
|
padding: 5px 10px;
|
||
|
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
gap: 10px;
|
||
|
|
||
|
&--overview {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
justify-content: center;
|
||
|
line-height: 1;
|
||
|
|
||
|
span:first-of-type {
|
||
|
font-size: 130%;
|
||
|
margin-bottom: 5px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
img {
|
||
|
width: 64px;
|
||
|
height: 64px;
|
||
|
|
||
|
background-color: #aaa;
|
||
|
border-radius: 50%;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#cursor {
|
||
|
position: fixed;
|
||
|
top: 20px;
|
||
|
left: 10px;
|
||
|
width: 36px;
|
||
|
height: 36px;
|
||
|
border: 2px solid #000;
|
||
|
border-radius: 3px;
|
||
|
|
||
|
pointer-events: none;
|
||
|
will-change: transform;
|
||
|
z-index: 2;
|
||
|
}
|
||
|
|
||
|
#pallete {
|
||
|
position: fixed;
|
||
|
left: 0;
|
||
|
bottom: 0;
|
||
|
width: 100%;
|
||
|
|
||
|
display: flex;
|
||
|
gap: 10px;
|
||
|
padding: 10px;
|
||
|
|
||
|
background-color: #fff;
|
||
|
|
||
|
.pallete-colors {
|
||
|
display: flex;
|
||
|
width: 100%;
|
||
|
justify-content: center;
|
||
|
gap: 10px;
|
||
|
padding: 10px;
|
||
|
}
|
||
|
|
||
|
.pallete-color {
|
||
|
width: 36px;
|
||
|
height: 36px;
|
||
|
border: 2px solid #000;
|
||
|
border-radius: 3px;
|
||
|
}
|
||
|
|
||
|
.pallete-user-overlay {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
z-index: 1;
|
||
|
background-color: rgba(0, 0, 0, 0.5);
|
||
|
color: #fff;
|
||
|
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
#canvas-meta {
|
||
|
position: absolute;
|
||
|
top: -10px;
|
||
|
background-color: rgba(0, 0, 0, 0.5);
|
||
|
color: #fff;
|
||
|
border-radius: 5px;
|
||
|
padding: 5px;
|
||
|
transform: translateY(-100%);
|
||
|
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
z-index: 0;
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100vw;
|
||
|
height: 100vh;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
|
||
|
canvas {
|
||
|
display: block;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.pixelate {
|
||
|
image-rendering: optimizeSpeed;
|
||
|
-ms-interpolation-mode: nearest-neighbor;
|
||
|
image-rendering: -webkit-optimize-contrast;
|
||
|
image-rendering: -webkit-crisp-edges;
|
||
|
image-rendering: -moz-crisp-edges;
|
||
|
image-rendering: -o-crisp-edges;
|
||
|
image-rendering: pixelated;
|
||
|
image-rendering: crisp-edges;
|
||
|
}
|