Hi,

Variables is a highly missed feature in CSS and its presence in CleverCSS is
very nice. Often enough, however you would like to put a whole block of css
properties into one variable and replicate it like:

padding_and_margins =
    padding: 10px;
    margin: 10px;

.special:
    $padding_and_margins;
    color: red;

.another_one:
    $padding_and_margins;
    border: 1px solid black;

To be translated into:

.special {
    padding: 10px;
    margin: 10px;
    color: red;
}

.another_one {
    padding: 10px;
    margin: 10px;
    border: 1px solid black;
}

I know that this is not a very CSS way of doing things. A CSS way of doing
things would be to write:

.special, .another_one:
    padding: 10px;
    margin: 10px;

.special:
    color: red;

.another_one:
    border: 1px solid black;

This will render the following CSS, which results in an equivalent
representation:

.special, .another_one {
    padding: 10px;
    margin: 10px;
}

.special {
    color: red;
}

.another_one {
    border: 1px solid black;
}

I feel, however, that doing it the CSS way makes your presentation
definition for a single element be spread all over the place and it is often
very hard to track down all things that define that presentation...

I would like to hear your ideas on the subject.

Regards,
Artem

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to