Skip to content

Commit

Permalink
Set default page size in options instead of hard-code in CSS
Browse files Browse the repository at this point in the history
see #10
  • Loading branch information
bertfrees committed Apr 14, 2016
1 parent aa0a7bf commit 807a4f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/main/resources/css/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
* A page contains 28 columns by 28 rows of braille (configurable with
* options, defaults in script). */

// FIXME: move defaults from CSS to script
@page {
size: 28 28;
}

@page frontmatter:right {
margin-bottom: 1;
@bottom-center {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/xml/dtbook-to-pef.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
<p:option name="include-preview"/>
<p:option name="include-brf"/>

<p:option name="page-width"/>
<p:option name="page-height"/>
<p:option name="page-width" select="'28'"/>
<p:option name="page-height" select="'28'"/>
<p:option name="left-margin"/>
<p:option name="duplex"/>
<p:option name="levels-in-footer"/>
Expand Down

0 comments on commit 807a4f3

Please sign in to comment.