-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
124 lines (110 loc) · 1.81 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main {
min-height: 100vh;
display: flex;
flex-direction: column;
gap: 20px;
justify-content: center;
align-items: center;
background: rgb(128, 128, 128);
background: linear-gradient(
133deg,
rgba(128, 128, 128, 1) 45%,
rgba(211, 211, 211, 1) 100%
);
}
h1 {
color: black;
}
#board {
width: 644px;
height: 640px;
/* border: 1px solid black; */
display: flex;
flex-wrap: wrap;
}
.square {
width: 80px;
height: 80px;
border: 1px solid black;
display: flex;
align-items: center;
justify-content: center;
}
.black-square {
background-color: black;
color: white;
}
.white-square {
color: white;
background-color: white;
}
.checker-piece {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 10px 10px 37px 0px rgba(0, 0, 0, 0.49);
-webkit-box-shadow: 10px 10px 37px 0px rgba(0, 0, 0, 0.49);
-moz-box-shadow: 10px 10px 37px 0px rgba(0, 0, 0, 0.49);
}
.red-checker {
background-color: red;
}
.blue-checker {
background-color: blue;
}
.clickedChecker {
transform: scale(1.5);
}
.king {
border: 3px solid black;
}
@media only screen and (max-width: 600px) {
.checker-piece {
width: 20px;
height: 20px;
}
.square {
width: 40px;
height: 40px;
}
#board {
width: 320px;
height: 320px;
}
}
@media only screen and (min-width: 600px) {
.checker-piece {
width: 35px;
height: 35px;
}
.square {
width: 60px;
height: 60px;
}
#board {
width: 480px;
height: 480px;
}
}
@media only screen and (min-width: 768px) {
.checker-piece {
width: 35px;
height: 35px;
}
.square {
width: 80px;
height: 80px;
}
#board {
width: 640px;
height: 640px;
}
}