{"id":13397263,"url":"https://github.com/BafS/Gutenberg","last_synced_at":"2025-03-13T23:32:15.054Z","repository":{"id":37743102,"uuid":"44615084","full_name":"BafS/Gutenberg","owner":"BafS","description":"Modern framework to print the web correctly.                                               ","archived":false,"fork":false,"pushed_at":"2024-02-03T04:40:43.000Z","size":266,"stargazers_count":4823,"open_issues_count":7,"forks_count":142,"subscribers_count":74,"default_branch":"master","last_synced_at":"2024-10-29T15:04:32.193Z","etag":null,"topics":["css","css-framework","framework","print","print-framework","printer","printing","scss","scss-framework"],"latest_commit_sha":null,"homepage":"https://bafs.github.io/Gutenberg","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BafS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-10-20T15:16:35.000Z","updated_at":"2024-10-27T18:27:33.000Z","dependencies_parsed_at":"2024-03-23T12:44:56.677Z","dependency_job_id":"a1ed91ef-3a29-476b-9904-6e5a110a7b04","html_url":"https://github.com/BafS/Gutenberg","commit_stats":{"total_commits":66,"total_committers":12,"mean_commits":5.5,"dds":0.2272727272727273,"last_synced_commit":"cec4afe4bcdd9ee4789557a44d14fef0a8d890cb"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BafS%2FGutenberg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BafS%2FGutenberg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BafS%2FGutenberg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BafS%2FGutenberg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BafS","download_url":"https://codeload.github.com/BafS/Gutenberg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243500253,"owners_count":20300761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","css-framework","framework","print","print-framework","printer","printing","scss","scss-framework"],"created_at":"2024-07-30T18:01:14.018Z","updated_at":"2025-03-13T23:32:14.703Z","avatar_url":"https://github.com/BafS.png","language":"SCSS","readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg width=\"470\" alt=\"Gutenberg\" src=\"http://i.imgur.com/NlGJI3v.png\"\u003e\n\u003c/p\u003e\n\n\u003e Modern framework to print web pages correctly\n\n[![npm (scoped)](https://img.shields.io/npm/v/gutenberg-css.svg?style=flat-square)](https://www.npmjs.com/package/gutenberg-css)\n[![Build Status](https://travis-ci.org/BafS/Gutenberg.svg?branch=master)](https://travis-ci.org/BafS/Gutenberg)\n[![Maintainability](https://api.codeclimate.com/v1/badges/cd58cc2133d461631f7f/maintainability)](https://codeclimate.com/github/BafS/Gutenberg/maintainability)\n[![license](https://img.shields.io/npm/l/gutenberg-css.svg?style=flat-square)]()\n[![download](https://img.shields.io/npm/dm/gutenberg-css.svg?style=flat-square)]()\n\n# How to use\n\nSimply include the right stylesheet(s) in your html and load it only for a printer.\nGutenberg.css is the base stylesheet but there are themes available in the `themes` folder.\n\nExample with Gutenberg and \"old style\" theme :\n\n```html\n\u003clink rel=\"stylesheet\" href=\"dist/gutenberg.css\" media=\"print\"\u003e\n\u003clink rel=\"stylesheet\" href=\"dist/themes/oldstyle.css\" media=\"print\"\u003e \u003c!-- optional --\u003e\n```\n\n![comparison](https://i.imgur.com/tL5cHhn.png)\n\n\u003e Comparison between standard print (left) and Gutenberg (middle, Modern style and right, Old style)\n\n## npm\n\nGutenberg is available on npm\n\n```\nnpm install gutenberg-css\n```\n\n(or `yarn add gutenberg-css` for yarn users)\n\n## CDN\n\nYou can also use the unpkg service as a *CDN*.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/gutenberg-css@0.7\" media=\"print\"\u003e\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/gutenberg-css@0.7/dist/themes/oldstyle.min.css\" media=\"print\"\u003e\n```\n\n\n# What does the framework do ?\n\n### Hide elements\n\nTo hide elements to be printed you can simply add the class `no-print`.\n\n### Force break page\n\nGutenberg provides two ways to break a page, the class `break-before` will to break before and `break-after` to break after.\n\nExample:\n\n```html\n\u003c!-- The title will be on a new page --\u003e\n\u003ch1 class=\"break-before\"\u003eMy title\u003c/h1\u003e\n\n\u003cp class=\"break-after\"\u003eI will break after this paragraph\u003c/p\u003e\n\u003c!-- Break here, the next paragraph will be on a new page --\u003e\n\u003cp\u003eI am on a new page\u003c/p\u003e\n```\n\n### Avoid break inside\n\nTo avoid the page to break \"inside\" an element, you can use the `avoid-break-inside` class.\n\nExample:\n\n```html\n\u003cdiv class=\"avoid-break-inside\"\u003e\n  \u003cimg src=\"gutenberg.png\" /\u003e\n\n  \u003cp\u003eI really don't want this part to be cut\u003c/p\u003e\n\u003c/div\u003e\n```\n\n### Not reformat links or acronym\n\nIf 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`.\n\n### Force to print background\n\nTo force backgrounds to be printed (can be useful when you \"print\" a pdf), add this CSS (compatible with Safari and Chrome):\n\n```css\n-webkit-print-color-adjust: exact;\n        print-color-adjust: exact;\n```\n\n## Dev\n\n - `npm i` to install the dependencies\n - `npm run watch` to \"watch\" the scss folder and compile to css\n - `npm run build` to compile gutenberg to css\n","funding_links":[],"categories":["CSS","SCSS","Print","framework","Specialized","Frameworks / Resources"],"sub_categories":["Markdown","G"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBafS%2FGutenberg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBafS%2FGutenberg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBafS%2FGutenberg/lists"}