I have a few selector classes eg
.rt-grid-6 { ... }
.largemargintop { ... }
.rt-left { ... }
I have to use them in couple of elements in my html
sample
<div class="rt-grid-6 largemargintop rt-left">
...
</div>
<div class="rt-grid-6 largemargintop rt-left">
...
</div>
...
so this is being repeated and difficult to manage, if I have to add or remove a class then I have to update all the occurrences
so I was thinking if the below mentioned css is possible in some way
.item
{
rt-grid-6; //refer to the mentioned class
largemargintop;
rt-left;
}
and I can use them as in the sample below
<div class="item">
...
</div>
<div class="item">
...
</div>
...
I can define a new .item class for the same with the values but the problem is I can not change the existing classes and at the same time I have to use the style define in the respective classes.
I can not use less as I can not redefine the style or have access to sources. I only receive a compiled css to use as is.
So is there any possible way by which I can achieve the desired?
solution may not be necessary in the way I mentioned, but I want to increase the maintenance so that it is easier to add or remove the classes to the desired elements from a single point.