Skip to content

Nogas/Gutenberg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gutenberg

Modern framework to print correctly

How to use

Simply include the right stylesheet(s) in your html. Gutenberg.css is the base stylesheet but there is themes available in the themes folder.

Example with Gutenberg and "old style" theme :

<link rel="stylesheet" href="dist/gutenberg.css" media="print" charset="utf-8">
<link rel="stylesheet" href="dist/themes/oldstyle.css" media="print" charset="utf-8">

comparison

Comparison between standard print (left) and Gutenberg (middle, Modern style and right, Old style)

Force to print background

To force backgrounds to be printed (can be useful when you "print" a pdf), add this CSS (compatible with Safari and Chrome) :

-webkit-print-color-adjust: exact;
        print-color-adjust: exact;

Hide elements

To hide elements to be printed you can simply add the class no-print.

Force break page

Gutenberg provide to way break page, the class page-break will for to break before and page-break-after to break after.

Example:

<!-- The title will be on a new page -->
<h1 class="page-break">My title</h1>

Dev

  1. npm install to install dependencies
  2. gulp watch to "watch" the scss folder and compile to css

About

Modern framework to print correctly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 68.0%
  • HTML 30.6%
  • JavaScript 1.4%