blob: 7cc751b1068de6337e197c3b76b93bab74e21956 (
plain)
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
|
pre {
background: transparent !important;
height: 100%;
width: 100%;
padding-top: 0 !important;
margin-top: 0 !important;
padding-right: 0 !important;
padding-bottom: 0 !important;
margin-bottom: 0 !important;
overflow: hidden;
}
pre[class*="language-"],
code[class*="language-"] {
/* there might be some slight offsets,
depending on what font you select */
font-family: "Roboto Mono", monospace;
}
/* from Prism */
pre[class*="language-"].line-numbers {
padding-left: 3.8em;
counter-reset: linenumber;
white-space: pre-wrap;
}
pre[class*="language-"].line-numbers > code {
position: relative;
white-space: inherit;
}
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 0;
font-size: 100%;
left: -3.8em;
width: 3em; /* works for line-numbers below 1000 lines */
letter-spacing: -1px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.line-numbers-rows > span {
pointer-events: none;
display: block;
counter-increment: linenumber;
}
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #928374;
display: block;
padding-right: 0.8em;
text-align: right;
}
|