Socket
Socket
Sign inDemoInstall

jss-global

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-global - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

4

changelog.md

@@ -0,1 +1,5 @@

## 0.3.0 / 2016-12-09
- add docs
## 0.2.0 / 2016-12-03

@@ -2,0 +6,0 @@

8

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc