All Projects → BafS → Gutenberg

BafS / Gutenberg

Licence: mit
Modern framework to print the web correctly.

Programming Languages

SCSS
7915 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gutenberg

Printooth
A well documented, high-level Android interface that makes printing via bluetooth printers easier
Stars: ✭ 231 (-94.78%)
Mutual labels:  printer, print, printing
Primitive
⛏️ ‎ A front-end design toolkit for developing web apps.
Stars: ✭ 783 (-82.31%)
Mutual labels:  framework, css-framework, scss
Bojler
Bojler is an email framework
Stars: ✭ 885 (-80%)
Mutual labels:  framework, css-framework, scss
Codeprinter
🖨️ Print out code easily
Stars: ✭ 233 (-94.73%)
Mutual labels:  printer, print, printing
Buttercake
Material Design Components, Responsive and Modern CSS Framework Built with Flexbox 🍰
Stars: ✭ 178 (-95.98%)
Mutual labels:  framework, css-framework, scss
iOS-AirPrint-for-Mac
enable iOS Airprint Sharing on Mac OS
Stars: ✭ 24 (-99.46%)
Mutual labels:  printing, print
chrome-raw-print
Chrome app to enable raw printing from a browser
Stars: ✭ 57 (-98.71%)
Mutual labels:  printer, printing
ipp.rs
IPP protocol implementation for Rust
Stars: ✭ 24 (-99.46%)
Mutual labels:  printing, print
printer
A fancy logger yet lightweight, and configurable. 🖨
Stars: ✭ 65 (-98.53%)
Mutual labels:  printer, print
nativescript-printer
📠 Send an image or the screen contents to a physical printer
Stars: ✭ 33 (-99.25%)
Mutual labels:  printer, print
Katana
Katana is CSS Layout System made with Flexbox
Stars: ✭ 57 (-98.71%)
Mutual labels:  css-framework, scss-framework
bootstrap-print
To manage print media for Twitter Bootstrap v3.
Stars: ✭ 60 (-98.64%)
Mutual labels:  printer, printing
Fluid
Modern, Stylish, Easier and Powerful Css framework for faster and hassle free web development
Stars: ✭ 24 (-99.46%)
Mutual labels:  css-framework, scss-framework
ngx-print
🖨️ A plug n' play Angular (2++) library to print your stuff
Stars: ✭ 124 (-97.2%)
Mutual labels:  printing, print
Front End Web Development Resources
This repository contains content which will be helpful in your journey as a front-end Web Developer
Stars: ✭ 3,452 (-21.99%)
Mutual labels:  framework, css-framework
react-native-star-prnt
React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
Stars: ✭ 61 (-98.62%)
Mutual labels:  printer, print
Bulma Helpers
Library with missing Functional / Atomic CSS classes for Bulma framework
Stars: ✭ 263 (-94.06%)
Mutual labels:  css-framework, scss
Mini.css
A minimal, responsive, style-agnostic CSS framework!
Stars: ✭ 2,938 (-33.6%)
Mutual labels:  framework, css-framework
Teutonic Css
A modern CSS framework — versatile, well documented.
Stars: ✭ 308 (-93.04%)
Mutual labels:  css-framework, scss
Prettier
Prettier is an opinionated code formatter.
Stars: ✭ 41,411 (+835.84%)
Mutual labels:  printer, scss

Gutenberg

Modern framework to print web pages correctly

npm (scoped) Build Status Maintainability license download

How to use

Simply include the right stylesheet(s) in your html and load it only for a printer. Gutenberg.css is the base stylesheet but there are themes available in the themes folder.

Example with Gutenberg and "old style" theme :

<link rel="stylesheet" href="dist/gutenberg.css" media="print">
<link rel="stylesheet" href="dist/themes/oldstyle.css" media="print"> <!-- optional -->

comparison

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

npm

Gutenberg is available on npm

npm install gutenberg-css

(or yarn add gutenberg-css for yarn users)

CDN

You can also use the unpkg service as a CDN.

<link rel="stylesheet" href="https://unpkg.com/[email protected]" media="print">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/themes/oldstyle.min.css" media="print">

What does the framework do ?

Hide elements

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

Force break page

Gutenberg provides two ways to break a page, the class break-before will to break before and break-after to break after.

Example:

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

<p class="break-after">I will break after this paragraph</p>
<!-- Break here, the next paragraph will be on a new page -->
<p>I am on a new page</p>

Avoid break inside

To avoid the page to break "inside" an element, you can use the avoid-break-inside class.

Example:

<div class="avoid-break-inside">
  <img src="gutenberg.png" />

  <p>I really don't want this part to be cut</p>
</div>

Not reformat links or acronym

If you do not want to reformat the links, acronym or abbreviation to show the full url or title, you can use the class no-reformat.

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;

Dev

  • npm i to install the dependencies
  • npm run watch to "watch" the scss folder and compile to css
  • npm run build to compile gutenberg to css
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].