Skip to content

👸 Princss aims to provide simple print styles to existing projects

License

Notifications You must be signed in to change notification settings

rnarian/princss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Princss

👸 Princss aims to provide simple print styles to existing projects. Elements such as header, footer, sidebars are simply removed so that only the relevant content is printed.

Usage:

Make sure to add media="screen" to your existing stylesheet. This prevents the screen styles from 'spilling' into the print styles.

Add the following line right below:

<link rel="stylesheet" href="path/to/print.css" media="print">

Either use the '.unprintable' class to hide elements from print layout, or hide the elements in your styles; e.g.:

@media print {
  .site-header,
  .main-nav,
  .footer-nav {
    display: none !important;
  }
}

About

👸 Princss aims to provide simple print styles to existing projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages