1
lorchess.ru/_scss/pgn4web.scss

65 lines
1.0 KiB
SCSS
Raw Normal View History

---
---
/* 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;
}
/* Game text */
2014-07-07 17:58:18 +04:00
#GameText, #downloadPGN {
2014-04-12 17:21:01 +04:00
position: absolute;
left: $boardSize + 10px;
right: 0;
2014-07-07 17:58:18 +04:00
}
#GameText {
top: 0;
bottom: 44px;
2014-04-12 17:21:01 +04:00
display: block;
overflow-y: auto;
}
2014-07-07 17:58:18 +04:00
#downloadPGN {
bottom: 0;
text-align: center;
}
.moveOn, .variationOn {
color: #fff;
2014-07-01 15:00:51 +04:00
background-color: #428bca;
&:hover {
2014-07-01 15:00:51 +04:00
background-color: darken(#428bca, 10%);
}
}