File size: 1,445 Bytes
fcf8580
 
79eae90
fcf8580
 
 
 
79eae90
fcf8580
 
 
79eae90
fcf8580
 
79eae90
fcf8580
 
 
 
79eae90
fcf8580
 
79eae90
 
fcf8580
79eae90
 
 
 
fcf8580
 
79eae90
 
fcf8580
 
 
 
 
79eae90
fcf8580
79eae90
 
fcf8580
 
 
 
 
 
79eae90
 
 
 
fcf8580
 
 
 
 
 
 
 
 
 
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

/* 表格 */
.md-message table {
    margin: 1em 0;
    border-collapse: collapse;
    empty-cells: show;
}
.md-message td, .message th {
    border: 1.2px solid var(--border-color-primary) !important;
    padding: 0.2em;
}
.md-message thead {
    background-color: rgba(175,184,193,0.2);
}
.md-message thead th {
    padding: .5em .2em;
}

/* 行内代码 */
.md-message :not(pre) > code {
    display: inline;
    white-space: break-spaces;
    font-family: var(--font-mono) !important;
    border-radius: 6px !important;
    margin: 0 2px 0 2px;
    padding: .1em .4em .08em .4em !important;
    background-color: rgba(175,184,193,0.2) !important;
    border: none !important;
    font-size: var(--text-md) !important;
}
/* 代码块 */
.md-message pre,
.md-message pre[class*=language-] {
    color: #fff;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--spacing-xl) 1.2em !important;
    border-radius: var(--radius-lg) !important;
    background: var(--neutral-950) !important;
}
.md-message pre code,
.md-message pre code[class*=language-] {
    color: #fff;
    padding: 0;
    margin: 0;
    background-color: unset;
    text-shadow: none;
    font-family: var(--font-mono);
    font-size: var(--text-md);
}
.md-message .code_wrap {
    margin: .8em 1em 1em 0em;
}

/* 覆盖prism.css */
.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url {
    background: none !important;
}