Sha256: 59dc5a55a17210ae5e81a0268cbdbfd91d625782866a7c65247b8af382f7f4c6

Contents?: true

Size: 1.3 KB

Versions: 29

Compression:

Stored size: 1.3 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// 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

29 entries across 29 versions & 4 rubygems

Version Path
bedrock_sass-0.2.2 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
foundation-rails-6.6.1.0 vendor/assets/scss/prototype/_text-transformation.scss
foundation-rails-6.5.3.0 vendor/assets/scss/prototype/_text-transformation.scss
bedrock_sass-0.2.1 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
foundation-rails-6.5.1.0 vendor/assets/scss/prototype/_text-transformation.scss
locomotivecms_wagon-2.4.1 generators/foundation/public/stylesheets/foundation6/prototype/_text-transformation.scss
bedrock_sass-0.2.0 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
locomotivecms_wagon-2.4.0 generators/foundation/public/stylesheets/foundation6/prototype/_text-transformation.scss
foundation-rails-6.4.3.0 vendor/assets/scss/prototype/_text-transformation.scss
bedrock_sass-0.1.9 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
bedrock_sass-0.1.8 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
bedrock_sass-0.1.7 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
bedrock_sass-0.1.6 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
bedrock_sass-0.1.5 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
bedrock_sass-0.1.4 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
bedrock_sass-0.1.3 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
bedrock_sass-0.1.2 assets/_vendor/foundation/scss/prototype/_text-transformation.scss
foundation-rails-6.4.1.3 vendor/assets/scss/prototype/_text-transformation.scss
jekyll-theme-foundation-0.3.6 _sass/scss/prototype/_text-transformation.scss
jekyll-theme-foundation-0.3.5 _sass/scss/prototype/_text-transformation.scss