@rbbtsn0w/wechat-markdown 1.1.1
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/README.md +176 -0
- package/dist/engine.d.ts +33 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +289 -0
- package/dist/engine.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/inliner/dom-patcher.d.ts +4 -0
- package/dist/inliner/dom-patcher.d.ts.map +1 -0
- package/dist/inliner/dom-patcher.js +46 -0
- package/dist/inliner/dom-patcher.js.map +1 -0
- package/dist/inliner/inliner.d.ts +14 -0
- package/dist/inliner/inliner.d.ts.map +1 -0
- package/dist/inliner/inliner.js +35 -0
- package/dist/inliner/inliner.js.map +1 -0
- package/dist/media/formula.d.ts +8 -0
- package/dist/media/formula.d.ts.map +1 -0
- package/dist/media/formula.js +54 -0
- package/dist/media/formula.js.map +1 -0
- package/dist/media/mermaid.d.ts +8 -0
- package/dist/media/mermaid.d.ts.map +1 -0
- package/dist/media/mermaid.js +45 -0
- package/dist/media/mermaid.js.map +1 -0
- package/dist/media/styles.d.ts +17 -0
- package/dist/media/styles.d.ts.map +1 -0
- package/dist/media/styles.js +47 -0
- package/dist/media/styles.js.map +1 -0
- package/dist/plugins/alerts.d.ts +29 -0
- package/dist/plugins/alerts.d.ts.map +1 -0
- package/dist/plugins/alerts.js +79 -0
- package/dist/plugins/alerts.js.map +1 -0
- package/dist/plugins/code-decorator.d.ts +8 -0
- package/dist/plugins/code-decorator.d.ts.map +1 -0
- package/dist/plugins/code-decorator.js +73 -0
- package/dist/plugins/code-decorator.js.map +1 -0
- package/dist/plugins/footnotes.d.ts +16 -0
- package/dist/plugins/footnotes.d.ts.map +1 -0
- package/dist/plugins/footnotes.js +103 -0
- package/dist/plugins/footnotes.js.map +1 -0
- package/dist/plugins/table-scroller.d.ts +7 -0
- package/dist/plugins/table-scroller.d.ts.map +1 -0
- package/dist/plugins/table-scroller.js +24 -0
- package/dist/plugins/table-scroller.js.map +1 -0
- package/dist/themes/geek.d.ts +2 -0
- package/dist/themes/geek.d.ts.map +1 -0
- package/dist/themes/geek.js +147 -0
- package/dist/themes/geek.js.map +1 -0
- package/dist/themes/grace.d.ts +2 -0
- package/dist/themes/grace.d.ts.map +1 -0
- package/dist/themes/grace.js +148 -0
- package/dist/themes/grace.js.map +1 -0
- package/dist/themes/index.d.ts +12 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +48 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/themes/tech.d.ts +2 -0
- package/dist/themes/tech.d.ts.map +1 -0
- package/dist/themes/tech.js +253 -0
- package/dist/themes/tech.js.map +1 -0
- package/dist/types/index.d.ts +75 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const geekTheme = "\n.markdown-body {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, monospace, sans-serif;\n font-size: 15px;\n line-height: 1.78;\n color: #24292f;\n word-break: break-word;\n padding: 0 4px;\n}\n\n.markdown-body p {\n margin: 1.1em 0;\n}\n\n.markdown-body h1 {\n font-size: 1.4em;\n font-weight: 800;\n color: #1f2328;\n margin: 1.8em 0 0.8em;\n padding-bottom: 0.3em;\n border-bottom: 2px solid #fd7e14;\n}\n\n.markdown-body h2 {\n font-size: 1.25em;\n font-weight: 800;\n color: #1f2328;\n margin: 1.5em 0 0.7em;\n padding-left: 10px;\n border-left: 4px solid #fd7e14;\n}\n\n.markdown-body h3 {\n font-size: 1.1em;\n font-weight: 700;\n color: #d9480f;\n margin: 1.2em 0 0.5em;\n}\n\n.markdown-body strong {\n font-weight: 700;\n color: #d9480f;\n}\n\n.markdown-body blockquote {\n margin: 1.2em 0;\n padding: 12px 16px;\n color: #495057;\n background-color: #fff9db;\n border-left: 4px solid #fd7e14;\n border-radius: 4px;\n}\n\n.markdown-body code {\n font-family: Menlo, Monaco, Consolas, monospace;\n font-size: 0.88em;\n background-color: #f1f3f5;\n color: #d6336c;\n padding: 2px 6px;\n border-radius: 4px;\n}\n\n.markdown-body pre {\n font-family: Menlo, Monaco, Consolas, monospace;\n font-size: 0.85em;\n background-color: #181a1b;\n color: #f8f9fa;\n padding: 14px 16px;\n border-radius: 6px;\n overflow-x: auto;\n margin: 1.2em 0;\n}\n\n.markdown-body table {\n width: 100%;\n border-collapse: collapse;\n margin: 1.2em 0;\n font-size: 0.9em;\n}\n\n.markdown-body th {\n background-color: #f8f9fa;\n color: #212529;\n font-weight: 700;\n padding: 8px 12px;\n border: 1px solid #dee2e6;\n}\n\n.markdown-body td {\n padding: 8px 12px;\n border: 1px solid #dee2e6;\n}\n\n.table-scroller {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n margin: 1.2em 0;\n}\n\n.footnote-ref {\n color: #d9480f;\n font-size: 0.8em;\n vertical-align: super;\n font-weight: 600;\n}\n\n.footnotes-container {\n margin-top: 2.5em;\n padding-top: 1.2em;\n border-top: 1px dashed #ced4da;\n font-size: 0.85em;\n color: #6c757d;\n}\n\n.footnotes-title {\n font-size: 1.05em;\n font-weight: 700;\n color: #d9480f;\n margin-bottom: 0.8em;\n}\n\n/* Alerts -- must match the .markdown-body blockquote.gfm-alert* shape of\n alertsBaseCss (specificity 0,2,1). A bare .gfm-alert-note (0,1,0) would\n lose to the base layer and to .markdown-body blockquote above.\n Saturated hues to match the theme's high-contrast palette; WARNING sits on\n orange rather than the house yellow so it cannot be mistaken for a plain\n blockquote. The .gfm-alert fallback deliberately mirrors the plain\n blockquote: it is unreachable while all five types match, and an unknown\n future type should degrade to the theme's own quote look. */\n.markdown-body blockquote.gfm-alert {\n margin: 1.2em 0;\n padding: 12px 16px;\n border-left: 4px solid #fd7e14;\n border-radius: 4px;\n background-color: #fff9db;\n}\n\n.markdown-body blockquote.gfm-alert-note { border-left-color: #1c7ed6; background-color: #e7f5ff; }\n.markdown-body blockquote.gfm-alert-tip { border-left-color: #2f9e44; background-color: #ebfbee; }\n.markdown-body blockquote.gfm-alert-important { border-left-color: #7048e8; background-color: #f3f0ff; }\n.markdown-body blockquote.gfm-alert-warning { border-left-color: #f76707; background-color: #fff4e6; }\n.markdown-body blockquote.gfm-alert-caution { border-left-color: #e03131; background-color: #fff5f5; }\n";
|
|
2
|
+
//# sourceMappingURL=geek.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geek.d.ts","sourceRoot":"","sources":["../../src/themes/geek.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,87GA8IrB,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.geekTheme = void 0;
|
|
4
|
+
exports.geekTheme = `
|
|
5
|
+
.markdown-body {
|
|
6
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace, sans-serif;
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
line-height: 1.78;
|
|
9
|
+
color: #24292f;
|
|
10
|
+
word-break: break-word;
|
|
11
|
+
padding: 0 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.markdown-body p {
|
|
15
|
+
margin: 1.1em 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.markdown-body h1 {
|
|
19
|
+
font-size: 1.4em;
|
|
20
|
+
font-weight: 800;
|
|
21
|
+
color: #1f2328;
|
|
22
|
+
margin: 1.8em 0 0.8em;
|
|
23
|
+
padding-bottom: 0.3em;
|
|
24
|
+
border-bottom: 2px solid #fd7e14;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.markdown-body h2 {
|
|
28
|
+
font-size: 1.25em;
|
|
29
|
+
font-weight: 800;
|
|
30
|
+
color: #1f2328;
|
|
31
|
+
margin: 1.5em 0 0.7em;
|
|
32
|
+
padding-left: 10px;
|
|
33
|
+
border-left: 4px solid #fd7e14;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.markdown-body h3 {
|
|
37
|
+
font-size: 1.1em;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
color: #d9480f;
|
|
40
|
+
margin: 1.2em 0 0.5em;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.markdown-body strong {
|
|
44
|
+
font-weight: 700;
|
|
45
|
+
color: #d9480f;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.markdown-body blockquote {
|
|
49
|
+
margin: 1.2em 0;
|
|
50
|
+
padding: 12px 16px;
|
|
51
|
+
color: #495057;
|
|
52
|
+
background-color: #fff9db;
|
|
53
|
+
border-left: 4px solid #fd7e14;
|
|
54
|
+
border-radius: 4px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.markdown-body code {
|
|
58
|
+
font-family: Menlo, Monaco, Consolas, monospace;
|
|
59
|
+
font-size: 0.88em;
|
|
60
|
+
background-color: #f1f3f5;
|
|
61
|
+
color: #d6336c;
|
|
62
|
+
padding: 2px 6px;
|
|
63
|
+
border-radius: 4px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.markdown-body pre {
|
|
67
|
+
font-family: Menlo, Monaco, Consolas, monospace;
|
|
68
|
+
font-size: 0.85em;
|
|
69
|
+
background-color: #181a1b;
|
|
70
|
+
color: #f8f9fa;
|
|
71
|
+
padding: 14px 16px;
|
|
72
|
+
border-radius: 6px;
|
|
73
|
+
overflow-x: auto;
|
|
74
|
+
margin: 1.2em 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.markdown-body table {
|
|
78
|
+
width: 100%;
|
|
79
|
+
border-collapse: collapse;
|
|
80
|
+
margin: 1.2em 0;
|
|
81
|
+
font-size: 0.9em;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.markdown-body th {
|
|
85
|
+
background-color: #f8f9fa;
|
|
86
|
+
color: #212529;
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
padding: 8px 12px;
|
|
89
|
+
border: 1px solid #dee2e6;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.markdown-body td {
|
|
93
|
+
padding: 8px 12px;
|
|
94
|
+
border: 1px solid #dee2e6;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.table-scroller {
|
|
98
|
+
overflow-x: auto;
|
|
99
|
+
-webkit-overflow-scrolling: touch;
|
|
100
|
+
margin: 1.2em 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.footnote-ref {
|
|
104
|
+
color: #d9480f;
|
|
105
|
+
font-size: 0.8em;
|
|
106
|
+
vertical-align: super;
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.footnotes-container {
|
|
111
|
+
margin-top: 2.5em;
|
|
112
|
+
padding-top: 1.2em;
|
|
113
|
+
border-top: 1px dashed #ced4da;
|
|
114
|
+
font-size: 0.85em;
|
|
115
|
+
color: #6c757d;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.footnotes-title {
|
|
119
|
+
font-size: 1.05em;
|
|
120
|
+
font-weight: 700;
|
|
121
|
+
color: #d9480f;
|
|
122
|
+
margin-bottom: 0.8em;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Alerts -- must match the .markdown-body blockquote.gfm-alert* shape of
|
|
126
|
+
alertsBaseCss (specificity 0,2,1). A bare .gfm-alert-note (0,1,0) would
|
|
127
|
+
lose to the base layer and to .markdown-body blockquote above.
|
|
128
|
+
Saturated hues to match the theme's high-contrast palette; WARNING sits on
|
|
129
|
+
orange rather than the house yellow so it cannot be mistaken for a plain
|
|
130
|
+
blockquote. The .gfm-alert fallback deliberately mirrors the plain
|
|
131
|
+
blockquote: it is unreachable while all five types match, and an unknown
|
|
132
|
+
future type should degrade to the theme's own quote look. */
|
|
133
|
+
.markdown-body blockquote.gfm-alert {
|
|
134
|
+
margin: 1.2em 0;
|
|
135
|
+
padding: 12px 16px;
|
|
136
|
+
border-left: 4px solid #fd7e14;
|
|
137
|
+
border-radius: 4px;
|
|
138
|
+
background-color: #fff9db;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.markdown-body blockquote.gfm-alert-note { border-left-color: #1c7ed6; background-color: #e7f5ff; }
|
|
142
|
+
.markdown-body blockquote.gfm-alert-tip { border-left-color: #2f9e44; background-color: #ebfbee; }
|
|
143
|
+
.markdown-body blockquote.gfm-alert-important { border-left-color: #7048e8; background-color: #f3f0ff; }
|
|
144
|
+
.markdown-body blockquote.gfm-alert-warning { border-left-color: #f76707; background-color: #fff4e6; }
|
|
145
|
+
.markdown-body blockquote.gfm-alert-caution { border-left-color: #e03131; background-color: #fff5f5; }
|
|
146
|
+
`;
|
|
147
|
+
//# sourceMappingURL=geek.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geek.js","sourceRoot":"","sources":["../../src/themes/geek.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8IxB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const graceTheme = "\n.markdown-body {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", sans-serif;\n font-size: 15px;\n line-height: 1.85;\n color: #3f4448;\n word-break: break-word;\n padding: 0 4px;\n}\n\n.markdown-body p {\n margin: 1.15em 0;\n letter-spacing: 0.6px;\n}\n\n.markdown-body h1 {\n font-size: 1.35em;\n font-weight: 700;\n color: #2d6a4f;\n margin: 1.8em 0 0.8em;\n padding-bottom: 0.4em;\n border-bottom: 2px solid #52b788;\n}\n\n.markdown-body h2 {\n font-size: 1.2em;\n font-weight: 700;\n color: #2d6a4f;\n margin: 1.5em 0 0.7em;\n padding-left: 10px;\n border-left: 4px solid #52b788;\n}\n\n.markdown-body h3 {\n font-size: 1.08em;\n font-weight: 700;\n color: #40916c;\n margin: 1.2em 0 0.5em;\n}\n\n.markdown-body strong {\n font-weight: 700;\n color: #2d6a4f;\n}\n\n.markdown-body blockquote {\n margin: 1.2em 0;\n padding: 12px 16px;\n color: #52796f;\n background-color: #f1f8f5;\n border-left: 4px solid #52b788;\n border-radius: 4px;\n}\n\n.markdown-body code {\n font-family: Menlo, Monaco, Consolas, monospace;\n font-size: 0.88em;\n background-color: #edf6f2;\n color: #2d6a4f;\n padding: 2px 6px;\n border-radius: 4px;\n}\n\n.markdown-body pre {\n font-family: Menlo, Monaco, Consolas, monospace;\n font-size: 0.85em;\n background-color: #1b262c;\n color: #bbe1fa;\n padding: 14px 16px;\n border-radius: 6px;\n overflow-x: auto;\n margin: 1.2em 0;\n}\n\n.markdown-body table {\n width: 100%;\n border-collapse: collapse;\n margin: 1.2em 0;\n font-size: 0.9em;\n}\n\n.markdown-body th {\n background-color: #e8f5e9;\n color: #2d6a4f;\n font-weight: 700;\n padding: 8px 12px;\n border: 1px solid #c8e6c9;\n}\n\n.markdown-body td {\n padding: 8px 12px;\n border: 1px solid #c8e6c9;\n}\n\n.table-scroller {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n margin: 1.2em 0;\n}\n\n.footnote-ref {\n color: #2d6a4f;\n font-size: 0.8em;\n vertical-align: super;\n font-weight: 600;\n}\n\n.footnotes-container {\n margin-top: 2.5em;\n padding-top: 1.2em;\n border-top: 1px dashed #b7e4c7;\n font-size: 0.85em;\n color: #666666;\n}\n\n.footnotes-title {\n font-size: 1.05em;\n font-weight: 700;\n color: #2d6a4f;\n margin-bottom: 0.8em;\n}\n\n/* Alerts -- must match the .markdown-body blockquote.gfm-alert* shape of\n alertsBaseCss (specificity 0,2,1). A bare .gfm-alert-note (0,1,0) would\n lose to the base layer and to .markdown-body blockquote above.\n Muted Morandi hues so the five types stay distinguishable without breaking\n the theme's low-saturation palette. The .gfm-alert fallback deliberately\n mirrors the plain blockquote: it is unreachable while all five types match,\n and an unknown future type should degrade to the theme's own quote look. */\n.markdown-body blockquote.gfm-alert {\n margin: 1.2em 0;\n padding: 12px 16px;\n color: #52796f;\n border-left: 4px solid #52b788;\n border-radius: 4px;\n background-color: #f1f8f5;\n}\n\n.markdown-body blockquote.gfm-alert-note { border-left-color: #5c8ca8; background-color: #eef4f8; }\n.markdown-body blockquote.gfm-alert-tip { border-left-color: #40916c; background-color: #e6f4ec; }\n.markdown-body blockquote.gfm-alert-important { border-left-color: #8a7ba8; background-color: #f2f0f7; }\n.markdown-body blockquote.gfm-alert-warning { border-left-color: #b48a5a; background-color: #f8f3ea; }\n.markdown-body blockquote.gfm-alert-caution { border-left-color: #b06a70; background-color: #f9eff0; }\n";
|
|
2
|
+
//# sourceMappingURL=grace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grace.d.ts","sourceRoot":"","sources":["../../src/themes/grace.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,i+GA+ItB,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.graceTheme = void 0;
|
|
4
|
+
exports.graceTheme = `
|
|
5
|
+
.markdown-body {
|
|
6
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
line-height: 1.85;
|
|
9
|
+
color: #3f4448;
|
|
10
|
+
word-break: break-word;
|
|
11
|
+
padding: 0 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.markdown-body p {
|
|
15
|
+
margin: 1.15em 0;
|
|
16
|
+
letter-spacing: 0.6px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.markdown-body h1 {
|
|
20
|
+
font-size: 1.35em;
|
|
21
|
+
font-weight: 700;
|
|
22
|
+
color: #2d6a4f;
|
|
23
|
+
margin: 1.8em 0 0.8em;
|
|
24
|
+
padding-bottom: 0.4em;
|
|
25
|
+
border-bottom: 2px solid #52b788;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.markdown-body h2 {
|
|
29
|
+
font-size: 1.2em;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
color: #2d6a4f;
|
|
32
|
+
margin: 1.5em 0 0.7em;
|
|
33
|
+
padding-left: 10px;
|
|
34
|
+
border-left: 4px solid #52b788;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.markdown-body h3 {
|
|
38
|
+
font-size: 1.08em;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
color: #40916c;
|
|
41
|
+
margin: 1.2em 0 0.5em;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.markdown-body strong {
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
color: #2d6a4f;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.markdown-body blockquote {
|
|
50
|
+
margin: 1.2em 0;
|
|
51
|
+
padding: 12px 16px;
|
|
52
|
+
color: #52796f;
|
|
53
|
+
background-color: #f1f8f5;
|
|
54
|
+
border-left: 4px solid #52b788;
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.markdown-body code {
|
|
59
|
+
font-family: Menlo, Monaco, Consolas, monospace;
|
|
60
|
+
font-size: 0.88em;
|
|
61
|
+
background-color: #edf6f2;
|
|
62
|
+
color: #2d6a4f;
|
|
63
|
+
padding: 2px 6px;
|
|
64
|
+
border-radius: 4px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.markdown-body pre {
|
|
68
|
+
font-family: Menlo, Monaco, Consolas, monospace;
|
|
69
|
+
font-size: 0.85em;
|
|
70
|
+
background-color: #1b262c;
|
|
71
|
+
color: #bbe1fa;
|
|
72
|
+
padding: 14px 16px;
|
|
73
|
+
border-radius: 6px;
|
|
74
|
+
overflow-x: auto;
|
|
75
|
+
margin: 1.2em 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.markdown-body table {
|
|
79
|
+
width: 100%;
|
|
80
|
+
border-collapse: collapse;
|
|
81
|
+
margin: 1.2em 0;
|
|
82
|
+
font-size: 0.9em;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.markdown-body th {
|
|
86
|
+
background-color: #e8f5e9;
|
|
87
|
+
color: #2d6a4f;
|
|
88
|
+
font-weight: 700;
|
|
89
|
+
padding: 8px 12px;
|
|
90
|
+
border: 1px solid #c8e6c9;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.markdown-body td {
|
|
94
|
+
padding: 8px 12px;
|
|
95
|
+
border: 1px solid #c8e6c9;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.table-scroller {
|
|
99
|
+
overflow-x: auto;
|
|
100
|
+
-webkit-overflow-scrolling: touch;
|
|
101
|
+
margin: 1.2em 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.footnote-ref {
|
|
105
|
+
color: #2d6a4f;
|
|
106
|
+
font-size: 0.8em;
|
|
107
|
+
vertical-align: super;
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.footnotes-container {
|
|
112
|
+
margin-top: 2.5em;
|
|
113
|
+
padding-top: 1.2em;
|
|
114
|
+
border-top: 1px dashed #b7e4c7;
|
|
115
|
+
font-size: 0.85em;
|
|
116
|
+
color: #666666;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.footnotes-title {
|
|
120
|
+
font-size: 1.05em;
|
|
121
|
+
font-weight: 700;
|
|
122
|
+
color: #2d6a4f;
|
|
123
|
+
margin-bottom: 0.8em;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Alerts -- must match the .markdown-body blockquote.gfm-alert* shape of
|
|
127
|
+
alertsBaseCss (specificity 0,2,1). A bare .gfm-alert-note (0,1,0) would
|
|
128
|
+
lose to the base layer and to .markdown-body blockquote above.
|
|
129
|
+
Muted Morandi hues so the five types stay distinguishable without breaking
|
|
130
|
+
the theme's low-saturation palette. The .gfm-alert fallback deliberately
|
|
131
|
+
mirrors the plain blockquote: it is unreachable while all five types match,
|
|
132
|
+
and an unknown future type should degrade to the theme's own quote look. */
|
|
133
|
+
.markdown-body blockquote.gfm-alert {
|
|
134
|
+
margin: 1.2em 0;
|
|
135
|
+
padding: 12px 16px;
|
|
136
|
+
color: #52796f;
|
|
137
|
+
border-left: 4px solid #52b788;
|
|
138
|
+
border-radius: 4px;
|
|
139
|
+
background-color: #f1f8f5;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.markdown-body blockquote.gfm-alert-note { border-left-color: #5c8ca8; background-color: #eef4f8; }
|
|
143
|
+
.markdown-body blockquote.gfm-alert-tip { border-left-color: #40916c; background-color: #e6f4ec; }
|
|
144
|
+
.markdown-body blockquote.gfm-alert-important { border-left-color: #8a7ba8; background-color: #f2f0f7; }
|
|
145
|
+
.markdown-body blockquote.gfm-alert-warning { border-left-color: #b48a5a; background-color: #f8f3ea; }
|
|
146
|
+
.markdown-body blockquote.gfm-alert-caution { border-left-color: #b06a70; background-color: #f9eff0; }
|
|
147
|
+
`;
|
|
148
|
+
//# sourceMappingURL=grace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grace.js","sourceRoot":"","sources":["../../src/themes/grace.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+IzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ThemeConfig } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolve theme CSS from a registered name or an inline ThemeConfig.
|
|
4
|
+
*
|
|
5
|
+
* Unknown names intentionally fall back to `tech` rather than throwing:
|
|
6
|
+
* downstream configs are known to carry names that were never registered, and
|
|
7
|
+
* they rely on this fallback. Any strictness here must be opt-in.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getTheme(theme?: string | ThemeConfig, customCss?: string): string;
|
|
10
|
+
export declare function listThemes(): ThemeConfig[];
|
|
11
|
+
export declare function registerTheme(name: string, css: string, description?: string): void;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAoBvC;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,KAAK,GAAE,MAAM,GAAG,WAAoB,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CASzF;AAED,wBAAgB,UAAU,IAAI,WAAW,EAAE,CAE1C;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAEnF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTheme = getTheme;
|
|
4
|
+
exports.listThemes = listThemes;
|
|
5
|
+
exports.registerTheme = registerTheme;
|
|
6
|
+
const tech_1 = require("./tech");
|
|
7
|
+
const grace_1 = require("./grace");
|
|
8
|
+
const geek_1 = require("./geek");
|
|
9
|
+
const themeRegistry = {
|
|
10
|
+
tech: {
|
|
11
|
+
name: 'tech',
|
|
12
|
+
description: 'Modern Tech Blue Theme (Default)',
|
|
13
|
+
css: tech_1.techTheme,
|
|
14
|
+
},
|
|
15
|
+
grace: {
|
|
16
|
+
name: 'grace',
|
|
17
|
+
description: 'Elegant Morandi Green Theme',
|
|
18
|
+
css: grace_1.graceTheme,
|
|
19
|
+
},
|
|
20
|
+
geek: {
|
|
21
|
+
name: 'geek',
|
|
22
|
+
description: 'High Contrast Orange & Dark Accent Geek Theme',
|
|
23
|
+
css: geek_1.geekTheme,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Resolve theme CSS from a registered name or an inline ThemeConfig.
|
|
28
|
+
*
|
|
29
|
+
* Unknown names intentionally fall back to `tech` rather than throwing:
|
|
30
|
+
* downstream configs are known to carry names that were never registered, and
|
|
31
|
+
* they rely on this fallback. Any strictness here must be opt-in.
|
|
32
|
+
*/
|
|
33
|
+
function getTheme(theme = 'tech', customCss) {
|
|
34
|
+
const selected = typeof theme === 'string'
|
|
35
|
+
? themeRegistry[theme.toLowerCase()] || themeRegistry.tech
|
|
36
|
+
: theme;
|
|
37
|
+
if (customCss) {
|
|
38
|
+
return `${selected.css}\n${customCss}`;
|
|
39
|
+
}
|
|
40
|
+
return selected.css;
|
|
41
|
+
}
|
|
42
|
+
function listThemes() {
|
|
43
|
+
return Object.values(themeRegistry);
|
|
44
|
+
}
|
|
45
|
+
function registerTheme(name, css, description) {
|
|
46
|
+
themeRegistry[name.toLowerCase()] = { name, css, description };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":";;AA8BA,4BASC;AAED,gCAEC;AAED,sCAEC;AA/CD,iCAAmC;AACnC,mCAAqC;AACrC,iCAAmC;AAGnC,MAAM,aAAa,GAAgC;IACjD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,kCAAkC;QAC/C,GAAG,EAAE,gBAAS;KACf;IACD,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,6BAA6B;QAC1C,GAAG,EAAE,kBAAU;KAChB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,+CAA+C;QAC5D,GAAG,EAAE,gBAAS;KACf;CACF,CAAC;AAEF;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,QAA8B,MAAM,EAAE,SAAkB;IAC/E,MAAM,QAAQ,GACZ,OAAO,KAAK,KAAK,QAAQ;QACvB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,aAAa,CAAC,IAAI;QAC1D,CAAC,CAAC,KAAK,CAAC;IACZ,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,GAAG,QAAQ,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;IACzC,CAAC;IACD,OAAO,QAAQ,CAAC,GAAG,CAAC;AACtB,CAAC;AAED,SAAgB,UAAU;IACxB,OAAO,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC;AAED,SAAgB,aAAa,CAAC,IAAY,EAAE,GAAW,EAAE,WAAoB;IAC3E,aAAa,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const techTheme = "\n.markdown-body {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 15px;\n line-height: 1.8;\n color: #2b2b2b;\n word-break: break-word;\n padding: 0 4px;\n}\n\n.markdown-body p {\n margin: 1.1em 0;\n letter-spacing: 0.5px;\n}\n\n.markdown-body h1 {\n font-size: 1.4em;\n font-weight: 700;\n color: #0f4c81;\n margin: 1.8em 0 0.8em;\n padding-bottom: 0.4em;\n border-bottom: 2px solid #0f4c81;\n}\n\n.markdown-body h2 {\n font-size: 1.25em;\n font-weight: 700;\n color: #0f4c81;\n margin: 1.5em 0 0.7em;\n padding-left: 10px;\n border-left: 4px solid #0f4c81;\n}\n\n.markdown-body h3 {\n font-size: 1.1em;\n font-weight: 700;\n color: #1a5f7a;\n margin: 1.2em 0 0.5em;\n}\n\n.markdown-body h4, .markdown-body h5, .markdown-body h6 {\n font-size: 1em;\n font-weight: 700;\n color: #333333;\n margin: 1em 0 0.5em;\n}\n\n.markdown-body strong {\n font-weight: 700;\n color: #0f4c81;\n}\n\n.markdown-body em {\n font-style: italic;\n color: #555555;\n}\n\n.markdown-body blockquote {\n margin: 1.2em 0;\n padding: 12px 16px;\n color: #555555;\n background-color: #f0f6fa;\n border-left: 4px solid #0f4c81;\n border-radius: 4px;\n}\n\n.markdown-body blockquote p {\n margin: 0.4em 0;\n}\n\n.markdown-body ul, .markdown-body ol {\n margin: 1em 0;\n padding-left: 22px;\n}\n\n.markdown-body li {\n margin: 0.4em 0;\n line-height: 1.7;\n}\n\n.markdown-body hr {\n border: none;\n border-top: 1px solid #e1e4e8;\n margin: 2em 0;\n}\n\n.markdown-body code {\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 0.88em;\n background-color: #f3f6f9;\n color: #c7254e;\n padding: 2px 6px;\n border-radius: 4px;\n border: 1px solid #e1e8ed;\n}\n\n.markdown-body pre {\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 0.85em;\n background-color: #282c34;\n color: #abb2bf;\n padding: 14px 16px;\n border-radius: 6px;\n overflow-x: auto;\n margin: 1.2em 0;\n line-height: 1.6;\n}\n\n.markdown-body pre code {\n background-color: transparent;\n color: inherit;\n padding: 0;\n border: none;\n font-size: inherit;\n}\n\n.markdown-body table {\n width: 100%;\n border-collapse: collapse;\n margin: 1.2em 0;\n font-size: 0.9em;\n}\n\n.markdown-body th {\n background-color: #f0f6fa;\n color: #0f4c81;\n font-weight: 700;\n padding: 8px 12px;\n border: 1px solid #d0d7de;\n text-align: left;\n}\n\n.markdown-body td {\n padding: 8px 12px;\n border: 1px solid #d0d7de;\n}\n\n.markdown-body tr:nth-child(even) {\n background-color: #f9fbfd;\n}\n\n.markdown-body img {\n max-width: 100%;\n border-radius: 6px;\n margin: 1em auto;\n display: block;\n}\n\n/* Mac Code Block Container */\n.mac-code-wrapper {\n margin: 1.2em 0;\n border-radius: 6px;\n overflow: hidden;\n background-color: #282c34;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n}\n\n.mac-code-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 14px;\n background-color: #21252b;\n border-bottom: 1px solid #181a1f;\n}\n\n.mac-dots {\n display: flex;\n gap: 6px;\n}\n\n.mac-dot {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n}\n\n.mac-dot-red { background-color: #ff5f56; }\n.mac-dot-yellow { background-color: #ffbd2e; }\n.mac-dot-green { background-color: #27c93f; }\n\n.mac-code-lang {\n font-size: 11px;\n color: #7f848e;\n text-transform: uppercase;\n font-family: Menlo, Monaco, Consolas, monospace;\n}\n\n/* Table Scroller Wrapper */\n.table-scroller {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n margin: 1.2em 0;\n}\n\n/* Footnotes */\n.footnote-ref {\n color: #0f4c81;\n font-size: 0.8em;\n vertical-align: super;\n text-decoration: none;\n font-weight: 600;\n padding: 0 2px;\n}\n\n.footnotes-container {\n margin-top: 2.5em;\n padding-top: 1.2em;\n border-top: 1px dashed #d0d7de;\n font-size: 0.85em;\n color: #666666;\n}\n\n.footnotes-title {\n font-size: 1.05em;\n font-weight: 700;\n color: #0f4c81;\n margin-bottom: 0.8em;\n}\n\n.footnote-item {\n margin: 0.4em 0;\n word-break: break-all;\n}\n\n/* Alerts -- must match the .markdown-body blockquote.gfm-alert* shape of\n alertsBaseCss (specificity 0,2,1). A bare .gfm-alert-note (0,1,0) would\n lose to the base layer and to .markdown-body blockquote above. */\n.markdown-body blockquote.gfm-alert {\n margin: 1.2em 0;\n padding: 12px 16px;\n border-left: 4px solid #0f4c81;\n border-radius: 4px;\n background-color: #f6f8fa;\n}\n\n.markdown-body blockquote.gfm-alert-note { border-left-color: #0969da; background-color: #ddf4ff; }\n.markdown-body blockquote.gfm-alert-tip { border-left-color: #1a7f37; background-color: #dafbe1; }\n.markdown-body blockquote.gfm-alert-important { border-left-color: #8250df; background-color: #fbefff; }\n.markdown-body blockquote.gfm-alert-warning { border-left-color: #9a6700; background-color: #fff8c5; }\n.markdown-body blockquote.gfm-alert-caution { border-left-color: #cf222e; background-color: #ffebe9; }\n\n.gfm-alert-title {\n font-weight: 700;\n margin-bottom: 4px;\n display: flex;\n align-items: center;\n}\n";
|
|
2
|
+
//# sourceMappingURL=tech.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tech.d.ts","sourceRoot":"","sources":["../../src/themes/tech.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,0lKAwPrB,CAAC"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.techTheme = void 0;
|
|
4
|
+
exports.techTheme = `
|
|
5
|
+
.markdown-body {
|
|
6
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
line-height: 1.8;
|
|
9
|
+
color: #2b2b2b;
|
|
10
|
+
word-break: break-word;
|
|
11
|
+
padding: 0 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.markdown-body p {
|
|
15
|
+
margin: 1.1em 0;
|
|
16
|
+
letter-spacing: 0.5px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.markdown-body h1 {
|
|
20
|
+
font-size: 1.4em;
|
|
21
|
+
font-weight: 700;
|
|
22
|
+
color: #0f4c81;
|
|
23
|
+
margin: 1.8em 0 0.8em;
|
|
24
|
+
padding-bottom: 0.4em;
|
|
25
|
+
border-bottom: 2px solid #0f4c81;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.markdown-body h2 {
|
|
29
|
+
font-size: 1.25em;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
color: #0f4c81;
|
|
32
|
+
margin: 1.5em 0 0.7em;
|
|
33
|
+
padding-left: 10px;
|
|
34
|
+
border-left: 4px solid #0f4c81;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.markdown-body h3 {
|
|
38
|
+
font-size: 1.1em;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
color: #1a5f7a;
|
|
41
|
+
margin: 1.2em 0 0.5em;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
|
|
45
|
+
font-size: 1em;
|
|
46
|
+
font-weight: 700;
|
|
47
|
+
color: #333333;
|
|
48
|
+
margin: 1em 0 0.5em;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.markdown-body strong {
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
color: #0f4c81;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.markdown-body em {
|
|
57
|
+
font-style: italic;
|
|
58
|
+
color: #555555;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.markdown-body blockquote {
|
|
62
|
+
margin: 1.2em 0;
|
|
63
|
+
padding: 12px 16px;
|
|
64
|
+
color: #555555;
|
|
65
|
+
background-color: #f0f6fa;
|
|
66
|
+
border-left: 4px solid #0f4c81;
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.markdown-body blockquote p {
|
|
71
|
+
margin: 0.4em 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.markdown-body ul, .markdown-body ol {
|
|
75
|
+
margin: 1em 0;
|
|
76
|
+
padding-left: 22px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.markdown-body li {
|
|
80
|
+
margin: 0.4em 0;
|
|
81
|
+
line-height: 1.7;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.markdown-body hr {
|
|
85
|
+
border: none;
|
|
86
|
+
border-top: 1px solid #e1e4e8;
|
|
87
|
+
margin: 2em 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.markdown-body code {
|
|
91
|
+
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
92
|
+
font-size: 0.88em;
|
|
93
|
+
background-color: #f3f6f9;
|
|
94
|
+
color: #c7254e;
|
|
95
|
+
padding: 2px 6px;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
border: 1px solid #e1e8ed;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.markdown-body pre {
|
|
101
|
+
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
102
|
+
font-size: 0.85em;
|
|
103
|
+
background-color: #282c34;
|
|
104
|
+
color: #abb2bf;
|
|
105
|
+
padding: 14px 16px;
|
|
106
|
+
border-radius: 6px;
|
|
107
|
+
overflow-x: auto;
|
|
108
|
+
margin: 1.2em 0;
|
|
109
|
+
line-height: 1.6;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.markdown-body pre code {
|
|
113
|
+
background-color: transparent;
|
|
114
|
+
color: inherit;
|
|
115
|
+
padding: 0;
|
|
116
|
+
border: none;
|
|
117
|
+
font-size: inherit;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.markdown-body table {
|
|
121
|
+
width: 100%;
|
|
122
|
+
border-collapse: collapse;
|
|
123
|
+
margin: 1.2em 0;
|
|
124
|
+
font-size: 0.9em;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.markdown-body th {
|
|
128
|
+
background-color: #f0f6fa;
|
|
129
|
+
color: #0f4c81;
|
|
130
|
+
font-weight: 700;
|
|
131
|
+
padding: 8px 12px;
|
|
132
|
+
border: 1px solid #d0d7de;
|
|
133
|
+
text-align: left;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.markdown-body td {
|
|
137
|
+
padding: 8px 12px;
|
|
138
|
+
border: 1px solid #d0d7de;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.markdown-body tr:nth-child(even) {
|
|
142
|
+
background-color: #f9fbfd;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.markdown-body img {
|
|
146
|
+
max-width: 100%;
|
|
147
|
+
border-radius: 6px;
|
|
148
|
+
margin: 1em auto;
|
|
149
|
+
display: block;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Mac Code Block Container */
|
|
153
|
+
.mac-code-wrapper {
|
|
154
|
+
margin: 1.2em 0;
|
|
155
|
+
border-radius: 6px;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
background-color: #282c34;
|
|
158
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.mac-code-header {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
padding: 8px 14px;
|
|
166
|
+
background-color: #21252b;
|
|
167
|
+
border-bottom: 1px solid #181a1f;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.mac-dots {
|
|
171
|
+
display: flex;
|
|
172
|
+
gap: 6px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.mac-dot {
|
|
176
|
+
width: 10px;
|
|
177
|
+
height: 10px;
|
|
178
|
+
border-radius: 50%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.mac-dot-red { background-color: #ff5f56; }
|
|
182
|
+
.mac-dot-yellow { background-color: #ffbd2e; }
|
|
183
|
+
.mac-dot-green { background-color: #27c93f; }
|
|
184
|
+
|
|
185
|
+
.mac-code-lang {
|
|
186
|
+
font-size: 11px;
|
|
187
|
+
color: #7f848e;
|
|
188
|
+
text-transform: uppercase;
|
|
189
|
+
font-family: Menlo, Monaco, Consolas, monospace;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Table Scroller Wrapper */
|
|
193
|
+
.table-scroller {
|
|
194
|
+
overflow-x: auto;
|
|
195
|
+
-webkit-overflow-scrolling: touch;
|
|
196
|
+
margin: 1.2em 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Footnotes */
|
|
200
|
+
.footnote-ref {
|
|
201
|
+
color: #0f4c81;
|
|
202
|
+
font-size: 0.8em;
|
|
203
|
+
vertical-align: super;
|
|
204
|
+
text-decoration: none;
|
|
205
|
+
font-weight: 600;
|
|
206
|
+
padding: 0 2px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.footnotes-container {
|
|
210
|
+
margin-top: 2.5em;
|
|
211
|
+
padding-top: 1.2em;
|
|
212
|
+
border-top: 1px dashed #d0d7de;
|
|
213
|
+
font-size: 0.85em;
|
|
214
|
+
color: #666666;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.footnotes-title {
|
|
218
|
+
font-size: 1.05em;
|
|
219
|
+
font-weight: 700;
|
|
220
|
+
color: #0f4c81;
|
|
221
|
+
margin-bottom: 0.8em;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.footnote-item {
|
|
225
|
+
margin: 0.4em 0;
|
|
226
|
+
word-break: break-all;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Alerts -- must match the .markdown-body blockquote.gfm-alert* shape of
|
|
230
|
+
alertsBaseCss (specificity 0,2,1). A bare .gfm-alert-note (0,1,0) would
|
|
231
|
+
lose to the base layer and to .markdown-body blockquote above. */
|
|
232
|
+
.markdown-body blockquote.gfm-alert {
|
|
233
|
+
margin: 1.2em 0;
|
|
234
|
+
padding: 12px 16px;
|
|
235
|
+
border-left: 4px solid #0f4c81;
|
|
236
|
+
border-radius: 4px;
|
|
237
|
+
background-color: #f6f8fa;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.markdown-body blockquote.gfm-alert-note { border-left-color: #0969da; background-color: #ddf4ff; }
|
|
241
|
+
.markdown-body blockquote.gfm-alert-tip { border-left-color: #1a7f37; background-color: #dafbe1; }
|
|
242
|
+
.markdown-body blockquote.gfm-alert-important { border-left-color: #8250df; background-color: #fbefff; }
|
|
243
|
+
.markdown-body blockquote.gfm-alert-warning { border-left-color: #9a6700; background-color: #fff8c5; }
|
|
244
|
+
.markdown-body blockquote.gfm-alert-caution { border-left-color: #cf222e; background-color: #ffebe9; }
|
|
245
|
+
|
|
246
|
+
.gfm-alert-title {
|
|
247
|
+
font-weight: 700;
|
|
248
|
+
margin-bottom: 4px;
|
|
249
|
+
display: flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
}
|
|
252
|
+
`;
|
|
253
|
+
//# sourceMappingURL=tech.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tech.js","sourceRoot":"","sources":["../../src/themes/tech.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwPxB,CAAC"}
|