In susy one it were pretty easy to define scopes where a element changed width depending on a global variable. I'm trying to learn Susy 2 but can not really get the point how it works with breakpoint integration.
I have made some psudocode here to point out what i want to archive
Susy SASS maps
$small: (
columns: 4,
);
$medium: (
columns: 18,
);
$large: (
columns: 24,
);
A html element
.foo {
span 2
at medium
span 6
at large
span 12
}
RESULT I WANT for .foo
- in small = 50% (minus some gutter)
- in medium = 33,3333% (minus some gutter)
- in large = 50% (minus some gutter)
How do you archive this? I've looked at several tutorials but they do not speak about this. This question talks about something similar. Is it possibly so that we have to constantly tell Susy which layout to use? We could of course say x **of** something
but i found it quite handy to just define the grids globally and skip the of all the time.