Sha256: 0101749b37d050c4cd63204aab68f5267018e4e603ad3c9cebf8349f3f1ac7fb

Contents?: true

Size: 579 Bytes

Versions: 7

Compression:

Stored size: 579 Bytes

Contents

@charset "UTF-8";

/// Provides an easy way to change the `word-wrap` property.
///
/// @argument {string} $wrap [break-word]
///   Value for the `word-break` property.
///
/// @example scss
///   .wrapper {
///     @include word-wrap(break-word);
///   }
///
/// @example css
///   .wrapper {
///     overflow-wrap: break-word;
///     word-break: break-all;
///     word-wrap: break-word;
///   }

@mixin word-wrap($wrap: break-word) {
  overflow-wrap: $wrap;
  word-wrap: $wrap;

  @if $wrap == break-word {
    word-break: break-all;
  } @else {
    word-break: $wrap;
  }
}

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
garth-jekyll-theme-0.1.9 _sass/bourbon/bourbon/library/_word-wrap.scss
bourbon-5.0.0.beta.6 core/bourbon/library/_word-wrap.scss
bourbon-5.0.0.beta.5 core/bourbon/library/_word-wrap.scss
bourbon-5.0.0.beta.4 core/bourbon/library/_word-wrap.scss
bourbon-5.0.0.beta.3 core/bourbon/library/_word-wrap.scss
bourbon-5.0.0.beta.2 core/bourbon/library/_word-wrap.scss
bourbon-5.0.0.beta.1 core/bourbon/addons/_word-wrap.scss