https://github.com/valango/print-styling-example
https://github.com/valango/print-styling-example
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/valango/print-styling-example
- Owner: valango
- Created: 2022-05-30T11:54:47.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-31T11:29:00.000Z (about 4 years ago)
- Last Synced: 2025-07-25T16:12:54.926Z (11 months ago)
- Language: Svelte
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# print-styling-example
How to create selectively applied print styles.
## Usage
```shell
npm install
npm run dev
```
Open `http://localhost:8080/` on browser. Push PRINT PAGE for different pages (there are two) and watch for differences.
So far, I did not find a way to apply the `@page` rule selectively, though.
## Disclaimer
I am huge fan of svelte ant vite. Try to replace either or both of those in this project and see the results. ;)
Creating this project was super-quick:
```
npm create --y vite@latest print-styling-example
cd print-styling-example
```