-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdraughts.css
176 lines (145 loc) · 3.02 KB
/
draughts.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
164
165
166
167
168
169
170
171
172
173
174
175
176
* {
font-family: monospace;
}
#draughts > div {
float: left;
}
#dash {
margin-left: 10px;
border: outset 10px gray;
height: 478px;
}
#dash > div {
float: left;
width: 100px;
height: 100%;
}
#dash > div > h3 {
text-align: center;
}
#dash > .player0 > h3 {
color: blue;
}
#dash > .player1 > h3 {
color: red;
}
#dash > div > div {
width: 100%;
height: 100%;
float: left;
}
#banner-msg {
position: absolute;
margin-left: 22%;
margin-top: 15%;
background-color: white;
border: solid green 2px;
padding: 10px;
}
#dash > div > div > div {
width: 50px;
height: 50px;
float: left;
}
#board {
width: 478px;
height: 478px;
border: outset 10px gray;
}
#board > div {
float: left;
background-color: darkgray;
}
#board.size8 > div {
width: 12.5%;
height: 12.5%;
}
#board.size10 > div {
width: 10%;
height: 10%;
}
#board > div.disabled,
#board > div.white{
background-color: #fafafa;
}
#draughts a {
width: 100%;
height: 100%;
display: block;
}
#draughts #board a.startdrag {
position: relative;
background-color: initial;
z-index: 100000;
}
#draughts a.queen div > div > img {
width: 70%;
position: relative;
margin: 15%;
/* IE8 add a very beatiful fashion border */
border: 0;
/* IE8 don't keep the aspect... shame on you! */
height: 70%;
}
#draughts a.move {
background-color: chocolate;
opacity: 0.40;
}
#draughts a.move:hover,
#draughts a.move:focus {
background-color: chocolate;
opacity: 0.60;
box-shadow: 0 0 15px 5px rgba(255, 255, 0, 1);
-webkit-box-shadow: 0 0 15px 5px rgba(255, 255, 0, 1);
-moz-box-shadow: 0 0 15px 5px rgba(255, 255, 0, 1);
}
#draughts a:focus,
#draughts a.focus {
background-color: #666;
}
#draughts a[href]:hover > div,
#draughts a.selected > div {
box-shadow: 0 0 15px 5px rgba(255, 255, 0, 1);
-webkit-box-shadow: 0 0 15px 5px rgba(255, 255, 0, 1);
-moz-box-shadow: 0 0 15px 5px rgba(255, 255, 0, 1);
}
#draughts a > div {
width: 80%;
height: 80%;
border-radius: 50%;
box-shadow: inset #333 0 -3px 0 0;
-moz-box-shadow: inset #333 0 -3px 0 0;
-webkit-box-shadow: inset #333 0 -3px 0 0;
/* keep the anchor in the right place this way */
position: relative;
left: 10%;
top: 10%;
}
#draughts a > div > div {
width: 80%;
height: 80%;
border-radius: 50%;
box-shadow: inset #333 1px 2px 2px 1px;
-moz-box-shadow: inset #333 1px 2px 2px 1px;
-webkit-box-shadow: inset #333 1px 2px 2px 1px;
/* keep the anchor in the right place this way */
position: relative;
left: 10%;
top: 10%;
}
#draughts a.player0 > div {
background: blue;
}
#draughts a.player1 > div {
background: red;
}
/* Prevent the text contents from being selectable. */
* {
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
/* Required to make elements draggable in old WebKit */
-khtml-user-drag: element;
-webkit-user-drag: element;
}