Debian Codegraph @

debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_outer-container.scss

raw
1 @charset "UTF-8";
2
3 /// Makes an element a outer container by centering it in the viewport, clearing its floats, and setting its `max-width`.
4 /// 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.
5 ///
6 /// @param {Number [unit]} $local-max-width [$max-width]
7 /// Max width to be applied to the element. Can be a percentage or a measure.
8 ///
9 /// @example scss - Usage
10 /// .element {
11 /// @include outer-container(100%);
12 /// }
13 ///
14 /// @example css - CSS Output
15 /// .element {
16 /// max-width: 100%;
17 /// margin-left: auto;
18 /// margin-right: auto;
19 /// }
20 ///
21 /// .element::after {
22 /// clear: both;
23 /// content: "";
24 /// display: table;
25 /// }
26
27 @mixin outer-container($local-max-width: $max-width) {
28 @include clearfix;
29 max-width: $local-max-width;
30 margin: {
31 left: auto;
32 right: auto;
33 }
34 }