Releases: spreeuwers/xcss
Releases · spreeuwers/xcss
0.1
xcss 0.1
XCSS is an unconventional new framework. Actually it is not a framework at all.
It is a library that lets you create an app with allowed but imaginative CSS syntax that is not interpreted
natively by any browser. This make it possible to define an interactive CSS layout that simplifies app building.
By adding events to elements that change the location hash an defining style rules that
act on these changes a very transparent mechanism for app interactivity is implemented.
A very simple powerful page loading mechanism via the content attribute completes this
framework.
Features:
- It makes extending css classes possible without compiling with less or sass.
- It can apply classes to html elements
- It loads templates via the content property
- it can define styles rules that listen to the location to change styles on a location hash state
- it can define style rules that create events for elements. These events change the location hash
- the hash state can be with parameters
##Examples
Extending a class can be done like the example below:
.mysuperclass {
background-color:white;
color:blue
}
.mysubclass EXTENDS .mysuperclass {
border : 2px solid black;
}