|
1 | 1 |
|
2 | 2 | # css-whitespace
|
3 | 3 |
|
4 |
| - Whitespace significant CSS to regular CSS |
| 4 | + Whitespace significant CSS to regular CSS. |
5 | 5 |
|
6 |
| -## License |
| 6 | +## Example |
| 7 | + |
| 8 | +```css |
| 9 | + |
| 10 | +@charset "utf-8" |
| 11 | + |
| 12 | +@import "foo.css" |
| 13 | + |
| 14 | +body |
| 15 | + padding: 50px |
| 16 | + background: black |
| 17 | + colour: white |
| 18 | + |
| 19 | +button |
| 20 | + border-radius: 5px |
| 21 | + padding: 5px 10px |
7 | 22 |
|
8 |
| -(The MIT License) |
| 23 | +@media print |
| 24 | + body |
| 25 | + padding: 0 |
9 | 26 |
|
10 |
| -Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca> |
| 27 | + button |
| 28 | + border-radius: 0 |
| 29 | + width: 100% |
| 30 | +``` |
11 | 31 |
|
12 |
| -Permission is hereby granted, free of charge, to any person obtaining |
13 |
| -a copy of this software and associated documentation files (the |
14 |
| -'Software'), to deal in the Software without restriction, including |
15 |
| -without limitation the rights to use, copy, modify, merge, publish, |
16 |
| -distribute, sublicense, and/or sell copies of the Software, and to |
17 |
| -permit persons to whom the Software is furnished to do so, subject to |
18 |
| -the following conditions: |
| 32 | +yields: |
19 | 33 |
|
20 |
| -The above copyright notice and this permission notice shall be |
21 |
| -included in all copies or substantial portions of the Software. |
| 34 | +```css |
| 35 | +@charset "utf-8"; |
| 36 | + |
| 37 | +@import "foo.css"; |
| 38 | + |
| 39 | +body { |
| 40 | + padding: 50px; |
| 41 | + background: black; |
| 42 | + colour: white; |
| 43 | +} |
| 44 | + |
| 45 | +button { |
| 46 | + border-radius: 5px; |
| 47 | + padding: 5px 10px; |
| 48 | +} |
| 49 | + |
| 50 | +@media print { |
| 51 | + body { |
| 52 | + padding: 0; |
| 53 | + } |
| 54 | + button { |
| 55 | + border-radius: 0; |
| 56 | + width: 100%; |
| 57 | + } |
| 58 | +} |
| 59 | +``` |
| 60 | + |
| 61 | +## License |
22 | 62 |
|
23 |
| -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
24 |
| -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
25 |
| -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
26 |
| -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
27 |
| -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
28 |
| -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
29 |
| -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 63 | + MIT |
0 commit comments