-
Notifications
You must be signed in to change notification settings - Fork 1
/
board.css
89 lines (77 loc) · 1.33 KB
/
board.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
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap");
body {
text-align: center;
}
#turn p {
display: inline-block;
text-align: center;
font-family: "Roboto", sans-serif;
font-size: 30px;
margin: 20px;
}
#main {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: 4px solid rgb(94, 45, 0);
}
.row {
display: flex;
flex-direction: row;
}
.square {
position: relative;
display: inline-block;
border-color: black;
border-width: 2px;
padding: 10px;
border-style: solid;
width: 30px;
height: 30px;
text-align: center;
margin: 0;
}
.pieces {
width: 30px;
height: 30px;
}
.square:hover {
border-color: cyan;
border-width: 2px;
}
.brown {
background-color: rgb(201, 21, 21);
}
.white {
background-color: whitesmoke;
}
.move_circle {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 50px;
height: 50px;
text-align: center;
background-color: rgb(253, 255, 133);
opacity: 0.5;
}
.loader {
display: inline-block;
border: 10px solid #f3f3f3; /* Light grey */
border-top: 10px solid #393e41; /* Blue */
border-radius: 50%;
width: 10px;
height: 10px;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}