oddbird.net | github.com/ericam
http://ericsuzanne.com/pres/susy2/
Copyright © 2014 Eric M. Suzanne | some rights reserved
SUMMARY: 55 Tests, 55 Passed, 0 Failed
<article class="column col6of12 last">Article</article>
.article { @include grid-columns(6, 12, last); }
// span 3 of 12 prefix 1... aside { width: ((3*4em) + (2*1em)) / ((12*4em) + (11*1em)) * 100%; // 23.7288136% margin-right: 1em / ((12*4em) + (11*1em)) * 100%; // 01.6949153% padding-left: ((1*4em) + (1*1em)) / ((12*4em) + (11*1em)); // 08.4745763% }
target / context = multiplier
.widget { width: 14em / 59em * 100%; }
// span 3 of 12 prefix 1... aside { width: span(3 of 12); margin-right: gutter(of 12); padding-left: span(1 of 12 wide); }
.narrow { width: span(2 narrow); } .wide { width: span(2 wide); } .wider { width: span(2 wider); }
// span 3 of 12 prefix 1... aside { @include span(3); @include prefix(1); }
aside { @include span(6 at 3 isolate); }
.item { @include gallery(3); }
.unbox { @include span(30% at 200px isolate); }
@include span(last 3 isolate at 3 static rtl after no-gutters);
article { @include full; @include susy-breakpoint(30em, 8 .25 inside-static) { @include span(last 6); } }
@import "susyone";
$susy: ( columns: 12, gutters: 1/4, ); $fluid: percentage(susy(3) / susy(12)); $static: susy(3) * 4em;