Sha256: 71cfcbc885042ab0980a1a7163001a567aedf74bce80fa2a1d4c49884a0ad311
Contents?: true
Size: 1.05 KB
Versions: 6
Compression:
Stored size: 1.05 KB
Contents
@charset "UTF-8"; /// Push or pull a grid column by manipulating its left margin. /// /// @group features /// /// @name Grid push /// /// @argument {number (unitless)} $push [false] /// The number of columns to push the column. /// /// @argument {map} $grid [$neat-grid] /// The grid to be used to determine how far to push the column. /// By default, the global `$neat-grid` will be used. /// /// @example scss /// .element { /// @include grid-push(3); /// } /// /// @example css /// .element { /// margin-left: calc(25% - 25px + 40px); /// } @mixin grid-push($push: false, $grid: $neat-grid) { $_grid-columns: _retrieve-neat-setting($grid, columns); $_grid-gutter: _retrieve-neat-setting($grid, gutter); @if $push { $_gutter-affordance: $_grid-gutter * 2; $_margin-value: calc(#{_neat-column-width($grid, $push)} + #{$_gutter-affordance}); margin-#{_neat-float-direction($grid)}: $_margin-value; } @else { $_margin-value: _retrieve-neat-setting($grid, gutter); margin-#{_neat-float-direction($grid)}: $_margin-value; } }
Version data entries
6 entries across 6 versions & 3 rubygems