Last active
March 3, 2018 08:42
-
-
Save arthurattwell/fbebc53e528382835d0baed14bdd91ab to your computer and use it in GitHub Desktop.
CSS page setup for Lightning Source colour books
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Page setup for Lightning Source colour pages | |
* -------------------------------------------- | |
* | |
* Removes bleed on inside edges | |
* Adjusts trim accordingly | |
* Removes crop marks as required by LS | |
* Uses the @left and @right margin boxes to obscure elements (e.g. full-bleed images) | |
* that otherwise bleed into the margin area. | |
* YMMV | |
* | |
* To use this in an Electric Book project: | |
* 1. Save this file to _sass/partials as _print-lightning-source.scss | |
* 2. Add this to the end of your book's print-pdf.scss file: | |
* @import 'partials/print-lightning-source'; | |
*/ | |
@page:left { | |
prince-bleed: 3mm 0 3mm 3mm !important; | |
prince-trim: 0 3mm 0 0 !important; | |
marks: none !important; | |
@right { | |
background-color: white; | |
content: " "; | |
} | |
} | |
@page:right { | |
prince-bleed: 3mm 3mm 3mm 0 !important; | |
prince-trim: 0 0 0 3mm !important; | |
marks: none !important; | |
@left { | |
background-color: white; | |
content: " "; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment