-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
55 lines (46 loc) · 867 Bytes
/
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
width: 100vw;
padding: 1rem 1rem;
display: flex;
align-items: center;
}
.main-container {
display: flex;
background-color: red;
flex-direction: column;
border: 1px solid black;
}
.row {
display: flex;
}
.row .cell {
width: 5rem;
height: 5rem;
border: 1px solid black;
display: flex;
align-items: center;
justify-content: center;
user-select: none;
--black-color: rgb(177, 176, 176);
}
.row:nth-child(2n) .cell:nth-child(2n) {
background-color: var(--black-color);
}
.row:nth-child(2n-1) .cell:nth-child(2n+ 1) {
background-color: var(--black-color);
}
.cell span {
font-size: 4rem;
}
.posibleMove {
background-color: #96e79d91 !important;
}
.not-movable {
pointer-events: none;
}