Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthurattwell/fbebc53e528382835d0baed14bdd91ab to your computer and use it in GitHub Desktop.
Save arthurattwell/fbebc53e528382835d0baed14bdd91ab to your computer and use it in GitHub Desktop.
CSS page setup for Lightning Source colour books
/* 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