commit | author | age
|
bf6fbe
|
1 |
/*常用元素*/ |
L |
2 |
body { |
|
3 |
background: url(../static/background.jpg) no-repeat fixed 50% 50%; |
|
4 |
/*background: url(background.jpg) fixed 50% 50%;*/ |
|
5 |
/*background-color: #dddddd;*/ |
|
6 |
background-size: cover; |
|
7 |
width: 100%; |
|
8 |
height: 100%; |
|
9 |
} |
|
10 |
|
|
11 |
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { |
|
12 |
font-weight: 400; |
|
13 |
} |
|
14 |
|
|
15 |
p { |
|
16 |
font-size: 12px; |
|
17 |
letter-spacing: 0.8px; |
|
18 |
line-height: 20px; |
|
19 |
} |
|
20 |
|
|
21 |
/*--------- |
|
22 |
| 头部 | |
|
23 |
----------*/ |
|
24 |
.blog-head { |
|
25 |
position: fixed; |
|
26 |
top: 0px; |
|
27 |
z-index: 999; |
|
28 |
} |
|
29 |
|
|
30 |
/*--------- |
|
31 |
| 主体 | |
|
32 |
----------*/ |
|
33 |
.blog-main { |
|
34 |
padding-top: 80px; |
|
35 |
padding-left: 6%; |
|
36 |
padding-right: 7%; |
|
37 |
padding-bottom: 2%; |
|
38 |
} |
|
39 |
|
|
40 |
/*--------- |
|
41 |
| 脚部 | |
|
42 |
----------*/ |
|
43 |
.blog-footer { |
|
44 |
background-color: #141414; |
|
45 |
color: #757575; |
|
46 |
text-align: center; |
|
47 |
/*position: fixed;*/ |
|
48 |
bottom: 0px; |
|
49 |
z-index: 200; |
|
50 |
width: 100%; |
|
51 |
} |
|
52 |
|
|
53 |
/*左右两边的盒子容器*/ |
|
54 |
.blog-cell-main-container { |
|
55 |
opacity: 0.8; |
|
56 |
padding: 0px 25px 10px; |
|
57 |
} |
|
58 |
|
|
59 |
/*左边部分*/ |
|
60 |
.blog-left-side-portion { |
|
61 |
position: sticky; |
|
62 |
top: 80px; |
|
63 |
padding-left: 2%; |
|
64 |
/*padding-right: 2%;*/ |
|
65 |
z-index: 100; |
|
66 |
} |
|
67 |
|
|
68 |
/*中间部分*/ |
|
69 |
.blog-body { |
|
70 |
padding-top: 10px; |
|
71 |
/*padding-left: 3%;*/ |
|
72 |
/*padding-right: 3%;*/ |
|
73 |
} |
|
74 |
|
|
75 |
/*右边部分*/ |
|
76 |
.blog-right-side-portion { |
|
77 |
position: sticky; |
|
78 |
top: -19%; |
|
79 |
padding-top: 10px; |
|
80 |
/*padding-left: 2%;*/ |
|
81 |
/*padding-right: 2%;*/ |
|
82 |
z-index: 100; |
|
83 |
} |
|
84 |
|
|
85 |
div .blog-right-side-meta div { |
|
86 |
padding-left: 6%; |
|
87 |
padding-right: 6%; |
|
88 |
margin-bottom: 3%; |
|
89 |
} |
|
90 |
|
|
91 |
/*--------------------- |
|
92 |
| 核心盒子构成start | |
|
93 |
------- ---------------*/ |
|
94 |
.blog-left-side-scroll-portion, .blog-right-side-container { |
|
95 |
border-radius: 15px; |
|
96 |
background-color: white; |
|
97 |
|
|
98 |
line-height: 1.4; |
|
99 |
white-space: nowrap; /*规定段落中的文本不进行换行:*/ |
|
100 |
text-align: center; |
|
101 |
padding-top: 20px; |
|
102 |
padding-bottom: 20px; |
|
103 |
max-height: 200px; |
|
104 |
/*margin-top: 10px;*/ |
|
105 |
/*min-height: 200px;*/ |
|
106 |
|
|
107 |
overflow-x: hidden; |
|
108 |
overflow-y: auto; |
|
109 |
display: block; |
|
110 |
} |
|
111 |
|
|
112 |
.blog-right-side-container { |
|
113 |
padding-top: 10px; |
|
114 |
padding-bottom: 20px; |
|
115 |
overflow: hidden; |
|
116 |
} |
|
117 |
|
|
118 |
.blog-right-side-scroll-portion { |
|
119 |
padding-top: 10px; |
|
120 |
max-height: 150px; |
|
121 |
|
|
122 |
overflow-x: hidden; |
|
123 |
overflow-y: auto; |
|
124 |
border-top: 1px solid #999; |
|
125 |
} |
|
126 |
|
|
127 |
/*预留滚动条的宽度*/ |
|
128 |
.blog-left-side-scroll-portion, .blog-right-side-scroll-portion { |
|
129 |
padding-right: 5px; |
|
130 |
} |
|
131 |
|
|
132 |
/*预留滚动条的宽度*/ |
|
133 |
.blog-left-side-scroll-portion:hover, .blog-right-side-scroll-portion:hover { |
|
134 |
padding-right: 0px; |
|
135 |
} |
|
136 |
|
|
137 |
.blog-left-side-scroll-portion:hover::-webkit-scrollbar { |
|
138 |
display: block; |
|
139 |
} |
|
140 |
|
|
141 |
.blog-right-side-scroll-portion:hover::-webkit-scrollbar { |
|
142 |
display: block; |
|
143 |
} |
|
144 |
|
|
145 |
.blog-left-side-scroll-portion::-webkit-scrollbar, .blog-right-side-scroll-portion::-webkit-scrollbar { |
|
146 |
width: 5px; |
|
147 |
display: none; |
|
148 |
} |
|
149 |
|
|
150 |
.blog-left-side-scroll-portion::-webkit-scrollbar-thumb, .blog-right-side-scroll-portion::-webkit-scrollbar-thumb { |
|
151 |
background-color: rgba(153, 154, 170, 0.3); |
|
152 |
border-radius: 2px; |
|
153 |
} |
|
154 |
|
|
155 |
/*margin滚动条上偏移*/ |
|
156 |
.blog-left-side-scroll-portion::-webkit-scrollbar-track,.layui-layer-content::-webkit-scrollbar-track{ |
|
157 |
margin-top: 20px; |
|
158 |
margin-bottom: 20px; |
|
159 |
} |
|
160 |
|
|
161 |
/*layui弹出层不要滚动条*/ |
|
162 |
.layui-layer-content::-webkit-scrollbar { |
|
163 |
width: 7px; |
|
164 |
height: 20%; |
|
165 |
display: none; |
|
166 |
} |
|
167 |
|
|
168 |
.layui-layer-content::-webkit-scrollbar-thumb { |
|
169 |
background-color: rgba(76, 77, 79, 0.3); |
|
170 |
border-radius: 2px; |
|
171 |
} |
|
172 |
|
|
173 |
.layui-layer-content:hover::-webkit-scrollbar { |
|
174 |
display: block; |
|
175 |
} |
|
176 |
|
|
177 |
/*--------------------- |
|
178 |
| 核心盒子构成end | |
|
179 |
------- ---------------*/ |
|
180 |
|
|
181 |
/*遗留无用部分,用来显示过长的部分*/ |
|
182 |
something:hover::after { |
|
183 |
/*content: attr(data-customer);*/ |
|
184 |
/*content: "kiki超超超超超超超超超超超超长的 陈奕迅 baby song 歌词 ";*/ |
|
185 |
content: ""; |
|
186 |
background: #F2F2F2; |
|
187 |
/*border: 1px solid #E5E5E5;*/ |
|
188 |
box-shadow: 0 2px 4px 0 rgba(56, 62, 71, 0.10); |
|
189 |
border-radius: 2px; |
|
190 |
padding: 2px 6px; |
|
191 |
font-size: 13px; |
|
192 |
color: #202332; |
|
193 |
|
|
194 |
word-break: break-word; /*可以换行 white-space CSS 属性是用来设置如何处理元素中的空白。*/ |
|
195 |
word-wrap: break-word; |
|
196 |
|
|
197 |
max-width: 90%; /*如果一个单词太长,则截断 CSS 属性 word-break 指定了怎样在单词内断行。 white-space: normal;*/ |
|
198 |
max-height: 10%; |
|
199 |
|
|
200 |
/*position: relative;*/ |
|
201 |
z-index: 500; |
|
202 |
top: 13%; |
|
203 |
left: 15%; |
|
204 |
} |
|
205 |
|
|
206 |
/*切出按钮*/ |
|
207 |
.blog-comment-left-guide { |
|
208 |
position: fixed; |
|
209 |
top: 45%; |
|
210 |
left: -12px; |
|
211 |
padding-left: 15px; |
|
212 |
padding-top: 15px; |
|
213 |
|
|
214 |
background-color: white; |
|
215 |
width: 20px; |
|
216 |
height: 30px; |
|
217 |
|
|
218 |
display: block; |
|
219 |
border-radius: 20%; |
|
220 |
opacity: 0.3; |
|
221 |
z-index: 200; |
|
222 |
} |
|
223 |
|
|
224 |
.blog-comment-right-guide { |
|
225 |
position: fixed; |
|
226 |
top: 45%; |
|
227 |
right: -12px; |
|
228 |
padding-left: 2px; |
|
229 |
|
|
230 |
padding-right: 13px; |
|
231 |
padding-top: 15px; |
|
232 |
|
|
233 |
background-color: white; |
|
234 |
width: 20px; |
|
235 |
height: 30px; |
|
236 |
display: block; |
|
237 |
border-radius: 20%; |
|
238 |
opacity: 0.3; |
|
239 |
z-index: 200; |
|
240 |
} |
|
241 |
|
|
242 |
/*头像部分*/ |
|
243 |
.blog-avatar { |
|
244 |
border-radius: 15px; |
|
245 |
background-color: white; |
|
246 |
} |
|
247 |
|
|
248 |
.blog-avatar img { |
|
249 |
width: 60px; |
|
250 |
height: auto; |
|
251 |
border-radius: 50%; |
|
252 |
display: block; |
|
253 |
margin: 10px auto 10px; |
|
254 |
padding-top: 10px; |
|
255 |
} |
|
256 |
|
|
257 |
.blog-user-message { |
|
258 |
text-align: center; |
|
259 |
font-size: 15px; |
|
260 |
color: #555; |
|
261 |
padding-top: 10px; |
|
262 |
padding-bottom: 10px; |
|
263 |
} |
|
264 |
|
|
265 |
.blog-user-message span { |
|
266 |
display: block; |
|
267 |
padding-bottom: 5px; |
|
268 |
} |
|
269 |
|
|
270 |
/*日志部分*/ |
|
271 |
.blog-log-list { |
|
272 |
line-height: 1.6; |
|
273 |
padding-left: 3%; |
|
274 |
padding-right: 3%; |
|
275 |
|
|
276 |
flex-wrap: wrap; /*让弹性盒元素在必要的时候拆行:*/ |
|
277 |
display: -webkit-flex; |
|
278 |
display: flex; |
|
279 |
-webkit-justify-content: center; |
|
280 |
justify-content: center; |
|
281 |
} |
|
282 |
|
|
283 |
.blog-log-item { |
|
284 |
border-left: 2px solid rgba(222, 229, 231, .45); |
|
285 |
width: 23%; |
|
286 |
margin-bottom: 10px; |
|
287 |
} |
|
288 |
|
|
289 |
.blog-log-item:first-child { |
|
290 |
border-left: none; |
|
291 |
} |
|
292 |
|
|
293 |
.blog-log-item a span:first-child { |
|
294 |
color: #999; |
|
295 |
} |
|
296 |
|
|
297 |
.blog-log-item a span:last-child { |
|
298 |
font-weight: 600; |
|
299 |
font-size: 15px; |
|
300 |
} |
|
301 |
|
|
302 |
.blog-log-item span { |
|
303 |
display: block; |
|
304 |
} |
|
305 |
|
|
306 |
/*归档部分*/ |
|
307 |
|
|
308 |
.blog-pigeonhole { |
|
309 |
font-size: 15px; |
|
310 |
} |
|
311 |
|
|
312 |
.blog-pigeonhole-p { |
|
313 |
width: 20%; |
|
314 |
text-align: center; |
|
315 |
line-height: 20px; |
|
316 |
border-radius: 6px 6px 6px 6px; |
|
317 |
/*background-color: #edf0f3;*/ |
|
318 |
margin-left: 3%; |
|
319 |
margin-bottom: 3%; |
|
320 |
opacity: 0.7; |
|
321 |
} |
|
322 |
|
|
323 |
.blog-pigeonhole-list { |
|
324 |
line-height: 1.6; |
|
325 |
padding-left: 3%; |
|
326 |
padding-right: 3%; |
|
327 |
/*display: flex; !*弹性盒子*!*/ |
|
328 |
/*justify-content: flex-end; !*在弹性盒对象的 <div> 元素中的各项周围留有空白:*!*/ |
|
329 |
|
|
330 |
display: flex; |
|
331 |
display: -webkit-flex; |
|
332 |
-webkit-justify-content: flex-start; |
|
333 |
justify-content: flex-start; |
|
334 |
|
|
335 |
flex-wrap: wrap; /*让弹性盒元素在必要的时候拆行:*/ |
|
336 |
align-content: flex-start; |
|
337 |
-webkit-align-content: flex-start; |
|
338 |
|
|
339 |
} |
|
340 |
|
|
341 |
.blog-pigeonhole-item { |
|
342 |
min-width: 22%; |
|
343 |
margin-left: 1.5%; |
|
344 |
margin-right: 1.5%; |
|
345 |
margin-bottom: 5%; |
|
346 |
} |
|
347 |
|
|
348 |
.blog-pigeonhole-item a span:first-child { |
|
349 |
height: 22px; |
|
350 |
background-color: #edf0f3; |
|
351 |
border-radius: 6px 6px 0 0; |
|
352 |
opacity: .8; |
|
353 |
color: #999aaa; |
|
354 |
line-height: 22px; |
|
355 |
margin-bottom: 1px; |
|
356 |
text-align: center; |
|
357 |
} |
|
358 |
|
|
359 |
.blog-pigeonhole-item a span:last-child { |
|
360 |
height: 22px; |
|
361 |
background-color: #f6f8fa; |
|
362 |
border-radius: 0 0 6px 6px; |
|
363 |
color: #555666; |
|
364 |
line-height: 20px; |
|
365 |
font-weight: 600; |
|
366 |
text-align: center; |
|
367 |
} |
|
368 |
|
|
369 |
.blog-pigeonhole-item span { |
|
370 |
display: block; |
|
371 |
} |
|
372 |
|
|
373 |
/*文章部分*/ |
|
374 |
.blog-article { |
|
375 |
margin-bottom: 20px; |
|
376 |
border-radius: 15px; |
|
377 |
border: none; |
|
378 |
/*box-shadow: 1px 1px 5px 5px rgba(17, 150, 196, 0.35);*/ |
|
379 |
} |
|
380 |
|
|
381 |
.article-meta { |
|
382 |
padding: 30px 30px 10px; |
|
383 |
background-color: white; |
|
384 |
border-radius: 15px; |
|
385 |
} |
|
386 |
|
|
387 |
.article-title { |
|
388 |
color: #555; |
|
389 |
font-size: 25px; |
|
390 |
padding-bottom: 15px; |
|
391 |
margin-top: 0 !important; |
|
392 |
display: block; |
|
393 |
overflow: hidden; |
|
394 |
white-space: nowrap; |
|
395 |
text-overflow: ellipsis; |
|
396 |
text-align: center; |
|
397 |
} |
|
398 |
|
|
399 |
.article-split-line { |
|
400 |
width: 100%; |
|
401 |
height: 2px; |
|
402 |
overflow: hidden; |
|
403 |
font-size: 0; |
|
404 |
margin-top: 8px; |
|
405 |
margin-bottom: 8px; |
|
406 |
border-color: rgba(237, 241, 242, .6); |
|
407 |
|
|
408 |
border-bottom: 1px solid rgba(222, 229, 231, .45); |
|
409 |
display: block |
|
410 |
} |
|
411 |
|
|
412 |
.article-message-info { |
|
413 |
text-align: center; |
|
414 |
} |
|
415 |
|
|
416 |
.article-message-info li { |
|
417 |
display: inline-block; |
|
418 |
padding-right: 5px; |
|
419 |
padding-left: 5px; |
|
420 |
} |
|
421 |
|
|
422 |
.article-message-info li span { |
|
423 |
padding-left: 0px; |
|
424 |
} |
|
425 |
|
|
426 |
.article-summary { |
|
427 |
max-height: 200px; |
|
428 |
overflow: hidden; |
|
429 |
} |
|
430 |
|
|
431 |
.article-summary p { |
|
432 |
text-align: center; |
|
433 |
} |
|
434 |
|
|
435 |
.article-read-btn { |
|
436 |
text-align: center; |
|
437 |
display: block; |
|
438 |
} |
|
439 |
|
|
440 |
.btn { |
|
441 |
display: inline-block; |
|
442 |
padding: 0 20px; |
|
443 |
color: #555; |
|
444 |
background: #fff; |
|
445 |
border: 2px solid #555; |
|
446 |
text-decoration: none; |
|
447 |
border-radius: 2px; |
|
448 |
|
|
449 |
line-height: 2; |
|
450 |
font-size: 14px; |
|
451 |
overflow-wrap: break-word; |
|
452 |
word-wrap: break-word; |
|
453 |
cursor: pointer; |
|
454 |
|
|
455 |
transition-property: background-color; |
|
456 |
transition-duration: .2s; |
|
457 |
transition-timing-function: ease-in-out; |
|
458 |
transition-delay: 0s; |
|
459 |
} |
|
460 |
|
|
461 |
.btn:hover { |
|
462 |
background: #262a30; |
|
463 |
color: #fff; |
|
464 |
} |
|
465 |
|
|
466 |
/*文章图片部分*/ |
|
467 |
.item-thumb { |
|
468 |
min-height: 250px; |
|
469 |
position: relative; |
|
470 |
display: block; |
|
471 |
background-position: 50% 50%; |
|
472 |
background-size: cover; |
|
473 |
border-radius: 15px; |
|
474 |
} |
|
475 |
|
|
476 |
.item-thumb { |
|
477 |
cursor: pointer; |
|
478 |
transition: all 0.6s; |
|
479 |
} |
|
480 |
|
|
481 |
.item-thumb:hover { |
|
482 |
transform: scale(1.05); |
|
483 |
} |
|
484 |
|
|
485 |
.item-thumb-small { |
|
486 |
cursor: pointer; |
|
487 |
transition: all 0.6s; |
|
488 |
} |
|
489 |
|
|
490 |
.item-thumb-small:hover { |
|
491 |
transform: scale(1.05); |
|
492 |
} |
|
493 |
|
|
494 |
.blog-right-side-portion-title { |
|
495 |
display: block; |
|
496 |
font-size: 15px; |
|
497 |
padding-bottom: 8px; |
|
498 |
|
|
499 |
} |
|
500 |
|
|
501 |
span.title-remark::after { |
|
502 |
content: "(按字母索引)"; |
|
503 |
color: #999; |
|
504 |
font-size: 10px; |
|
505 |
} |
|
506 |
|
|
507 |
.blog-right-side-exchange { |
|
508 |
padding-top: 5px; |
|
509 |
} |
|
510 |
|
|
511 |
/*右边的部分*/ |
|
512 |
.blog-right-side-meta span { |
|
513 |
/*word-break: keep-all;*/ |
|
514 |
/*word-wrap: break-word;*/ |
|
515 |
color: #999; |
|
516 |
font-size: 13px; |
|
517 |
display: block; |
|
518 |
overflow: hidden; |
|
519 |
text-overflow: ellipsis; |
|
520 |
|
|
521 |
white-space: nowrap; /* normal文本换行*/ |
|
522 |
|
|
523 |
word-break: keep-all; |
|
524 |
transition-property: background-color; |
|
525 |
transition-duration: .2s; |
|
526 |
transition-timing-function: ease-in-out; |
|
527 |
transition-delay: 0s; |
|
528 |
} |
|
529 |
|
|
530 |
div .blog-right-side-meta a span:hover { |
|
531 |
background: #5FB878; |
|
532 |
color: #fff; |
|
533 |
white-space: normal; |
|
534 |
word-break: break-word; /*可以换行 white-space CSS 属性是用来设置如何处理元素中的空白。*/ |
|
535 |
height: 20%; |
|
536 |
z-index: 600; |
|
537 |
} |