-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext.css
61 lines (50 loc) · 1 KB
/
text.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Word breaking
*
* Break strings when their length exceeds the width of their container.
*/
.u-word-break {
word-wrap: break-word !important;
}
/**
* Horizontal text alignment
*/
.u-text-center {
text-align: center !important;
}
.u-text-left {
text-align: left !important;
}
.u-text-right {
text-align: right !important;
}
/**
* Inherit the ancestor's text color.
*/
.u-text-inherit-color {
color: inherit !important;
}
/**
* Prevent whitespace wrapping
*/
.u-text-no-wrap {
white-space: nowrap !important;
}
/**
* Text truncation
*
* Prevent text from wrapping onto multiple lines, and truncate with an
* ellipsis.
*
* 1. Ensure that the node has a maximum width after which truncation can
* occur.
* 2. Fix for IE 8/9 if `word-wrap: break-word` is in effect on ancestor
* nodes.
*/
.u-textTruncate {
max-width: 100%; /* 1 */
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
word-wrap: normal !important; /* 2 */
}