Financial-Times / o-grid

Responsive grid system
http://registry.origami.ft.com/components/o-grid
93 stars 14 forks source link

Definition of grids with different number of columns #27

Closed wheresrhys closed 9 years ago

wheresrhys commented 10 years ago

Proposed implementation

$_o-grid-default-column-count: 12
@mixin createGrid(
    $selector: $o-grid-selector: null // name of the class or fragment of data-o-row that wraps this grid
    $number-of-cols: $_o-grid-default-column-count
) {
   // calculate % values for columns and print out the selectors
   // output nothing if $selector is null and $number-of-cols != $_o-grid-default-column-count
  // ouput default grid if selector and $number-of-cols not defined
}
@if(!$is-silent) {
    @include createGrid();// draws the default grid
}

@include createGrid('.simplified-3-column-grid', 3);
triblondon commented 10 years ago

I appreciate that Luke is keen on this, but this is not a priority for me.

kaelig commented 9 years ago

Closing this as it goes against the principles of having a streamlined look & feel across FT products.