Child pages
  • Bootstrap, Sass and Compass in PrestaShop 1.6

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


You can create your own functions and use it within your files. Just make sure that its name does not conflict with the evolution of Sass and Compass.

SCSS example:

Code Block
$grid-width: 40px;
$gutter-width: 10px;
@function grid-width($n) {
  @return $n * $grid-width + ($n - 1) * $gutter-width;
#sidebar {width: grid-width(5);}

CSS result:

Code Block
#sidebar {width: 240px;}