-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaize.css
418 lines (343 loc) · 6.46 KB
/
maize.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
/* Fira Code */
@font-face {
font-family: "Fira Code";
font-style: normal;
src: local('Fira Code'), url('maize/FiraCode-Regular.ttf') format('ttf');
}
/* 高亮颜色 */
mark {
background-color: #68eb73
}
/* 全局属性 */
:root {
--select-text-bg-color: #e49123;
--bg-color: #fafafa;
/*change background*/
--text-color: #333333;
/*change text color*/
--md-char-color: #C7C5C5;
/*change color of meta characetrs like `*` in markdown */
--meta-content-color: #5b808d;
/*change color of meta contents like image text or link address in markdown */
--primary-color: #428bca;
/* color of primary buttons */
--primary-btn-border-color: #285e8e;
--primary-btn-text-color: #fff;
--window-border: 1px solid #eee;
/*border for sidebar, etc*/
--active-file-bg-color: #eee;
/*background color if list item in file tree or file list*/
--active-file-text-color: inherit;
--active-file-border-color: #777;
--side-bar-bg-color: var(--bg-color);
/*change background of sidebar*/
--item-hover-bg-color: rgba(229, 229, 229, 0.59);
/*background of control items when hover, like menu in sidebar*/
--item-hover-text-color: inherit;
--monospace: monospace;
/*monospace font for codes, fences*/
}
::selection {
background: #b981d1;
color: white
}
::-moz-selection {
background: #b981d1;
color: white
}
::-webkit-selection {
background: #b981d1;
color: white
}
#write {
max-width: 914px;
font-size: 17px;
text-align: left;
letter-spacing: 0px;
font-family: "LXGW WenKai","Fira Code", "微软雅黑", "PingFang SC", "Microsoft YaHei", sans-serif;
}
/*段落*/
#write p {
font-size: 18px;
padding-top: 1px;
padding-bottom: 1px;
margin: 0;
line-height: 26px;
color: black;
}
/* todo item 对齐 */
#write input[type="checkbox"] {
margin-top: calc(1em - 2px);
margin-right: 5px;
left: -3px;
}
/*标题*/
#write h1,
#write h2,
#write h3,
#write h4,
#write h5,
#write h6 {
margin: .72em 0;
padding: 0px;
font-weight: bold;
color: black;
}
#write h1 {
margin: 1.2em 0;
font-size: 2rem;
/* text-align: center; */
}
#write h2::before {
content: "✔";
font-weight: bold;
color: #ffb11b;
margin-right: 4px
}
#write h2 {
font-size: 1.7rem;
margin: 1em 0;
}
#write h2 span {
font-weight: bold;
color: #333;
padding: 3px 10px 1px;
}
#write h3 {
font-size: 1.5rem;
}
#write h4 {
font-size: 1.25rem;
}
#write h5 {
font-size: 1rem;
}
#write h6 {
font-size: 1rem;
}
/* 列表 */
#write ul,
#write ol {
margin-top: 8px;
margin-bottom: 8px;
padding-left: 40px;
color: black;
}
#write ul {
list-style-type: disc;
}
#write ul ul {
list-style-type: square;
}
#write ol {
list-style-type: decimal;
}
/* 列表内容 */
#write li section {
font-size: 15px;
}
/* 字体加粗 */
/* #write strong::before {
content: '「';
} */
#write strong {
color: #E49123;
font-weight: bold;
}
/* #write strong::after {
content: '」';
} */
/*引用*/
#write blockquote {
margin-bottom: 16px;
margin-top: 16px;
padding: 10px 10px 10px 20px;
font-size: 0.9em;
background: #fff9f9;
border-left: 3px solid #ffb11b;
color: #6a737d;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
#write blockquote p {
line-height: 26px;
}
/* 超链接 */
#write a {
text-decoration: none;
font-weight: bold;
color: #E49123;
}
/* 分割线 */
#write hr {
height: 1px;
padding: 0;
border: none;
text-align: center;
background-image: linear-gradient(to right, rgba(231, 93, 109, 0.3), rgba(255, 159, 150, 0.75), rgba(255, 216, 181, 0.3));
}
/* background-color 由 rgba 转为 HEX*/
#write code {
font-size: 14px;
color: rgb(235, 76, 55);
background-color: #f0f0f0;
}
/* 行内代码 */
#write p code,
#write span code,
#write li code {
word-wrap: break-word;
padding: 2px 4px;
border-radius: 4px;
margin: 0 2px;
word-break: break-all;
}
/* 文章插图 */
#write img {
display: block;
margin: 0 auto;
max-width: 100%;
border-radius: 5px;
box-shadow: 0px 4px 12px #84A1A8;
border: 0px;
}
#write table tr {
border: 0;
border-top: 1px solid #ccc;
background-color: white;
}
#write table tr:nth-child(2n) {
background-color: #F8F8F8;
}
#write table tr th,
#write table tr td {
font-size: 16px;
line-height: 1.5;
border: 1px solid #ccc;
padding: 5px 10px;
text-align: left;
}
#write table tr th {
font-weight: bold;
background-color: #f0f0f0;
}
/* 上角标 */
#write .md-footnote {
font-weight: bold;
color: #E49123;
}
#write .md-footnote>.md-text:before {
content: '['
}
#write .md-footnote>.md-text:after {
content: ']'
}
/* 下角标 */
#write .md-def-name {
padding-right: 1.8ch;
}
#write .md-def-name:before {
content: '[';
color: #000;
}
#write .md-def-name:after {
color: #000;
}
/* 代码块主题 */
code,
.md-fences {
padding: .5em;
/* border: 1px solid #ccc; */
padding: .1em;
border-radius: 5px;
margin-left: 0.2em;
margin-right: 0.2em;
font-family: "Fira Code", "微软雅黑", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.md-fences {
margin: 0 0 20px;
background-color: #292b35;
color: rgb(236, 236, 236);
/* font-size: 1em; */
padding: 0.3em 1em;
padding-top: 0.4em;
box-shadow: 0px 4px 9px grey;
}
.CodeMirror div.CodeMirror-cursor {
border-left: 1px solid #7ba0f0;
z-index: 5;
}
.cm-s-inner div.CodeMirror-selected {
background: rgba(113, 124, 180, 0.2);
}
.CodeMirror-code {
margin-left: 0px;
}
.cm-s-inner .cm-keyword {
color: #c792ea;
font-weight: 450;
}
.cm-s-inner .cm-operator {
color: #89ddff;
}
.cm-s-inner .cm-variable-2 {
color: #eeffff;
}
.cm-s-inner .cm-variable-3,
.cm-s-inner .cm-type {
color: #f07178;
}
.cm-s-inner .cm-builtin {
color: #ffcb6b;
}
.cm-s-inner .cm-atom {
color: #f78c6c;
}
.cm-s-inner .cm-number {
color: #ff5370;
}
.cm-s-inner .cm-def {
color: #82aaff;
}
.cm-s-inner .cm-string {
color: #c3e88d;
}
.cm-s-inner .cm-string-2 {
color: #f07178;
}
.cm-s-inner .cm-comment {
color: #676e95;
}
.cm-s-inner .cm-variable {
color: #f07178;
}
.cm-s-inner .cm-tag {
color: #ff5370;
}
.cm-s-inner .cm-meta {
color: #ffcb6b;
}
.cm-s-inner .cm-attribute {
color: #c792ea;
}
.cm-s-inner .cm-property {
color: #c792ea;
}
.cm-s-inner .cm-qualifier {
color: #decb6b;
}
.cm-s-inner .cm-variable-3,
.cm-s-inner .cm-type {
color: #decb6b;
}
.cm-s-inner .cm-error {
color: rgba(255, 255, 255, 1);
background-color: #e9405c;
}
/*流程图样式*/
pre[lang='sequence'],
pre[lang='flow'],
pre[lang='mermaid'] {
background: #ffffff;
color: #333333;
}