1
Fork 0

Move the stylesheet of chess board into directory 'assets'.

master
vonavi 2014-07-01 17:15:13 +03:00
parent 1f5c78eaec
commit f3da846578
4 changed files with 18 additions and 16 deletions

View File

@ -1 +0,0 @@
//= require less/pgn4web

View File

@ -13,9 +13,6 @@
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
<!-- Custom styles for this template -->
{% stylesheet theme %}
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>

View File

@ -2,6 +2,8 @@
layout: default
---
<link rel="stylesheet" href="/assets/css/pgn4web.css">
<div class="col-xs-12 col-sm-10 col-sm-offset-1">
<h1>{{ page.title }}</h1>
{{ content }}

View File

@ -1,3 +1,7 @@
---
---
/* Enable the scrolling of chess board up to the page top */
body, html { height: 100%; }
@ -7,22 +11,22 @@ body, html { height: 100%; }
/* Chess board */
@squareSize: 56px;
@boardBorderWidth: 4px;
@boardSize: 8 * @squareSize + 2 * @boardBorderWidth;
$squareSize: 56px;
$boardBorderWidth: 4px;
$boardSize: 8 * $squareSize + 2 * $boardBorderWidth;
.boardTable {
width: @boardSize;
height: @boardSize;
border: @boardBorderWidth solid #663300;
width: $boardSize;
height: $boardSize;
border: $boardBorderWidth solid #663300;
}
.whiteSquare, .blackSquare {
width: @squareSize;
height: @squareSize;
width: $squareSize;
height: $squareSize;
}
.pieceImage {
height: @squareSize;
width: @squareSize;
height: $squareSize;
width: $squareSize;
}
.whiteSquare, .highlightWhiteSquare {
background: #ffcc99;
@ -38,7 +42,7 @@ body, html { height: 100%; }
position: absolute;
top: 0;
bottom: 0;
left: @boardSize + 10px;
left: $boardSize + 10px;
right: 0;
display: block;
@ -47,7 +51,7 @@ body, html { height: 100%; }
.moveOn, .variationOn {
color: #fff;
background-color: #428bca;
a&:hover {
&:hover {
background-color: darken(#428bca, 10%);
}
}