Add support for CSS Server-side Constants

Talk about new features for CMSMS and modules.
Post Reply
kwurzel

Add support for CSS Server-side Constants

Post 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?
Last edited by kwurzel on Sun Jun 17, 2007 6:11 pm, edited 1 time in total.
Post Reply

Return to “Feature ideas”