Sha256: c9a367607ada190876d040b0bceceb7ae3ab009df06ed89aa0fd8a28fa0859ed
Contents?: true
Size: 1.65 KB
Versions: 1
Compression:
Stored size: 1.65 KB
Contents
@mixin output-float($span, $location, $columns, $gutter) { $location-holder: $location; @if type-of($location) == string { @if end-row($span, $location, $columns) { $grid-length: length(find-grid($columns)); $location-holder: $grid-length - $span; } @else { $location-holder: 1; } } $gutter: find-gutter($gutter); width: column-span($span, $location-holder, $columns, $gutter); clear: right; // @include clearfix; @if end-row($span, $location, $columns) { float: right; } @else { float: left; margin-right: gutter-span($gutter, $columns); } @include span-shared; } @mixin push-float($span, $location, $columns: false, $gutter: false) { @if type-of($location) == string { $location: 1; } // Find the columns and gutters $columns: find-grid($columns); $gutter: find-gutter($gutter); // Combine the columns and gutters $gutter: column-span($span, $location, $columns, $gutter) + gutter-span($gutter, $columns); margin-left: $gutter; } @mixin pull-float($span, $location, $columns: false, $gutter: false) { @if type-of($location) == string { $location: 1; } // Find the columns and gutters $columns: find-grid($columns); $gutter: find-gutter($gutter); // Combine the columns and gutters $gutter: (column-span($span, $location, $columns, $gutter) + gutter-span($gutter, $columns)) * -1; margin-left: $gutter; } @mixin isolate-float($span, $location, $columns: false, $gutter: false) { // Find the columns and gutters $columns: find-grid($columns); $gutter: find-gutter($gutter); @include push-float($span, $location, $columns, $gutter); margin-right: -100%; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
susy-2.0.0.alpha.1 | sass/susy/api/_float.scss |