-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
105 lines (91 loc) · 1.6 KB
/
Copy pathstyles.css
File metadata and controls
105 lines (91 loc) · 1.6 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
body {
font-family: sans-serif;
background: #f3efe6;
}
#game {
display: flex;
gap: 24px;
padding: 12px;
}
#board {
display: grid;
height: fit-content;
gap: 2px;
background: #9b7b5f;
padding: 6px;
}
#pieces {
display: grid;
width: fit-content;
gap: 2px;
grid-template-columns: repeat(5, 90px);
grid-template-rows: repeat(2, 80px);
background: #9b7b5f;
padding: 6px;
}
.cell {
box-sizing: border-box;
background: #d6c2a3;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
.piece {
position: absolute;
background: #c19a6b;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
cursor: grab;
z-index: 1;
}
#tray {
display: grid;
gap: 10px;
position: relative;
}
.tray-slot {
background: #e6d3b1;
border: 2px dashed #b08b5a;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
/* buttons */
.tray-btn {
position: absolute;
top: 6px;
width: 24px;
height: 24px;
font-size: 14px;
line-height: 1;
padding: 0;
z-index: 10;
cursor: pointer;
}
.rotate-btn {
left: 6px;
}
.flip-btn {
right: 6px;
}
.cell.target {
background: #fff3b0;
font-weight: bold;
box-shadow: inset 0 0 0 2px #e6b800;
}
.cell.locked {
background: #8b6b4f;
}
#hud {
width:374px;
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
padding-left: 12px;
font-size: 16px;
}
.right {
margin-left: auto; /* Push this and following items to the right */
}