Skip to content

Commit f72ec2a

Browse files
authored
Update markdown h1-h6 styles (microsoft#185801)
* Update markdown h1-h6 styles * Fix separator height
1 parent f8a5ec9 commit f72ec2a

File tree

1 file changed

+35
-8
lines changed

1 file changed

+35
-8
lines changed

extensions/markdown-language-features/media/markdown.css

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ p, ol, ul, pre {
2121
margin-top: 0;
2222
}
2323

24-
h2, h3, h4, h5, h6 {
25-
font-weight: normal;
26-
margin-bottom: 0.2em;
24+
h1, h2, h3, h4, h5, h6 {
25+
font-weight: 600;
26+
margin-top: 24px;
27+
margin-bottom: 16px;
28+
line-height: 1.25;
2729
}
2830

2931
#code-csp-warning {
@@ -133,7 +135,7 @@ textarea:focus {
133135
}
134136

135137
p {
136-
margin-bottom: 0.7em;
138+
margin-bottom: 16px;
137139
}
138140

139141
ul,
@@ -143,16 +145,39 @@ ol {
143145

144146
hr {
145147
border: 0;
146-
height: 2px;
147-
border-bottom: 2px solid;
148+
height: 1px;
149+
border-bottom: 1px solid;
148150
}
149151

150152
h1 {
153+
font-size: 2em;
154+
margin-top: 0;
151155
padding-bottom: 0.3em;
152-
line-height: 1.2;
153156
border-bottom-width: 1px;
154157
border-bottom-style: solid;
155-
font-weight: normal;
158+
}
159+
160+
h2 {
161+
font-size: 1.5em;
162+
padding-bottom: 0.3em;
163+
border-bottom-width: 1px;
164+
border-bottom-style: solid;
165+
}
166+
167+
h3 {
168+
font-size: 1.25em;
169+
}
170+
171+
h4 {
172+
font-size: 1em;
173+
}
174+
175+
h5 {
176+
font-size: 0.875em;
177+
}
178+
179+
h6 {
180+
font-size: 0.85em;
156181
}
157182

158183
table {
@@ -222,12 +247,14 @@ pre {
222247
}
223248

224249
.vscode-light h1,
250+
.vscode-light h2,
225251
.vscode-light hr,
226252
.vscode-light td {
227253
border-color: rgba(0, 0, 0, 0.18);
228254
}
229255

230256
.vscode-dark h1,
257+
.vscode-dark h2,
231258
.vscode-dark hr,
232259
.vscode-dark td {
233260
border-color: rgba(255, 255, 255, 0.18);

0 commit comments

Comments
 (0)