Debian Codegraph @

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

raw
1 @charset "UTF-8";
2
3 /// Designates the element as a row of columns in the grid layout. It clears the floats on the element and sets its display property. Rows can't be nested, but there can be more than one row element—with different display properties—per layout.
4 ///
5 /// @param {String} $display [default]
6 /// Sets the display property of the element and the display context that will be used by its children. Can be `block` or `table`.
7 ///
8 /// @param {String} $direction [$default-layout-direction]
9 /// Sets the layout direction. Can be `LTR` (left-to-right) or `RTL` (right-to-left).
10 ///
11 /// @example scss - Usage
12 /// .element {
13 /// @include row();
14 /// }
15 ///
16 /// @example css - CSS Output
17 /// .element {
18 /// *zoom: 1;
19 /// display: block;
20 /// }
21 ///
22 /// .element:before, .element:after {
23 /// content: " ";
24 /// display: table;
25 /// }
26 ///
27 /// .element:after {
28 /// clear: both;
29 /// }
30
31 @mixin row($display: default, $direction: $default-layout-direction) {
32
33 $layout-direction: $direction !global;
34
35 @if $display == table {
36 display: table;
37 @include fill-parent;
38 table-layout: fixed;
39 $container-display-table: true !global;
40 } @else {
41 @include clearfix;
42 display: block;
43 $container-display-table: false !global;
44 }
45 }