CSS Inheritance, Aliases, and Other Interesting Things

The other day, I accidentally browsed web pages, and I found a program that allows you to write CSS aliases and other interesting things (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 elsewhere as somekind alias

 greenfont { color: green; } 

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

Has anyone used this? Or did I dream it? I can not find it now: P

+4
source share
2 answers

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

+4
source

Among other similar projects is also http://axr.vg/ for a hierarchical style.

0
source

Source: https://habr.com/ru/post/1308102/


All Articles