From 8219c0d03a05369c31a8075993a0462292c0c8f9 Mon Sep 17 00:00:00 2001 From: vonavi Date: Mon, 7 Jul 2014 16:58:18 +0300 Subject: [PATCH] Add a button for downloading PGN. --- _layouts/game.html | 6 ++++++ _scss/pgn4web.scss | 13 ++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/_layouts/game.html b/_layouts/game.html index c9892fd..bc54158 100644 --- a/_layouts/game.html +++ b/_layouts/game.html @@ -22,6 +22,12 @@ layout: default
+ +
+ + + +
diff --git a/_scss/pgn4web.scss b/_scss/pgn4web.scss index 32656db..1bb8703 100644 --- a/_scss/pgn4web.scss +++ b/_scss/pgn4web.scss @@ -38,16 +38,23 @@ $boardSize: 8 * $squareSize + 2 * $boardBorderWidth; /* Game text */ -#GameText { +#GameText, #downloadPGN { position: absolute; - top: 0; - bottom: 0; left: $boardSize + 10px; right: 0; +} +#GameText { + top: 0; + bottom: 44px; display: block; overflow-y: auto; } +#downloadPGN { + bottom: 0; + text-align: center; +} + .moveOn, .variationOn { color: #fff; background-color: #428bca;