Does someone know CSS Server-side Constants by Shaun Inman? It is a php powered script allowing support for constants in css files.
Is there a possibilty to see it included in CMSMS 2.0? I'd really like to see it in there (maybe using smarty-markup?) since it would give designers and developers an easy way to use constant colour values in their css. And "easy" (or simple) is what CMSMS is about, isn't it?http://www.shauninman.com/archive/2005/08/05/css_variables wrote: [CSS-SSC] hijacks the syntax of at-rules to isolate variable definitions. Variable names and their values are defined like any other CSS property. The goal was to make this as easy-to-use and native-looking as possible:
This is how variables are embeded in the CSS:Code: Select all
@server variables { variableName: variableValue; }
Take a sample (simple) CSS file:Code: Select all
selector { property: variableName; }
With CSS-SSV the browser would receive the following:Code: Select all
@server variables { primaryLinkColor: #AB6666; } a { color: primaryLinkColor; }
Code: Select all
a { color: #AB6666; }
Greetings from Germany by kwurzel!
//Edit: The link was wrong... No it should work

No opinions on this subject?