From: harry Date: Fri, 3 Feb 2017 18:44:36 +0000 (+0530) Subject: Added map variables within `_transformation`. X-Git-Tag: v6.4.0-rc1~23^2~20^2~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d17c0068665d018166a4f3975c0fc732ea779268;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Added map variables within `_transformation`. Variables(map) added: - prototype-text-transformation-classes : lowercase, uppercase, capitalize --- diff --git a/scss/prototype/_text-transformation.scss b/scss/prototype/_text-transformation.scss index e8ae17b4f..0e39f6be5 100644 --- a/scss/prototype/_text-transformation.scss +++ b/scss/prototype/_text-transformation.scss @@ -10,8 +10,14 @@ /// @type Boolean $prototype-text-transformation-responsive-breakpoints: $global-prototype-responsive-breakpoints !default; +// Map containing all the `text-transformation` classes +// @type Boolean +$prototype-text-transformation-classes: ( + lowercase, uppercase, capitalize +)!default; + @mixin foundation-prototype-text-transformation { - @each $transformation in (lowercase, uppercase, capitalize) { + @each $transformation in $prototype-text-transformation-classes { .text-#{$transformation} { text-transform: $transformation; } @@ -21,7 +27,7 @@ $prototype-text-transformation-responsive-breakpoints: $global-prototype-respons // Loop through Responsive Breakpoints @each $size in $breakpoint-classes { @include breakpoint($size) { - @each $transformation in (lowercase, uppercase, capitalize) { + @each $transformation in $prototype-text-transformation-classes { @if $size != $-zf-zero-breakpoint { .#{$size}-text-#{$transformation} { text-transform: $transformation;