-
Notifications
You must be signed in to change notification settings - Fork 0
/
silentli.css
704 lines (592 loc) · 12.2 KB
/
silentli.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
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
/* 字体 */
@font-face {
font-family: "Geist";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("./silentli/Geist[wght].woff2") format("woff2");
}
@font-face {
font-family: "GeistMono";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("./silentli/GeistMono[wght].woff2") format("woff2");
}
@font-face {
font-family: "Geist";
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("./silentli/InterVariable-Italic.woff2") format("woff2");
}
@font-face {
font-family: "LXGWWenKai";
font-style: normal;
font-weight: normal;
src: url("./silentli/LXGWWenKai-Regular.ttf") format("truetype");
}
@font-face {
font-family: "LXGWWenKaiMono";
font-style: normal;
font-weight: normal;
src: url("./silentli/LXGWWenKaiMono-Regular.ttf") format("truetype");
}
@font-face {
font-family: "iconfont";
src: url("./silentli/iconfont.woff2") format("woff2");
}
/* 变量 */
:root {
/* 颜色 */
--v-white-100: #ffffff;
--v-white-200: #fafafa;
--v-gray-1000: #171717;
--v-gray-900: #666666;
--v-gray-800: #7d7d7d;
--v-gray-700: #8f8f8f;
--v-gray-600: #a8a8a8;
--v-gray-500: #c9c9c9;
--v-gray-400: #eaeaea;
--v-gray-300: #f5f5f5;
--v-gray-200: #f9f9f9;
--v-gray-100: #fbfbfb;
--v-purple-700: #8e4ec6;
--v-purple-900: #7820bc;
--v-red-700: #e5484d;
--v-red-900: #cb2a2f;
--v-amber-700: #f5b047;
--v-amber-900: #a35200;
--v-green-700: #45a557;
--v-green-900: #297a3a;
--v-blue-600: #52aeff;
--v-blue-700: #0072f5;
--v-blue-900: #0068d6;
--v-background: #282c34;
--monospace: "GeistMono", "LXGWWenKaiMono";
}
/* PRINT */
@media print {
html {
font-size: 14px;
}
pre {
page-break-inside: avoid;
word-wrap: break-word;
}
blockquote p {
margin-left: 30px;
}
}
/* 主题 */
html {
font-size: 17px;
-webkit-font-smoothing: antialiased;
}
body {
color: var(--v-gray-1000);
line-height: 1.6;
}
/* 写作区域 */
content {
background: linear-gradient(to bottom, aliceblue, #ffffff);
border-radius: 14px;
margin-left: 10px;
cursor: pointer;
}
#write {
cursor: pointer;
margin: 0 auto;
margin-top: 20px;
margin-bottom: 20px;
padding: 30px;
max-width: 95%;
font-family: "Geist", "LXGWWenKai";
border-radius: 14px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
background: var(--v-white-100);
}
@media only screen and (min-width: 1400px) {
#write {
max-width: 95%;
}
}
@media only screen and (min-width: 1800px) {
#write {
max-width: 95%;
}
}
/* 侧边目录 */
.fa-folder:before {
color: var(--v-blue-700);
}
.fa-file-text-o:before {
color: var(--v-blue-700);
}
.file-tree-node.active>.file-node-background {
border-color: var(--v-blue-700);
}
.active-tab-files #info-panel-tab-file .info-panel-tab-border,
.active-tab-outline #info-panel-tab-outline .info-panel-tab-border {
background-color: var(--v-blue-700);
}
.ty-show-search #info-panel-tab-search .info-panel-tab-border {
background-color: var(--v-blue-700);
}
.typora-node.pin-outline:not(.megamenu-opened):not(.typora-sourceview-on) #typora-sidebar {
background: #ffffff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 14px;
}
/* YAML */
pre.md-meta-block {
margin: 20px 0px;
padding: 10px;
font-family: "Geist", "LXGWWenKai";
font-size: 1rem;
font-weight: 400;
line-height: 1.6;
color: var(--v-gray-900);
background-color: var(--v-white-100);
border-bottom: 1px dashed var(--v-gray-900);
}
/* 标题 */
h1 {
font-size: 2.5rem;
line-height: 3.5rem;
}
h2 {
font-size: 2rem;
line-height: 2.5rem;
}
h3 {
font-size: 1.5em;
line-height: 2rem;
}
h4 {
font-size: 1.25em;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 1em;
color: var(--v-gray-900);
}
/* 引用块 */
blockquote {
position: relative;
padding: 12px;
border: 1px solid var(--v-gray-500);
line-height: 1.4;
border-radius: 8px;
color: var(--v-gray-900);
&:hover {
border: 1px solid var(--v-blue-700);
}
}
#write blockquote::before {
content: "!";
position: absolute;
top: 12px;
left: 12px;
width: 20px;
height: 20px;
font-style: italic;
font-family: "GeistMono", "LXGWWenKai";
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--v-blue-700);
color: var(--v-white-100);
border-radius: 50%;
}
#write blockquote>p.md-end-block {
margin-left: 30px;
}
.md-alert {
position: relative;
padding: 15px;
line-height: 1.4;
}
.md-alert>p:first-child {
display: none;
}
.md-alert>p {
margin: 0px 0px 0px 30px;
padding: 0px;
}
.md-alert[mdtype="blockquote"] {
padding: 12px;
}
.md-alert.md-alert-important {
border: 1px solid var(--v-purple-700);
border-radius: 8px;
color: var(--v-purple-900);
}
.md-alert.md-alert-important::before {
position: absolute;
top: 50%;
transform: translateY(-55%);
font-family: "iconfont" !important;
font-size: 18px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: "\e643";
}
.md-alert.md-alert-caution {
border: 1px solid var(--v-red-700);
border-radius: 8px;
color: var(--v-red-900);
}
.md-alert.md-alert-caution::before {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-family: "iconfont" !important;
font-size: 18px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: "\e62c";
}
.md-alert.md-alert-warning {
border: 1px solid var(--v-amber-700);
border-radius: 8px;
color: var(--v-amber-900);
}
.md-alert.md-alert-warning::before {
position: absolute;
top: 50%;
transform: translateY(-60%);
font-family: "iconfont" !important;
font-size: 18px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: "\e612";
}
.md-alert.md-alert-tip {
border: 1px solid var(--v-green-700);
border-radius: 8px;
color: var(--v-green-900);
}
.md-alert.md-alert-tip::before {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: "\e600";
}
.md-alert.md-alert-note {
border: 1px solid var(--v-blue-700);
border-radius: 8px;
color: var(--v-blue-900);
}
.md-alert.md-alert-note::before {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-family: "iconfont" !important;
font-size: 18px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: "\e63c";
}
/* COMMENT */
.md-comment {
color: var(--v-gray-900);
font-family: "GeistMono", "LXGWWenKai";
}
/* 超链接 */
#write a {
font-weight: 500;
color: var(--v-blue-700);
text-decoration: none;
}
#write a:hover {
background-image: linear-gradient(var(--v-blue-700), var(--v-blue-700));
background-size: 100% 1px;
background-position: 0 100%;
background-repeat: no-repeat;
}
/* KBD */
kbd {
font-family: "GeistMono", "LXGWWenKai";
padding: 2px 8px;
vertical-align: baseline;
font-size: 0.9rem;
color: var(--v-white-100);
border: none;
box-shadow: none;
border-radius: 4px;
background-color: var(--v-gray-800);
}
/* HIGHTLIGHT */
#write mark {
background-color: var(--v-blue-600);
border-radius: 3px;
}
/* HORIZON */
hr {
margin: 10px 0px;
border: none;
border-bottom: 1px solid var(--v-gray-500);
}
/* FOOTNOTE */
sup.md-footnote {
font-family: "GeistMono", "LXGWWenKai";
color: var(--v-gray-800);
}
.md-def-name {
padding: 0px 8px;
font-family: "GeistMono";
font-size: 0.9rem;
font-weight: 500;
}
.md-def-footnote .md-def-name::before {
content: "[";
}
.md-def-name::after {
right: -17px;
}
.md-def-content {
font-size: 1rem;
color: var(--v-gray-1000);
}
/* FORMULA */
.md-inline-math {
color: var(--v-blue-800);
}
/* 行内代码 */
#write code {
padding: 2px 4px;
font-family: "GeistMono", "LXGWWenKai";
font-size: 0.9rem;
background-color: var(--v-gray-500);
border-radius: 4px;
}
/* 列表 */
/* ul {
list-style: disc;
}
#write ul li::before {
content: "";
position: absolute;
left: -16px;
top: 11.5px;
width: 6px;
height: 6px;
background-color: #3d3d3d;
border-radius: 50%;
}
#write ul li.md-task-list-item::before {
content: "";
background-color: transparent;
} */
/* 图片 */
img {
color: transparent;
border: none;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
&:hover {
border-color: var(--v-blue-700)
}
}
/* 表格 */
#write table {
margin: 20px auto;
line-height: 1.6em;
font-size: 0.875rem;
color: var(--v-gray-1000);
border-collapse: collapse;
border-radius: 8px;
overflow: hidden;
}
#write table thead {
background-color: var(--v-gray-300);
color: var(--v-gray-1000);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#write table th,
#write table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid var(--v-gray-400);
}
#write table th {
font-weight: 600;
}
#write table tr {
transition: background-color 0.3s ease;
}
#write table tbody tr:hover {
background-color: var(--v-gray-200);
cursor: pointer;
}
#write table th:first-child {
border-top-left-radius: 8px;
}
#write table th:last-child {
border-top-right-radius: 8px;
}
#write table tr:last-child td:first-child {
border-bottom-left-radius: 8px;
}
#write table tr:last-child td:last-child {
border-bottom-right-radius: 8px;
}
/* 目录 */
#write .md-toc {
border: 1px solid var(--v-gray-400);
border-radius: 8px;
padding: 10px;
}
#write .md-toc-h1 a.md-toc-inner {
font-size: 1.2rem;
font-weight: 700;
color: #000 !important;
}
#write a.md-toc-inner {
display: block;
font-size: 0.9rem;
font-weight: 500;
color: var(--v-gray-900);
padding: 5px 10px;
border-radius: 4px;
}
#write a.md-toc-inner:hover {
color: var(--v-gray-1000);
background-color: var(--v-gray-200);
}
/* 代码块 */
.md-fences {
padding-top: 34px;
padding-left: 10px;
padding-bottom: 10px;
background-color: var(--v-background);
border-radius: 7px;
}
.md-fences::before {
position: absolute;
left: 12px;
top: 12px;
content: "";
width: 13px;
height: 13px;
border-radius: 50%;
background: #ff5f56;
box-shadow: 22px 0px #ffbd2e, 44px 0px #27c93f;
}
#write .CodeMirror {
font-family: "GeistMono", "LXGWWenKai";
font-size: 0.9rem;
font-weight: 400;
line-height: 1.4rem;
color: var(--v-gray-400);
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
}
.CodeMirror-gutters {
border-right: none;
}
#write .CodeMirror-cursors .CodeMirror-cursor {
border-left: 2px solid #528bff !important;
}
.md-fences .code-tooltip {
font-family: "GeistMono", "LXGWWenKai";
border-radius: 4px;
border: 1px solid var(--v-gray-500);
background-color: var(--v-white-200);
}
.code-tooltip .ty-input {
border: none;
}
.code-tooltip .ty-input:focus {
border: none;
}
#write .CodeMirror-activeline-background {
background: #2c313c;
}
#write .md-mathblock-panel .CodeMirror-activeline-background {
background: var(--v-gray-400);
}
.cm-s-inner .CodeMirror-selected {
border-radius: 2px;
background-color: #404859 !important;
}
.cm-s-inner .CodeMirror-selectedtext {
background-color: transparent !important;
}
.CodeMirror-cursor {
border-left: 1px solid #528bff !important;
}
.CodeMirror-linenumbers {
color: #394051 !important;
}
.cm-comment {
color: #5c6370 !important;
}
.cm-string {
color: #98c379 !important;
}
.cm-variable {
color: #e06c75 !important;
}
.cm-variable-2 {
color: #e5aa69 !important;
}
.cm-variable-3 {
color: #61afef !important;
}
.cm-number {
color: #d19a66 !important;
}
.cm-property {
color: #61afef !important;
}
.cm-atom {
color: #c678dd !important;
}
.cm-keyword {
color: #c678dd !important;
}
.cm-builtin {
color: #56b6c2 !important;
}
.cm-def {
color: #61afef !important;
}
.cm-operator {
color: #56b6c2 !important;
}
.cm-meta {
color: #abb2bf !important;
}
.cm-tag {
color: #e06c75 !important;
}
.cm-attribute {
color: #61afef !important;
}
.cm-regexp {
color: #98c379 !important;
}
.cm-link {
color: #61afef !important;
}
.cm-header {
color: #e06c63 !important;
}
/* SOURCE MODE */
#typora-source .CodeMirror-lines {
font-family: "GeistMono", "LXGWWenKaiMono";
}