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