-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathcommon.css
More file actions
301 lines (278 loc) · 5.42 KB
/
common.css
File metadata and controls
301 lines (278 loc) · 5.42 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
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
*{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-text-size-adjust: none;
}
html,body{
margin: 0;
padding: 0;
border: none;
line-height: 1;
min-height:100%;
height: 100%;
}
body{
color: #333;
font-size: 14px;
font-family: "Microsoft YaHei","微软雅黑",Arial,Helvetica,sans-serif;
}
ul,ol,figure,form,dl,dt,dd{
margin: 0;
padding: 0;
}
img{
border: 0;
vertical-align: middle;
}
a{
color: #000;
text-decoration: none;
}
a:hover{
text-decoration: underline;
}
.container{
position: relative;
width: 80%;
max-width: 980px;
margin: auto;
}
.container:after{
content: "";
display: block;
clear: both;
}
body>nav{
height: 60px;
background: #fff;
}
body>nav .logo{
display: block;
float: left;
height: 60px;
text-decoration: none;
font: normal 2em/60px Consolas;
color: #000;
}
body>nav .logo img{
float: left;
height: 100%;
margin-right: .5em;
}
body>nav ul{
position: absolute;
top: 0;
right: 0;
padding: 20px 0;
}
body>nav li{
list-style: none;
display: inline-block;
height: 20px;
line-height: 20px;
vertical-align: middle;
margin-left: 20px;
}
footer{
padding: 20px 0;
}
footer .copyright{
line-height: 20px;
color: #999;
font-size: 80%;
}
article h1,
article h2,
article h3,
article h4,
article h5,
article h6,
article p{margin:1em 0;}
article h1{font-size: 2.2em; line-height: 1.2em;}
article h2{font-size: 2em; line-height: 1.2em;}
article h3{font-size: 1.8em; line-height: 1.2em;}
article h4{font-size: 1.6em; line-height: 1.2em;}
article h5{font-size: 1.4em; line-height: 1.2em;}
article h6{font-size: 1.2em; line-height: 1.2em;}
article figure{margin: 1em 0;}
article p img,
article figure img{max-width: 100%; margin-bottom: .5em;}
article figure.half img{max-width: 50%;}
article figure.half img.margin{max-width: 46%; margin: 2%; box-shadow: 0 5px 15px rgba(0,0,0,.5);}
article ul,
article ol{padding-left:2em;}
article dl{margin:.5em .8em;}
article dl dd{margin-left:2em;}
article dl dd>ul,
article dl dd>ol{padding-left:1em;}
article pre{width:100%; overflow-x:auto; line-height:1.2em; border-radius: 4px; background:#333;}
article code{border-radius: 4px; font:normal 85%/1.2em "Inconsolata", "Monaco", "Consolas", "Andale Mono", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;}
article :not(pre)>code{margin:auto 1px; padding:1px 2px; border: 1px solid #d7d7d7; background: #eee;}
article table{border-collapse:collapse;}
article th,article td{padding:0 10px; border:1px solid #ccc; font-size:85%;}
article th{background:#eee; text-align:left;}
article td{background:#fff;}
article table a{margin:0;}
article blockquote{line-height:1.6em; margin:1em 0 1em 1.5em; border-left:2px solid #eee; padding-left:1em; font-size:90%;}
@media (max-width: 640px) {
.container{
width: 96%;
max-width: 96%;
}
}
.page-single .container:not(body>nav){
max-width: 640px;
font-size: 1.2em;
line-height: 1.8em;
}
.page-single article h1:first-child,
.page-single article p.meta{
text-align: center;
}
.page-single article p.meta{
margin-bottom: 2em;
font-size: 90%;
}
.page-list{
background: #f0f0f0;
}
.page-list main{
margin-top: 20px;
}
.page-list aside .block{
padding: 10px;
background: #fff;
}
.page-list aside nav .btn-add{
display: block;
border: 1px solid #999;
border-radius: 4px;
vertical-align: middle;
line-height: 48px;
font-size: 1.2em;
text-align: center;
}
.page-list aside nav .btn-add i{
margin-right: .5em;
}
.page-list aside nav .btn-add:hover{
text-decoration: none;
color: #000;
}
.page-list aside nav .btn-add:hover i{
font-size: 1.2em;
}
.page-list #label-list li{
list-style: none;
margin-top: 10px;
}
.page-list #label-list a{
display: block;
border-radius: 4px;
padding: 10px;
color: #fff;
}
.page-list #label-list .fa-tag{
margin-right: .5em;
}
.page-list #issue-list{
background: #fff;
}
.page-list #issue-list li{
list-style: none;
position: relative;
min-height: 70px;
padding: 10px 10px 10px 70px;
border-bottom: 1px solid #eee;
border-left: 2px solid transparent;
}
.page-list #issue-list li.loading,
.page-list #issue-list li.gotowork{
padding: 50px 10px;
text-align: center;
font-size: 200%;
}
.page-list #issue-list li.hidden{
display: none;
}
.page-list #issue-list figure{
position: absolute;
top: 10px;
left: 10px;
width: 48px;
height: 48px;
}
.page-list #issue-list figure img{
max-width: 100%;
border-radius: 4px;
}
.page-list #issue-list h4{
margin: 0;
line-height: 1.5em;
font-size: 110%;
}
.page-list #issue-list h4 a{
color: #666;
}
.page-list #issue-list h4 a:visited{
color: #999;
}
.page-list #issue-list p{
margin: 0;
line-height: 1.5em;
}
.page-list #issue-list p > * {
height: 16px;
background-color: #eee;
color: #999;
margin-right: .5em;
padding: 0 1em;
border-radius: 8px;
font-size: 13px;
}
@media (min-width: 1024px) {
.page-list #issue-list{
width: 74%;
}
.page-list aside{
float: right;
width: 24%;
}
}
@media (max-width: 640px) {
body>nav .container{
width: 100%;
max-width: 100%;
}
body>nav .logo *:not(img){
display: none;
}
body>nav li{
margin-left: 10px;
}
.page-list aside{
margin-bottom: 2%;
}
.page-list aside nav .btn-add{
line-height: 32px;
}
.page-list main{
margin-top: 2%;
}
.page-list #label-list li{
display: inline-block;
margin-right: 10px;
}
.page-list #label-list a{
padding: 5px;
}
.page-list #issue-list li{
min-height: 55px;
padding-left: 55px;
}
.page-list #issue-list figure{
width: 32px;
height: 32px;
}
}