Overview
JSS (Javascript Style Sheets) is an enhancement to CSS (Cascading Style Sheets) that adds support for multiple inheritance of tag styles, class styles and tag id styles. This functionality addes the ability to modify styles as well as cascading from style islands/blocks or externally linked css files.
 
Examples

Tag id inheritance example:
/* Assume within CSS file or island/block */ #baseTagID{
font-size: 20;
font-family: Tahoma;
}

#inheritingTagID{
inherit-tag: baseTagID;
/* this now inherits the font-size and font-family */ color: blue;
}

Class inheritance example:
/* Assume within CSS file or island/block */ .baseClass{
color: red;
text-decoration: underline;
}

.inheritingClass{
inherit-class: baseClass;
/* this now inherits the color and text-decoration. */ font-size: 10;
}

Tag inheritance example:
/* Assume within CSS file or island/block */ P{
color: black;
font-size: 10;
}

B{
inherit-tag: P;
/* this now inherits the color and font-size. */ font-family: Arial;
}

Multiple inheritance example:
/* Assume within CSS file or island/block */ .normalText{
font-family: tahoma;
font-size: 10;
}

.borderedText{
border: solid 1px black;
}

P{
inherit-class: normalText;
inerhit-class: borderedText;
/* this now inherits font-family, font-size and border. */ }
 
Download
Download the latest version at http://sourceforge.net/projects/glm-jss/
 
 
Author
JSS (Javascript Style Sheets) was developed by Jason Graves (GodLikeMouse) http://www.godlikemouse.com as is free to use under the GNU General Public License (GPL). See the README file for more details.
 
SourceForge.net Logo