forked from neoascetic/compless
-
Notifications
You must be signed in to change notification settings - Fork 1
/
typography.less
50 lines (42 loc) · 969 Bytes
/
typography.less
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
//
// Links
//
.unstyled-link() {
color: inherit;
text-decoration: inherit;
cursor: inherit;
&:active, &focus { outline: none; }
}
.hover-link() {
text-decoration: none;
&:hover { text-decoration: underline; }
}
.link-colors(@normal) {
color: @normal;
}
.link-colors(@normal, @hover) {
.link-colors(@normal);
&:hover { color: @hover; }
}
.link-colors(@normal, @hover, @active) {
.link-colors(@normal, @hover);
&:active { color: @active; }
}
.link-colors(@normal, @hover, @active, @visited) {
.link-colors(@normal, @hover, @active);
&:visited { color: @visited; }
}
.link-colors(@normal, @hover, @active, @visited, @focus) {
.link-colors(@normal, @hover, @active, @visited);
&:focus { color: @focus; }
}
//
// Text
//
.ellipsis(@white-space: inherit) {
white-space: @white-space;
overflow: hidden;
-o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
text-overflow: ellipsis;
}