File tree Expand file tree Collapse file tree 2 files changed +46
-21
lines changed
extensions/markdown-language-features/notebook
src/vs/workbench/contrib/markdown/browser Expand file tree Collapse file tree 2 files changed +46
-21
lines changed Original file line number Diff line number Diff line change @@ -176,42 +176,39 @@ export const activate: ActivationFunction<void> = (ctx) => {
176
176
177
177
hr {
178
178
border: 0;
179
- height: 2px;
180
- border-bottom: 2px solid;
181
- }
182
-
183
- h2, h3, h4, h5, h6 {
184
- font-weight: normal;
179
+ height: 1px;
180
+ border-bottom: 1px solid;
185
181
}
186
182
187
183
h1 {
188
- font-size: 2.3em;
184
+ font-size: 2em;
185
+ margin-top: 0;
186
+ padding-bottom: 0.3em;
187
+ border-bottom-width: 1px;
188
+ border-bottom-style: solid;
189
189
}
190
190
191
191
h2 {
192
- font-size: 2em;
192
+ font-size: 1.5em;
193
+ padding-bottom: 0.3em;
194
+ border-bottom-width: 1px;
195
+ border-bottom-style: solid;
193
196
}
194
197
195
198
h3 {
196
- font-size: 1.7em;
197
- }
198
-
199
- h3 {
200
- font-size: 1.5em;
199
+ font-size: 1.25em;
201
200
}
202
201
203
202
h4 {
204
- font-size: 1.3em ;
203
+ font-size: 1em ;
205
204
}
206
205
207
206
h5 {
208
- font-size: 1.2em ;
207
+ font-size: 0.875em ;
209
208
}
210
209
211
- h1,
212
- h2,
213
- h3 {
214
- font-weight: normal;
210
+ h6 {
211
+ font-size: 0.85em;
215
212
}
216
213
217
214
div {
@@ -229,12 +226,38 @@ export const activate: ActivationFunction<void> = (ctx) => {
229
226
}
230
227
231
228
/* Removes bottom margin when only one item exists in markdown cell */
232
- #preview > *:only-child,
233
- #preview > *:last-child {
229
+ #preview > *:not(h1):not(h2): only-child,
230
+ #preview > *:not(h1):not(h2): last-child {
234
231
margin-bottom: 0;
235
232
padding-bottom: 0;
236
233
}
237
234
235
+ h1,
236
+ h2,
237
+ h3,
238
+ h4,
239
+ h5,
240
+ h6 {
241
+ font-weight: 600;
242
+ margin-top: 24px;
243
+ margin-bottom: 16px;
244
+ line-height: 1.25;
245
+ }
246
+
247
+ .vscode-light h1,
248
+ .vscode-light h2,
249
+ .vscode-light hr,
250
+ .vscode-light td {
251
+ border-color: rgba(0, 0, 0, 0.18);
252
+ }
253
+
254
+ .vscode-dark h1,
255
+ .vscode-dark h2,
256
+ .vscode-dark hr,
257
+ .vscode-dark td {
258
+ border-color: rgba(255, 255, 255, 0.18);
259
+ }
260
+
238
261
/* makes all markdown cells consistent */
239
262
div {
240
263
min-height: var(--notebook-markdown-min-height);
Original file line number Diff line number Diff line change @@ -132,12 +132,14 @@ pre code {
132
132
}
133
133
134
134
.vscode-light h1,
135
+ .vscode-light h2,
135
136
.vscode-light hr,
136
137
.vscode-light td {
137
138
border-color: rgba(0, 0, 0, 0.18);
138
139
}
139
140
140
141
.vscode-dark h1,
142
+ .vscode-dark h2,
141
143
.vscode-dark hr,
142
144
.vscode-dark td {
143
145
border-color: rgba(255, 255, 255, 0.18);
You can’t perform that action at this time.
0 commit comments