From: harry Date: Sun, 12 Feb 2017 11:46:53 +0000 (+0530) Subject: Added paramters/mixin docs to position classes X-Git-Tag: v6.4.0-rc1~23^2~20^2~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad01247b01a45cc4129c009c22bb5a99d1b6f49d;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Added paramters/mixin docs to position classes - position [] Position classes - z-index [prototype-position-z-index] z-index --- diff --git a/scss/prototype/_position.scss b/scss/prototype/_position.scss index fc37e5294..f0a3b371d 100644 --- a/scss/prototype/_position.scss +++ b/scss/prototype/_position.scss @@ -18,26 +18,36 @@ $prototype-position-classes: ( /// z-index for fixed positioning /// @type Number -$prototype-position-zindex: 975 !default; +$prototype-position-z-index: 975 !default; -@mixin position-fixed-top { - position: fixed; +/// Position classes, by default coming through a map `$prototype-position-classes` +/// @param {String} $position [] Position classes +@mixin position($position) { + position: $position; +} + +/// Position Fixed on top corners +/// @param {Number} $z-index [$prototype-position-z-index] z-index for `position-fixed-top` +@mixin position-fixed-top( + $z-index: $prototype-position-z-index +) { + @include position(fixed); top: 0; right: 0; left: 0; - z-index: $prototype-position-zindex; + z-index: $z-index; } -@mixin position-fixed-bottom { - position: fixed; +/// Position Fixed on bottom corners +/// @param {Number} $z-index [$prototype-position-z-index] z-index for `position-fixed-bottom` +@mixin position-fixed-bottom( + $z-index: $prototype-position-z-index +) { + @include position(fixed); right: 0; bottom: 0; left: 0; - z-index: $prototype-position-zindex; -} - -@mixin position($position) { - position: $position; + z-index: $z-index; } @mixin foundation-prototype-position {