From 693d8a50741046b2ca02cc27524d75ac7efc443f Mon Sep 17 00:00:00 2001 From: Tristan Mugford Date: Fri, 21 Mar 2014 14:32:53 +0000 Subject: [PATCH] Re-introduced the $experimental flag and an associated mixin to control the inclusion of experimental or explicitly vendor prefixed properties. --- scss/foundation/_settings.scss | 2 ++ scss/foundation/components/_global.scss | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/scss/foundation/_settings.scss b/scss/foundation/_settings.scss index 4bd76fa4d..4f6458df3 100644 --- a/scss/foundation/_settings.scss +++ b/scss/foundation/_settings.scss @@ -12,6 +12,8 @@ // Allows the use of rem-calc() or lower-bound() in your settings @import "foundation/functions"; +// $experimental: true; + // The default font-size is set to 100% of the browser style sheet (usually 16px) // for compatibility with browser-based text zoom or user-set defaults. diff --git a/scss/foundation/components/_global.scss b/scss/foundation/components/_global.scss index 4fd24a45f..3fedf67c9 100644 --- a/scss/foundation/components/_global.scss +++ b/scss/foundation/components/_global.scss @@ -11,6 +11,9 @@ // styles get applied to [data-mysite-plugin], etc $namespace: false !default; +// Control the inclusion of experimental properties +$experimental: true !default; + // The default font-size is set to 100% of the browser style sheet (usually 16px) // for compatibility with browser-based text zoom or user-set defaults. @@ -26,6 +29,16 @@ $base-line-height: 150% !default; // Global Foundation Mixins // +// @mixins +// +// We use this to optionally include experimental or +// explicitly vendor prefixed properties +@mixin experimental() { + @if $experimental { + @content; + } +} + // @mixins // // We use this to control border radius. -- 2.47.2