Closed sergeevabc closed 11 years ago
Will clean up the documentation in 1.1.4 which is slowly being put together given the fact that I am implementing the grid in stylus and sass (and having to learn them at the same time).
As for your questions;
Note you only need to declare a grid once and then it is always the .row(); mixin and then the .column(); mixin like this:
etc..
Using the semantic.gs example the folllowing may help.
<body>
<div class="WhateverYouWant">
<article>Main</article>
<article>Secondary</article>
</div>
</body>
body {
.grid(12); // make this a grid
.widths(12); // set its width to 12 columns wide
}
.WhateverYouWant {
.row(12); // make a row
}
article {
.column(6); //make all article elements 6 columns wide
}
Current documentation is very poor, unfortunately. And kindly provided examples are not eloquent enough.
That is to say semantic.gs illustrates how to style both in HTML and CSS:
Clear and simple, hooray!
However flawless-semantics confuses with inclusions
Instant questions with no obvious answers:
first-row
inside of it?intro
insidefirst-row
?.row(12);
insideintro
in HTML, but pixel.less declares.column(12);
for it?Common, it's not that basic!