-
Notifications
You must be signed in to change notification settings - Fork 1
/
normalize.less
63 lines (53 loc) · 902 Bytes
/
normalize.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
51
52
53
54
55
56
57
58
59
60
61
62
63
/* normalize */
html {
-webkit-tap-highlight-color: transparent;
font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif;
}
body {
margin: 0;
}
a {
text-decoration: none;
}
a,
input,
button,
textarea {
&:focus {
outline: none;
}
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
ol {
margin: 0;
padding: 0;
list-style: decimal;
}
input,
button,
textarea {
font: inherit;
}
.clearfix::after {
content: '';
display: table;
clear: both;
}
// 单行文本溢出处理为省略号
.ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
// 多行文本溢出处理为省略号,需要传入行数,此处默认传入3行
.multi-ellipsis (@lines: 3) {
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: @lines;
-webkit-box-orient: vertical;
}