omega

code generator for css grids in omega 3.x

Submitted by admin on Sat, 08/15/2015 - 15:00

<code>

<?php

$columns = 24;
$left_margin = 10;
$right_margin = 10;
$width = 1024;
$gutter = 20;

$column_width = ($width - ($columns - 1)* $gutter) / $columns;
$total_width = $width + $left_margin + $right_margin;

foreach (range(1, $columns) as $column) {
$grid[] = ".grid-" . $column;
$push[] = ".push-" . $column;
$pull[] = ".pull-" . $column;
$prefix[] = ".prefix-" . $column;
$suffix[] = ".suffix-" . $column;
}

Etiquetas