From: harry Date: Thu, 2 Feb 2017 19:03:49 +0000 (+0530) Subject: Included text decoration into responsive breakpoints logic! X-Git-Tag: v6.4.0-rc1~23^2~20^2~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e45129b9abf7e8995979942012bbd58b1ccc1f59;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Included text decoration into responsive breakpoints logic! Also removed an unnecessary line from text alignment --- diff --git a/scss/prototype/_text-alignment.scss b/scss/prototype/_text-alignment.scss index 3de986173..c61624429 100644 --- a/scss/prototype/_text-alignment.scss +++ b/scss/prototype/_text-alignment.scss @@ -31,5 +31,4 @@ $prototype-text-alignment-responsive-breakpoints: $global-prototype-responsive-b } } } - } diff --git a/scss/prototype/_text-decoration.scss b/scss/prototype/_text-decoration.scss index 2e607cfa4..974214ff2 100644 --- a/scss/prototype/_text-decoration.scss +++ b/scss/prototype/_text-decoration.scss @@ -6,19 +6,27 @@ /// @group prototype-text-decoration //// +/// Responsive breakpoints for position, defaulted to global-prototype-responsive-breakpoints. +/// @type Number +$prototype-text-decoration-responsive-breakpoints: $global-prototype-responsive-breakpoints !default; + @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-decoration: $decoration; - } - } - @else { - .text-#{$decoration} { - text-decoration: $decoration; - } + @each $decoration in (overline, underline, line-through) { + .text-#{$decoration} { + text-decoration: $decoration; + } + } + + @if ($prototype-text-decoration-responsive-breakpoints) { + // Loop through Responsive Breakpoints + @each $size in $breakpoint-classes { + @include breakpoint($size) { + @each $decoration in (overline, underline, line-through) { + @if $size != $-zf-zero-breakpoint { + .#{$size}-text-#{$decoration} { + text-decoration: $decoration; + } + } } } }