i would use the offset variable in a mixin of Twitter Bootstrap SASS but it's not seem to work .
#headSearch{
@include makeColumn(6,2);
}
accordingly the TBS sass code base :
@mixin makeColumn($columns: 1, $offset: 0) {
float: left;
margin-left: ($gridColumnWidth * $offset) + ($gridGutterWidth * ($offset - 1)) + ($gridGutterWidth * 2);
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
}
thanks
EDIT:
<div id="main">
<!-- ______________________ CONTENT TOP REGION _______________________ -->
<?php if (!empty($page['content_top'])): ?>
<div class="rowZone">
<section id="content-top"> <?php print render($page['content_top']); ?> </section><!-- /#content-top -->
</div><!-- /rowZone -->
<?php endif; ?>
<!-- ______________________ ZONE DIAPO PANORAMIQUE _______________________ -->
<?php if (!empty($page['DiapoHP'])): ?>
<div class="rowZone">
<section id="HPDiapo"><?php print render($page['DiapoHP']); ?></section>
</div><!-- /rowZone -->
<?php endif; ?>
<!-- ______________________ HOMEPAGE BAS _______________________ -->
<div class="rowZone">
<!-- ______________________ PARTIE BAS GAUCHE _______________________ -->
<?php if (!empty($page['HPBasGauche'])): ?>
<section id="BasGaucheHP">
<?php print render($page['HPBasGauche']); ?></section>
<?php endif; ?>
<!-- ______________________ PARTIE BAS DROITE _______________________ -->
<?php if (!empty($page['HPBasDroit'])): ?>
<section id="BasDroitHP">
<?php print render($page['HPBasDroit']); ?>
</section><!-- /BasDroitHP -->
<?php endif; ?>
</div><!-- /rowZone -->
</div> <!-- /mainPage -->
and the scss code :
@import "../bootstrap/lib/bootstrap.scss";
@import "../bootstrap/lib/responsive.scss";
#main{
@include clearfix;
}
.rowZone{
@extend .row-fluid; }
#HPDiapo{
@include makeColumn(12);
@include clearfix;
padding:10px 0 0;
}
#content-top{
@include makeColumn(12);
@include clearfix;
}
#BasGaucheHP{
@include makeColumn(6);
@include clearfix;
}
#BasDroitHP{
@include makeColumn(6);
}
i understand i don't need the clearfix mixin alreadey include into the makeRow mixin i guess. the idea, in my mind, is to put columns into a row into a container,and each row stack themselves (idem on mobile). actually i don't know if i need to use fluid row for responsive design or fixed layout is enought. then, do my logical good ?
thanks