source: trip-planner-front/node_modules/postcss-page-break/README.md@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.3 KB
Line 
1# postcss-page-break [![Build Status][ci-img]][ci]
2
3[PostCSS] plugin to fallback `break-` properties with `page-break-` alias.
4
5[PostCSS]: https://github.com/postcss/postcss
6[ci-img]: https://travis-ci.org/shrpne/postcss-page-break.svg
7[ci]: https://travis-ci.org/shrpne/postcss-page-break
8
9```css
10/* before */
11.foo {
12 break-inside: avoid;
13 break-after: page;
14}
15
16/* after */
17.foo {
18 page-break-inside: avoid;
19 break-inside: avoid;
20 page-break-after: always;
21 break-after: page;
22}
23```
24
25Available fallbacks:
26```
27break-inside: auto => page-break-inside: auto
28break-inside: avoid => page-break-inside: avoid
29break-inside: avoid-page => page-break-inside: avoid
30break-inside: inherit => page-break-inside: inherit
31break-inside: initial => page-break-inside: initial
32break-inside: unset => page-break-inside: unset
33
34break-before: auto => page-break-before: auto;
35break-before: avoid => page-break-before: avoid;
36break-before: avoid-page => page-break-before: avoid;
37break-before: page => page-break-before: always;
38break-before: always => page-break-before: always;
39break-before: left => page-break-before: left;
40break-before: right => page-break-before: right;
41break-before: recto => page-break-before: recto;
42break-before: verso => page-break-before: verso;
43break-before: inherit => page-break-before: inherit;
44break-before: initial => page-break-before: initial;
45break-before: unset => page-break-before: unset;
46
47break-after: auto => page-break-after: auto;
48break-after: avoid => page-break-after: avoid;
49break-after: avoid-page => page-break-after: avoid;
50break-after: page => page-break-after: always;
51break-after: always => page-break-after: always;
52break-after: left => page-break-after: left;
53break-after: right => page-break-after: right;
54break-after: recto => page-break-after: recto;
55break-after: verso => page-break-after: verso;
56break-after: inherit => page-break-after: inherit;
57break-after: initial => page-break-after: initial;
58break-after: unset => page-break-after: unset;
59```
60
61
62## Usage
63
64```js
65postcss([ require('postcss-page-break') ])
66```
67
68See [PostCSS] docs for examples for your environment (webpack, gulp, grunt).
Note: See TracBrowser for help on using the repository browser.