Sha256: d9da6e0994d08a5d0e030ad1d0eda26a4334470143cdff55ec0bad8d065496b6

Contents?: true

Size: 740 Bytes

Versions: 169

Compression:

Stored size: 740 Bytes

Contents

/// Hides the text in an element, commonly used to show an image. Some elements will need block-level styles applied.
///
/// @link http://zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement
///
/// @example scss - Usage
///   .element {
///     @include hide-text;
///   }
///
/// @example css - CSS Output
///   .element {
///     overflow: hidden;
///     text-indent: 101%;
///     white-space: nowrap;
///   }
///
/// @todo Remove height argument in v5.0.0

@mixin hide-text($height: null) {
  overflow: hidden;
  text-indent: 101%;
  white-space: nowrap;

  @if $height {
    @warn "The `hide-text` mixin has changed and no longer requires a height. The height argument will no longer be accepted in v5.0.0";
  }
}

Version data entries

169 entries across 162 versions & 26 rubygems

Version Path
middleman-core-4.5.1 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.5.0 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.4.3 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.4.2 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.4.0 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.11 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.10 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.8 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.7 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.6 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.5 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.4 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.3 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.2 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.1 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
middleman-core-4.3.0 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss
federalist-basic-report-theme-0.1.7 _sass/uswds/lib/addons/_hide-text.scss
uswds-jekyll-4.2.0 _sass/uswds/lib/addons/_hide-text.scss
middleman-core-4.3.0.rc.4 fixtures/minify-css-app/source/stylesheets/bourbon/addons/_hide-text.scss