I’m using Thomas Macdonald’s sass version of bootstrap (bootstrap-sass)
I’m trying to not embed Bootstrap classes (i.e. span7 or span10) in my html as described in here.
http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html
in bootstrap-sass the only sass mixin that I know is available to apply the “span7” class to my div is with @include makeColumn(7);
This works for fixed grid but not for a fluid grid. I need these columns to be fluid and responsive.
@Thomas Macdonald answered the question on StackOverflow with a mix-in that he created called makeFluidColumn
How to use twitter bootstrap with bootstrap-sass in rails app?
but it is not included anymore in the latest mixin file as is also mentioned per this github issue:
https://github.com/thomas-mcdonald/bootstrap-sass/issues/191
Is there something else that I need to do? I need to be able to change the span as a mixin because I am trying to change the number of columns that a div spans depending on viewport size through media queries.
I ended up rolling my own @mixin.
so instead of using bootstrap’s @include makeColumn(i); i can do @include col(i) to apply a width of i number of columns to a div or other element. Just include this SCSS file