/
backgammon.css
93 lines (74 loc) · 1.63 KB
/
backgammon.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
/*-------------------Base----------------------*/
.chess-pieces-black {
z-index: 100;
position: absolute;
width: 30px;
height: 30px;
border-radius: 50%;
background: radial-gradient(10px circle at 60% 35%, #999 10%, #333 160%);
}
.chess-pieces-white {
z-index: 100;
position: absolute;
width: 30px;
height: 30px;
border-radius: 50%;
background: radial-gradient(10px circle at 60% 35%, #fff 10%, #999 160%);
}
/*------------------Layout---------------------*/
#container {
width: 525px;
margin: 30px auto;
padding: 15px;
box-shadow: 0 0 10px 1px #ddd;
outline: 1px solid #efefef;
}
#chessboard {
position: relative;
width: 525px;
height: 525px;
outline: 1px solid #aaaaaa;
}
.box {
display: inline-block;
vertical-align: top;
width: 35px;
height: 35px;
outline: 1px solid #aaaaaa;
}
p {
font-family: "Microsoft YaHei UI";
margin: 30px auto;
text-align: center;
}
#operate {
width: 525px;
margin: 20px auto;
position: relative;
}
#chessFlag {
top: 0px;
right: 0px;
}
/*------------------Module---------------------*/
.oper-btn {
font-family: "Microsoft YaHei UI";
font-size: 1.125em;
color: #333333;
padding:5px 20px;
background-color: transparent;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #333333;
}
.oper-btn:hover {
cursor: pointer;
color: #ffffff;
background-color: #333333;
}
.oper-btn:focus {
outline: none;
}
/*-------------------State---------------------*/
/*-------------------Theme---------------------*/