-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdstyle.css
More file actions
120 lines (103 loc) · 2.08 KB
/
dstyle.css
File metadata and controls
120 lines (103 loc) · 2.08 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
h1 {
text-align: center;
font-family: 'Arial', sans-serif;
color: #8B4513;
font-size: 2.5em;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
margin-bottom: 20px; /* Ajouter un peu d'espace entre le titre et le damier */
}
#board-container {
width: 400px;
height: 400px;
display: flex;
flex-wrap: wrap;
border: 20px solid #deb887;
box-sizing: content-box;
margin: auto 0; /* Centrer le damier verticalement */
}
#board-container div {
width: 50px;
height: 50px;
box-sizing: border-box;
display: flex; /* Ajouter flexbox */
justify-content: center; /* Centrer horizontalement */
align-items: center; /* Centrer verticalement */
}
.white {
background-color: #F5F5DC;
}
.black {
background-color: #8B4513;
}
.piece {
width: 20px; /* Réduire davantage la taille des pions */
height: 20px; /* Réduire davantage la taille des pions */
border-radius: 100%;
}
.red-piece {
background-color: black; /* Changer la couleur en noir */
}
.white-piece {
background-color: white; /* Changer la couleur en blanc */
}
.dot {
width: 10px;
height: 10px;
background-color: #000; /* Changer en fonction de la couleur du pion */
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
* {
font-family: "Lucida Grande";
}
#gameContainer {
background-color: black;
width: 480px;
height: 480px;
padding: 20px;
}
.row {
width: 100%;
}
.square {
float: left;
width: 60px;
height: 60px;
}
.circle {
border-radius: 50%;
width: 94%;
height: 94%;
margin: 3%;
color: black;
text-align: center;
line-height: 56px;
}
.square:hover {
cursor: pointer;
opacity: .8;
}
#startGame {
width: 120px;
padding: 10px;
margin-top: 10px;
text-align: center;
background-color: black;
color: white;
}
#startGame:hover {
color: red;
cursor: pointer;
}