Skip to content

Commit 2cbf01b

Browse files
authored
Revert "Notebook UI heading tweaks (microsoft#188117)" (microsoft#188335)
This reverts commit e055922.
1 parent f72b7b1 commit 2cbf01b

File tree

2 files changed

+21
-46
lines changed

2 files changed

+21
-46
lines changed

extensions/markdown-language-features/notebook/index.ts

Lines changed: 21 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -176,39 +176,42 @@ export const activate: ActivationFunction<void> = (ctx) => {
176176
177177
hr {
178178
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;
181185
}
182186
183187
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;
189189
}
190190
191191
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;
196193
}
197194
198195
h3 {
199-
font-size: 1.25em;
196+
font-size: 1.7em;
197+
}
198+
199+
h3 {
200+
font-size: 1.5em;
200201
}
201202
202203
h4 {
203-
font-size: 1em;
204+
font-size: 1.3em;
204205
}
205206
206207
h5 {
207-
font-size: 0.875em;
208+
font-size: 1.2em;
208209
}
209210
210-
h6 {
211-
font-size: 0.85em;
211+
h1,
212+
h2,
213+
h3 {
214+
font-weight: normal;
212215
}
213216
214217
div {
@@ -226,38 +229,12 @@ export const activate: ActivationFunction<void> = (ctx) => {
226229
}
227230
228231
/* 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 {
231234
margin-bottom: 0;
232235
padding-bottom: 0;
233236
}
234237
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-
261238
/* makes all markdown cells consistent */
262239
div {
263240
min-height: var(--notebook-markdown-min-height);

src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,12 @@ pre code {
132132
}
133133
134134
.vscode-light h1,
135-
.vscode-light h2,
136135
.vscode-light hr,
137136
.vscode-light td {
138137
border-color: rgba(0, 0, 0, 0.18);
139138
}
140139
141140
.vscode-dark h1,
142-
.vscode-dark h2,
143141
.vscode-dark hr,
144142
.vscode-dark td {
145143
border-color: rgba(255, 255, 255, 0.18);

0 commit comments

Comments
 (0)