Comparing version 0.2.0 to 0.3.0
@@ -0,1 +1,5 @@ | ||
## 0.3.0 / 2016-12-09 | ||
- add docs | ||
## 0.2.0 / 2016-12-03 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "jss-global", | ||
"version": "0.2.0", | ||
"description": "", | ||
"version": "0.3.0", | ||
"description": "Global styles for JSS", | ||
"main": "lib/index.js", | ||
@@ -46,3 +46,3 @@ "scripts": { | ||
"peerDependencies": { | ||
"jss": "^5.5.6" | ||
"jss": "^6.0.0" | ||
}, | ||
@@ -60,3 +60,3 @@ "devDependencies": { | ||
"cross-env": "^3.0.0", | ||
"jss": "^5.5.6", | ||
"jss": "^6.0.0", | ||
"es5-shim": "^4.5.9", | ||
@@ -63,0 +63,0 @@ "eslint": "^3.6.0", |
@@ -1,12 +0,56 @@ | ||
![JSS logo](https://avatars1.githubusercontent.com/u/9503099?v=3&s=60) | ||
## Global Styles for JSS | ||
## Global styles | ||
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/cssinjs/lobby) | ||
If you want to write regular globally scoped CSS with JSS, this plugin is for you. Don't use it if you can avoid it. | ||
[JSS](https://github.com/cssinjs/jss) | ||
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/cssinjs/lobby) | ||
## Top level global declarations block | ||
```javascript | ||
const sheet = jss.createStyleSheet({ | ||
'@global': { | ||
body: { | ||
color: 'green' | ||
}, | ||
a: { | ||
textDecoration: 'underline' | ||
} | ||
} | ||
}) | ||
``` | ||
## Top level global prefix | ||
```javascript | ||
const sheet = jss.createStyleSheet({ | ||
'@global body': { | ||
color: 'green' | ||
} | ||
}) | ||
``` | ||
## Nested global declarations block | ||
```javascript | ||
const sheet = jss.createStyleSheet({ | ||
button: { | ||
float: 'left', | ||
'@global': { | ||
span: {color: 'red'} | ||
} | ||
} | ||
}) | ||
``` | ||
## Nested global prefix | ||
```javascript | ||
const sheet = jss.createStyleSheet({ | ||
button: { | ||
float: 'left', | ||
'@global span': {color: 'red'} | ||
} | ||
}) | ||
``` | ||
## Issues | ||
@@ -13,0 +57,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51740
70