-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
97 lines (83 loc) · 1.6 KB
/
style.css
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
/* style.css */
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 20px;
}
#main-container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
#top-container {
display: flex;
justify-content: center;
align-items: flex-start;
width: 100%;
max-width: 1280px;
margin-bottom: 20px;
}
#reference-container, #board-container {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
}
#reference-container {
margin-right: 10px;
}
#reference-container h2, #board-container h2 {
margin-bottom: 10px;
}
#reference-image {
width: 100%;
max-width: 640px; /* Adjust as needed */
height: auto;
border: 1px solid #333;
}
#board-container {
margin-left: 10px;
}
#board {
width: 100%;
max-width: 640px; /* Adjust as needed */
height: auto;
border: 2px solid #333;
position: relative;
overflow: hidden;
}
#pieces-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
width: 100%;
max-width: 1280px;
margin: 0 auto 20px auto;
overflow-y: auto;
}
.piece {
cursor: grab;
margin: 5px;
position: relative;
width: 80px; /* Adjust as needed */
height: 80px; /* Adjust as needed */
}
.piece img {
width: 100%;
height: 100%;
user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;
}
.piece:active {
cursor: grabbing;
}