{"id":21833124,"url":"https://github.com/null-none/css-print-framework","last_synced_at":"2025-03-21T13:45:18.418Z","repository":{"id":146602208,"uuid":"375295282","full_name":"null-none/css-print-framework","owner":"null-none","description":"Simply include the right stylesheet(s) in your html and load it only for a printer.","archived":false,"fork":false,"pushed_at":"2021-06-09T09:16:36.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T09:28:39.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","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/null-none.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,"publiccode":null,"codemeta":null}},"created_at":"2021-06-09T09:15:06.000Z","updated_at":"2021-06-28T07:18:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"19721189-358e-4c7d-bd7d-0e23af2708aa","html_url":"https://github.com/null-none/css-print-framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fcss-print-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fcss-print-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fcss-print-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fcss-print-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/null-none","download_url":"https://codeload.github.com/null-none/css-print-framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244807436,"owners_count":20513641,"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":[],"created_at":"2024-11-27T19:28:15.026Z","updated_at":"2025-03-21T13:45:18.411Z","avatar_url":"https://github.com/null-none.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Css Print Framework\n\nSimply include the right stylesheet(s) in your html and load it only for a printer.\n\n```bash\n$ npm install css-print-framework\n```\n\n## Basic Usage\n\nLoad css into `\u003chead\u003e` like this:\n\n```html\n\u003c!-- Load print.css for happy printing --\u003e\n\u003clink rel=\"stylesheet\" href=\"print.css\"\u003e\n\n\u003c!-- Set page size here: A5, A4 or A3 --\u003e\n\u003c!-- Set also \"landscape\" if you need --\u003e\n\u003cstyle\u003e@page { size: A5 }\u003c/style\u003e\n```\n\nSet the class of `\u003cbody\u003e` and also set \"sheet\" for each sheet.\n\n```html\n\u003c!-- Set \"A5\", \"A4\" or \"A3\" for class name --\u003e\n\u003c!-- Set also \"landscape\" if you need --\u003e\n\u003cbody class=\"A5\"\u003e\n\n  \u003c!-- Each sheet element should have the class \"sheet\" --\u003e\n  \u003c!-- \"padding-**mm\" is optional: you can set 10, 15, 20 or 25 --\u003e\n  \u003csection class=\"sheet padding-10mm\"\u003e\n\n    \u003c!-- Write HTML just like a web page --\u003e\n    \u003carticle\u003eThis is an A5 document.\u003c/article\u003e\n\n  \u003c/section\u003e\n\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  \u003c!-- Avoid break inside --\u003e\n  \u003cdiv class=\"avoid-break-inside\"\u003e\n    \u003cimg src=\"image.png\" /\u003e\n    \u003cp\u003eI really don't want this part to be cut\u003c/p\u003e\n  \u003c/div\u003e\n\n\u003c/body\u003e\n```\n\nAll available page sizes is listed below:\n\n- A5, A5 landscape\n- A4, A4 landscape\n- A3, A3 landscape\n- letter, letter landscape\n- legal, legal landscape\n\n### Comparisons\n\ntype | expression | learning cost | editable | in-browser | multipage\n:-- | :-- | :-- | :-- | :-- | :--\nHTML | Enough | already known | No | OK | ~100 pages \\*\nSVG | Enough | not so difficult | No | OK |\nPDF | Perfect | difficult | No | NG | no limit \\*\\*\nExcel | Not cool | *sigh* | Yes | NG | uncontrollable\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fcss-print-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnull-none%2Fcss-print-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fcss-print-framework/lists"}