I'm sure I've missed something obvious... it seems like I'm having to re-declare my context for some elements. I have the following declared in global variables:
// General breakpoints
$bp1: 500px;
$bp2: 700px;
$bp3: 900px;
$bp4: 1100px;
// Grids and gutters
$grids: 3;
$grids: add-grid(6 at $bp1);
$grids: add-grid(12 at $bp3);
When I try to position an element within my footer, it won't work unless I declare the optional context variable, eg.
footer .block-webform {
@include grid-span(8, 5, 12);
}
Without the last value, the element doesn't show where I've put it on the global grid. (This is at >900px width, of course.) I thought I'd only need to specify context if I'm trying to change it from the global.
Have I missed something in my global context declaration?
Thanks in advance for your help!
ST
If the footer is using a different context (total number of grids) from the one preceding it, you have to state the new context (number of grids). So you have to tell it number of grids, starting at which grid, and total grids, as you are doing.