]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add SassDoc comments to flex-grid-row-align() and flex-grid-column-align() mixins
authorGeoff Kimball <geoff@zurb.com>
Mon, 21 Dec 2015 20:09:23 +0000 (12:09 -0800)
committerGeoff Kimball <geoff@zurb.com>
Mon, 21 Dec 2015 20:09:23 +0000 (12:09 -0800)
scss/grid/_flex-grid.scss

index 4aaf2aec4fe6b258941be71a2229c5fd6fe4b2fc..b776e238296b59cb142cae45351aa447e3dceebe 100644 (file)
@@ -105,6 +105,10 @@ $-zf-flex-align: (
   order: $order;
 }
 
+/// Horizontally or vertically aligns the columns within a flex row. Apply this mixin to a flex row.
+///
+/// @param {Keyword} $x [null] - Horizontal alignment to use. Can be `left`, `right`, `center`, `justify`, or `spaced`. Or, set it to `null` (the default) to not set horizontal alignment.
+/// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
 @mixin flex-grid-row-align($x: null, $y: null) {
   @if $x {
     @if map-has-key($-zf-flex-justify, $x) {
@@ -128,6 +132,9 @@ $-zf-flex-align: (
   align-items: $y;
 }
 
+/// Vertically align a single column within a flex row. Apply this mixin to a flex column.
+///
+/// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
 @mixin flex-grid-column-align($y: null) {
   @if $y {
     @if map-has-key($-zf-flex-align, $y) {