-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmdnice.css
More file actions
378 lines (325 loc) · 6.73 KB
/
mdnice.css
File metadata and controls
378 lines (325 loc) · 6.73 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
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
/* 全局属性
* 页边距 padding:30px;
* 全文字体 font-family:optima-Regular;
* 英文换行 word-break:break-all;
color:#595959;
*/
#nice {
line-height: 1.75;
color: #595959;
font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;
letter-spacing: 2px;
background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.05) 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;
*/
#nice p {
margin: 10px 0px;
letter-spacing: 2px;
font-size: 18px;
word-spacing: 2px;
}
/* 一级标题 */
#nice h1 {
font-size: 25px;
}
/* 一级标题内容 */
#nice h1 .content {
display: inline-block;
font-weight: bold;
color: #595959;
}
/* 一级标题修饰 请参考有实例的主题 */
#nice h1:after {}
/* 二级标题 */
#nice h2 {
display: table;
margin: 30px auto 20px auto;
/*background-image: linear-gradient(to left, rgb(253, 213, 231), rgb(194, 226, 249));*/
/*background: -webkit-linear-gradient(0deg, #a371f7, #a5d6ff, #aff5b4);*/
/* background: -webkit-linear-gradient(-70deg, #a77bf3 0%, #93f5ec 100%); */
/* border-style: solid; */
/* border-width: 1px; */
border-radius: 3px;
border-color: rgb(62, 62, 62);
color: #fff;
/* -webkit-background-clip: text; */
/* background-clip: text; */
}
/* 二级标题内容 */
#nice h2 .content {
display:block;
font-size: 20px;
/* border: 1px solid black;*/
/* padding: 10px; */
/* transform: translate3d(-5px, -5px, 0px); */
padding-left: 5px;
padding-right: 5px;
}
/* 二级标题前缀 */
#nice h2 .prefix {
}
/* 二级标题后缀 */
#nice h2 .suffix {
}
/* 三级标题 */
#nice h3 {
display: flex;
flex-direction: column;
align-items: center;
}
/* 三级标题内容 */
#nice h3 .content {
font-size: 18px;
text-shadow: rgb(171 224 225) 3.83022px 3.21394px 0px;
}
/* 三级标题前缀 */
#nice h3 .prefix {
display: inline-block;
width: 40px;
height: 20px;
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: contain;
background-image: url(https://files.mdnice.com/pic/d1e2129b-30a8-443d-8ebb-a3f7aa09141e.png);
}
/* 三级标题后缀 */
#nice h3 .suffix {}
/* 无序列表整体样式
* list-style-type: square|circle|disc;
*/
#nice ul {
font-size: 15px; /*神奇逻辑,必须比li section的字体大才会在二级中生效*/
color: #595959;
list-style-type: circle;
}
/* 有序列表整体样式
* list-style-type: upper-roman|lower-greek|lower-alpha;
*/
#nice ol {
font-size: 15px;
color: #595959;
}
/* 列表内容,不要设置li
*/
#nice li section {
font-size: 16px;
font-weight: normal;
color: #595959;
}
/* 引用
* 左边缘颜色 border-left-color:black;
* 背景色 background:gray;
*/
/*
#nice .multiquote-1::before {
content: "❝";
color: #d9b8fa;
color: #DEC6FB;
font-size: 34px;
line-height: 1;
font-weight: 700;
}
*/
/*#nice .multiquote-1 {
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 #DEC6FB;
background: #F6EEFF;
}*/
#nice .multiquote-1 {
border: 1px dashed rgb(37, 132, 181);
background: transparent;
}
#nice .multiquote-1 p {
color: #595959;
}
/*
#nice .multiquote-1::after {
content: "❞";
float: right;
color: #d9b8fa;
color: #DEC6FB;
}
*/
/* 链接
* border-bottom: 1px solid #009688;
*/
#nice a {
color: #664D9D;
font-weight: normal;
border-bottom: 1px solid #664D9D;
}
#nice strong::before {
content: '';
}
/* 加粗 */
#nice strong {
color: #0070c0;
font-weight: bold;
font-size: 16px;
}
#nice strong::after {
content: '';
}
/* 斜体 */
#nice em {
font-style: italic;
font-size: 17px;
color: #ec0ef0;
}
/* 加粗斜体 */
#nice em strong {
background: linear-gradient(to right ,#3299d2,#efbdb5);
color: #fff;
font-weight: 400;
padding: 0 4px;
display: inline-block;
border-radius: 4px;
margin: 0 2px;
letter-spacing: 1px;
}
/* 删除线 */
#nice del {
color: #595959;
}
/* 分隔线
* 粗细、样式和颜色
* border-top:1px solid #3e3e3e;
*/
#nice hr {
height: 1px;
padding: 0;
border: none;
border-top: 2px solid #d9b8fa;
}
/* 图片
* 宽度 width:80%;
* 居中 margin:0 auto;
* 居左 margin:0 0;
*/
#nice img {
border-radius: 6px;
display: block;
margin: 20px auto;
object-fit: contain;
}
/* 图片描述文字 */
#nice figcaption {
display: block;
font-size: 13px;
color: #595959;
}
/* 行内代码 */
#nice p code,
#nice li code {
color: #595959;
}
/* 非微信代码块
* 代码块不换行 display:-webkit-box !important;
* 代码块换行 display:block;
*/
#nice .code-snippet__fix {
background: #f7f7f7;
border-radius: 2px;
}
#nice pre code {
/* background: #f7f7f7; */
}
/*
* 表格内的单元格
* 字体大小 font-size: 16px;
* 边框 border: 1px solid #ccc;
* 内边距 padding: 5px 10px;
*/
#nice table tr th,
#nice table tr td {
font-size: 14px;
color: #595959;
}
#nice .footnotes {
/* background: #F6EEFF; */
/* padding: 20px 20px 20px 20px; */
font-size: 12px;
/* border: 0.8px solid #DEC6FB; */
/* border-radius: 6px; */
/* border: 1px solid #DEC6FB; */
}
/* 脚注文字 */
#nice .footnote-word {
font-weight: normal;
color: #595959;
}
/* 脚注上标 */
#nice .footnote-ref {
font-weight: normal;
color: #595959;
}
/*脚注链接样式*/
#nice .footnote-item em {
background: #F6EEFF;
font-size: 14px;
color: #595959;
display: block;
}
/* "参考资料"四个字
* 内容 content: "参考资料";
*/
#nice .footnotes-sep:before {
content: '引用';
color: #595959;
letter-spacing: 1px;
/* border-bottom: 2px solid #DEC6FB; */
display: inline;
/* background: linear-gradient(white 60%, #F6EEFF 40%); */
font-size: 16px;
}
/* 参考资料编号 */
#nice .footnote-num {}
/* 参考资料文字 */
#nice .footnote-item p {
color: #595959;
font-weight: bold;
}
/* 参考资料解释 */
#nice .footnote-item p em {
font-weight: normal;
}
/* 行间公式
* 最大宽度 max-width: 300% !important;
*/
#nice .block-equation svg {}
/* 行内公式
*/
#nice .inline-equation svg {}
/* 滑动图片
*/
#nice .imageflow-img {
display: inline-block;
width:100%;
margin-bottom: 0;
}
u {
text-decoration-line: underline;
text-decoration-style: wavy;
text-decoration-thickness: 0.8px;
text-decoration-color: #3498db;
}