blob: aa726b2bf993808c8b42b663dcdbecd1b082ec21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
body {
font-family: sans-serif;
--piece-width: 50px;
--piece-height: 50px;
--image: url("");
--image-width: 640px;
--image-height: 480px;
margin: 0;
position: relative;
}
#play-area {
width: 90vw;
height: 90vh;
padding: 5vh 5vw;
position: relative;
user-select: none;
}
.piece {
position: absolute;
width: calc(var(--piece-width) + 2 * var(--nib-size));
height: calc(var(--piece-height) + 2 * var(--nib-size));
background-image: var(--image);
background-size: var(--image-width) var(--image-height);
}
.debug-point {
position: absolute;
width: 1px;
height: 1px;
z-index: 999999;
background-image: none;
}
.debug-relative {
position: relative;
width: 100%;
height: 100%;
}
|