I'm playing around with a basic grid layout

@mixin grid($number-of-columns: 12)

@mixin column($width)
  width: #{$width * 960/@number-of-columns}px

As you can see, I want the column mixin to have access to the $number-
of-columns variable that is set in the grid mixin

The idea would be to do something like this:

#container
  +grid
  #sidebar
   +column(4)
  #main
   +column(8)

The columns *have* to be nested within a grid, is there anyway to
connect mixins in such a way?

cheers,

DAZ

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to