Sha256: cb679b9a2235640330a505fcb87405eb25d65b4aeab2ed0ba4d42645a486d896

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

// Foundation for Sites
// https://get.foundation
// Licensed under MIT Open Source

////
/// @group prototype-text-transformation
////

/// Responsive breakpoints for text transformation classes
/// @type Boolean
$prototype-transformation-breakpoints: $global-prototype-breakpoints !default;

/// Map containing all the `text-transformation` classes
/// @type Map
$prototype-text-transformation: (
  lowercase,
  uppercase,
  capitalize
) !default;

/// Text Transformation, by default coming through a map `$prototype-text-transformation`
/// @param {String} $transformation [] Text Transformation
@mixin text-transform($transformation) {
  text-transform: $transformation !important;
}

@mixin foundation-prototype-text-transformation {
  @each $transformation in $prototype-text-transformation {
    .text-#{$transformation} {
      @include text-transform($transformation);
    }
  }

  @if ($prototype-transformation-breakpoints) {
    // Loop through Responsive Breakpoints
  	@each $size in $breakpoint-classes {
      @include breakpoint($size) {
        @each $transformation in $prototype-text-transformation {
          @if $size != $-zf-zero-breakpoint {
            .#{$size}-text-#{$transformation} {
  			      @include text-transform($transformation);
  			    }
          }
        }
      }
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foundation-rails-6.6.2.0 vendor/assets/scss/prototype/_text-transformation.scss