jamiewilson / corpus

Yet another CSS toolkit. Basically the stuff I use for most projects.
http://jamiewilson.io/corpus
428 stars 43 forks source link

Semantic classes #5

Open mmjaeger opened 9 years ago

mmjaeger commented 9 years ago

Hello Nice framework - what I was wondering though is whether you're planning to add some mixins so it could be used in a more semantic way to use existing classes.

jamiewilson commented 9 years ago

Hey @mmjaeger Thanks for reaching out! Could you give me an example of what you mean?

mmjaeger commented 9 years ago

You might want to look into Bootstrap 4 - they introduces some nice mixins when it comes to grids - so for instance, if I have some given classes like .container and then e.g. .main and .sidebar you would do something like this:

.container { @include row; }

.main { @include grid-columns(8); }

.sidebar { @include grid-columns(4); }

Hope that make it clear.