-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.css
81 lines (81 loc) · 1.54 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
/**
*
* @Name : ChessDesktop/style.css
* @Version : 1.0
* @Programmer : Max
* @Date : 2019-05-23
* @Released under : https://github.com/BaseMax/ChessDesktop/blob/master/LICENSE
* @Repository : https://github.com/BaseMax/ChessDesktop
*
**/
#table {
width: 400px;
height: 400px;
border: 5px solid black;
}
.row {
display: inline-block;
}
.column {
width: 50px;
height: 50px;
float: left;
}
.column.white {
background: blue;
}
.column.black {
background: green;
}
.column.selected {
background: yellow;
}
.column.cango {
background: orange;
}
.piece {
cursor: pointer;
text-align: center;
position: relative;
width: 50px;
height: 50px;
background: transparent;
}
/* Black */
.piece.bishop.black {
background-image: url('images/black_bishop.svg');
}
.piece.king.black {
background-image: url('images/black_king.svg');
}
.piece.knight.black {
background-image: url('images/black_knight.svg');
}
.piece.pawn.black {
background-image: url('images/black_pawn.svg');
}
.piece.queen.black {
background-image: url('images/black_queen.svg');
}
.piece.rook.black {
background-image: url('images/black_rook.svg');
}
/* White */
.piece.bishop.white {
background-image: url('images/white_bishop.svg');
}
.piece.king.white {
background-image: url('images/white_king.svg');
}
.piece.knight.white {
background-image: url('images/white_knight.svg');
}
.piece.pawn.white {
background-image: url('images/white_pawn.svg');
}
.piece.queen.white {
background-image: url('images/white_queen.svg');
}
.piece.rook.white {
background-image: url('images/white_rook.svg');
}