-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchess.css
More file actions
executable file
·210 lines (173 loc) · 5.87 KB
/
chess.css
File metadata and controls
executable file
·210 lines (173 loc) · 5.87 KB
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/******************************************************************************
* *
* TITLE: Chess CSS Stylesheet *
* *
* AUTHOR: Milo Toor *
* *
* DATE: 30 May 2011 *
* *
* DESCRIPTION: This is the CSS stylesheet to accompany the game of chess *
* located and played in chess.html. This file contains almost *
* all of the aesthetic styling seen in the game, though *
* the dynamics of the game are handled by chess.js. This file *
* should be considered nonessential to the play of the game. *
* *
* LEGEND: HEADER LINE NUMBER *
* Nonboard Landmarks 35 *
* Board Landmarks 63 *
* Options Panel 95 *
* Right Panel 129 *
* Notation Box 165 *
* Commentary 198 *
* *
******************************************************************************/
/* @font-face kit by Fonts2u (https://fonts2u.com/chess-alpha-2.font) */
@font-face {
font-family: "Chess Alpha 2";
src: url("ChessAlpha2.woff") format("woff");
font-weight: normal;
font-style: normal;
}
/******************************************************************************
*** NONBOARD LANDMARKS ******************************** NONBOARD LANDMARKS ***
******************************************************************************/
#all {
border: 0px;
font-family: "Courier New";
font-size: 15px;
text-align: center;
cursor: default;
}
td.letter {
padding-bottom: 7px;
}
td.number {
text-align: right;
padding-right: 10px;
width: 30px;
}
#header {
vertical-align: middle;
height: 60px;
}
/******************************************************************************
*** BOARD LANDMARKS ************************************** BOARD LANDMARKS ***
******************************************************************************/
#board {
text-align: center;
border: black 1px solid;
font-family: "Chess Alpha 2";
font-size: 25px;
}
td.whiteSquare {
width: 40px;
height: 40px;
background-color: white;
}
td.blackSquare {
width: 40px;
height: 40px;
background-color: #cccccc;
}
td.moveGuideWhite {
background-color: #ffcccc;
}
td.moveGuideBlack {
background-color: #ff9999;
}
/******************************************************************************
*** OPTIONS PANEL ****************************************** OPTIONS PANEL ***
******************************************************************************/
#options {
width: 150px;
text-align: left;
}
#optHead {
font-size: 15px;
font-weight: normal;
}
#buttonOptions {
line-height: 170%;
text-align: right;
}
#undoButton, #restartButton {
font-family: "Courier New";
font-weight: bold;
background-color: #ffffe9;
border: 3px double #000000;
cursor: pointer;
}
#undoButton:hover, #restartButton:hover {
color: white;
background-color: #990000;
border-color: white
}
/******************************************************************************
*** RIGHT PANEL ********************************************** RIGHT PANEL ***
******************************************************************************/
#whoseMove {
text-align: left;
font-weight: bold;
padding-left: 15px;
}
#kingCheck {
text-align: left;
font-size: 13px;
font-weight: bold;
padding-left: 15px;
color: red;
}
#whiteInnerGraveyard, #blackOuterGraveyard {
height: 40px;
width: 142px;
font-family: "Chess Alpha 2";
font-size: 25px;
text-align: left;
padding-left: 15px;
}
#whiteOuterGraveyard, #blackInnerGraveyard {
height: 40px;
font-family: "Chess Alpha 2";
font-size: 25px;
text-align: left;
padding-left: 15px;
}
/******************************************************************************
*** NOTATION BOX ******************************************** NOTATION BOX ***
******************************************************************************/
#notationDiv {
text-align: left;
line-height: 150%;
height: 320px;
width: 220px;
overflow: auto;
}
td.notationNum {
vertical-align: middle;
font-weight: bold;
width: 40px;
height: 30px;
padding: 0px;
}
td.notationMove {
vertical-align: middle;
width: 80px;
padding-left: 5px;
}
a.notary:hover {
background-color: #990000;
color: white;
cursor: pointer;
}
/******************************************************************************
*** COMMENTARY ********************************************** COMMENTARY *****
******************************************************************************/
#commentary {
width: 320px;
text-align: left;
padding-top: 15px;
}
#comHead {
font-size: 20px;
font-weight: bold;
}