-
Notifications
You must be signed in to change notification settings - Fork 1
/
typo.css
246 lines (246 loc) · 4.08 KB
/
typo.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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
@charset 'utf-8';
/*!
* Typo v1.0.6 (http://typo.reqianduan.com/)
* A typography stylesheet designed for better reading experience.
* © 2017 Arvin Xiang. All rights reserved.
*/
.typo {
font: 300 16px/1.8 'Georgia', 'PingFang SC', 'Lantinghei SC', 'Microsoft Yahei', 'Hiragino Sans GB', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
color: #444443;
}
.typo h1,
.typo h2,
.typo h3,
.typo h4,
.typo h5,
.typo h6 {
/* 标题应该更贴紧内容,并与其他块区分,margin 值要相应做优化 */
margin-top: 1.5em;
margin-bottom: .5em;
color: #222223;
}
.typo h1 {
font-size: 1.8em;
}
.typo h2 {
font-size: 1.5em;
}
.typo h3 {
font-size: 1.2em;
}
.typo h4,
.typo h5,
.typo h6 {
font-size: 1em;
}
.typo h6 {
font-weight: 500;
}
.typo ul,
.typo ol {
margin: 0 0 15px;
}
.typo ul li,
.typo ol li {
line-height: 1.8;
}
.typo ol {
counter-reset: ol-counter;
}
.typo p {
max-width: 100%;
margin-top: 0;
margin-bottom: 1em;
}
.typo a {
text-decoration: none;
word-wrap: break-word;
}
.typo a:focus,
.typo a:hover {
text-decoration: underline;
}
.typo strong,
.typo b {
font-weight: 700;
}
.typo em,
.typo i {
font-style: italic;
}
.typo img {
max-width: 100%;
height: auto;
margin: .2em 0;
border: none;
/* Remove border on IE */
}
.typo figure {
position: relative;
clear: both;
min-height: 100px;
margin: 10px 0 30px;
padding: 0;
outline: 0;
}
.typo figure img {
display: block;
box-sizing: border-box;
max-width: 100%;
margin: auto auto 4px;
}
.typo figure figcaption {
font-size: 14px;
font-weight: 400;
position: relative;
left: 0;
width: 100%;
margin-top: 10px;
text-align: center;
color: #888;
}
.typo figure figcaption a {
text-decoration: none;
color: #888;
}
.typo hr {
display: block;
margin: 2em 0;
border: 0;
border-top: 1px solid #eee;
}
.typo blockquote {
font-size: 1em;
font-weight: 300;
position: relative;
margin: 0 0 30px;
padding-top: 10px;
padding-left: 50px;
color: #aaa;
border: none;
/* reset bootstrap */
}
.typo blockquote:last-child {
margin-bottom: 0;
}
.typo blockquote:before {
font-family: Georgia, 'Times New Roman', Times, serif;
font-size: 60px;
position: absolute;
top: -25px;
left: 10px;
content: '\201C';
color: #ddd;
}
.typo code,
.typo tt {
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
font-size: .8em;
padding: 2px 4px;
word-wrap: break-word;
color: #808080;
border-radius: 3px;
background-color: #eee;
}
.typo pre {
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
font-size: .96em;
line-height: 1.5;
overflow: auto;
margin: 1.64em 0;
padding: 15px;
color: #4c4c4c;
border: none;
background-color: #f9f9f7;
}
.typo pre code,
.typo pre tt {
padding: 0;
color: #4c4c4c;
border: none;
background: none;
}
.typo table {
font-size: .96em;
box-sizing: border-box;
width: 100%;
max-width: 100%;
margin-bottom: 1.5em;
border-spacing: 0;
border-collapse: collapse;
}
.typo table th,
.typo table td {
padding: 4px 8px 4px 10px;
text-align: left;
border: 1px solid #dadada;
}
.typo table th {
font-weight: 400;
font-style: normal;
background: #f1f1f1;
}
.typo table td {
vertical-align: top;
}
.typo table pre {
margin: 0;
padding: 0;
border: none;
background: none;
}
.typo iframe {
display: block;
max-width: 100%;
margin-bottom: 30px;
}
.typo acronym,
.typo abbr {
font-variant: normal;
cursor: help;
border-bottom: 1px dotted;
}
.typo del {
text-decoration: line-through;
}
.typo sub,
.typo sup {
font-size: 75%;
line-height: 0;
position: relative;
}
.typo :root sub,
.typo :root sup {
vertical-align: baseline;
/* for ie9 and other modern browsers */
}
.typo sup {
top: -0.5em;
}
.typo sub {
bottom: -0.25em;
}
.typo small,
.typo .small {
font-size: .5em;
}
.typo mark {
margin: 0 5px;
padding: 2px 4px;
border-bottom: 1px solid #ffedce;
background: #fffdd1;
}
@media (max-width: 767px) {
.typo h1 {
font-size: 1.4em;
}
.typo h2 {
font-size: 1.2em;
}
.typo h3,
.typo h4,
.typo h5,
.typo h6 {
font-size: 1em;
}
}