73 lines
1.4 KiB
Plaintext
73 lines
1.4 KiB
Plaintext
/* Enable the scrolling of chess board up to the page top */
|
|
|
|
body, html { height: 100%; }
|
|
#GameWrapper { min-height: 100%; }
|
|
#GameBoardWrapper { position: relative; }
|
|
|
|
|
|
/* Chess board */
|
|
|
|
@squareSize: 56px;
|
|
@boardBorderWidth: 4px;
|
|
@boardSize: 8 * @squareSize + 2 * @boardBorderWidth;
|
|
|
|
.boardTable {
|
|
width: @boardSize;
|
|
height: @boardSize;
|
|
border: @boardBorderWidth solid #663300;
|
|
}
|
|
.whiteSquare, .blackSquare {
|
|
width: @squareSize;
|
|
height: @squareSize;
|
|
}
|
|
.pieceImage {
|
|
height: @squareSize;
|
|
width: @squareSize;
|
|
}
|
|
.whiteSquare, .highlightWhiteSquare {
|
|
background: #ffcc99;
|
|
}
|
|
.blackSquare, .highlightBlackSquare {
|
|
background: #cc9966;
|
|
}
|
|
|
|
|
|
/* PGN notation of chess game */
|
|
|
|
@tableBorder: 1px solid #ddd;
|
|
|
|
#GameTextWrapper {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: @boardSize + 10px;
|
|
|
|
display: block;
|
|
width: 180px;
|
|
overflow-y: auto;
|
|
}
|
|
#GameText {
|
|
display: table;
|
|
border-left: @tableBorder;
|
|
#ShowPgnText > :nth-child(-n+4) { border-top: @tableBorder; }
|
|
.move {
|
|
display: table-cell;
|
|
float: left;
|
|
border-bottom: @tableBorder;
|
|
border-right: @tableBorder;
|
|
text-align: center;
|
|
}
|
|
span.move { width: 40px; }
|
|
a.move { width: 50px; }
|
|
.variation { float: left; }
|
|
}
|
|
.moveOn, .variationOn { background-color: #ccc; }
|
|
|
|
|
|
/* Comment of a chess-game move */
|
|
|
|
#GameMoveComment .comment:not(:first-child):before {
|
|
content: '\a';
|
|
white-space: pre;
|
|
}
|