forked from iMonochrome/training-chess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
123 lines (105 loc) · 2.04 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
min-height: 100vh;
}
.upperdiv {
position: absolute;
top: 47%;
left: 50%;
transform: translate(-50%, -50%);
width: 670px;
height: 670px;
font-size: 1.5rem;
}
.board {
position: absolute;
display: grid;
grid-template-columns: repeat(8,1fr);
top: 47%;
left: 50%;
transform: translate(-50%, -50%);
border: 5px solid black;
width: 610px;
height: 610px;
}
.board div.odd:nth-child(odd){
background-color: #b3b3b3;
}
.eat {
background-color: tomato !important;
}
.jump {
background-color: green !important;
}
.board div.even:nth-child(even){
background-color: #b3b3b3 ;
}
.square {
height: 75px;
width: 75px;
background-size: 50px;
background-position: center;
background-repeat: no-repeat;
transition: all 0.5s ease-in-out;
transition-property: all;
transition-duration: 0.5s;
transition-timing-function: ease-in-out;
transition-delay: 0s;
cursor: pointer;
z-index: 1;
}
.square:hover {
background-color: purple!important;
transition: all 0.2s ease-in-out;
transition-property: all;
transition-duration: 0.1;
transition-timing-function: ease-in-out;
transition-delay: 0s;
cursor: pointer;
z-index: 1;
}
.yellow {
background-color: yellow!important;
}
.numbers {
height: 100%;
display: flex;
width: 5%;
display: flex;
flex-direction: column;
justify-content: space-evenly;
left: 0;
right: 0;
text-align: center;
}
.letters {
position: absolute;
width: 100%;
/* bottom: -2%; */
display: flex;
justify-content: space-evenly;
align-items: center;
}
li {
list-style: none;
}
#turn{
justify-content: space-around;
border: 1px solid black;
}
.clearbutton {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
.nothing{
}