-
Notifications
You must be signed in to change notification settings - Fork 46
/
wx-mp.css
208 lines (202 loc) · 4.5 KB
/
wx-mp.css
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/* 微信公众号图文网页默认样式 */
* {
margin:0;
padding:0
}
html {
-ms-text-size-adjust:100%;
-webkit-text-size-adjust:100%;
line-height:1.6
}
body {
-webkit-touch-callout:none;
font-family:-apple-system-font, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
background-color:#f3f3f3;
line-height:inherit
}
h1, h2, h3, h4, h5, h6 {
font-weight:400;
font-size:16px
}
a {
color:#607fa6;
text-decoration:none
}
img {
height:auto!important
}
/* http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg/page_mp_article_improve_combo2eb52b.css */
/* 表格样式 */
table {
margin-bottom:10px;
border-collapse:collapse;
display:table;
width:100%!important
}
td, th {
word-wrap:break-word;
word-break:break-all;
padding:5px 10px;
border:1px solid #ddd
}
caption {
border:1px dashed #ddd;
border-bottom:0;
padding:3px;
text-align:center
}
th {
border-top:2px solid #BBB;
background:#f7f7f7
}
/* 内容区域 */
.rich_media_inner {
font-size:16px;
word-wrap:break-word;
-webkit-hyphens:auto;
-ms-hyphens:auto;
hyphens:auto
}
.rich_media_area_primary {
position:relative;
padding:20px 15px 15px;
background-color:#fff
}
.rich_media_area_primary:before {
content:" ";
position:absolute;
left:0;
top:0;
width:100%;
height:1px;
border-top:1px solid #e5e5e5;
-webkit-transform-origin:0 0;
transform-origin:0 0;
-webkit-transform:scaleY(0.5);
transform:scaleY(0.5);
top:auto;
bottom:-2px
}
.rich_media_area_primary .original_img_wrp {
display:inline-block;
font-size:0
}
.rich_media_area_primary .original_img_wrp .tips_global {
display:block;
margin-top:.5em;
font-size:14px;
text-align:right;
width:auto;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
word-wrap:normal
}
/* 图文标题 */
.rich_media_title {
margin-bottom:10px;
line-height:1.4;
font-weight:400;
font-size:24px
}
/* 图文元数据: 时间/作者/公众号 */
.rich_media_meta_list {
margin-bottom:18px;
line-height:20px;
font-size:0
}
.rich_media_meta_list em {
font-style:normal
}
.rich_media_meta {
display:inline-block;
vertical-align:middle;
margin-right:8px;
margin-bottom:10px;
font-size:16px
}
.rich_media_meta_text {
color:#8c8c8c
}
span.rich_media_meta_nickname {
display:none
}
/* 图文封面图片显示在正文中 */
.rich_media_thumb_wrp {
margin-bottom:6px
}
.rich_media_thumb_wrp .original_img_wrp {
display:block
}
.rich_media_thumb {
display:block;
width:100%
}
/* 图文的正文 */
.rich_media_content {
overflow:hidden;
color:#3e3e3e
}
.rich_media_content * {
max-width:100%!important;
box-sizing:border-box!important;
-webkit-box-sizing:border-box!important;
word-wrap:break-word!important
}
.rich_media_content p {
clear:both;
min-height:1em;
white-space:pre-wrap
}
.rich_media_content em {
font-style:italic
}
.rich_media_content fieldset {
min-width:0
}
.rich_media_content .list-paddingleft-2 {
padding-left:30px
}
.rich_media_content blockquote {
margin:0;
padding-left:10px;
border-left:3px solid #dbdbdb
}
@media(min-device-width:375px) and (max-device-width:667px) and (-webkit-min-device-pixel-ratio:2) {
.mm_appmsg .rich_media_inner, .mm_appmsg .rich_media_meta, .mm_appmsg .discuss_list, .mm_appmsg .rich_media_extra, .mm_appmsg .title_tips .tips {
font-size:17px
}
.mm_appmsg .meta_original_tag {
font-size:15px
}
}
@media(min-device-width:414px) and (max-device-width:736px) and (-webkit-min-device-pixel-ratio:3) {
.mm_appmsg .rich_media_title {
font-size:25px
}
}
@media screen and (min-width:1024px) {
.rich_media {
width:740px;
margin-left:auto;
margin-right:auto
}
.rich_media_inner {
padding:20px
}
body {
background-color:#fff
}
}
@media screen and (min-width:1025px) {
body {
font-family:"Helvetica Neue", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif
}
.rich_media {
position:relative
}
.rich_media_inner {
background-color:#fff;
padding-bottom:100px
}
}