Sha256: 43e86423adcbbde4246405d8b3a219cac31ac9ec8c2e62663e33a4f7c697887d
Contents?: true
Size: 783 Bytes
Versions: 23
Compression:
Stored size: 783 Bytes
Contents
@charset "UTF-8"; /// Truncates text and adds an ellipsis to represent overflow. /// /// @argument {number} $width [100%] /// The `max-width` for the string to respect before being truncated. /// /// @argument {string} $display [inline-block] /// Sets the display-value of the element. /// /// @example scss /// .element { /// @include ellipsis; /// } /// /// // CSS Output /// .element { /// display: inline-block; /// max-width: 100%; /// overflow: hidden; /// text-overflow: ellipsis; /// white-space: nowrap; /// word-wrap: normal; /// } @mixin ellipsis( $width: 100%, $display: inline-block ) { display: $display; max-width: $width; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-wrap: normal; }
Version data entries
23 entries across 23 versions & 4 rubygems