]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Revert "Add opacity mixin, No CSS Added!" 10142/head
authorRafi <rafibomb@users.noreply.github.com>
Mon, 5 Jun 2017 20:04:44 +0000 (13:04 -0700)
committerGitHub <noreply@github.com>
Mon, 5 Jun 2017 20:04:44 +0000 (13:04 -0700)
docs/pages/prototyping-utilities.md
docs/pages/sass-mixins.md
scss/prototype/_opacity.scss [deleted file]
scss/prototype/_prototype.scss

index 3653a724127adaa83d5d3139ebc571b7cfab5604..84a8b59ab5aa97cf0bfde3ab2241f5051e4c1665 100644 (file)
@@ -748,16 +748,6 @@ This mixin helps you to easily create a square, rectangle or a circle. Sass Refe
 }
 ```
 
-### Opacity Mixin
-
-This mixin helps you easily create opacity/transparency of an element. Sass Reference [here](#opacity)
-
-```scss
-.foo {
-  @include opacity(0.7); 
-}
-```
-
 ### Rotate Mixin
 These Rotate mixins lets you rotate an element to a certain degree. Clockwise is the default direction but adding a `-` in front of the degrees will make it counter-clockwise.
 
index 4858a205d2a9ea434b76c15b78048426b0d5544e..27a95cd43420a9656ee2a9bcd46c56fa51b9c929 100644 (file)
@@ -50,7 +50,6 @@ Here is a list of available mixins:
 - [Font Italic](#font-italic)
 - [Style Type Unordered](#style-type-unordered)
 - [Style Type Ordered](#style-type-ordered)
-- [Opacity](#opacity)
 - [Overflow](#overflow)
 - [Overflow-x](#overflow-x)
 - [Overflow-y](#overflow-y)
diff --git a/scss/prototype/_opacity.scss b/scss/prototype/_opacity.scss
deleted file mode 100644 (file)
index 10f4790..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// Foundation for Sites by ZURB
-// foundation.zurb.com
-// Licensed under MIT Open Source
-
-////
-/// @group prototype-opacity
-////
-
-/// Opacity Mixin: Easily create opacity to an element
-/// @param {Number} $opacity[] Opacity/Transparency of an element
-@mixin opacity($opacity) {
-  @if ($opacity >= 0 and $opacity <= 1) {
-    opacity: $opacity;
-    $opacity-ie: $opacity * 100;
-    filter: alpha(opacity=$opacity-ie); //IE8
-  } @else {
-    @warn 'Opacity should be between 0.0 and 1.0';
-  }
-}
index 6dd6743db097bcdeb49916ad0b9031de890c2653..e6f37b772c77857908fdc1762e717ac622122d79 100644 (file)
@@ -15,9 +15,6 @@
 // Rotate Mixin
 @import 'rotate';
 
-// Opacity Mixin
-@import 'opacity';
-
 // Typescale
 @import 'typescale';