spec-up-t 1.1.55 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/compiled/body.js +59 -8
- package/assets/compiled/head.css +13 -12
- package/assets/css/adjust-font-size.css +11 -0
- package/assets/css/collapse-meta-info.css +27 -8
- package/assets/css/create-term-filter.css +11 -0
- package/assets/css/index.css +15 -0
- package/assets/css/prism.css +176 -153
- package/assets/css/prism.dark.css +157 -0
- package/assets/css/prism.default.css +180 -0
- package/assets/css/terms-and-definitions.1.css +223 -0
- package/assets/css/terms-and-definitions.css +214 -100
- package/assets/js/addAnchorsToTerms.js +1 -1
- package/assets/js/collapse-definitions.js +2 -1
- package/assets/js/collapse-meta-info.js +25 -11
- package/assets/js/create-term-filter.js +61 -0
- package/assets/js/horizontal-scroll-hint.js +159 -0
- package/assets/js/index.1.js +137 -0
- package/assets/js/index.js +2 -1
- package/assets/js/insert-trefs.js +122 -116
- package/assets/js/insert-xrefs.1.js +372 -0
- package/assets/js/{show-commit-hashes.js → insert-xrefs.js} +67 -7
- package/assets/js/prism.dark.js +24 -0
- package/assets/js/prism.default.js +23 -0
- package/assets/js/prism.js +4 -5
- package/assets/js/search.js +1 -1
- package/assets/js/toggle-dense-info.js +40 -0
- package/branches.md +4 -24
- package/index.js +397 -189
- package/index.new.js +662 -0
- package/package.json +1 -2
- package/src/asset-map.json +9 -5
- package/src/collect-external-references.js +16 -9
- package/src/collectExternalReferences/fetchTermsFromIndex.js +328 -0
- package/src/collectExternalReferences/processXTrefsData.js +73 -18
- package/src/create-pdf.js +385 -89
- package/src/health-check/term-references-checker.js +3 -2
- package/src/health-check/tref-term-checker.js +18 -17
- package/src/markdown-it-extensions.js +134 -103
- package/src/prepare-tref.js +61 -24
- package/src/utils/fetch.js +100 -0
- package/templates/template.html +12 -7
- package/assets/js/css-helper.js +0 -30
- package/src/collectExternalReferences/fetchTermsFromGitHubRepository.js +0 -232
- package/src/collectExternalReferences/fetchTermsFromGitHubRepository.test.js +0 -385
- package/src/collectExternalReferences/octokitClient.js +0 -96
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* Styling for font size adjustment buttons */
|
|
1
2
|
.adjust-font-size #decreaseBtn {
|
|
2
3
|
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" xmlns:xlink="http://www.w3.org/1999/xlink"><text x="50%" y="50%" font-family="Times New Roman" font-size="50" fill="black" dominant-baseline="middle" text-anchor="middle">A</text></svg>') no-repeat center;
|
|
3
4
|
background-color: #a9dde0;
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
border-bottom-right-radius: 4px;
|
|
19
20
|
border-top-left-radius: 0;
|
|
20
21
|
border-top-right-radius: 4px;
|
|
22
|
+
margin-left: -1px !important; /* Fix the spacing issue between buttons */
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
.adjust-font-size #decreaseBtn {
|
|
@@ -25,4 +27,13 @@
|
|
|
25
27
|
border-bottom-right-radius: 0;
|
|
26
28
|
border-top-left-radius: 4px;
|
|
27
29
|
border-top-right-radius: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Ensure the adjust-font-size button group displays buttons tightly together */
|
|
33
|
+
.adjust-font-size.btn-group {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.adjust-font-size.btn-group .btn {
|
|
38
|
+
position: relative;
|
|
28
39
|
}
|
|
@@ -4,18 +4,37 @@
|
|
|
4
4
|
Description: Make the meta-info tables collapsible
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/* Wrapper for meta info content */
|
|
8
|
+
dl > dd:has(table).meta-info-content-wrapper {
|
|
9
|
+
display: block;
|
|
10
|
+
position: relative;
|
|
11
|
+
max-height: none;
|
|
12
|
+
height: auto;
|
|
13
|
+
overflow: visible;
|
|
14
|
+
transition: all 0.3s ease-out;
|
|
11
15
|
}
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
/* Collapsed state for meta info content */
|
|
18
|
+
dl > dd:has(table).collapsed.meta-info-content-wrapper {
|
|
19
|
+
max-height: 0;
|
|
20
|
+
height: 0;
|
|
14
21
|
padding-top: 0;
|
|
15
22
|
padding-bottom: 0;
|
|
16
|
-
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
margin-bottom: 0;
|
|
17
25
|
overflow: hidden;
|
|
18
|
-
transition:
|
|
19
|
-
max-height: 0;
|
|
26
|
+
transition: all 0.3s ease-out;
|
|
20
27
|
line-height: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* The inner content wrapper to ensure proper spacing */
|
|
31
|
+
dl > dd:has(table).meta-info-content-wrapper > div {
|
|
32
|
+
display: block;
|
|
33
|
+
padding: inherit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Meta info toggle button */
|
|
37
|
+
.meta-info-toggle-button {
|
|
38
|
+
position: relative;
|
|
39
|
+
cursor: pointer;
|
|
21
40
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Hide local terms */
|
|
2
|
+
.hide-local-terms #content dl.terms-and-definitions-list > dt:not(.transcluded-xref-term),
|
|
3
|
+
.hide-local-terms #content dl.terms-and-definitions-list > dd:not(.transcluded-xref-term) {
|
|
4
|
+
display: none !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/* Hide transcluded terms */
|
|
8
|
+
.hide-external-terms #content dl.terms-and-definitions-list > dt.transcluded-xref-term,
|
|
9
|
+
.hide-external-terms #content dl.terms-and-definitions-list > dd.transcluded-xref-term {
|
|
10
|
+
display: none !important;
|
|
11
|
+
}
|
package/assets/css/index.css
CHANGED
|
@@ -42,6 +42,21 @@ main * {
|
|
|
42
42
|
/* Breaks words at logical places according to the language */
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/* Fix for Bootstrap's responsive tables */
|
|
46
|
+
.table-responsive {
|
|
47
|
+
overflow-x: auto !important;
|
|
48
|
+
-webkit-overflow-scrolling: touch;
|
|
49
|
+
width: 100%;
|
|
50
|
+
max-width: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Override the overflow-wrap property for table-responsive content */
|
|
54
|
+
.table-responsive * {
|
|
55
|
+
overflow-wrap: normal !important;
|
|
56
|
+
word-break: normal !important;
|
|
57
|
+
white-space: nowrap !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
45
60
|
dd td img {
|
|
46
61
|
max-width: 30px;
|
|
47
62
|
}
|
package/assets/css/prism.css
CHANGED
|
@@ -1,157 +1,180 @@
|
|
|
1
|
-
/* PrismJS 1.
|
|
1
|
+
/* PrismJS 1.30.0
|
|
2
2
|
To update this file, download PrismJS from https://prismjs.com/download.html and use this url, that includes only the languages and plugins you need:
|
|
3
3
|
|
|
4
|
-
https
|
|
4
|
+
https: //prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+abnf+diff+git+http+js-extras+json+json5+js-templates+regex+yaml&plugins=line-numbers+highlight-keywords
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
code[class*=language-],
|
|
8
|
-
pre[class*=language-] {
|
|
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
|
-
.token.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
.token.
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.token.
|
|
82
|
-
.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
.token.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
.token.
|
|
90
|
-
.token.
|
|
91
|
-
.token.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
.token.
|
|
98
|
-
.token.
|
|
99
|
-
.token.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.token.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.token.
|
|
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
|
-
|
|
7
|
+
code[class*=language-],
|
|
8
|
+
pre[class*=language-] {
|
|
9
|
+
color: #000;
|
|
10
|
+
background: 0 0;
|
|
11
|
+
text-shadow: 0 1px #fff;
|
|
12
|
+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
13
|
+
font-size: 1em;
|
|
14
|
+
text-align: left;
|
|
15
|
+
white-space: pre;
|
|
16
|
+
word-spacing: normal;
|
|
17
|
+
word-break: normal;
|
|
18
|
+
word-wrap: normal;
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
-moz-tab-size: 4;
|
|
21
|
+
-o-tab-size: 4;
|
|
22
|
+
tab-size: 4;
|
|
23
|
+
-webkit-hyphens: none;
|
|
24
|
+
-moz-hyphens: none;
|
|
25
|
+
-ms-hyphens: none;
|
|
26
|
+
hyphens: none
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
code[class*=language-] ::-moz-selection,
|
|
30
|
+
code[class*=language-]::-moz-selection,
|
|
31
|
+
pre[class*=language-] ::-moz-selection,
|
|
32
|
+
pre[class*=language-]::-moz-selection {
|
|
33
|
+
text-shadow: none;
|
|
34
|
+
background: #b3d4fc
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
code[class*=language-] ::selection,
|
|
38
|
+
code[class*=language-]::selection,
|
|
39
|
+
pre[class*=language-] ::selection,
|
|
40
|
+
pre[class*=language-]::selection {
|
|
41
|
+
text-shadow: none;
|
|
42
|
+
background: #b3d4fc
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media print {
|
|
46
|
+
|
|
47
|
+
code[class*=language-],
|
|
48
|
+
pre[class*=language-] {
|
|
49
|
+
text-shadow: none
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
pre[class*=language-] {
|
|
54
|
+
padding: 1em;
|
|
55
|
+
margin: .5em 0;
|
|
56
|
+
overflow: auto
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:not(pre)>code[class*=language-],
|
|
60
|
+
pre[class*=language-] {
|
|
61
|
+
background: #f5f2f0
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:not(pre)>code[class*=language-] {
|
|
65
|
+
padding: .1em;
|
|
66
|
+
border-radius: .3em;
|
|
67
|
+
white-space: normal
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.token.cdata,
|
|
71
|
+
.token.comment,
|
|
72
|
+
.token.doctype,
|
|
73
|
+
.token.prolog {
|
|
74
|
+
color: #708090
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.token.punctuation {
|
|
78
|
+
color: #999
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.token.namespace {
|
|
82
|
+
opacity: .7
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.token.boolean,
|
|
86
|
+
.token.constant,
|
|
87
|
+
.token.deleted,
|
|
88
|
+
.token.number,
|
|
89
|
+
.token.property,
|
|
90
|
+
.token.symbol,
|
|
91
|
+
.token.tag {
|
|
92
|
+
color: #905
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.token.attr-name,
|
|
96
|
+
.token.builtin,
|
|
97
|
+
.token.char,
|
|
98
|
+
.token.inserted,
|
|
99
|
+
.token.selector,
|
|
100
|
+
.token.string {
|
|
101
|
+
color: #690
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.language-css .token.string,
|
|
105
|
+
.style .token.string,
|
|
106
|
+
.token.entity,
|
|
107
|
+
.token.operator,
|
|
108
|
+
.token.url {
|
|
109
|
+
color: #9a6e3a;
|
|
110
|
+
background: hsla(0, 0%, 100%, .5)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.token.atrule,
|
|
114
|
+
.token.attr-value,
|
|
115
|
+
.token.keyword {
|
|
116
|
+
color: #07a
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.token.class-name,
|
|
120
|
+
.token.function {
|
|
121
|
+
color: #dd4a68
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.token.important,
|
|
125
|
+
.token.regex,
|
|
126
|
+
.token.variable {
|
|
127
|
+
color: #e90
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.token.bold,
|
|
131
|
+
.token.important {
|
|
132
|
+
font-weight: 700
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.token.italic {
|
|
136
|
+
font-style: italic
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.token.entity {
|
|
140
|
+
cursor: help
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
pre[class*=language-].line-numbers {
|
|
144
|
+
position: relative;
|
|
145
|
+
padding-left: 3.8em;
|
|
146
|
+
counter-reset: linenumber
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
pre[class*=language-].line-numbers>code {
|
|
150
|
+
position: relative;
|
|
151
|
+
white-space: inherit
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.line-numbers .line-numbers-rows {
|
|
155
|
+
position: absolute;
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
top: 0;
|
|
158
|
+
font-size: 100%;
|
|
159
|
+
left: -3.8em;
|
|
160
|
+
width: 3em;
|
|
161
|
+
letter-spacing: -1px;
|
|
162
|
+
border-right: 1px solid #999;
|
|
163
|
+
-webkit-user-select: none;
|
|
164
|
+
-moz-user-select: none;
|
|
165
|
+
-ms-user-select: none;
|
|
166
|
+
user-select: none
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.line-numbers-rows>span {
|
|
170
|
+
display: block;
|
|
171
|
+
counter-increment: linenumber
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.line-numbers-rows>span:before {
|
|
175
|
+
content: counter(linenumber);
|
|
176
|
+
color: #999;
|
|
177
|
+
display: block;
|
|
178
|
+
padding-right: .8em;
|
|
179
|
+
text-align: right
|
|
180
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/* PrismJS 1.29.0
|
|
2
|
+
To update this file, download PrismJS from https://prismjs.com/download.html and use this url, that includes only the languages and plugins you need:
|
|
3
|
+
|
|
4
|
+
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+abnf+diff+git+http+js-extras+json+json5+js-templates+regex+yaml&plugins=line-numbers+highlight-keywords
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
code[class*=language-],
|
|
8
|
+
pre[class*=language-] {
|
|
9
|
+
color: #ccc;
|
|
10
|
+
background: 0 0;
|
|
11
|
+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
12
|
+
font-size: 1em;
|
|
13
|
+
text-align: left;
|
|
14
|
+
white-space: pre;
|
|
15
|
+
word-spacing: normal;
|
|
16
|
+
word-break: normal;
|
|
17
|
+
word-wrap: normal;
|
|
18
|
+
line-height: 1.5;
|
|
19
|
+
-moz-tab-size: 4;
|
|
20
|
+
-o-tab-size: 4;
|
|
21
|
+
tab-size: 4;
|
|
22
|
+
-webkit-hyphens: none;
|
|
23
|
+
-moz-hyphens: none;
|
|
24
|
+
-ms-hyphens: none;
|
|
25
|
+
hyphens: none
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
pre[class*=language-] {
|
|
29
|
+
padding: 1em;
|
|
30
|
+
margin: .5em 0;
|
|
31
|
+
overflow: auto
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:not(pre)>code[class*=language-],
|
|
35
|
+
pre[class*=language-] {
|
|
36
|
+
background: #2d2d2d
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:not(pre)>code[class*=language-] {
|
|
40
|
+
padding: .1em;
|
|
41
|
+
border-radius: .3em;
|
|
42
|
+
white-space: normal
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.token.block-comment,
|
|
46
|
+
.token.cdata,
|
|
47
|
+
.token.comment,
|
|
48
|
+
.token.doctype,
|
|
49
|
+
.token.prolog {
|
|
50
|
+
color: #999
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.token.punctuation {
|
|
54
|
+
color: #ccc
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.token.attr-name,
|
|
58
|
+
.token.deleted,
|
|
59
|
+
.token.namespace,
|
|
60
|
+
.token.tag {
|
|
61
|
+
color: #e2777a
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.token.function-name {
|
|
65
|
+
color: #6196cc
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.token.boolean,
|
|
69
|
+
.token.function,
|
|
70
|
+
.token.number {
|
|
71
|
+
color: #f08d49
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.token.class-name,
|
|
75
|
+
.token.constant,
|
|
76
|
+
.token.property,
|
|
77
|
+
.token.symbol {
|
|
78
|
+
color: #f8c555
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.token.atrule,
|
|
82
|
+
.token.builtin,
|
|
83
|
+
.token.important,
|
|
84
|
+
.token.keyword,
|
|
85
|
+
.token.selector {
|
|
86
|
+
color: #cc99cd
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.token.attr-value,
|
|
90
|
+
.token.char,
|
|
91
|
+
.token.regex,
|
|
92
|
+
.token.string,
|
|
93
|
+
.token.variable {
|
|
94
|
+
color: #7ec699
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.token.entity,
|
|
98
|
+
.token.operator,
|
|
99
|
+
.token.url {
|
|
100
|
+
color: #67cdcc
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.token.bold,
|
|
104
|
+
.token.important {
|
|
105
|
+
font-weight: 700
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.token.italic {
|
|
109
|
+
font-style: italic
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.token.entity {
|
|
113
|
+
cursor: help
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.token.inserted {
|
|
117
|
+
color: green
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
pre[class*=language-].line-numbers {
|
|
121
|
+
position: relative;
|
|
122
|
+
padding-left: 3.8em;
|
|
123
|
+
counter-reset: linenumber
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
pre[class*=language-].line-numbers>code {
|
|
127
|
+
position: relative;
|
|
128
|
+
white-space: inherit
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.line-numbers .line-numbers-rows {
|
|
132
|
+
position: absolute;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
top: 0;
|
|
135
|
+
font-size: 100%;
|
|
136
|
+
left: -3.8em;
|
|
137
|
+
width: 3em;
|
|
138
|
+
letter-spacing: -1px;
|
|
139
|
+
border-right: 1px solid #999;
|
|
140
|
+
-webkit-user-select: none;
|
|
141
|
+
-moz-user-select: none;
|
|
142
|
+
-ms-user-select: none;
|
|
143
|
+
user-select: none
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.line-numbers-rows>span {
|
|
147
|
+
display: block;
|
|
148
|
+
counter-increment: linenumber
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.line-numbers-rows>span:before {
|
|
152
|
+
content: counter(linenumber);
|
|
153
|
+
color: #999;
|
|
154
|
+
display: block;
|
|
155
|
+
padding-right: .8em;
|
|
156
|
+
text-align: right
|
|
157
|
+
}
|