Debian Codegraph @

lib/compass/typography/text/_ellipsis.scss

raw
1 @import "../../css3/shared";
2
3 // To get full firefox support, you must install the ellipsis pattern:
4 //
5 // compass install compass/ellipsis
6 $use-mozilla-ellipsis-binding: false !default;
7
8 // This technique, by [Justin Maxwell](http://code404.com/), was originally
9 // published [here](http://mattsnider.com/css/css-string-truncation-with-ellipsis/).
10 // Firefox implementation by [Rikkert Koppes](http://www.rikkertkoppes.com/thoughts/2008/6/).
11 @mixin ellipsis($no-wrap: true) {
12 @if $no-wrap { white-space: nowrap; }
13 overflow: hidden;
14 @include experimental(text-overflow, ellipsis,
15 not(-moz),
16 not(-webkit),
17 -o,
18 -ms,
19 not(-khtml),
20 official
21 );
22 @if $experimental-support-for-mozilla and $use-mozilla-ellipsis-binding {
23 -moz-binding: stylesheet-url(unquote("xml/ellipsis.xml#ellipsis"));
24 }
25 }