vwall / compass-twitter-bootstrap

The twitter bootstrap ported to compass
722 stars 119 forks source link

Compass grid mixins in 2.0? #33

Closed woahdae closed 12 years ago

woahdae commented 12 years ago

I'm coming from a blueprint background, so maybe my impression of what a compass plugin should be is skewed, but I always thought the point of compass + grid was to do things like this (using bootstrap terminology):

#sidebar
  +span(4)
#content
  +offset(4)
  +span(8)

as opposed to hard-coding it in the HTML like this:

<div id="sidebar" class="span4"></div>
<div id="content" class="offset4 span8"></div>

If I wanted the latter, what advantage does compass provide over a plain scss/sass-based approach?

The previous version of this project had a +columns mixin I was using which I will probably just redefine, but am I crazy? Has the use case for compass changed, or is this an oversight?

woahdae commented 12 years ago

Nevermind, this is probably me not understanding newer sass; is @extend the preferred way to use the grid? ex:

#sidebar
  @extend .span4
#content
  @extend .offset4
  @extend .span8

Whether it's preferred or not, it works, so going with it :-)