All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.bourbon-4.3.2.app.assets.stylesheets.addons._word-wrap.scss Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
@charset "UTF-8";

/// Provides an easy way to change the `word-wrap` property.
///
/// @param {String} $wrap [break-word]
///   Value for the `word-break` property.
///
/// @example scss - Usage
///   .wrapper {
///     @include word-wrap(break-word);
///   }
///
/// @example css - CSS Output
///   .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;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy