-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
114 lines (98 loc) · 2.19 KB
/
index.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
body {
padding: 0;
margin: 0;
background-color: burlywood;
}
#game-board {
display: inline-grid;
grid-template-columns: repeat(15, auto);
}
.outer-content {
display: table;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.middle-content {
display: table-cell;
vertical-align: middle;
}
.inner-content {
width: 540px;
margin-left: auto;
margin-right: auto;
display: block;
}
.cross {
background-color: transparent;
width: 36px;
height: 36px;
padding: 0;
margin: 0;
position: relative;
border-radius: 50%;
}
.cross:hover {
background-color: #f5deb3cc;
}
.vl {
height: 100%;
border-left: 1px solid black;
margin-left: 18px;
position: absolute;
}
.hl {
width: 100%;
border-top: 1px solid black;
margin-top: 18px;
position: absolute;
}
.dot {
height: 10px;
width: 10px;
background-color: black;
border-radius: 50%;
margin-left: 13px;
margin-top: 13px;
position: absolute;
}
.chess {
height: 30px;
width: 30px;
border-radius: 50%;
margin-left: 3px;
margin-top: 3px;
position: absolute;
display: flex;
justify-content: center;
text-align: center;
flex-direction: column;
}
.chess-black {
background-color: black;
color: white;
box-shadow: inset 3px 3px 5px #aaa7;
}
.chess-black[last-move] {
box-shadow: inset 3px 3px 5px #aaa7, 0px 0px 0px 6px #f5deb3cc;
}
.chess-white {
background-color: white;
color: black;
box-shadow: inset -2px -2px 2px #7777;
}
.chess-white[last-move] {
box-shadow: inset -2px -2px 2px #7777, 0px 0px 0px 6px #f5deb3cc;
}
@keyframes combo-anime {
0% { background-color: transparent; }
50% { background-color: #ff6347aa; }
100% { background-color: transparent; }
}
.combo {
animation-name: combo-anime;
animation-duration: 2s;
animation-iteration-count: infinite;
}