Is there a more efficient way to declare and use these (very similar / duplicate) CSS classes:
div.rounded20
{
-webkit-border-radius:20px;
-moz-border-radius:20px;
}
div.rounded15
{
-webkit-border-radius:15px;
-moz-border-radius:15px;
}
Say maybe with something like:
div.rounded(@Y)
{
-webkit-border-radius:@Ypx;
-moz-border-radius:@Ypx;
}
And the actual use of the class
<div class="rounded(15)" ...>
Any suggestions are welcome, including using jquery or an alternative styling method ...
source
share