From dcb5e41af5b577daaa7983c11cc0f8f2177bcfe1 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Mon, 21 Dec 2015 12:09:23 -0800 Subject: [PATCH] Add SassDoc comments to flex-grid-row-align() and flex-grid-column-align() mixins --- scss/grid/_flex-grid.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scss/grid/_flex-grid.scss b/scss/grid/_flex-grid.scss index 4aaf2aec4..b776e2382 100644 --- a/scss/grid/_flex-grid.scss +++ b/scss/grid/_flex-grid.scss @@ -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) { -- 2.47.2