Page 1 of 1

Add support for CSS Server-side Constants

Posted: Fri May 25, 2007 8:20 am
by kwurzel
Hey at all!

Does someone know CSS Server-side Constants by Shaun Inman? It is a php powered script allowing support for constants in css files.
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:

Code: Select all

@server variables {
    variableName: variableValue;
    }
This is how variables are embeded in the CSS:

Code: Select all

selector {
    property: variableName;
    }
Take a sample (simple) CSS file:

Code: Select all

@server variables {
    primaryLinkColor: #AB6666;
    }

a {
    color: primaryLinkColor;
    }
With CSS-SSV the browser would receive the following:

Code: Select all

a {
    color: #AB6666;
    }
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?

Greetings from Germany by kwurzel!

//Edit: The link was wrong... No it should work ::)
No opinions on this subject?