Sha256: 9dd5332f6fe12d5021e83c854ec9a04ec030cf824effca907619692390f4e8cd
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
//$gutter-width: if($grid-gutter, to-percent($grid-gutter), 0); // Calculate a width using a grid cell @function grid-span($columns, $n) { $row-width: 100%; // If a gutter is set, remove width based on the sum of the gutter columns /*@if $grid-gutter { $row-width: $row-width - ($gutter-width * ($columns - 1)); }*/ // The column width should span a division of the total width $span-width: ($row-width / $columns) * $n; // If a gutter is set, increase the column width to fill in the missing gaps /*@if $grid-gutter and $n > 1 { $span-width: $span-width + (($n - 1) * $gutter-width); }*/ @return $span-width; } // Styles for the row containing the columns @mixin grid-row() { text-align: left; width: $grid-width; max-width: $grid-width; @include clear-fix; } // Styles for the column @mixin grid-column() { position: relative; min-height: 1px; float: left; /*@if $grid-gutter { margin-right: $gutter-width; &:last-child { margin-right: 0; } }*/ }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
titon-toolkit-1.0.0.rc.2 | scss/toolkit/mixins/_grid.scss |