@vscode/markdown-editor 0.0.2-12 → 0.0.2-14

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.
@@ -0,0 +1,337 @@
1
+ /*
2
+ * VS Code markdown theme — default preview variant (`md-theme-vscode-default`).
3
+ *
4
+ * One of two `--vscode-*`-variable-driven themes. This variant mirrors VS
5
+ * Code's own markdown *preview* stylesheet
6
+ * (`markdown-language-features/media/markdown.css`): a 14px base with a 22px
7
+ * line box, headings underlined with a 1px rule, a 5px blockquote bar, and
8
+ * code blocks framed by a 1px border on the editor's code-block background.
9
+ * The sibling `vscode-github.css` (`md-theme-vscode-github`) instead mirrors
10
+ * GitHub's layout (16px base, badge-style inline code, zebra tables).
11
+ *
12
+ * Both themes are *variable-driven*: every color is `var(--vscode-*, …)` so the
13
+ * editor adopts whatever VS Code color theme is active WITHOUT the editor
14
+ * knowing anything about VS Code. They share the same `--md-tok-*` token
15
+ * palette, so only layout/typography differs between the two.
16
+ *
17
+ * Apply it via the editor `classNames` option:
18
+ *
19
+ * new EditorView(model, { classNames: ['md-theme-vscode-default'] });
20
+ *
21
+ * In a real webview VS Code injects the `--vscode-*` custom properties onto the
22
+ * document root and sets a body theme class, so this theme just works. In the
23
+ * Component Explorer the same variables are supplied by a snapshot stylesheet
24
+ * scoped under a `.vscode-theme.<id>` wrapper (see `fixture/vscodeThemes`).
25
+ *
26
+ * Fallbacks: each `var()` carries a light-palette fallback so the theme stays
27
+ * legible even with no `--vscode-*` variables present at all. Every selector is
28
+ * scoped under the theme class, so importing this file never affects the global
29
+ * page or any editor that did not opt in.
30
+ */
31
+
32
+ .md-editor.md-theme-vscode-default {
33
+ font-family: var(--markdown-font-family, -apple-system, BlinkMacSystemFont,
34
+ 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif);
35
+ font-size: var(--markdown-font-size, 14px);
36
+ line-height: var(--markdown-line-height, 1.572);
37
+ color: var(--vscode-editor-foreground, #1f2328);
38
+ word-wrap: break-word;
39
+ /*
40
+ * Active-block highlight (defined theme-agnostically in editor.css) follows
41
+ * the VS Code surface color so it stays a subtle inset on both light and
42
+ * dark color themes instead of a fixed light-grey box.
43
+ */
44
+ --md-block-active-background: var(--vscode-editorWidget-background, #f8f8f8);
45
+ /*
46
+ * Cursor color: editor.css paints `.md-cursor` with `--md-cursor-background`
47
+ * (theme-agnostic, black fallback); map it to the VS Code cursor color so it
48
+ * stays visible on dark color themes.
49
+ */
50
+ --md-cursor-background: var(--vscode-editorCursor-foreground, #000);
51
+ }
52
+
53
+ .md-theme-vscode-default .md-heading {
54
+ margin-top: 24px;
55
+ margin-bottom: 16px;
56
+ font-weight: 600;
57
+ line-height: 1.25;
58
+ }
59
+
60
+ .md-theme-vscode-default h1.md-heading {
61
+ font-size: 2em;
62
+ padding-bottom: 0.3em;
63
+ border-bottom: 1px solid var(--vscode-textSeparator-foreground, #d1d9e0b3);
64
+ }
65
+
66
+ .md-theme-vscode-default h2.md-heading {
67
+ font-size: 1.5em;
68
+ padding-bottom: 0.3em;
69
+ border-bottom: 1px solid var(--vscode-textSeparator-foreground, #d1d9e0b3);
70
+ }
71
+
72
+ .md-theme-vscode-default h3.md-heading {
73
+ font-size: 1.25em;
74
+ }
75
+
76
+ .md-theme-vscode-default h4.md-heading {
77
+ font-size: 1em;
78
+ }
79
+
80
+ .md-theme-vscode-default h5.md-heading {
81
+ font-size: 0.875em;
82
+ }
83
+
84
+ .md-theme-vscode-default h6.md-heading {
85
+ font-size: 0.85em;
86
+ }
87
+
88
+ .md-theme-vscode-default .md-paragraph {
89
+ margin-top: 0;
90
+ margin-bottom: 16px;
91
+ }
92
+
93
+ /*
94
+ * Preview blockquotes keep the normal foreground color (no dimming) and use a
95
+ * thick 5px rule with the VS Code blockquote surface tint.
96
+ */
97
+ .md-theme-vscode-default .md-blockquote {
98
+ margin: 0 0 16px 0;
99
+ padding: 0 16px 0 10px;
100
+ /*
101
+ * The left padding the `>` gutter hangs in (matches padding-left: 10px).
102
+ * Must be an absolute length, not `em`: the marker positions itself with
103
+ * this var inside its own (smaller) font context, so an `em` value would
104
+ * resolve against the marker's font-size and pull the `>` out of alignment.
105
+ */
106
+ --md-blockquote-pad: 10px;
107
+ background-color: var(--vscode-textBlockQuote-background, transparent);
108
+ border-left: 5px solid var(--vscode-textBlockQuote-border, #d1d9e0);
109
+ border-radius: 2px;
110
+ }
111
+
112
+ .md-theme-vscode-default .md-list {
113
+ margin-top: 0;
114
+ margin-bottom: 16px;
115
+ padding-left: 2em;
116
+ /* The per-level indentation step the list gutter fills (matches padding-left). */
117
+ --md-list-indent-step: 2em;
118
+ }
119
+
120
+ /* Preview renders thematic breaks as a thin 1px rule rather than a thick bar. */
121
+ .md-theme-vscode-default .md-thematic-break {
122
+ height: 0;
123
+ padding: 0;
124
+ margin: 24px 0;
125
+ border: 0;
126
+ border-bottom: 1px solid var(--vscode-textSeparator-foreground, #d1d9e0);
127
+ }
128
+
129
+ .md-theme-vscode-default a {
130
+ color: var(--vscode-textLink-foreground, #0969da);
131
+ text-decoration: none;
132
+ }
133
+
134
+ .md-theme-vscode-default a:hover {
135
+ text-decoration: underline;
136
+ }
137
+
138
+ .md-theme-vscode-default strong {
139
+ font-weight: 600;
140
+ }
141
+
142
+ /*
143
+ * Inline code. Preview keeps inline code at the body font size (1em) on the VS
144
+ * Code preformat surface, with only a small inset — no GitHub-style badge.
145
+ */
146
+ .md-theme-vscode-default :not(pre)>code {
147
+ font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
148
+ 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
149
+ font-size: 1em;
150
+ line-height: 1.357em;
151
+ padding: 1px 3px;
152
+ margin: 0;
153
+ color: var(--vscode-textPreformat-foreground, inherit);
154
+ background-color: var(--vscode-textPreformat-background, #818b981f);
155
+ border-radius: 4px;
156
+ white-space: break-spaces;
157
+ }
158
+
159
+ /* Fenced code block: framed by a 1px border, preview-style. */
160
+ .md-theme-vscode-default .md-code-block {
161
+ margin-top: 0;
162
+ margin-bottom: 16px;
163
+ padding: 16px;
164
+ line-height: 1.357;
165
+ background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
166
+ border: 1px solid var(--vscode-widget-border, #d1d9e0);
167
+ border-radius: 3px;
168
+ }
169
+
170
+ .md-theme-vscode-default .md-code-block code {
171
+ font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
172
+ 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
173
+ padding: 0;
174
+ background-color: transparent;
175
+ border-radius: 0;
176
+ }
177
+
178
+ /*
179
+ * Syntax-highlight token colors. Driven by `--md-tok-*` custom properties so
180
+ * the explorer (or any embedder) can supply a palette matched to the active
181
+ * color theme. Fallbacks are the VS Code light theme palette.
182
+ */
183
+ .md-theme-vscode-default .md-code-block .tok-keyword {
184
+ color: var(--md-tok-keyword, #0000ff);
185
+ }
186
+
187
+ .md-theme-vscode-default .md-code-block .tok-string {
188
+ color: var(--md-tok-string, #a31515);
189
+ }
190
+
191
+ .md-theme-vscode-default .md-code-block .tok-comment {
192
+ color: var(--md-tok-comment, #008000);
193
+ }
194
+
195
+ .md-theme-vscode-default .md-code-block .tok-number {
196
+ color: var(--md-tok-number, #098658);
197
+ }
198
+
199
+ .md-theme-vscode-default .md-code-block .tok-regexp {
200
+ color: var(--md-tok-regexp, #811f3f);
201
+ }
202
+
203
+ .md-theme-vscode-default .md-code-block .tok-type {
204
+ color: var(--md-tok-type, #267f99);
205
+ }
206
+
207
+ .md-theme-vscode-default .md-code-block .tok-annotation {
208
+ color: var(--md-tok-annotation, #267f99);
209
+ }
210
+
211
+ .md-theme-vscode-default .md-code-block .tok-tag {
212
+ color: var(--md-tok-tag, #800000);
213
+ }
214
+
215
+ .md-theme-vscode-default .md-code-block .tok-attribute {
216
+ color: var(--md-tok-attribute, #e50000);
217
+ }
218
+
219
+ .md-theme-vscode-default .md-code-block .tok-delimiter {
220
+ color: var(--md-tok-delimiter, inherit);
221
+ }
222
+
223
+ /*
224
+ * Display math has no container styling (KaTeX renders it inline-centered).
225
+ * Keep only the block spacing; horizontal scroll comes from the base sheet.
226
+ */
227
+ .md-theme-vscode-default .md-math-block {
228
+ margin-top: 0;
229
+ margin-bottom: 16px;
230
+ }
231
+
232
+ /*
233
+ * KaTeX renders inline math at 1.21em with its own (larger) line-height, which
234
+ * would inflate the surrounding line box. Collapse it so the rendered math fits
235
+ * the text line and the paragraph height stays identical active vs inactive.
236
+ */
237
+ .md-theme-vscode-default .md-inline-math .katex {
238
+ line-height: 1;
239
+ }
240
+
241
+ .md-theme-vscode-default .md-table {
242
+ border-collapse: collapse;
243
+ margin-top: 0;
244
+ margin-bottom: 16px;
245
+ width: auto;
246
+ }
247
+
248
+ .md-theme-vscode-default .md-table th,
249
+ .md-theme-vscode-default .md-table td {
250
+ padding: 5px 10px;
251
+ border: 1px solid var(--vscode-editorWidget-border, #d1d9e0);
252
+ text-align: left;
253
+ }
254
+
255
+ /*
256
+ * The editor renders every cell as <td> in a flat <table> of <tr> (no
257
+ * <thead>/<tbody>/<th>). Row order is: header, delimiter row, body rows.
258
+ */
259
+ .md-theme-vscode-default .md-table tr:first-child td {
260
+ font-weight: 600;
261
+ padding-top: 10px;
262
+ padding-bottom: 10px;
263
+ }
264
+
265
+ /* Active: reclaim the header's extra spacing to host the delimiter row. */
266
+ .md-theme-vscode-default .md-table.md-block-active tr:first-child td {
267
+ padding-top: 2px;
268
+ padding-bottom: 2px;
269
+ }
270
+
271
+ .md-theme-vscode-default .md-table tr:nth-child(even):not(.md-table-delimiter-row) {
272
+ background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
273
+ }
274
+
275
+ /*
276
+ * The delimiter row (`| --- | --- |`) is editor source shown only while
277
+ * editing; render it borderless with no vertical padding so it occupies just
278
+ * the compact space reclaimed from the header.
279
+ */
280
+ .md-theme-vscode-default .md-table-delimiter-row td {
281
+ border: 0;
282
+ padding: 0 10px;
283
+ background: transparent;
284
+ }
285
+
286
+ /*
287
+ * Active table: the source `|` pipes ARE the outline. Drop the HTML cell
288
+ * borders (kept as transparent so the 1px box geometry — and thus the table's
289
+ * height and first-text X — is unchanged) and clear the zebra fill so the
290
+ * table reads as plain source.
291
+ */
292
+ .md-theme-vscode-default .md-table.md-block-active td {
293
+ border-color: transparent;
294
+ }
295
+
296
+ .md-theme-vscode-default .md-table.md-block-active tr:nth-child(even):not(.md-table-delimiter-row) td {
297
+ background-color: transparent;
298
+ }
299
+
300
+ /*
301
+ * Shift each cell's leading pipe onto its left gridline (where the border was)
302
+ * and the last cell's closing pipe onto the right gridline. `position:
303
+ * relative` moves only the painted glyph by the cell's horizontal padding;
304
+ * siblings and the glue's reserved width are untouched, so active/inactive
305
+ * height and first-text X stay pixel-identical.
306
+ */
307
+ .md-theme-vscode-default .md-table.md-block-active td>.md-glue-tableCellGlue:first-child,
308
+ .md-theme-vscode-default .md-table.md-block-active .md-table-delimiter-row td>.md-marker-tableDelimiter {
309
+ position: relative;
310
+ left: -10px;
311
+ }
312
+
313
+ /*
314
+ * The last cell's closing `|` floats right after the (left-aligned) cell text.
315
+ * Pin it to the column's right gridline (the cell's border edge, 10px past the
316
+ * content box) so the right outline is a straight line.
317
+ */
318
+ .md-theme-vscode-default .md-table.md-block-active td:last-child {
319
+ position: relative;
320
+ }
321
+
322
+ .md-theme-vscode-default .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
323
+ position: absolute;
324
+ right: 0;
325
+ top: 0;
326
+ }
327
+
328
+ /*
329
+ * The delimiter row's last cell carries its closing `|` as a separate
330
+ * `tableDelimiterClose` marker; pin it to the same right gridline as the body
331
+ * rows' closing pipe so the last column's outline stays straight.
332
+ */
333
+ .md-theme-vscode-default .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
334
+ position: absolute;
335
+ right: 0;
336
+ top: 0;
337
+ }
@@ -1,5 +1,13 @@
1
1
  /*
2
- * VS Code markdown theme.
2
+ * VS Code markdown theme — GitHub layout variant (`md-theme-vscode-github`).
3
+ *
4
+ * One of two `--vscode-*`-variable-driven themes. This variant keeps the
5
+ * GitHub-style layout/typography (larger 16px base, 1.5 line-height, badge-
6
+ * style inline code, zebra tables); the sibling `vscode-default.css`
7
+ * (`md-theme-vscode-default`) mirrors VS Code's own markdown *preview*
8
+ * (`markdown-language-features/media/markdown.css`: 14px base, code blocks with
9
+ * a 1px border, 5px blockquote rule). Both consume the same `--vscode-*`
10
+ * variables and `--md-tok-*` token palette, so only layout/typography differs.
3
11
  *
4
12
  * A *variable-driven* theme: every color is expressed as `var(--vscode-*, …)`
5
13
  * so the editor adopts whatever VS Code color theme is active (dark, light,
@@ -9,7 +17,7 @@
9
17
  *
10
18
  * Apply it via the editor `classNames` option:
11
19
  *
12
- * new EditorView(model, { classNames: ['md-theme-vscode'] });
20
+ * new EditorView(model, { classNames: ['md-theme-vscode-github'] });
13
21
  *
14
22
  * In a real webview VS Code injects the `--vscode-*` custom properties onto
15
23
  * the document root and sets a body theme class, so this theme just works. In
@@ -31,7 +39,7 @@
31
39
  * Component Explorer supplies a matching `--md-tok-*` palette per color theme.
32
40
  */
33
41
 
34
- .md-editor.md-theme-vscode {
42
+ .md-editor.md-theme-vscode-github {
35
43
  font-family: var(--markdown-font-family, -apple-system, BlinkMacSystemFont,
36
44
  'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif);
37
45
  font-size: var(--markdown-font-size, 16px);
@@ -52,48 +60,48 @@
52
60
  --md-cursor-background: var(--vscode-editorCursor-foreground, #000);
53
61
  }
54
62
 
55
- .md-theme-vscode .md-heading {
63
+ .md-theme-vscode-github .md-heading {
56
64
  margin-top: 24px;
57
65
  margin-bottom: 16px;
58
66
  font-weight: 600;
59
67
  line-height: 1.25;
60
68
  }
61
69
 
62
- .md-theme-vscode h1.md-heading {
70
+ .md-theme-vscode-github h1.md-heading {
63
71
  font-size: 2em;
64
72
  padding-bottom: 0.3em;
65
73
  border-bottom: 1px solid var(--vscode-textSeparator-foreground, #d1d9e0b3);
66
74
  }
67
75
 
68
- .md-theme-vscode h2.md-heading {
76
+ .md-theme-vscode-github h2.md-heading {
69
77
  font-size: 1.5em;
70
78
  padding-bottom: 0.3em;
71
79
  border-bottom: 1px solid var(--vscode-textSeparator-foreground, #d1d9e0b3);
72
80
  }
73
81
 
74
- .md-theme-vscode h3.md-heading {
82
+ .md-theme-vscode-github h3.md-heading {
75
83
  font-size: 1.25em;
76
84
  }
77
85
 
78
- .md-theme-vscode h4.md-heading {
86
+ .md-theme-vscode-github h4.md-heading {
79
87
  font-size: 1em;
80
88
  }
81
89
 
82
- .md-theme-vscode h5.md-heading {
90
+ .md-theme-vscode-github h5.md-heading {
83
91
  font-size: 0.875em;
84
92
  }
85
93
 
86
- .md-theme-vscode h6.md-heading {
94
+ .md-theme-vscode-github h6.md-heading {
87
95
  font-size: 0.85em;
88
96
  color: var(--vscode-descriptionForeground, #59636e);
89
97
  }
90
98
 
91
- .md-theme-vscode .md-paragraph {
99
+ .md-theme-vscode-github .md-paragraph {
92
100
  margin-top: 0;
93
101
  margin-bottom: 16px;
94
102
  }
95
103
 
96
- .md-theme-vscode .md-blockquote {
104
+ .md-theme-vscode-github .md-blockquote {
97
105
  margin: 0 0 16px 0;
98
106
  padding: 0 1em;
99
107
  /*
@@ -108,7 +116,7 @@
108
116
  border-left: 0.25em solid var(--vscode-textBlockQuote-border, #d1d9e0);
109
117
  }
110
118
 
111
- .md-theme-vscode .md-list {
119
+ .md-theme-vscode-github .md-list {
112
120
  margin-top: 0;
113
121
  margin-bottom: 16px;
114
122
  padding-left: 2em;
@@ -116,7 +124,7 @@
116
124
  --md-list-indent-step: 2em;
117
125
  }
118
126
 
119
- .md-theme-vscode .md-thematic-break {
127
+ .md-theme-vscode-github .md-thematic-break {
120
128
  height: 0.25em;
121
129
  padding: 0;
122
130
  margin: 24px 0;
@@ -124,21 +132,21 @@
124
132
  border: 0;
125
133
  }
126
134
 
127
- .md-theme-vscode a {
135
+ .md-theme-vscode-github a {
128
136
  color: var(--vscode-textLink-foreground, #0969da);
129
137
  text-decoration: none;
130
138
  }
131
139
 
132
- .md-theme-vscode a:hover {
140
+ .md-theme-vscode-github a:hover {
133
141
  text-decoration: underline;
134
142
  }
135
143
 
136
- .md-theme-vscode strong {
144
+ .md-theme-vscode-github strong {
137
145
  font-weight: 600;
138
146
  }
139
147
 
140
148
  /* Inline code. */
141
- .md-theme-vscode :not(pre)>code {
149
+ .md-theme-vscode-github :not(pre)>code {
142
150
  font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
143
151
  'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
144
152
  font-size: 85%;
@@ -151,7 +159,7 @@
151
159
  }
152
160
 
153
161
  /* Fenced code block. */
154
- .md-theme-vscode .md-code-block {
162
+ .md-theme-vscode-github .md-code-block {
155
163
  margin-top: 0;
156
164
  margin-bottom: 16px;
157
165
  padding: 10px 16px;
@@ -161,7 +169,7 @@
161
169
  border-radius: 6px;
162
170
  }
163
171
 
164
- .md-theme-vscode .md-code-block code {
172
+ .md-theme-vscode-github .md-code-block code {
165
173
  font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
166
174
  'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
167
175
  padding: 0;
@@ -174,43 +182,43 @@
174
182
  * the explorer (or any embedder) can supply a palette matched to the active
175
183
  * color theme. Fallbacks are the VS Code light theme palette.
176
184
  */
177
- .md-theme-vscode .md-code-block .tok-keyword {
185
+ .md-theme-vscode-github .md-code-block .tok-keyword {
178
186
  color: var(--md-tok-keyword, #0000ff);
179
187
  }
180
188
 
181
- .md-theme-vscode .md-code-block .tok-string {
189
+ .md-theme-vscode-github .md-code-block .tok-string {
182
190
  color: var(--md-tok-string, #a31515);
183
191
  }
184
192
 
185
- .md-theme-vscode .md-code-block .tok-comment {
193
+ .md-theme-vscode-github .md-code-block .tok-comment {
186
194
  color: var(--md-tok-comment, #008000);
187
195
  }
188
196
 
189
- .md-theme-vscode .md-code-block .tok-number {
197
+ .md-theme-vscode-github .md-code-block .tok-number {
190
198
  color: var(--md-tok-number, #098658);
191
199
  }
192
200
 
193
- .md-theme-vscode .md-code-block .tok-regexp {
201
+ .md-theme-vscode-github .md-code-block .tok-regexp {
194
202
  color: var(--md-tok-regexp, #811f3f);
195
203
  }
196
204
 
197
- .md-theme-vscode .md-code-block .tok-type {
205
+ .md-theme-vscode-github .md-code-block .tok-type {
198
206
  color: var(--md-tok-type, #267f99);
199
207
  }
200
208
 
201
- .md-theme-vscode .md-code-block .tok-annotation {
209
+ .md-theme-vscode-github .md-code-block .tok-annotation {
202
210
  color: var(--md-tok-annotation, #267f99);
203
211
  }
204
212
 
205
- .md-theme-vscode .md-code-block .tok-tag {
213
+ .md-theme-vscode-github .md-code-block .tok-tag {
206
214
  color: var(--md-tok-tag, #800000);
207
215
  }
208
216
 
209
- .md-theme-vscode .md-code-block .tok-attribute {
217
+ .md-theme-vscode-github .md-code-block .tok-attribute {
210
218
  color: var(--md-tok-attribute, #e50000);
211
219
  }
212
220
 
213
- .md-theme-vscode .md-code-block .tok-delimiter {
221
+ .md-theme-vscode-github .md-code-block .tok-delimiter {
214
222
  color: var(--md-tok-delimiter, inherit);
215
223
  }
216
224
 
@@ -218,7 +226,7 @@
218
226
  * Display math has no container styling (KaTeX renders it inline-centered).
219
227
  * Keep only the block spacing; horizontal scroll comes from the base sheet.
220
228
  */
221
- .md-theme-vscode .md-math-block {
229
+ .md-theme-vscode-github .md-math-block {
222
230
  margin-top: 0;
223
231
  margin-bottom: 16px;
224
232
  }
@@ -228,19 +236,19 @@
228
236
  * would inflate the surrounding line box. Collapse it so the rendered math fits
229
237
  * the text line and the paragraph height stays identical active vs inactive.
230
238
  */
231
- .md-theme-vscode .md-inline-math .katex {
239
+ .md-theme-vscode-github .md-inline-math .katex {
232
240
  line-height: 1;
233
241
  }
234
242
 
235
- .md-theme-vscode .md-table {
243
+ .md-theme-vscode-github .md-table {
236
244
  border-collapse: collapse;
237
245
  margin-top: 0;
238
246
  margin-bottom: 16px;
239
247
  width: auto;
240
248
  }
241
249
 
242
- .md-theme-vscode .md-table th,
243
- .md-theme-vscode .md-table td {
250
+ .md-theme-vscode-github .md-table th,
251
+ .md-theme-vscode-github .md-table td {
244
252
  padding: 6px 13px;
245
253
  border: 1px solid var(--vscode-editorWidget-border, #d1d9e0);
246
254
  text-align: left;
@@ -250,19 +258,19 @@
250
258
  * The editor renders every cell as <td> in a flat <table> of <tr> (no
251
259
  * <thead>/<tbody>/<th>). Row order is: header, delimiter row, body rows.
252
260
  */
253
- .md-theme-vscode .md-table tr:first-child td {
261
+ .md-theme-vscode-github .md-table tr:first-child td {
254
262
  font-weight: 600;
255
263
  padding-top: 11px;
256
264
  padding-bottom: 11px;
257
265
  }
258
266
 
259
267
  /* Active: reclaim the header's extra spacing to host the delimiter row. */
260
- .md-theme-vscode .md-table.md-block-active tr:first-child td {
268
+ .md-theme-vscode-github .md-table.md-block-active tr:first-child td {
261
269
  padding-top: 3px;
262
270
  padding-bottom: 3px;
263
271
  }
264
272
 
265
- .md-theme-vscode .md-table tr:nth-child(even):not(.md-table-delimiter-row) {
273
+ .md-theme-vscode-github .md-table tr:nth-child(even):not(.md-table-delimiter-row) {
266
274
  background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
267
275
  }
268
276
 
@@ -271,7 +279,7 @@
271
279
  * editing; render it borderless with no vertical padding so it occupies just
272
280
  * the compact 10px reclaimed from the header.
273
281
  */
274
- .md-theme-vscode .md-table-delimiter-row td {
282
+ .md-theme-vscode-github .md-table-delimiter-row td {
275
283
  border: 0;
276
284
  padding: 0 13px;
277
285
  background: transparent;
@@ -283,11 +291,11 @@
283
291
  * height and first-text X — is unchanged) and clear the zebra fill so the
284
292
  * table reads as plain source.
285
293
  */
286
- .md-theme-vscode .md-table.md-block-active td {
294
+ .md-theme-vscode-github .md-table.md-block-active td {
287
295
  border-color: transparent;
288
296
  }
289
297
 
290
- .md-theme-vscode .md-table.md-block-active tr:nth-child(even):not(.md-table-delimiter-row) td {
298
+ .md-theme-vscode-github .md-table.md-block-active tr:nth-child(even):not(.md-table-delimiter-row) td {
291
299
  background-color: transparent;
292
300
  }
293
301
 
@@ -298,8 +306,8 @@
298
306
  * siblings and the glue's reserved width are untouched, so active/inactive
299
307
  * height and first-text X stay pixel-identical.
300
308
  */
301
- .md-theme-vscode .md-table.md-block-active td>.md-glue-tableCellGlue:first-child,
302
- .md-theme-vscode .md-table.md-block-active .md-table-delimiter-row td>.md-marker-tableDelimiter {
309
+ .md-theme-vscode-github .md-table.md-block-active td>.md-glue-tableCellGlue:first-child,
310
+ .md-theme-vscode-github .md-table.md-block-active .md-table-delimiter-row td>.md-marker-tableDelimiter {
303
311
  position: relative;
304
312
  left: -13px;
305
313
  }
@@ -309,11 +317,11 @@
309
317
  * Pin it to the column's right gridline (the cell's border edge, 13px past the
310
318
  * content box) so the right outline is a straight line.
311
319
  */
312
- .md-theme-vscode .md-table.md-block-active td:last-child {
320
+ .md-theme-vscode-github .md-table.md-block-active td:last-child {
313
321
  position: relative;
314
322
  }
315
323
 
316
- .md-theme-vscode .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
324
+ .md-theme-vscode-github .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
317
325
  position: absolute;
318
326
  right: 0;
319
327
  top: 0;
@@ -324,7 +332,7 @@
324
332
  * `tableDelimiterClose` marker; pin it to the same right gridline as the body
325
333
  * rows' closing pipe so the last column's outline stays straight.
326
334
  */
327
- .md-theme-vscode .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
335
+ .md-theme-vscode-github .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
328
336
  position: absolute;
329
337
  right: 0;
330
338
  top: 0;