Sha256: df787c395fe2c3a6b64e8c1fae6157a197f3960b8df56778db4762a1b4665373
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
@charset "UTF-8"; /// Creates a grid column of requested size. /// /// @group features /// /// @name Grid column /// /// @argument {number (unitless)} $columns [null] /// Specifies the number of columns an element should span based on the total /// columns of the grid. /// /// This can also be defined in a shorthand syntax which also contains the /// total column count such as `3 of 5`. /// /// @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-column(3); /// } /// /// @example css /// .element { /// width: calc(25% - 25px); /// float: left; /// margin-left: 20px; /// } @mixin grid-column($columns: null, $grid: $neat-grid) { $columns: _neat-column-default($grid, $columns); $_grid-columns: _retrieve-neat-setting($grid, columns); $_grid-gutter: _retrieve-neat-setting($grid, gutter); width: calc(#{_neat-column-width($grid, $columns)}); float: _neat-float-direction($grid); margin-#{_neat-float-direction($grid)}: $_grid-gutter; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neat-4.0.0 | core/neat/mixins/_grid-column.scss |