-
Notifications
You must be signed in to change notification settings - Fork 25
/
custom.css
478 lines (411 loc) · 8.92 KB
/
custom.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
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em;
}
code.hljs {
padding: 3px 5px
}
pre{
padding:10px;
}
pre, .hljs {
color: #abb2bf;
background: #282c34
}
.hljs-comment,.hljs-quote {
color: #5c6370;
font-style: italic
}
.hljs-doctag,.hljs-formula,.hljs-keyword {
color: #c678dd
}
.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst {
color: #e06c75
}
.hljs-literal {
color: #56b6c2
}
.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string,.hljs-regexp,.hljs-string {
color: #98c379
}
.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable {
color: #d19a66
}
.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title {
color: #61aeee
}
.hljs-built_in,.hljs-class .hljs-title,.hljs-title.class_ {
color: #e6c07b
}
.hljs-emphasis {
font-style: italic
}
.hljs-strong {
font-weight: 700
}
.hljs-link {
text-decoration: underline
}
/*自定义样式,实时生效*/
/* 全局属性
* 页边距 padding:30px;
* 全文字体 font-family:optima-Regular;
* 英文换行 word-break:break-all;
color:#2b2b2b;
*/
body {
line-height: 1.25;
color: #2b2b2b;
font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;
letter-spacing: 2px;
background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%);
background-size: 20px 20px;
background-position: center center;
}
/* 段落,下方未标注标签参数均同此处
* 上边距 margin-top:5px;
* 下边距 margin-bottom:5px;
* 行高 line-height:26px;
* 词间距 word-spacing:3px;
* 字间距 letter-spacing:3px;
* 对齐 text-align:left;
* 颜色 color:#3e3e3e;
* 字体大小 font-size:16px;
* 首行缩进 text-indent:2em;
*/
p {
color: #2b2b2b;
margin: 10px 0px;
letter-spacing: 2px;
font-size: 14px;
word-spacing: 2px;
}
/* 一级标题 */
h1 {
font-size: 25px;
}
/* 一级标题内容 */
h1 span {
display: inline-block;
font-weight: bold;
color: #40B8FA;
}
/* 一级标题修饰 请参考有实例的主题 */
h1:after {}
/* 二级标题 */
h2 {
display:block;
border-bottom: 4px solid #40B8FA;
}
/* 二级标题内容 */
h2 .content {
display: flex;
color: #40B8FA;
font-size: 20px;
margin-left: 25px;
}
/* 二级标题前缀 */
h2 .prefix {
display: flex;
width: 20px;
height: 20px;
background-size: 20px 20px;
background-image:url(https://files.mdnice.com/fullstack-1.png);
margin-bottom: -22px;
}
/* 二级标题后缀 */
h2 .suffix {
display: flex;
box-sizing: border-box;
width: 200px;
height: 10px;
border-top-left-radius: 20px;
background: RGBA(64, 184, 250, .5);
color: rgb(255, 255, 255);
font-size: 16px;
letter-spacing: 0.544px;
justify-content: flex-end;
box-sizing: border-box !important;
overflow-wrap: break-word !important;
float: right;
margin-top: -10px;
}
/* 三级标题 */
h3 {
font-size: 17px;
font-weight: bold;
text-align: center;
position:relative;
margin-top: 20px;
margin-bottom: 20px;
}
/* 三级标题内容 */
h3 .content {
border-bottom: 2px solid RGBA(79, 177, 249, .65);
color: #2b2b2b;
padding-bottom:2px
}
h3 .content:before{
content:'';
width:30px;
height:30px;
display:block;
background-image:url(https://files.mdnice.com/fullstack-2.png);
background-position:center;
background-size:30px;
margin:auto;
opacity:1;
background-repeat:no-repeat;
margin-bottom:-8px;
}
/* 三级标题修饰 请参考有实例的主题 */
h3:after {}
h4 .content {
height:16px;
line-height:16px;
font-size: 16px;
}
h4 .content:before{
content:'';
background-image:url(https://files.mdnice.com/fullstack-3.png);
display:inline-block;
width:16px;
height:16px;
background-size:100% ;
background-position:left bottom;
background-repeat:no-repeat;
width: 16px;
height: 15px;
line-height:15px;
margin-right:6px;
margin-bottom:-2px;
}
/* 无序列表整体样式
* list-style-type: square|circle|disc;
*/
ul {
font-size: 15px; /*神奇逻辑,必须比li section的字体大才会在二级中生效*/
color: #595959;
list-style-type: circle;
}
/* 有序列表整体样式
* list-style-type: upper-roman|lower-greek|lower-alpha;
*/
ol {
font-size: 15px;
color: #595959;
}
/* 列表内容,不要设置li
*/
li section {
font-size: 14px;
font-weight: normal;
color: #595959;
}
/* 引用
* 左边缘颜色 border-left-color:black;
* 背景色 background:gray;
*/
blockquote::before {
content: "❝";
color: RGBA(64, 184, 250, .5);
font-size: 34px;
line-height: 1;
font-weight: 700;
}
blockquote {
padding: 0 10px;
text-size-adjust: 100%;
line-height: 1.55em;
font-weight: 400;
border-radius: 6px;
color: #595959;
font-style: normal;
text-align: left;
box-sizing: inherit;
border-left: none;
border: 1px solid RGBA(64, 184, 250, .4);
background: RGBA(64, 184, 250, .1);
}
blockquote p {
color: #595959;
}
blockquote::after {
content: "❞";
float: right;
color: RGBA(64, 184, 250, .5);
}
/* 链接
* border-bottom: 1px solid #009688;
*/
a {
color: #40B8FA;
font-weight: normal;
/* border-bottom: 1px solid #3BAAFA; */
}
strong::before {
content: '「';
}
/* 加粗 */
strong {
color: #3594F7;
font-weight: bold;
}
strong::after {
content: '」';
}
/* 斜体 */
em {
font-style: normal;
color: #3594F7;
font-weight:bold;
}
/* 加粗斜体 */
em strong {
color: #3594F7;
}
/* 删除线 */
del {
color: #3594F7;
}
/* 分隔线
* 粗细、样式和颜色
* border-top:1px solid #3e3e3e;
*/
hr {
height: 1px;
padding: 0;
border: none;
border-top: 2px solid #3BAAFA;
}
/* 图片
* 宽度 width:80%;
* 居中 margin:0 auto;
* 居左 margin:0 0;
*/
img {
border-radius: 6px;
display: block;
margin: 20px auto;
object-fit: contain;
box-shadow:2px 4px 7px #999;
}
/* 图片描述文字 */
figcaption {
display: block;
font-size: 13px;
color: #2b2b2b;
}
figcaption:before{
content:'';
background-image:url(https://img.alicdn.com/tfs/TB1Yycwyrj1gK0jSZFuXXcrHpXa-32-32.png);
display:inline-block;
width:18px;
height:18px;
background-size:18px;
background-repeat:no-repeat;
background-position:center;
margin-right:5px;
margin-bottom:-5px;
}
/* 行内代码 */
p code,
li code {
color: #3594F7;
background: RGBA(59, 170, 250, .1);
padding:0 2px;
border-radius:2px;
height:21px;
line-height:22px;
}
/* 非微信代码块
* 代码块不换行 display:-webkit-box !important;
* 代码块换行 display:block;
*/
.code-snippet__fix {
background: #f7f7f7;
border-radius: 2px;
}
pre code {
letter-spacing: 0px;
}
/*
* 表格内的单元格
* 字体大小 font-size: 16px;
* 边框 border: 1px solid #ccc;
* 内边距 padding: 5px 10px;
*/
table tr th,
table tr td {
font-size: 14px;
color: #595959;
}
.footnotes {
background: #F6EEFF;
padding: 20px 20px 20px 20px;
font-size: 14px;
border: 0.8px solid #DEC6FB;
border-radius: 6px;
border: 1px solid #DEC6FB;
}
/* 脚注文字 */
.footnote-word {
font-weight: normal;
color: #595959;
}
/* 脚注上标 */
.footnote-ref {
font-weight: normal;
color: #595959;
}
/*脚注链接样式*/
.footnote-item em {
font-size: 14px;
color: #595959;
display: block;
}
.footnotes{
background: RGBA(53, 148, 247, .4);
padding: 20px 20px 20px 20px;
font-size: 14px;
border-radius: 6px;
border: 1px solid RGBA(53, 148, 247, 1);
}
/* "参考资料"四个字
* 内容 content: "参考资料";
*/
.footnotes-sep:before {
content: 'Reference';
color: #595959;
letter-spacing: 1px;
border-bottom: 2px solid RGBA(64, 184, 250, 1);
display: inline;
background: linear-gradient(white 60%, RGBA(64, 184, 250, .4) 40%);
font-size: 20px;
}
/* 参考资料编号 */
.footnote-num {}
/* 参考资料文字 */
.footnote-item p {
color: #595959;
font-weight: bold;
}
/* 参考资料解释 */
.footnote-item p em {
font-weight: normal;
}
/* 行间公式
* 最大宽度 max-width: 300% !important;
*/
.block-equation svg {}
/* 行内公式
*/
.inline-equation svg {}
/* 滑动图片
*/
.imageflow-img {
display: inline-block;
width:100%;
margin-bottom: 0;
}