_common.css
1.19 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@use postcss-clearfix ;
.clearfix {
clear: fix;
}
*,
*:before,
*:after {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html,
body {
width: 100%;
font-size: 24px;
font-family: Helvetica, Roboto, "Heiti SC", "黑体", Arial;
line-height: 1.4;
}
a {
outline: none;
color: #000;
text-decoration: none;
}
input {
border: 0;
}
ol,
ul {
list-style: none;
}
*:focus {
outline: none;
}
.main-wrap {
position: relative;
margin-right: auto;
margin-left: auto;
width: 100%;
max-width: 750px;
}
.text-center {
text-align: center;
}
.hide {
display: none;
}
.overflow-hidden {
overflow: hidden;
height: 100%;
}
.right {
float: right;
}
.left {
float: right;
}
.hide {
display: none;
}
.mr50 {
margin-right: 50px;
}
.ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
@define-mixin line-clamp {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-all;
}
@for $i from 1 to 3 {
.line-clamp-$i {
-webkit-line-clamp: $(i);
@mixin line-clamp;
}
}