Skip to content

Commit b090291

Browse files
authored
Adjust heading font sizes (#687)
1 parent 72d4b97 commit b090291

File tree

2 files changed

+33
-34
lines changed

2 files changed

+33
-34
lines changed

docs/syntax/headings.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@ You create a heading by adding number signs `#` in front of a word or phrase. Th
66

77
::::{tab-set}
88

9-
:::{tab-item} Markdown
9+
:::{tab-item} Output
1010

11-
```markdown
1211
# Heading 1
12+
1313
## Heading 2
14+
1415
### Heading 3
16+
1517
#### Heading 4
18+
1619
##### Heading 5
17-
###### Heading 6
1820

19-
```
21+
###### Heading 6
2022

2123
:::
2224

23-
:::{tab-item} Output
25+
:::{tab-item} Markdown
2426

27+
```markdown
2528
# Heading 1
26-
2729
## Heading 2
28-
2930
### Heading 3
30-
3131
#### Heading 4
32-
3332
##### Heading 5
34-
3533
###### Heading 6
3634

35+
```
36+
3737
:::
3838

3939
::::
@@ -56,20 +56,20 @@ You will get a hyphened, lowercase, alphanumeric version of any string you pleas
5656

5757
::::{tab-set}
5858

59-
:::{tab-item} Markdown
60-
61-
```markdown
59+
:::{tab-item} Output
6260

6361
#### Hello-World
6462

65-
```
66-
6763
:::
6864

69-
:::{tab-item} Output
65+
:::{tab-item} Markdown
66+
67+
```markdown
7068

7169
#### Hello-World
7270

71+
```
72+
7373
:::
7474

7575
::::
@@ -81,20 +81,20 @@ You can also specify a custom anchor link using the following syntax.
8181

8282
::::{tab-set}
8383

84-
:::{tab-item} Markdown
85-
86-
```markdown
84+
:::{tab-item} Output
8785

8886
#### Heading [custom-anchor]
8987

90-
```
91-
9288
:::
9389

94-
:::{tab-item} Output
90+
:::{tab-item} Markdown
91+
92+
```markdown
9593

9694
#### Heading [custom-anchor]
9795

96+
```
97+
9898
:::
9999

100100
::::

src/Elastic.Markdown/Assets/markdown/typography.css

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,39 @@
33
@apply text-ink text-base font-body;
44

55
h1 {
6-
@apply text-4xl text-ink-dark font-semibold;
6+
@apply text-5xl text-ink-dark font-semibold;
77
line-height: 1.2em;
8-
letter-spacing: -0.04em;
98
}
109

1110
h2 {
1211

13-
@apply text-2xl text-ink-dark font-bold mt-10;
12+
@apply text-4xl text-ink-dark font-bold mt-10;
1413
line-height: 1.2em;
15-
letter-spacing: -0.02em;
14+
letter-spacing: -0.04em;
1615
}
1716

1817
h3 {
19-
@apply text-xl text-ink-dark font-bold mt-8;
18+
@apply text-2xl text-ink-dark font-bold mt-8;
2019
line-height: 1.2em;
21-
letter-spacing: -0.02em;
20+
letter-spacing: -0.04em;
2221
}
2322

2423
h4 {
25-
@apply text-base text-ink-dark font-bold mt-8;
24+
@apply text-xl text-ink-dark font-bold mt-8;
2625
line-height: 1.2em;
27-
letter-spacing: -0.02em;
26+
letter-spacing: -0.04em;
2827
}
2928

3029
h5 {
31-
@apply text-sm text-ink-dark font-bold mt-8;
30+
@apply text-base text-ink-dark font-bold mt-8;
3231
line-height: 1.2em;
33-
letter-spacing: -0.02em;
32+
letter-spacing: -0.04em;
3433
}
3534

3635
h6 {
37-
@apply text-xs text-ink-dark font-bold mt-8;
36+
@apply text-sm text-ink-dark font-bold mt-8;
3837
line-height: 1.2em;
39-
letter-spacing: -0.02em;
38+
letter-spacing: -0.04em;
4039
}
4140

4241
h1, h2, h3, h4, h5, h6 {

0 commit comments

Comments
 (0)