-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
63 lines (52 loc) · 1.14 KB
/
styles.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
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.block-language-preview code {
white-space: pre;
}
pre[class*=language-].code-block-pre__has-line_num {
padding-left: 3.5em;
}
.code-block-pre__has-line_num::before {
padding-top: 6px;
}
/* 代码行号 */
.code-block-line_num-wrap {
position: absolute;
/* top: 8px; */
left: 0px;
min-width: 3em;
counter-reset: line-num;
text-align: center;
user-select: none;
pointer-events: none;
background-color: transparent;
}
.code-block-line_num-wrap .code-block-line_num {
display: block;
counter-increment: line-num;
pointer-events: none;
}
.code-block-line_num-wrap .code-block-line_num::before {
content: counter(line-num);
}
/* 代码高亮 */
pre[class*=language-] .code-block-highlight-wrap {
margin: 0;
padding: 0;
position: absolute;
/* top: 8px; */
left: 0px;
width: 100%;
height: 100%;
background-color: transparent;
pointer-events: none;
overflow: hidden;
}
pre[class*=language-] .code-block-highlight-wrap span {
display: block;
height: 1.5em;
width: 100%;
}