From: harry Date: Wed, 1 Feb 2017 18:18:12 +0000 (+0530) Subject: Responsive breakpoints for text-utilities X-Git-Tag: v6.4.0-rc1~23^2~20^2~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72ae97f2d76bb0f7fd4f2af85735a9738dfa6348;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Responsive breakpoints for text-utilities --- diff --git a/scss/prototype/_text-utilities.scss b/scss/prototype/_text-utilities.scss index 8a468c52a..c17967fc6 100644 --- a/scss/prototype/_text-utilities.scss +++ b/scss/prototype/_text-utilities.scss @@ -25,15 +25,34 @@ } @mixin foundation-text-utilities { - .text-hide { - @include text-hide; - } + @each $size in $breakpoint-classes { + @include breakpoint($size) { + @if $size != $-zf-zero-breakpoint { + .#{$size}-text-hide { + @include text-hide; + } - .text-truncate { - @include text-truncate; - } + .#{$size}-text-truncate { + @include text-truncate; + } + + .#{$size}-text-nowrap { + @include text-nowrap; + } + } + @else { + .text-hide { + @include text-hide; + } + + .text-truncate { + @include text-truncate; + } - .text-nowrap { - @include text-nowrap; + .text-nowrap { + @include text-nowrap; + } + } + } } }