0.0.4 • Published 8 years ago

jess-core v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

jess

JavaScript Extended Style Sheets

Purpose

JESS parses custom CSS properties and enables developers to write plugins to support them with JavaScript. JESS is ES6 ready and lightweight, and makes advanced event support easy within CSS.

Installation

npm install --save-dev jess-core

Example

By adding the following rules and loading the events plugin provided with JESS, you can reduce all other instances of a button class to 50% opacity whenever a button is hovered.

.button {
	--for-all-event: 'hover'; 		/* On hover */
	--for-all: '.button'; 			/* Style all buttons */
	--for-all-not: ':hover'; 		/* Except for the instance being hovered over */
	--for-all-effect-opacity: 0.5; 	/* Reduce opacity to 50% */
}

To see JESS in action, check out https://github.com/aewing/jess-example

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago