Sha256: fcc1d2453ea5a4ea5069672cc41df74e585fd595e6b777407b4d1157ff1e3a7b
Contents?: true
Size: 1000 Bytes
Versions: 2
Compression:
Stored size: 1000 Bytes
Contents
@charset "UTF-8"; /// Makes an element a outer container by centring it in the viewport, clearing its floats, and setting its `max-width`. /// Although optional, using `outer-container` is recommended. The mixin can be called on more than one element per page, as long as they are not nested. /// /// @param {Number (unit)} $local-max-width ($max-width) /// Max width to be applied to the element. Can be a percentage or a measure. /// /// @example scss - Usage /// .element { /// @include outer-container(100%); /// } /// /// @example css - CSS Output /// .element { /// *zoom: 1; /// max-width: 100%; /// margin-left: auto; /// margin-right: auto; /// } /// /// .element:before, .element:after { /// content: " "; /// display: table; /// } /// /// .element:after { /// clear: both; /// } @mixin outer-container($local-max-width: $max-width) { @include clearfix; max-width: $local-max-width; margin: { left: auto; right: auto; } }
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
frozen-0.0.1 | dummy/assets/stylesheets/neat/grid/_outer-container.scss |
neat-1.7.1 | app/assets/stylesheets/grid/_outer-container.scss |