Skip to content

Commit 0e1eaa3

Browse files
committed
first version
0 parents  commit 0e1eaa3

File tree

8 files changed

+1856
-0
lines changed

8 files changed

+1856
-0
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "eslint-config-jss"
3+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
node_modules/

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.1.0 / 2017-08-07
2+
3+
- First release

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017-present Oleg Slobodskoi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## reset-jss
2+
3+
[JSS](https://github.com/cssinjs/jss) port of [reset.css](http://meyerweb.com/eric/tools/css/reset/).
4+
5+
#### Usage
6+
7+
```js
8+
import jss from 'jss'
9+
import reset from 'reset-jss'
10+
11+
jss.createStyleSheet(reset).attach()
12+
```
13+
14+
#### You must know
15+
16+
Required JSS plugins for correct working:
17+
2. [jss-camel-case](https://github.com/cssinjs/jss-camel-case)
18+
3. [jss-global](https://github.com/cssinjs/jss-global)
19+
20+
Anyway, you can use a [preset](https://github.com/cssinjs/jss-preset-default) for a quick setup with default plugins.
21+
22+
### Issues
23+
24+
File a bug against [cssinjs/jss prefixed with \[reset-jss\]](https://github.com/cssinjs/jss/issues/new?title=[reset-jss]%20).
25+
26+
### License
27+
28+
MIT

index.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* JSS port of http://meyerweb.com/eric/tools/css/reset/
3+
*/
4+
5+
module.exports = {
6+
'@global': {
7+
'html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video': {
8+
margin: '0',
9+
padding: '0',
10+
border: '0',
11+
fontSize: '100%',
12+
font: 'inherit',
13+
verticalAlign: 'baseline'
14+
},
15+
'article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section': {
16+
display: 'block'
17+
},
18+
body: {
19+
lineHeight: 1
20+
},
21+
'ol, ul': {
22+
listStyle: 'none'
23+
},
24+
'blockquote, q': {
25+
quotes: 'none'
26+
},
27+
'blockquote:before, blockquote:after, q:before, q:after': {
28+
content: 'none'
29+
},
30+
table: {
31+
borderCollapse: 'collapse',
32+
borderSpacing: 0
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)