Sha256: aebb1305e147c3872e3619dbdf3763b6e54dfdf08d91901486440c3572d79306
Contents?: true
Size: 1.76 KB
Versions: 55
Compression:
Stored size: 1.76 KB
Contents
@import "../settings/warnings"; //// /// @group tools/internet-explorer-8 //// /// A private version of the govuk-if-ie8 mixin to avoid deprecation /// warnings where we use it internally /// /// @access private @mixin _govuk-if-ie8 { @if $govuk-is-ie8 { @content; } } /// Conditionally include rules only for IE8 /// /// @content Passed content is only outputted if we're compiling a stylesheet /// that targets IE8 (if `$govuk-is-ie8` is true) /// /// @example scss - Usage /// /// .foo { /// min-width: 100px; /// // Specify width for IE8 only /// @include govuk-if-ie8 { /// width: 100px; /// } /// } /// /// @access public /// @deprecated Will be removed in v5.0 @mixin govuk-if-ie8 { @include _warning( ie8, "The govuk-if-ie8 mixin is deprecated and will be removed in v5.0." ); @include _govuk-if-ie8 { @content; } } /// A private version of the govuk-not-ie8 mixin to avoid deprecation /// warnings where we use it internally /// /// @access private @mixin _govuk-not-ie8 { @if not $govuk-is-ie8 { @content; } } /// Conditionally exclude rules for IE8 /// /// @content Passed content is only outputted if we're not compiling a /// stylesheet that targets IE8 (if `$govuk-is-ie8` is false) /// /// @example scss - Usage /// /// .foo { /// font-weight: bold; /// /// // Enhance foo only for modern browsers (not IE8) /// @include govuk-not-ie8 { /// font-family: "Comic Sans MS", "Curlz MT" cursive, sans-serif; /// color: #FF69B4; /// } /// } /// /// @access public /// @deprecated Will be removed in v5.0 @mixin govuk-not-ie8 { @include _warning( ie8, "The govuk-not-ie8 mixin is deprecated and will be removed in v5.0." ); @include _govuk-not-ie8 { @content; } }
Version data entries
55 entries across 55 versions & 4 rubygems