From: harry Date: Thu, 2 Feb 2017 15:15:32 +0000 (+0530) Subject: Added text decoration mixin to prototype classes(including respective breakpoints X-Git-Tag: v6.4.0-rc1~23^2~20^2~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d189d3b99d804fd75fb7dc2a12d49f47ae7d05c8;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Added text decoration mixin to prototype classes(including respective breakpoints Includes - text-overline - text-underline - text-line-through --- diff --git a/scss/prototype/_prototype.scss b/scss/prototype/_prototype.scss index 8d58d9b36..2835e54bc 100644 --- a/scss/prototype/_prototype.scss +++ b/scss/prototype/_prototype.scss @@ -22,7 +22,7 @@ @import 'text-transformation'; // Text Decoration classes -// @import 'text-decoration'; +@import 'text-decoration'; // Font Styling // @import 'font-styling'; @@ -54,4 +54,5 @@ @include foundation-prototype-text-alignment; @include foundation-prototype-text-utilities; @include foundation-prototype-text-transformation; + @include foundation-prototype-text-decoration; } diff --git a/scss/prototype/_text-decoration.scss b/scss/prototype/_text-decoration.scss new file mode 100644 index 000000000..d45e6625e --- /dev/null +++ b/scss/prototype/_text-decoration.scss @@ -0,0 +1,26 @@ +// Foundation for Sites by ZURB +// foundation.zurb.com +// Licensed under MIT Open Source + +//// +/// @group prototype-text-decoration +//// + +@mixin foundation-prototype-text-decoration { + @each $size in $breakpoint-classes { + @include breakpoint($size) { + @each $decoration in (overline, underline, line-through) { + @if $size != $-zf-zero-breakpoint { + .#{$size}-text-#{$decoration} { + text-transform: $decoration; + } + } + @else { + .text-#{$decoration} { + text-transform: $decoration; + } + } + } + } + } +}