-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
See: http://groups.google.com/group/dotless/browse_thread/thread/9d580e75248b3250
Hi,
SHORT VERSION:
Is the following doable:
.bla {
padding-@variable: 5px; //where @variable could be left, right, top, bottom.
}
INTRO:
I'm working on a website that supports both LTR and RTL. So far I made
two stylesheets, one for LTR and one for RTL. The RTL stylesheet
imports the LTR stylesheet and "overrides" those items that are RTL
specific. (padding-right vs padding-left etc).
float: right/left I manage by having a variable called @SIDE (and
@side-opposite) and setting it to the correct side in both stylesheets
(in RTL it is "right", and in LTR it is "left"). In my LTR stylesheet
I write : float : @SIDE
That was the intro....
QUESTION:
I would also like to eliminate the "overriding" issue, to keep my code
more DRY.
The ultimate thing would be if I could make the property variable:
.bla {
padding-@SIDE: 20px;
}
Can this be done?
Thanks a lot.
Gidon