Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.markdown → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ Download and include `jss.js` (or the minified file) in your HTML:

<script type="text/javascript" src="jss.js"></script>

If your project uses Bower for package management you can run the following command instead:
If your project uses Bower for package management you can run the following command:

bower install jss

If your project uses Browserify for package management you can run the following command:

npm install jss-browserify

**jss.set(selector, properties)** to add a new rule or extend an existing rule:

Expand Down Expand Up @@ -63,4 +67,4 @@ If your project uses Bower for package management you can run the following comm
**jss.remove([selector])** to remove rules added via JSS:

jss.remove('.demo'); // removes all JSS styles matching the selector
jss.remove(); // removes all JSS styles
jss.remove(); // removes all JSS styles
23 changes: 22 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
{
"name": "jss",
"version": "0.6.0",
"description": "A simple JavaScript library for retrieving and setting CSS stylesheet rules.",
"main": "jss.js",
"repository": {
"type": "git",
"url": "https://github.com/Box9/jss"
},
"keywords": [
"css",
"jss",
"style",
"sheet",
"stylesheet",
"rules"
],
"author": {
"name": "David Tang",
"web": "https://github.com/Box9"
},
"bugs": {
"url": "https://github.com/Box9/jss/issues"
},
"devDependencies": {
"gulp": "~3.5.6",
"gulp-uglify": "~0.2.1",
"gulp-rename": "~1.2.0"
}
}
}