-
Notifications
You must be signed in to change notification settings - Fork 0
/
chess.css
163 lines (154 loc) · 2.48 KB
/
chess.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
*{
margin: 0;
padding: 0;
}
body{
background: purple;
}
#board{
margin-top:6rem;
width: 600px;
height: 600px;
border:3px #333 solid;
}
#board div div{
float: left;
width: 75px;
height: 75px;
box-sizing:border-box;
border: #000 solid .01cm;
}
#board .even div:nth-child(even){
background: #ccd;
}
#board .even div:nth-child(odd){
background: rgb(112,112,112);/*621700*/
}
#board .odd div:nth-child(even){
background: rgb(112,112,112);/*621700*/
}
#board .odd div:nth-child(odd){
background: #ccd;
}
.animate{
animation: rotateBoard 1s ease-out;
animation-fill-mode: both;
}
@keyframes rotateBoard {
0% {
transform: rotateZ(0);
}
100%{
transform: rotateZ(-180deg);
}
}
.forward{
transform: rotateZ(-180deg);
}
.backward{
transform: rotateZ(0);
}
.animate-backward{
animation: rotateBoardBackward 1s ease-out;
animation-fill-mode: both;
}
@keyframes rotateBoardBackward {
0% {
transform: rotateZ(-180deg);
}
100%{
transform: rotateZ(0);
}
}
img{
width: 75px;
height: 75px;
}
.allowed{
opacity: .8;
background: radial-gradient(#333,#222 )!important;
/*-webkit-box-shadow: inset 1px -4px 92px 0px rgba(0,0,0,0.75);
-moz-box-shadow: inset 1px -4px 92px 0px rgba(0,0,0,0.75);
box-shadow: inset 1px -4px 92px 0px rgba(0,0,0,0.75);*/
border:1px solid black !important;
}
.clicked-square{
background: radial-gradient(#333,#222 )!important;
border:1px solid black !important;
}
#sematary img{
transform: rotateZ(0);
}
#whiteSematary{
position: absolute;
top: 0;
left: 610px;
width: 180px;
}
#blackSematary{
position: absolute;
top: 0;
left: -190px;
width: 180px;
}
#blackSematary div{
overflow-y: auto;
margin-bottom: 2px;
}
#blackSematary img{
float: right;
}
#sematary img{
width: 60px;
height: 60px;
}
#endscene{
position: relative;
display: none;
opacity: 0;
z-index: 1;
}
.overlay{
position: fixed;
width: 100%;
height: 100%;
background: #000;
opacity: .5;
}
#endscene p{
position: fixed;
color:#fff;
z-index: 2;
width: 100%;
text-align: center;
margin-top: 3rem;
font-size: 40px;
}
.show{
display: block !important;
animation: showMessage 1s ease-out;
animation-fill-mode: both;
}
@keyframes showMessage {
0% {
opacity: 0;
}
100%{
opacity: 1;
}
}
#turn{
text-align: center;
font-size: 18px;
}
.winning-sign:first-letter{
text-transform: uppercase;
}
.flip-board{
padding: 10px 20px;
border-radius: 5px !important;
outline: 0;
background: #7f979e;
color: white;
border: 0;
}