_common.css
1.39 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
@use postcss-clearfix ;
.clearfix {
clear: fix;
}
*,
*:before,
*:after {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html,
body {
width: 100%;
font-size: 24px;
font-family: "PingFang SC", 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;
max-width: 750px;
width: 100%;
}
.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;
text-overflow: ellipsis;
white-space: nowrap;
}
img[lazy] {
transition: all 200ms;
}
img[lazy=loading] {
opacity: 0.2;
}
img[lazy=error] {
opacity: 0;
}
img[lazy=loaded] {
opacity: 1;
}
@define-mixin line-clamp {
display: -webkit-box;
overflow: hidden;
word-break: break-all;
-webkit-box-orient: vertical;
}
@for $i from 1 to 3 {
.line-clamp-$i { /* stylelint-disable-line */
@mixin line-clamp ;
-webkit-line-clamp: $(i);
}
}