开发者

CSS inheritance, aliases and other cool stuff

开发者 https://www.devze.com 2022-12-28 12:03 出处:网络
The other day I was ra开发者_JAVA技巧ndomly browsing the web and I found some program that lets you write CSS aliases and other cool stuff (which I can\'t remember right now).

The other day I was ra开发者_JAVA技巧ndomly browsing the web and I found some program that lets you write CSS aliases and other cool stuff (which I can't remember right now).

As an example, I remember you can do something like this:

.myclass
{
   background-color: red;
   greenfont
}

where greenfont was defined somewhere else as somekind of alias

greenfont { color: green; }

Then the program will generate the resulting CSS based on the alias and other stuff.

Does anyone has used this? Or did I dreamed about it? I cannot find it now :P


Sorry to reply to such an old thread but another one to check out would be LESS http://lesscss.org


Among other similiar projects, there's also http://axr.vg/ for hierarchic styling.

0

精彩评论

暂无评论...
验证码 换一张
取 消