]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Added map variables within `_transformation`.
authorharry <harmanmanchanda182@gmail.com>
Fri, 3 Feb 2017 18:44:36 +0000 (00:14 +0530)
committerharry <harmanmanchanda182@gmail.com>
Fri, 3 Feb 2017 18:44:36 +0000 (00:14 +0530)
Variables(map) added:
- prototype-text-transformation-classes : lowercase, uppercase, capitalize

scss/prototype/_text-transformation.scss

index e8ae17b4f86fededee87a407fa24a7f8821533b2..0e39f6be5cda73f79ead725f5a2041d218c0b7e9 100644 (file)
 /// @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;