]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Added text decoration mixin to prototype classes(including respective breakpoints
authorharry <harmanmanchanda182@gmail.com>
Thu, 2 Feb 2017 15:15:32 +0000 (20:45 +0530)
committerharry <harmanmanchanda182@gmail.com>
Thu, 2 Feb 2017 15:15:32 +0000 (20:45 +0530)
Includes
- text-overline
- text-underline
- text-line-through

scss/prototype/_prototype.scss
scss/prototype/_text-decoration.scss [new file with mode: 0644]

index 8d58d9b361f3f5590d7a7c965f10b893edd42d83..2835e54bc2513826d8916fe5f7e510313653b95e 100644 (file)
@@ -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 (file)
index 0000000..d45e662
--- /dev/null
@@ -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;
+                           }
+        }
+      }
+    }
+  }
+}