printed

0.18.4 • Public • Published

Printed

Downloads Version Gzip Size

A Print Friendly CSS Library.

Table of contents

Features

  • Complete HTML5 Element Support
  • Text-Only Mode: html[data-theme=print-min]
  • Advanced Url Pseudo & MIME Support
  • Add Page Break After Title Cover (.cover)
  • Hide Or Show Content (.hide) & (.show)
  • Ten Built-In CSS3 Image Filter Properties:
    • (.blur), (.brightness), (.contrast)
    • (.invert), (.monochrome), (.saturate), (.sepia)
    • (.hue-90), (.hue-180), (.hue-270)
  • Print Single, Full-Page Or Image Gallery:
    • html[data-img=value] + .value
    • (full-page), (gallery), (individual)
  • Set Page Break Structure (.page-break)
  • Dark Paper Mode: html[data-paper=dark]
  • Exact Color Match: html[data-color=exact]
  • Paper Size Sectioning:
    • html[data-paper=value] .paper-size
    • ledger, legal, letter
    • A3, A4, A5, B4, B5, JIS-B4, JIS-B5
  • Landscape Columns:
    • html[data-col=value] .column
    • two, three, four

Files

/
├── printed.css
├── printed.min.css   (compressed)

Installation

npm install printed

In browser:

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

Browser support

  • Chrome / Edge (latest)
  • Firefox (latest)
  • Safari (latest)

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Alexander Dawson

back to top

Package Sidebar

Install

npm i printed

Weekly Downloads

22

Version

0.18.4

License

MIT

Unpacked Size

27.9 kB

Total Files

4

Last publish

Collaborators

  • alexdawson