Debian Codegraph @

node/@patternfly/patternfly/components/Truncate/truncate.scss

raw
1 @use '../../sass-utilities' as *;
2
3 @include pf-root($truncate) {
4 --#{$truncate}--MinWidth: 6ch;
5 --#{$truncate}__start--MinWidth: 6ch;
6 }
7
8 .#{$truncate} {
9 display: inline-grid;
10 grid-auto-flow: column;
11 align-items: baseline;
12 min-width: var(--#{$truncate}--MinWidth);
13 // stylelint-disable property-disallowed-list
14 text-decoration: inherit; // enable inline link to have underline
15 // stylelint-enable property-disallowed-list
16
17 &.pf-m-fixed {
18 display: inline;
19 align-items: revert;
20 min-width: revert;
21 }
22 }
23
24 .#{$truncate}__start,
25 .#{$truncate}__end {
26 overflow: hidden;
27 text-overflow: ellipsis;
28 white-space: pre;
29 }
30
31 .#{$truncate}__start {
32 min-width: var(--#{$truncate}__start--MinWidth);
33 }
34
35 // End
36 .#{$truncate}__end {
37 @include pf-v6-bidirectional-style (
38 $prop: direction,
39 $ltr-val: rtl,
40 $rtl-val: ltr
41 )
42 }
43
44 .#{$truncate}__start + .#{$truncate}__end {
45 overflow: visible;
46
47 @include pf-v6-bidirectional-style (
48 $prop: direction,
49 $ltr-val: ltr,
50 $rtl-val: rtl
51 )
52 }
53
54 // safari not supported
55 @supports (-webkit-hyphens: none) {
56 .#{$truncate}__end {
57 @include pf-v6-bidirectional-style (
58 $prop: direction,
59 $ltr-val: ltr,
60 $rtl-val: rtl
61 )
62 }
63 }