Sha256: 09e8f91d314d340f62d0943426f98f4983f280146a852849281c9c03a35a5acc
Contents?: true
Size: 1001 Bytes
Versions: 22
Compression:
Stored size: 1001 Bytes
Contents
@charset "UTF-8"; /// Makes an element a outer container by centering 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
22 entries across 22 versions & 3 rubygems