Sha256: d13753ebe3f473b5fa30ec331934b451e1b7c7ab0778fbe5ed65a974a21daa23

Contents?: true

Size: 1000 Bytes

Versions: 9

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

9 entries across 8 versions & 5 rubygems

Version Path
StyleSass-0.1.4.alpha app/assets/stylesheets/neat/grid/_outer-container.scss
StyleSass-0.1.3 app/assets/stylesheets/neat/grid/_outer-container.scss
va_common-0.1.0 app/assets/stylesheets/lib/neat/grid/_outer-container.scss
us_web_design_standards-0.0.2 app/assets/stylesheets/lib/neat/grid/_outer-container.scss
us_web_design_standards-0.0.2 assets/_scss/lib/neat/grid/_outer-container.scss
us_web_design_standards-0.0.0 assets/_scss/lib/neat/grid/_outer-container.scss
nesta-contentfocus-extensions-0.0.3 assets/stylesheets/neat/grid/_outer-container.scss
nesta-contentfocus-extensions-0.0.2 assets/stylesheets/neat/grid/_outer-container.scss
neat-1.7.2 app/assets/stylesheets/grid/_outer-container.scss