-
Notifications
You must be signed in to change notification settings - Fork 1
/
cnblogs.css
673 lines (595 loc) · 13.1 KB
/
cnblogs.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
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
/* 当鼠标移动到图片上时,放大 */
#cnblogs_post_body img:hover {
position: relative;
max-width: 120%;
z-index:90;
}
/* 代码配色 */
.cnblogs_code,.cnblogs_code span{
font-size:15px!important;
}
.syntaxhighlighter a, .syntaxhighlighter div,
.syntaxhighlighter code, .syntaxhighlighter table,
.syntaxhighlighter table td, .syntaxhighlighter table tr,
.syntaxhighlighter table tbody, .syntaxhighlighter table thead,
.syntaxhighlighter table caption, .syntaxhighlighter textarea {
font-size: 15px!important;
}
.syntaxhighlighter .preprocessor {/*头文件、预编译部分*/
color: #e29710!important;
}
.syntaxhighlighter .keyword {/*关键字(for/if...else/while/return...)*/
font-weight: normal!important;
color: #b216ac!important;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a {/*注释*/
color: #d84f19!important;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a {/*int等变量类型名*/
color: #15b6bf!important;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a {/*字符串*/
color: #1bbb38!important;
}
.syntaxhighlighter .functions {/*scanf/printf等函数*/
color: #ff1493!important;
}
#cnblogs_post_body h1{
padding-bottom: 4px;
border-bottom: 2px solid #999;
color: #009FAB;
font-family: "Monaco" , "微软雅黑" ,Arial;
font-size: 24px;
font-weight: bold;
line-height: 24px;
margin: 20px 0 !important;
padding: 10px 0 10px 0px;
text-shadow: 2px 1px 2px lightgray;
}
#cnblogs_post_body h2 {
padding-bottom: 4px;
border-bottom: 2px solid #999;
color: #008891;
font-family: "Monaco", "微软雅黑" ,Arial;
font-size: 21px;
font-weight: bold;
line-height: 24px;
margin: 20px 0 !important;
padding: 10px 0px 10px 0px;
text-shadow: 2px 1px 2px lightgray;
}
#cnblogs_post_body h3{
padding-bottom: 4px;
border-bottom: 2px solid #999;
color:#016e8c;
font-family: "Monaco", "微软雅黑" ,Arial;
font-size: 18px;
font-weight: bold;
line-height: 23px;
margin: 0px 0 !important;
padding: 5px 0px 5px 0px;
text-shadow: 2px 1px 2px lightgray;
}
#cnblogs_post_body h4{
padding-bottom: 4px;
border-bottom: 2px solid #999;
color:#016e8c;
font-family: "Monaco", "微软雅黑" ,Arial;
font-size: 15px;
font-weight: bold;
line-height: 23px;
margin: 0px 0 !important;
padding: 5px 0px 5px 0px;
text-shadow: 2px 1px 2px lightgray;
}
.ptx
{
border-radius: 15px 15px 15px 15px;
background-color:#f5f5f5;
padding: 8px 0 5px 5px;
}
/* 支持|反对按钮 */
#div_digg{
position:fixed;
bottom:5px;
width:140px;
right:30px;
border:2px solid #085;
padding:10px;
background-color:#fff;
opacity:0.3;
border-radius:5px 5px 5px 5px !important;
box-shadow:0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
transition-duration: 0.5s;
}
#div_digg:hover{
opacity:1;
}
.pager a:hover {
background: rgb(229, 233, 236);
}
.pager a {
box-shadow: 0 0 1px #898989;
background: #ffffff;
}
a:link,a:visited{
color:#0074a3;
}
.cnblogs_code,.cnblogs_code span,.cnblogs-markdown .hljs{
font-size:16px!important;
}
.comment_btn {
background: #5d5d5d;
}
.CalTodayDay a:hover {
text-decoration:none!important;
}
.CalTodayDay u {
color: rgba(0, 0, 0, 0);
}
.CalTodayDay {
color: rgba(0, 0, 0, 0);
background: url(//images.cnblogs.com/cnblogs_com/flipped/789479/o_happy.png) no-repeat 6px!important;
}
@media screen and (max-width: 600px) {
#home {
width: 100%;
}
#blogTitle {
width: 100%!important;
}
#navList {
width: 90%!important;
}
}
#green_channel {
width: 500px;
}
body {
background-color: #f4f6f8;
}
#MySignature{ white-space: nowrap;
color: #99a1a9;
}
#home {
width: 90%;
max-width: 1200px;
background-color: #fff;
margin-top: 0px;
margin-bottom: 0px;
box-shadow: 0 0 0;
}
.postDesc {
font-size: 13px;
padding-left: 0px;
background: url(images/posted_time.png) no-repeat 0 6px;
}
#blogTitle h1 a{
font-size: 24px;
}
#blogTitle h1{
text-align: center;
}
#blogTitle {
width: 450px;
height: auto;
padding-bottom: 12px;
border: 4px solid #000;
margin: 0 auto;
}
#blogTitle h2 {
color: #757575;
float: none;
text-align: center;
}
#navigator {
border-bottom: 0;
border-top: 0;
}
#navList {
min-height: 40px;
float: none;
border-radius: 5px;
background: #ffffff;
width: 470px;
border: border;
border: 1px dashed;
padding-left: 30px;
margin: 0 auto;
}
#navList a:link, #navList a:visited, #navList a:active {
color: #585858;
}
#navList a {
padding-top: 8px;
width: auto;
}
.blogStats {
float: none;
text-align: center;
}
.catListTitle {
font-weight: lighter;
margin-top: 0;
text-align: center;
}
.newsItem, .catListEssay, .catListLink, .catListNoteBook, .catListTag, .catListPostCategory, .catListPostArchive, .catListImageCategory, .catListArticleArchive, .catListView, .catListFeedback, .mySearch, .catListComment, .catListBlogRank, .catList, .catListArticleCategory{
padding: 10px 10px 10px 25px;
background:#f8f8f8;
border: 1px dashed;
}
#blog-calendar {
background: #fff;
}
#HistoryToday a{
color:#ff7ba0;
}
#top{
text-align:center;
}
#sideBar a {
font-size: 12px;
}
#top a, #top a:link, #top a:visited, #top a:active, #top a:hover{
padding: 0 20px;
}
#mainContent {
margin-left: -16em;
}
#mainContent .forFlow {
margin-left: 16em;
}
.postTitle{
border-left: 0;
padding-top: 20px;
border-top: 1px dashed #333!important;
line-height: 2.0;
}
.postBody a:link, .postBody a:visited, .postBody a:active{
text-decoration:none;
}
.postTitle a {
font-size: 22px;
font-family: Microsoft YaHei,微软雅黑,宋体,Arial,Tahoma,Helvetica,sans-serif;
font-weight: normal;
}
.postTitle a:hover{
margin-left: 0px;
}
.postTitle a:link, .postTitle a:visited, .postTitle a:active {
transition: 0s;
color: #000;
}
.day .postTitle a {
padding-left: 0px;
}
.backToTop {
border: 1px dashed;
display: none;
width: 18px;
line-height: 1.2;
padding: 5px 0;
background-color: #fff;
color: #000;
font-size: 12px;
text-align: center;
position: fixed;
_position: absolute;
right: 10px;
bottom: 100px;
_bottom: "auto";
cursor: pointer;
opacity: .6;
filter: Alpha(opacity=60);
}
::selection {
color: white;
background: #45d4f5;
}
div.commentform input.author {
background-position-x: 5px;
}
.forFlow img {
margin-top: 0;
margin-bottom: 0px;
}
.author_avatar {
border-radius: 100%
}
ins, s, a, a:hover {
text-decoration: none;
}
.pager {
font-size: 16px;
}
.pager a {
border: 0;
}
*, *:before, *:after {
-webkit-font-smoothing: antialiased;
}
/*表格*/
#cnblogs_post_body table
{
overflow:hidden;
border:1px solid #d3d3d3;
background:#fefefe;
margin:0 auto;
width: 95%;
border-left: 10px;
border-right: 10px;
border-radius:5px;
font-family: "Monaco","Microsoft YaHei";
}
#cnblogs_post_body table td
{
border: 0px;
font-size: 14px;
text-align: center;
border-top:1px solid #e0e0e0;
border-right:1px solid #e0e0e0;
}
#cnblogs_post_body table tr
{
background: #F7F7F7
}
#cnblogs_post_body table th
{
font-family:'Monaco', '微软雅黑', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-size: 15px;
text-align: center;
padding-top:5px;
text-shadow: 1px 1px 1px #fff;
background-color:#e8eaeb;
border: 0px;
}
/*表头排序*/
table.tablesorter {
font-family:arial;
background-color: #CDCDCD;
margin:10px 0pt 15px;
font-size: 8pt;
width: 100%;
text-align: left;
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
background-color: #e6EEEE;
border: 1px solid #FFF;
font-size: 8pt;
padding: 4px;
}
table.tablesorter thead tr .header {
background-image: url(https://files.cnblogs.com/files/SivilTaram/bg.gif);
background-repeat: no-repeat;
background-position: center right;
cursor: pointer;
}
table.tablesorter tbody td {
color: #3D3D3D;
padding: 4px;
background-color: #FFF;
vertical-align: top;
}
table.tablesorter tbody tr.odd td {
background-color:#F0F0F6;
}
table.tablesorter thead tr .headerSortUp {
background-image: url(https://files.cnblogs.com/files/SivilTaram/asc.gif);
}
table.tablesorter thead tr .headerSortDown {
background-image: url(https://files.cnblogs.com/files/SivilTaram/desc.gif);
}
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
background-color: #8dbdd8;
}
#cnblogs_post_body code,
#cnblogs_post_body pre {
font-family: Monaco, Menlo, Consolas, Courier New, monospace;
}
#cnblogs_post_body code {
font-family: Monaco, Menlo, Consolas, monospace, Courier New !important;
background: #eee;
padding: 0 5px;
margin: 0 2px;
font-size: 14px !important;
border: 1px solid #ddd;
-webkit-border-radius: 3px;
border-radius: 3px;
}
#cnblogs_post_body pre code {
background: none;
padding: 0;
margin: 0;
border: none;
-webkit-border-radius: 0;
border-radius: 0;
}
/*引用块*/
#cnblogs_post_body blockquote {
border-left:3px solid #D7D7D7;
color:#8F9192;
border-bottom: 5px,0px,0px,3px;
margin:3px;
background: no-repeat scroll right top #F7F7F7;
padding: 10px 10px 5px;
border:1px dashed #CCC;
font-size: 14px;
}
body{
font-family: "Monaco","Microsoft YaHei";
font-size:15px;
}
.postBody {
font-size: 14px!important;
}
div.commentform p {
margin-bottom: 10px;
}
.comment_btn {
padding: 5px 10px;
height: 35px;
width: 90px;
border: 0 none;
border-radius: 5px;
background: #ddd;
color: #999;
cursor: pointer;
font-family: "Microsoft Yahei", Helvetica Neue, Helvetica, 宋体, Arial, sans-serif;
text-shadow: 0 0 1px #fff;
display: inline !important;
}
.comment_btn:hover {
padding: 5px 10px;
height: 35px;
width: 90px;
border: 0 none;
border-radius: 5px;
background: #258fb8;
color: white;
cursor: pointer;
font-family: "Microsoft Yahei", Helvetica Neue, Helvetica, 宋体, Arial, sans-serif;
text-shadow: 0 0 1px #fff;
display: inline !important;
}
#commentform_title {
background-image: none;
background-repeat: no-repeat;
margin-bottom: 10px;
padding: 0;
font-size: 24px;
}
#commentbox_opt,
#commentbox_opt+p {
text-align: center;
}
.commentbox_title {
width: 100%;
}
#tbCommentBody {
font-family: 'Monaco', Microsoft Yahei, 宋体, sans-serif;
margin-top: 10px;
max-width: 100%;
min-width: 100%;
background: white;
color: #333;
border: 2px solid #fff;
box-shadow: inset 0 0 8px #aaa;
// padding:10px;
height: 250px;
font-size: 14px;
min-height: 120px;
}
#comment_form {
padding: 20px;
background: #fff;
margin-bottom: 50px;
}
.btn_my_zzk {
font-size: 12px;
width: 25px;
height: 25px;
color: transparent;
border: 0;
border-style: none;
cursor: pointer;
top: 1px;
position: absolute;
right: -20px;
}
.input_my_zzk {
border: 1px solid #ccc;
width: 95%;
height: 25px;
padding-right: 20px;
padding-left: 5px;
outline: 0;
}
#author_profile {
font-size: 15px;
}
#post_next_prev {
font-size: 15px;
}
#myposts .myposts_title {
font-size: 15px;
border-bottom: 2px solid #e6e6e6;
}
.myposts_title {
font-weight: bold;
text-align: left;
}
.postTitl2 {
float: left;
padding-top: 5px;
padding-bottom: 10px;
font-size: 15px;
}
#myposts .postDesc2 {
font-size: 14px;
}
table.tablesorter {
font-size: 10pt;
}
/*生成博客目录的CSS*/
#uprightsideBar{
font-size:18px;
font-family:'Monaco', Microsoft Yahei, 宋体, sans-serif;
text-align:left;
position:fixed;/*将div的位置固定到距离top:50px,left:0px的位置,这样div就会处在最左边的位置,距离顶部50px*/
top:50px;
left:0px;
width: auto;
height: auto;
}
#sideBarTab{
float:left;
width:30px;
border:1px solid #e5e5e5;
border-right:none;
text-align:center;
background:#ffffff;
}
#sideBarContents{
font-size:14px;
float:left;
overflow:auto;
overflow-x:hidden;!important;
width:200px;
min-height:108px;
max-height:460px;
border:1px solid #e5e5e5;
border-right:none;
background:#ffffff;
}
#sideBarContents dl{
margin:0;
padding:0;
}
#sideBarContents dt{
margin-top:5px;
margin-left:5px;
}
#sideBarContents dd, dt {
cursor: pointer;
}
#sideBarContents dd:hover, dt:hover {
color:#A7995A;
}
#sideBarContents dd{
margin-left:20px;
}
/*评论头像*/
.feedbackCon img {
border-radius: 30px;
-webkit-transition: all 0.6s ease-out;
-moz-transition: all 0.5s ease-out;
-ms-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
}
.forFlow img {
margin-right: 15px;
}