-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchess.css
90 lines (85 loc) · 1.25 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
*{
margin: 0;
padding: 0;
}
body{
background: #ddd;
}
#board{
width: 600px;
height: 600px;
position:relative;
margin:auto;
}
.box{
float: left;
width: 75px;
height: 75px;
box-sizing:border-box;
}
#board .even div:nth-child(even){
background: rgb(240, 200, 150);
}
#board .even div:nth-child(odd){
background: rgb(100,75,40);
}
#board .odd div:nth-child(even){
background: rgb(100,75,40);
}
#board .odd div:nth-child(odd){
background: rgb(240, 200, 150);
}
img{
height: 70px;
width: 70px;
}
.allowed{
background: #090!important;
border:1px solid black !important;
}
.clicked-box{
background: #f33!important;
border:1px solid black !important;
}
#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: 40vh;
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: 30px;
}
.winning-sign:first-letter{
text-transform: uppercase;
}