1

Collect SCSS files into a collection to suppress them from being added to Jekyll::Page.

This commit is contained in:
vonavi
2014-07-07 14:32:16 +03:00
parent 620be19a98
commit e3ad7c7d9b
4 changed files with 7 additions and 0 deletions

57
_scss/pgn4web.scss Normal file
View File

@@ -0,0 +1,57 @@
---
---
/* 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 */
#GameText {
position: absolute;
top: 0;
bottom: 0;
left: $boardSize + 10px;
right: 0;
display: block;
overflow-y: auto;
}
.moveOn, .variationOn {
color: #fff;
background-color: #428bca;
&:hover {
background-color: darken(#428bca, 10%);
}
}

40
_scss/table.custom.scss Normal file
View File

@@ -0,0 +1,40 @@
---
---
/* Tournament table */
table.tournament {
thead > tr > th, thead > tr > td,
tfoot > tr > th, tfoot > tr > td,
tbody > tr > th, tbody > tr > td {
padding: 0;
}
thead > tr > .score,
tbody > tr > .score,
tbody > tr > .diagonal {
min-width: 21px;
text-align: center;
}
tbody > tr > .diagonal {
background: black !important;
}
}
/* Tablesorter */
/* Fix background colors */
.tablesorter-blue {
tfoot {
.tablesorter-headerSortUp, .tablesorter-headerSortDown,
.tablesorter-headerAsc, .tablesorter-headerDesc {
background-color: #fff;
}
}
tbody {
> tr.even:hover > td { background-color: #fff; }
> tr.odd:hover > td { background-color: #ebf2fa; }
}
}

18
_scss/tour-info.scss Normal file
View File

@@ -0,0 +1,18 @@
---
---
/* Tour info */
.tour-info {
display: inline-block;
table {
width: 221px;
margin-left: 10px;
margin-right: 10px;
tbody > tr > td.result {
width: 33px;
text-align: center;
}
}
}