From: Tristan Mugford Date: Fri, 21 Mar 2014 14:32:53 +0000 (+0000) Subject: Re-introduced the $experimental flag and an associated mixin to control the inclusion... X-Git-Tag: v5.2.2~89^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4754%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Re-introduced the $experimental flag and an associated mixin to control the inclusion of experimental or explicitly vendor prefixed properties. --- 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.