susy - Nest elements has different padding value -


i spent couple hours figure out no luck, i've configuration

$susy: (     columns: 12,     gutters: 54px/53px,     container: 1230px ); 

in layout file _layout.scss, i've this

@include layout( $susy inside );  .content-area {     padding-top: gutter( 6 );      .layout-2c-l & {         @include span( 8 of 12 no-gutters );         @include gutters(5); // 62.0625px     }      .archive.layout-2c-l &,     .search.layout-2c-l & {         padding-left: 0;         padding-right: 0;     } } 

in case, on archive , search page i've remove gutters re-added via it's child elements in _archives.scss file

.page-header {     @include gutters(5); // 41.375px } 

as can see code above beside gutters add pixel value, first gutters resulting 62.0625px , the second 1 41.375px.

if how susy works, there way same result?

unless set math: static in susy config, susy output % values based on context give it. if tell in context of 5 both places, same % output — but translate different px values if parent containers not same width. gutter(5) should used in places parent element spans 5 columns.

it's hard tell sparse code sample, looks maybe using gutter context argument differently how intended. when used correctly, gutter ~54px (since that's settings specify).


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -