]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Responsive breakpoints for text-utilities
authorharry <harmanmanchanda182@gmail.com>
Wed, 1 Feb 2017 18:18:12 +0000 (23:48 +0530)
committerharry <harmanmanchanda182@gmail.com>
Wed, 1 Feb 2017 18:18:12 +0000 (23:48 +0530)
scss/prototype/_text-utilities.scss

index 8a468c52aa6cc2ffd90d14378e0100c3186cbcb1..c17967fc6b9b1fadc5ecad4784f210a12b4cc3fd 100644 (file)
 }
 
 @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;
+        }
+      }
+    }
   }
 }