richtext.less
2.3 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
116
117
118
119
120
121
122
123
.richtext {
margin: 8px 0 0;
overflow: hidden;
h3 {border-left:2px solid @brand-pink;display:block;font-size:18px;text-indent:14px;line-height:18px;font-weight:400;}
p,ul,ol {
font-family: 'Microsoft YaHei',san-serif;
font-size: 14px !important;
color: #555;
line-height: 29px !important;
white-space: pre-line;
word-break: break-all
}
p {
margin-top: 15px;
margin-bottom: 15px;
text-indent: 2em;
text-align: justify;
span {
font-family: 'Microsoft YaHei',san-serif;
font-size: 14px !important;
color: #555;
line-height: 29px !important;
white-space: pre-line;
word-break: break-all
}
}
ul,ol {
padding-left: 20px;
li{
text-indent: 0
}
p {
font-size: 18px;
text-indent: .5em
}
}
ul li {
list-style: outside square
}
ol li {
list-style: outside decimal
}
strong {
font-weight: 700;
color: #333
}
img {
max-width: 790px;
}
.pd-card {
position: relative;
height: 140px;
width: 630px;
margin: 23px auto;
border: 1px solid #eee;
.transition(box-shadow 300ms ease-out);
&:hover {
.box-shadow(0 2px 2px #eee);
}
.img-wrap {
position: absolute;
top: 0;
left: 0;
z-index: 2;
width: 140px;
height: 140px;
border-right: 1px solid #eee;
img {
width: 120px;
height: 120px;
margin: 10px;
}
}
.card-info {
.box-sizing(border-box);
position: absolute;
top: 17px;
left: 165px;
width: 436px;
}
.title {
max-height: 56px;
margin: 0;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-size: 16px;
font-weight: 400;
line-height: 28px;
color: #202e3b;
a {
color: inherit;
text-decoration: none;
}
}
.card-b {
position: absolute;
top: 64px;
left: 0;
width: 100%;
}
.card-price, .merchant {
float: left;
}
.card-price {
margin-right: 22px;
font-size: 24px;
line-height: 34px;
color: #fe5579;
}
.merchant {
margin-top: 10px;
color: #6e86ad;
}
}
}