Skip to content

Commit 48a5d60

Browse files
committed
docs
1 parent d3c712e commit 48a5d60

File tree

2 files changed

+54
-24
lines changed

2 files changed

+54
-24
lines changed

Readme.md

+54-20
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,63 @@
11

22
# css-whitespace
33

4-
Whitespace significant CSS to regular CSS
4+
Whitespace significant CSS to regular CSS.
55

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
722

8-
(The MIT License)
23+
@media print
24+
body
25+
padding: 0
926

10-
Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
27+
button
28+
border-radius: 0
29+
width: 100%
30+
```
1131

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:
1933

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
2262

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

examples/example.css

-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ button
1616
body
1717
padding: 0
1818

19-
20-
2119
button
2220
border-radius: 0
23-
24-
2521
width: 100%

0 commit comments

Comments
 (0)