Sha256: b228b8115269eef0800fc7cfd55a206c6c91d6670a64b78c29616b775f4b3d74

Contents?: true

Size: 711 Bytes

Versions: 246

Compression:

Stored size: 711 Bytes

Contents

////
/// @group tools
////

/// Syntactic sugar around Sass' built-in `if` function that does not require
/// you to pass a value for `$if-false`.
///
/// @param {Boolean} $condition - Whether to return the value of `$if-true`
/// @param {Mixed} $if-true - Value to return if `$condition` is truthy
/// @return {Mixed} Value of `$if-true` if `$condition` is truthy, else null
/// @access private
/// @deprecated We will be removing this function in a future release, use `if($condition, $if-true, null);` instead.

@function iff($condition, $if-true) {
  @warn "The `iff` function will be removed in a future release, use `if($condition, $if-true, null);` instead.";
  @return if($condition, $if-true, null);
}

Version data entries

246 entries across 243 versions & 4 rubygems

Version Path
defra_ruby_template-3.15.1 vendor/assets/stylesheets/tools/_iff.scss
defra_ruby_template-3.15.1 node_modules/govuk-frontend/govuk/tools/_iff.scss
defra_ruby_template-3.15.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
defra_ruby_template-3.15.0 vendor/assets/stylesheets/tools/_iff.scss
dxw_govuk_frontend_rails-4.6.0 vendor/assets/stylesheets/tools/_iff.scss
dxw_govuk_frontend_rails-4.0.0 vendor/assets/stylesheets/tools/_iff.scss
govuk_publishing_components-28.5.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-28.4.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-28.3.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-28.2.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-28.1.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-28.0.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-27.20.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-27.19.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-27.18.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_tech_docs-3.0.1 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-27.17.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-27.16.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-27.15.0 node_modules/govuk-frontend/govuk/tools/_iff.scss
govuk_publishing_components-27.14.2 node_modules/govuk-frontend/govuk/tools/_iff.scss