Sha256: 06ef6ae357a1830b62e50f625c02b68442cd6a5d4f71dae68e91a921ece27e61
Contents?: true
Size: 809 Bytes
Versions: 1
Compression:
Stored size: 809 Bytes
Contents
@charset "UTF-8"; /// Shift columns and reorder them within their container using relative /// positioning. /// /// @group features /// /// @name Grid shift /// /// @argument {number (unitless)} $shift [false] /// /// @argument {map} $grid [$neat-grid] /// The grid to be used to generate the column. /// By default, the global `$neat-grid` will be used. /// /// @example scss /// .element { /// @include grid-shift(3); /// } /// /// @example css /// .element { /// left: calc(25% - 25px + 20px); /// position: relative; /// } @mixin grid-shift($shift: false, $grid: $neat-grid) { @if $shift { $_shift-value: calc(#{_neat-column-width($grid, $shift)} + #{_retrieve-neat-setting($grid, gutter)}); left: $_shift-value; } @else { left: auto; } position: relative; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neat-2.0.0.beta.1 | core/neat/mixins/_grid-shift.scss |